|
@@ -1027,6 +1027,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ {{schedulingList}}
|
|
|
<el-table :data="schedulingList" v-if="userType == '00'">
|
|
|
<el-table-column label="箱型" align="center" prop="cntrId">
|
|
|
<template slot-scope="scope">
|
|
@@ -1034,6 +1035,7 @@
|
|
|
v-model="scope.row.cntrId"
|
|
|
placeholder="请选择箱型"
|
|
|
:disabled="disabled||scope.row.billStatus==6"
|
|
|
+ @change="checkPid(scope.row)"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(dict, index) in cntrId2List"
|
|
@@ -1312,6 +1314,12 @@ export default {
|
|
|
this.username = Cookies.get("username");
|
|
|
},
|
|
|
methods: {
|
|
|
+ //选中时赋值pid
|
|
|
+ checkPid(row){
|
|
|
+ let arr = this.planList;
|
|
|
+ let arr2 = arr.filter((e) => e.cntrId == row.cntrId);
|
|
|
+ row["pid"] = arr2[0].id;
|
|
|
+ },
|
|
|
noMorecntrId(e) {
|
|
|
this.cntrIdList.forEach((item) => (item.noOption = false));
|
|
|
let arrIds = e.map((item) => item.cntrId);
|
|
@@ -1515,9 +1523,6 @@ export default {
|
|
|
addplansRow(row) {
|
|
|
console.log(row);
|
|
|
if (row.billStatus != 6) {
|
|
|
- let arr = this.planList;
|
|
|
- let arr2 = arr.filter((e) => e.cntrId == row.cntrId);
|
|
|
- row["pid"] = arr2[0].id;
|
|
|
let formData = new window.FormData();
|
|
|
formData.append("tmsorder", JSON.stringify(this.form));
|
|
|
formData.append("plans", JSON.stringify(row));
|