| | |
| | | </template> |
| | | <template #drawingNo="{}"> |
| | | <el-autocomplete v-model="attachForm.drawingNo" |
| | | :fetch-suggestions="querySearchAsync" |
| | | :trigger-on-focus="false" @select="handleSelect" |
| | | :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" |
| | | @select="handleSelect" |
| | | > |
| | | <!-- |
| | | <template solt="input" slot-scope="{$attrs}"> |
| | | <input type="hidden" :disabled="true" :value="$refs.input.value"/> |
| | | </template>--> |
| | | </el-autocomplete> |
| | | </template> |
| | | <!-- |
| | |
| | | prop: 'productModel', |
| | | type: 'input', |
| | | span: 12, |
| | | disabled:true, |
| | | placeholder:'选择零组件号自动填充', |
| | | dataType: 'string', |
| | | rules: [{ required: true, message: '必填', trigger: 'blur' }], |
| | | blur: (col) => { |
| | | this.handleTrim(col) |
| | | }, |
| | | }, |
| | | { |
| | | label: '工序号', |
| | |
| | | blur: (col) => { |
| | | this.handleTrim(col) |
| | | }, |
| | | }, |
| | | { |
| | | label: '零组件名称', |
| | | prop: 'drawingName', |
| | | type: 'input', |
| | | placeholder:'选择零组件号自动填充', |
| | | span: 12, |
| | | disabled:true, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '工序名称', |
| | |
| | | rules: [{ required: true, message: '必填', trigger: 'blur' }], |
| | | }, |
| | | { |
| | | label: '偏离单号', |
| | | label: '临时更改单号', |
| | | prop: 'deviation', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | class:'input_holder_warn', |
| | | placeholder:'无偏离单任务请留空', |
| | | placeholder:'非临时更改单任务请留空', |
| | | blur: (col) => { |
| | | this.handleTrim(col) |
| | | }, |
| | |
| | | label: '主管工艺', |
| | | prop: 'producePlanId', |
| | | type: 'select',//column 12 |
| | | clearable:true, |
| | | remote: true, |
| | | placeholder:'无法匹配人员职责表时请选择主管工艺', |
| | | dicUrl: `/blade-mdm/producedivision/select-programmer?programmer={{key}}`, |
| | |
| | | let item = new Object(); |
| | | item.value = obj.id; |
| | | item.label = obj.programmerName; |
| | | item.desc = `专业组长:${obj.teamLeaderName},校对:${obj.checkerName},审核:${obj.checkerName}` |
| | | item.desc = `专业组长:${obj.teamLeaderName},校对:${obj.checkerName},审核:${obj.seniorName}` |
| | | return item; |
| | | }); ; |
| | | }, |
| | |
| | | params: {drawingNo: query}, |
| | | }).then( |
| | | res => { |
| | | this.attachForm.productModel = '';// |
| | | if(res.data.code == 200){ |
| | | let list = res.data.data; |
| | | for(let i of list){ |
| | |
| | | }, |
| | | handleSelect(item) { |
| | | this.attachForm.productModel = item.cph; |
| | | this.attachForm.drawingName = item.ljmc; |
| | | }, |
| | | /* |
| | | queryProgrammerAsync(query, cb) {//主管工艺搜索建议 |
| | |
| | | }, |
| | | formSubmit(form, done) { |
| | | var form = { ...form }; |
| | | console.log('submit',form); |
| | | |
| | | if(this.attachForm.producePlanId){ |
| | | //手动指定了人员职责表id,不用继续从服务端验证 |
| | | this.startDispatch(form,done); |
| | |
| | | res => { |
| | | |
| | | if(res.data.code == 200){ |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | |
| | | this.attachForm.producePlanId = res.data.data.id; |
| | | //this.drawingNoMatch = true; |