modified: src/views/plan/customerorder/sample-customerorder-form.vue
modified: src/views/plan/masterproductionschedule/auto-manufacturingorder.vue
| | |
| | | <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> |
| | |
| | | }, |
| | | 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)=>{ |
| | |
| | | unit: item.unit, |
| | | workShop: null, |
| | | workshopTypeCode: 'M', |
| | | requiredDate: null, |
| | | requiredDate: this.masterProduction.requiredDate, |
| | | id: item.id, |
| | | manufactureAttr: this.masterProduction.manufactureAttr, |
| | | isReportOperation: this.isReportOperation |