|
|
@ -75,7 +75,8 @@
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
|
|
|
|
<el-table :data="dataList" style="width: 100%" v-loading="loading" border highlight-current-row
|
|
|
|
:row-class-name="tableRowClassName" @current-change="handleChange" @selection-change="handleSelectionChange" ref="multipleTable">
|
|
|
|
:row-class-name="tableRowClassName" @current-change="handleChange"
|
|
|
|
|
|
|
|
@selection-change="handleSelectionChange" ref="multipleTable">
|
|
|
|
<!--<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.id" v-model="radioCheck"><span></span></el-radio>-->
|
|
|
|
<!-- <el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>-->
|
|
|
@ -187,7 +188,7 @@ export default {
|
|
|
|
keys: [],
|
|
|
|
keys: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
lists:[],
|
|
|
|
lists: [],
|
|
|
|
radioCheck: null,
|
|
|
|
radioCheck: null,
|
|
|
|
dataList: [],
|
|
|
|
dataList: [],
|
|
|
|
pageTotal: 1,
|
|
|
|
pageTotal: 1,
|
|
|
@ -199,12 +200,12 @@ export default {
|
|
|
|
thirdSysFk: null,
|
|
|
|
thirdSysFk: null,
|
|
|
|
busTypes: [],
|
|
|
|
busTypes: [],
|
|
|
|
actDateRange: [],
|
|
|
|
actDateRange: [],
|
|
|
|
tQuery : {
|
|
|
|
tQuery: {
|
|
|
|
productId:"",
|
|
|
|
productId: "",
|
|
|
|
productName: "",
|
|
|
|
productName: "",
|
|
|
|
count: "",
|
|
|
|
count: "",
|
|
|
|
orderIdFk: "",
|
|
|
|
orderIdFk: "",
|
|
|
|
supId:"",
|
|
|
|
supId: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
shortcuts: [
|
|
|
|
shortcuts: [
|
|
|
@ -328,16 +329,16 @@ export default {
|
|
|
|
intentBack() {
|
|
|
|
intentBack() {
|
|
|
|
this.closeDialog();
|
|
|
|
this.closeDialog();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSelectionChange(val){
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
this.lists=[];
|
|
|
|
this.lists = [];
|
|
|
|
for (var i=0;i<val.length;i++){
|
|
|
|
for (var i = 0; i < val.length; i++) {
|
|
|
|
this.tQuery={}
|
|
|
|
this.tQuery = {}
|
|
|
|
this.tQuery.productId= val[i].id;
|
|
|
|
this.tQuery.productId = val[i].id;
|
|
|
|
this.tQuery.supId=val[i].customerId;
|
|
|
|
this.tQuery.supId = val[i].customerId;
|
|
|
|
this.tQuery.productName=val[i].cpmctymc;
|
|
|
|
this.tQuery.productName = val[i].cpmctymc;
|
|
|
|
this.tQuery.count=1;
|
|
|
|
this.tQuery.count = 1;
|
|
|
|
this.tQuery.orderIdFk=this.pId;
|
|
|
|
this.tQuery.orderIdFk = this.pId;
|
|
|
|
this.tQuery.zczbhhzbapzbh=val[i].zczbhhzbapzbh;
|
|
|
|
this.tQuery.zczbhhzbapzbh = val[i].zczbhhzbapzbh;
|
|
|
|
this.lists.push(this.tQuery)
|
|
|
|
this.lists.push(this.tQuery)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(this.lists)
|
|
|
|
console.log(this.lists)
|
|
|
@ -348,15 +349,15 @@ export default {
|
|
|
|
this.$message.error('未选择产品');
|
|
|
|
this.$message.error('未选择产品');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
debugger
|
|
|
|
if (this.ids.length > 0) {
|
|
|
|
// if (this.ids.length > 0) {
|
|
|
|
for (var i = 0; i < this.ids.length; i++) {
|
|
|
|
// for (var i = 0; i < this.ids.length; i++) {
|
|
|
|
if (this.ids[i] == this.multipleSelection.id) {
|
|
|
|
// if (this.ids[i] == this.multipleSelection.id) {
|
|
|
|
this.$message.error("该产品已录入!");
|
|
|
|
// this.$message.error("该产品已录入!");
|
|
|
|
return
|
|
|
|
// return
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let str = this.multipleSelection.zczbhhzbapzbh;
|
|
|
|
// let str = this.multipleSelection.zczbhhzbapzbh;
|
|
|
|