11/14 界面优化

dev_unify
wangwei 8 months ago
parent e84defb3fd
commit 22bc384418

@ -477,6 +477,7 @@
<selectProduct <selectProduct
:closeSelDialog="closeSelDialog" :closeSelDialog="closeSelDialog"
:uuid="uuid" :uuid="uuid"
:nameCodes="nameCodes"
></selectProduct> ></selectProduct>
</el-dialog> </el-dialog>
@ -605,6 +606,8 @@ export default {
uploadFileUrl: null, uploadFileUrl: null,
checked: false, checked: false,
list: [], list: [],
allProduct:[],
nameCodes:[],
detailList: [], detailList: [],
sysList: [], sysList: [],
filterList: [], filterList: [],
@ -1212,7 +1215,19 @@ export default {
}); });
}, },
selectProduct() { selectProduct() {
this.selectProductVisible = true; this.filterQuery.limit = 10000
this.filterQuery.customerId = store.getters.customerId;
filterCompanyProductRelevance(this.filterQuery)
.then((response) => {
this.allProduct = response.data.list ;
if (this.allProduct.length > 0){
this.nameCodes = this.allProduct.map(item => item.nameCode)
}
this.selectProductVisible = true;
})
// this.nameCodes = this.allList.map(item => item.nameCode)
}, },
closeAddDialog(val) { closeAddDialog(val) {
if (val) { if (val) {

@ -75,7 +75,7 @@
:header-cell-class-name="cellClass" @current-change="handleSelectionChange"> :header-cell-class-name="cellClass" @current-change="handleSelectionChange">
<el-table-column label width="45"> <el-table-column label width="45">
<template slot-scope="scope"> <template slot-scope="scope">
<el-radio :label="scope.row.nameCode" v-model="radioCheck"><span></span></el-radio> <el-radio :label="scope.row.nameCode" v-model="radioCheck" :disabled="isDisabled(scope.row.nameCode)"><span></span></el-radio>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
@ -398,8 +398,6 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row type="flex"> <el-row type="flex">
<el-col :span="11" class="el-col"> <el-col :span="11" class="el-col">
@ -791,6 +789,10 @@ export default {
type: Function, type: Function,
required: true, required: true,
}, },
nameCodes: {
type: Array,
required: true,
}
}, },
data() { data() {
return { return {
@ -810,6 +812,7 @@ export default {
productsType: 2, productsType: 2,
bzgg:"", bzgg:"",
prepnSpec:"", prepnSpec:"",
filterNameCodes:[]
}, },
@ -981,8 +984,8 @@ export default {
getSmUdiInfos(this.filterQuery) getSmUdiInfos(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.list = response.data.list || []; this.list = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -990,7 +993,6 @@ export default {
this.total = 0; this.total = 0;
}); });
}, },
getDetailList(detailQuery) { getDetailList(detailQuery) {
this.loading = true; this.loading = true;
filterByUuid(detailQuery) filterByUuid(detailQuery)
@ -1118,7 +1120,12 @@ export default {
}); });
}, },
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.radioCheck = selection.nameCode; if (this.nameCodes.includes(selection.nameCode)){
return
}else{
this.radioCheck = selection.nameCode;
}
this.curSelectDi = selection; this.curSelectDi = selection;
if (selection.length > 1) { if (selection.length > 1) {
this.$refs.diList.clearSelection(); this.$refs.diList.clearSelection();
@ -1150,6 +1157,11 @@ export default {
// } // }
}, },
isDisabled(nameCode){
if (this.nameCodes.length > 0){
return this.nameCodes.includes(nameCode);
}
},
handleErpChange(val) { handleErpChange(val) {
this.currentRow = val; this.currentRow = val;
}, },

Loading…
Cancel
Save