From 3060a974ae3d7ad0910f9bcd6a7aaaf2edb7eb71 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 15 十一月 2023 17:54:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/plan/masterproductionschedule/auto-manufacturingorder.vue | 2 +- src/views/plan/customerorder/sample-customerorder-form.vue | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/plan/customerorder/sample-customerorder-form.vue b/src/views/plan/customerorder/sample-customerorder-form.vue index 9c069b0..b1d326d 100644 --- a/src/views/plan/customerorder/sample-customerorder-form.vue +++ b/src/views/plan/customerorder/sample-customerorder-form.vue @@ -68,8 +68,8 @@ <el-row> <el-col :span="6"> <el-form-item label="涓氬姟鍛�" prop="salesMan"> - <el-select @change="selsctionSales" v-model="salesSelectData" style="width:100%"> - <el-option v-for="(item,index) in staffOptions" :key="index" :value="item" :label="item.staffName"/> + <el-select @change="selsctionSales" filterable v-model="salesSelectData" style="width:100%"> + <el-option v-for="(item,index) in staffOptions" :key="index" :value="item.staffNo+','+item.staffName" :label="item.staffName"/> </el-select> </el-form-item> </el-col> @@ -489,8 +489,11 @@ }, methods: { selsctionSales(data){ - this.dataForm.salesMan = data.staffName - this.dataForm.salerWorkCode = data.staffNo + if(data){ + let arr = data.split(",") + this.dataForm.salesMan = arr[1] + this.dataForm.salerWorkCode = arr[0] + } }, getStaffOptions(){ chooseStaff().then((response)=>{ diff --git a/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue b/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue index 76551ef..4f87083 100644 --- a/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue +++ b/src/views/plan/masterproductionschedule/auto-manufacturingorder.vue @@ -251,7 +251,7 @@ unit: item.unit, workShop: null, workshopTypeCode: 'M', - requiredDate: null, + requiredDate: this.masterProduction.requiredDate, id: item.id, manufactureAttr: this.masterProduction.manufactureAttr, isReportOperation: this.isReportOperation -- Gitblit v1.9.3