11/19 界面优化1

dev_unify
wangwei 8 months ago
parent 4b2a752c6f
commit 60ab09fb9a

@ -412,7 +412,7 @@ export default {
productType: 2
},
viewType: 4,
viewType: 3,
checkStatus: {
1: "草稿",
2: "等待处理",

@ -479,7 +479,7 @@
<selectProduct
:closeSelDialog="closeSelDialog"
:uuid="uuid"
:nameCodes="nameCodes"
:productIds="productIds"
></selectProduct>
</el-dialog>
@ -610,7 +610,7 @@ export default {
checked: false,
list: [],
allProduct:[],
nameCodes:[],
productIds:[],
detailList: [],
sysList: [],
filterList: [],
@ -993,7 +993,7 @@ export default {
this.multipleSelection = val;
},
closeSelDialog(val) {
this.nameCodes = []
this.productIds = []
this.selectProductVisible = false;
this.addProductVisible = false;
this.getList();
@ -1226,7 +1226,7 @@ export default {
.then((response) => {
this.allProduct = response.data.list ;
if (this.allProduct.length > 0){
this.nameCodes = this.allProduct.map(item => item.nameCode)
this.productIds = this.allProduct.map(item => item.prid)
}
this.selectProductVisible = true;
})

@ -89,7 +89,7 @@
:header-cell-class-name="cellClass" @current-change="handleSelectionChange">
<el-table-column label width="45">
<template slot-scope="scope">
<el-radio :label="scope.row.nameCode" v-model="radioCheck" :disabled="isDisabled(scope.row.nameCode)"><span></span></el-radio>
<el-radio :label="scope.row.productId" v-model="radioCheck" :disabled="isDisabled(scope.row.productId)"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column label="序号" type="index"></el-table-column>
@ -799,7 +799,7 @@ export default {
type: Function,
required: true,
},
nameCodes: {
productIds: {
type: Array,
required: true,
}
@ -1147,10 +1147,10 @@ export default {
});
},
handleSelectionChange(selection) {
if (this.nameCodes.includes(selection.nameCode)){
if (this.productIds.includes(selection.productId)){
return
}else{
this.radioCheck = selection.nameCode;
this.radioCheck = selection.productId;
}
this.curSelectDi = selection;
@ -1184,9 +1184,9 @@ export default {
// }
},
isDisabled(nameCode){
if (this.nameCodes.length > 0){
return this.nameCodes.includes(nameCode);
isDisabled(productId){
if (this.productIds.length > 0){
return this.productIds.includes(productId);
}
},
handleErpChange(val) {

@ -570,6 +570,11 @@ export default {
let query = {
id: row.id,
};
_this.$confirm('此操作将删除该产品,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
delThrDiProducts(query).then((res) => {
if (res.code === 20000) {
_this.$message.success("删除成功");
@ -578,6 +583,8 @@ export default {
_this.$message.error("删除失败");
}
});
}).catch(() => {})
},
closeDialog() {
this.selectErpDialogVisible = false;

Loading…
Cancel
Save