| | |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | prop="eqp_name" |
| | | label="设备/供应商" |
| | | show-tooltip-when-overflow |
| | | align="center" |
| | | /> |
| | | <el-table-column |
| | | prop="plan_qty" |
| | | label="任务数量" |
| | | show-tooltip-when-overflow |
| | |
| | | import { |
| | | EditOrderNgStepSeave, |
| | | MesOrderNgStepSearch, |
| | | MesOrderNgSubStepSearch, |
| | | MesOrderNgSubStepSearch, MesOrderStepDeviceCusstomer, |
| | | MesOrderStepSearch, MesOrderStepStart, |
| | | MesOrderWxStepSearch, SavaMesOrderStepIn, SavaMesOrderStepOut, SavaMesOrderStepReport |
| | | } from '@/api/WorkOrder' |
| | |
| | | const { data: res3 } = await DefectPermissions() // 缺陷 |
| | | this.defectArr = res3 |
| | | |
| | | const { data: res4 } = await EqpPermissions() // 设备 |
| | | this.eqpArr = res4 |
| | | |
| | | const { data: res5 } = await CustomerPermissions() // 往来单位 |
| | | this.wxArr = res5 |
| | | // const { data: res4 } = await EqpPermissions() // 设备 |
| | | // this.eqpArr = res4 |
| | | // |
| | | // const { data: res5 } = await CustomerPermissions() // 往来单位 |
| | | // this.wxArr = res5 |
| | | |
| | | const { data: res6 } = await PrentOrganizationNoCompany()// 无公司的组织下拉 |
| | | this.wkshopcodeArr = res6 |
| | |
| | | }, |
| | | // 生产开报工:报工/外协(发料/收料)时条件判断及数据返回接口 |
| | | async getMesOrderStepStart(OperType, SelectType, wocode, stepcode) { |
| | | const data2 = { |
| | | OperType, wocode, stepcode |
| | | } |
| | | |
| | | const { data: res2 } = await MesOrderStepDeviceCusstomer(data2) |
| | | if (OperType === 'ZZ') { |
| | | this.eqpArr = res2 |
| | | } |
| | | if (OperType === 'WX') { |
| | | this.wxArr = res2 |
| | | } |
| | | |
| | | const data = { |
| | | OperType, SelectType, wocode, stepcode |
| | | } |
| | |
| | | badqty: i.badqty |
| | | }) |
| | | }) |
| | | |
| | | // let stepprice = null |
| | | // |
| | | // if (this.activeName === '生产列表') { |
| | | // stepprice = this.eqpArr.find(i => i.code === this.dialogForm.eqpcode) ? this.eqpArr.find(i => i.code === this.dialogForm.eqpcode).eqpprice : this.dialogForm.stepprice |
| | | // } |
| | | // |
| | | // if (this.activeName === '外协发料' || this.activeName === '外协收料') { |
| | | // stepprice = this.wxArr.find(i => i.code === this.dialogForm.wxcode) ? this.wxArr.find(i => i.code === this.dialogForm.wxcode).eqpprice : this.dialogForm.stepprice |
| | | // } |
| | | |
| | | const data = { |
| | | mesordercode: this.dialogForm.wo_code, |
| | | partcode: this.dialogForm.partnumber, |
| | | stepseq: this.dialogForm.seq, |
| | | stepcode: this.dialogForm.stepcode, |
| | | stepprice: this.dialogForm.stepprice, |
| | | stepprice: this.eqpArr.find(i => i.code === this.dialogForm.eqpcode) ? this.eqpArr.find(i => i.code === this.dialogForm.eqpcode).eqpprice : this.dialogForm.stepprice, |
| | | eqpcode: this.dialogForm.eqpcode, |
| | | inbarcode, |
| | | reckway: this.dialogForm.reckway, |
| | |
| | | partcode: this.dialogForm.partnumber, |
| | | stepseq: this.dialogForm.seq, |
| | | stepcode: this.dialogForm.stepcode, |
| | | |
| | | stepprice: this.wxArr.find(i => i.code === this.dialogForm.wxcode) ? this.wxArr.find(i => i.code === this.dialogForm.wxcode).eqpprice : this.dialogForm.stepprice, |
| | | wxcode: this.dialogForm.wxcode, |
| | | inbarcode, |
| | | inuser: this.dialogForm.inuser, |