|
|
|
@ -75,12 +75,13 @@
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
|
|
|
|
|
:row-class-name="tableRowClassName" @current-change="handleChange" ref="multipleTable">
|
|
|
|
|
<el-table-column label width="45">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
:row-class-name="tableRowClassName" @current-change="handleChange" @selection-change="handleSelectionChange" ref="multipleTable">
|
|
|
|
|
<!--<el-table-column label width="45">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
|
<el-table-column type="selection"></el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="最小销售产品标识" prop="nameCode" width="140" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="第三方物资编码" prop="thirdId" show-overflow-tooltip></el-table-column>
|
|
|
|
@ -186,6 +187,7 @@ export default {
|
|
|
|
|
keys: [],
|
|
|
|
|
},
|
|
|
|
|
ids: [],
|
|
|
|
|
lists:[],
|
|
|
|
|
radioCheck: null,
|
|
|
|
|
dataList: [],
|
|
|
|
|
pageTotal: 1,
|
|
|
|
@ -197,6 +199,13 @@ export default {
|
|
|
|
|
thirdSysFk: null,
|
|
|
|
|
busTypes: [],
|
|
|
|
|
actDateRange: [],
|
|
|
|
|
tQuery : {
|
|
|
|
|
productId:"",
|
|
|
|
|
productName: "",
|
|
|
|
|
count: "",
|
|
|
|
|
orderIdFk: "",
|
|
|
|
|
supId:"",
|
|
|
|
|
},
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
shortcuts: [
|
|
|
|
|
{
|
|
|
|
@ -297,6 +306,7 @@ export default {
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.listQuery.customerId = store.getters.customerId;
|
|
|
|
|
this.listQuery.id = this.pId;
|
|
|
|
|
filterCompanyProductplanRelevance(this.listQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -318,10 +328,23 @@ export default {
|
|
|
|
|
intentBack() {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleSelectionChange(val){
|
|
|
|
|
this.lists=[];
|
|
|
|
|
for (var i=0;i<val.length;i++){
|
|
|
|
|
this.tQuery={}
|
|
|
|
|
this.tQuery.productId= val[i].id;
|
|
|
|
|
this.tQuery.supId=val[i].customerId;
|
|
|
|
|
this.tQuery.productName=val[i].cpmctymc;
|
|
|
|
|
this.tQuery.count=1;
|
|
|
|
|
this.tQuery.orderIdFk=this.pId;
|
|
|
|
|
this.tQuery.zczbhhzbapzbh=val[i].zczbhhzbapzbh;
|
|
|
|
|
this.lists.push(this.tQuery)
|
|
|
|
|
}
|
|
|
|
|
console.log(this.lists)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
confirmSelect() {
|
|
|
|
|
if (this.multipleSelection == null) {
|
|
|
|
|
if (this.lists == null) {
|
|
|
|
|
this.$message.error('未选择产品');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -336,27 +359,19 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let str = this.multipleSelection.zczbhhzbapzbh;
|
|
|
|
|
if (str.search(",") != -1) {
|
|
|
|
|
this.currentCert = null;
|
|
|
|
|
this.certList = str.split(',');
|
|
|
|
|
this.dialogFormVisible = true;
|
|
|
|
|
} else {
|
|
|
|
|
// let str = this.multipleSelection.zczbhhzbapzbh;
|
|
|
|
|
// if (str.search(",") != -1) {
|
|
|
|
|
// this.currentCert = null;
|
|
|
|
|
// this.certList = str.split(',');
|
|
|
|
|
// this.dialogFormVisible = true;
|
|
|
|
|
// } else {
|
|
|
|
|
this.combine();
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
combine() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
let tQuery = {
|
|
|
|
|
productId: this.multipleSelection.id,
|
|
|
|
|
productName: this.multipleSelection.cpmctymc,
|
|
|
|
|
count: 1,
|
|
|
|
|
orderIdFk: this.pId,
|
|
|
|
|
supId: this.multipleSelection.customerId,
|
|
|
|
|
zczbhhzbapzbh: this.multipleSelection.zczbhhzbapzbh
|
|
|
|
|
};
|
|
|
|
|
addApplyDetail(tQuery).then((response) => {
|
|
|
|
|
addApplyDetail(this.lists).then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.closeDialog(response.data);
|
|
|
|
|