| | |
| | | width: false, |
| | | prop: 'unprice', |
| | | label: '计件单价', |
| | | id: 17, |
| | | id: 12, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: false, |
| | | width: 110, |
| | | prop: 'lm_user', |
| | | label: '创建人员', |
| | | id: 13, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: false, |
| | | width: 160, |
| | | prop: 'lm_date', |
| | | label: '创建时间', |
| | | id: 14, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | this.form.paystartdate = '' |
| | | this.form.payenddate = '' |
| | | this.form.creatuser = '' |
| | | this.form.erpordercode = '' |
| | | this.form.saleordercode = '' |
| | | this.form.createdate = '' |
| | | |
| | | this.form.timeValue = [] |
| | |
| | | deliverydate: '', // 交付时间 |
| | | data_sources: '', // 数据来源 |
| | | |
| | | mesmaxqty: 0// 工单的最大值 |
| | | mesmaxqty: 0, // 工单的最大值 |
| | | mesqtyinit: 0// 工单数量初始值 |
| | | }, |
| | | ordertypeArr: [// 工单类型 |
| | | { code: 'PO', name: '标准工单' }, |
| | |
| | | this.dialogForm.deliverydate = row.saleOrderDeliveryDate.substring(0, 11) |
| | | this.dialogForm.mesqty = row.plan_qty |
| | | |
| | | this.dialogForm.mesqtyinit = row.plan_qty |
| | | |
| | | const data = { |
| | | sourceid: this.dialogForm.sourceorderid, |
| | | sourcewo: this.dialogForm.sourceorder, |
| | |
| | | return this.$message.info('源单单号不能为空!') |
| | | } |
| | | |
| | | if (this.dialogForm.mesqty <= 0) { |
| | | return this.$message.info('工单数量不能等于零!') |
| | | } |
| | | |
| | | if (this.dialogForm.data_sources === 'ERP' && this.dialogForm.mesmaxqty < this.dialogForm.mesqty) { |
| | | return this.$message.info('此工单的最大修改数值为:' + this.dialogForm.mesmaxqty) |
| | | } |
| | |
| | | deliverydate: this.dialogForm.deliverydate, // 交付时间 |
| | | data_sources: this.dialogForm.data_sources, // 数据来源 |
| | | isstep: workListSub.length > 0 ? 'Y' : 'N', // |
| | | difference: this.dialogForm.mesqty - this.dialogForm.mesqtyinit, // 数据差值 |
| | | workListSub |
| | | } |
| | | |