From d8ac6057eaad648687699e25a575f3b7b8c1b102 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期五, 17 十一月 2023 18:52:19 +0800 Subject: [PATCH] modified: src/views/plan/customerorder/schedule-table.vue --- src/views/plan/customerorder/schedule-table.vue | 48 +++++++++++++++++++++++++++--------------------- 1 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/views/plan/customerorder/schedule-table.vue b/src/views/plan/customerorder/schedule-table.vue index a5588d4..09eeaa0 100644 --- a/src/views/plan/customerorder/schedule-table.vue +++ b/src/views/plan/customerorder/schedule-table.vue @@ -19,6 +19,7 @@ <el-form :model="dataForm" :rules="dataRule" ref="dataForm" class="l-mes"> <div class="avue-crud"> <el-table + border :data="dataForm.customer" style="width: 100%" class="mps-table" @@ -28,17 +29,17 @@ header-align="center" align="center" label="瀹㈡埛璁㈠崟缂栧彿" - width="120px" + min-width="130px" > <template slot-scope="scope"> - <el-form-item>{{ scope.row.customerOrderNo }}</el-form-item> + <el-form-item>{{ scope.row.contractNo }}</el-form-item> </template> </el-table-column> <el-table-column header-align="center" align="center" label="闆朵欢鍙�" - width="120px" + min-width="130" > <template slot-scope="scope"> <el-form-item>{{ scope.row.partNo }}</el-form-item> @@ -53,7 +54,7 @@ > <template slot-scope="scope"> <el-form-item class="inline-el-hidden">{{ - scope.row.partName + scope.row.productName }}</el-form-item> </template> </el-table-column> @@ -67,32 +68,27 @@ <el-form-item>{{ scope.row.buyQtyDue }}</el-form-item> </template> </el-table-column> - <el-table-column + <!-- <el-table-column header-align="center" align="center" label="宸茶鍒掓暟閲�" - width="120px" > <template slot-scope="scope"> <el-form-item>{{ scope.row.requireNumber }}</el-form-item> </template> - </el-table-column> + </el-table-column> --> <el-table-column prop="remainderRequired" header-align="center" align="center" - label="鏈璁″垝鏁伴噺" - width="170px" - > + label="鏈璁″垝鏁伴噺"> <template scope="scope"> - <el-form-item - :prop="'customer.' + scope.$index" - :rules="rules.qtyPlaned" - > + <!-- <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item> --> + <el-form-item :prop="'customer.' + scope.$index" :rules="rules.qtyPlaned"> <el-input v-model="scope.row.qtyPlaned" - placeholder="" - ></el-input> + placeholder="璇疯緭鍏ユ湰娆¤鍒掓暟閲�"> + </el-input> </el-form-item> </template> </el-table-column> @@ -100,10 +96,9 @@ header-align="center" align="center" label="鍗曚綅" - width="60px" > <template slot-scope="scope"> - <span>{{ scope.row.unit }}</span> + <span>{{ scope.row.otcUnit }}</span> </template> </el-table-column> <el-table-column @@ -111,7 +106,6 @@ header-align="center" align="center" label="鍒堕�犲睘鎬�" - width="170px" > <template scope="scope"> <el-form-item :prop="'manufactureAttr.' + scope.$index"> @@ -134,8 +128,16 @@ <el-table-column header-align="center" align="center" - label="闇�姹傛棩鏈�" - width="160px" + label="璁″垝鏃ユ湡" + > + <template slot-scope="scope"> + <el-form-item>{{ scope.row.deliveryDate }}</el-form-item> + </template> + </el-table-column> + <el-table-column + header-align="center" + align="center" + label="瀹㈡埛闇�姹傛棩鏈�" > <template slot-scope="scope"> <el-form-item>{{ scope.row.wantedDeliveryDate }}</el-form-item> @@ -146,6 +148,7 @@ align="center" show-overflow-tooltip label="澶囨敞" + min-width="140" > <template slot-scope="scope"> <el-form-item> @@ -223,6 +226,7 @@ const _that = this customer.forEach((item) => { const outPutBatchList = [] + item.qtyPlaned = Number(item.buyQtyDue) _that.$set(item, 'outPutBatchList', outPutBatchList) customerList.push(item) }) @@ -235,6 +239,8 @@ if (valid) { checkSchedule(this.dataForm.customer) .then((res) => { + console.log(this.dataForm.customer); + return if (res.data.data.success) { createMasterProductionSchedule(this.dataForm.customer) .then((res) => { -- Gitblit v1.9.3