| | |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="data_sources" |
| | | show-tooltip-when-overflow |
| | | label="数据来源" |
| | | sortable="custom" |
| | | width="120" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="lm_user" |
| | |
| | | <i |
| | | class="el-icon-edit-outline" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @click="edit('edit',row)" |
| | | @click.stop="edit('edit',row)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top"> |
| | | <i class="el-icon-delete" :style="{color:$store.state.settings.theme}" @click="del(row)" /> |
| | | <i class="el-icon-delete" :style="{color:$store.state.settings.theme}" @click.stop="del(row)" /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip class="item" effect="dark" content="打印工单" placement="top"> |
| | |
| | | :style="{color:$store.state.settings.theme}" |
| | | class="el-icon-printer" |
| | | style="cursor: pointer;margin-right: 15px" |
| | | @click="handlePrint(row.wo_code)" |
| | | @click.stop="handlePrint(row.wo_code)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | |
| | | class="el-icon-view" |
| | | style="cursor: pointer;" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @click="edit('view',row)" |
| | | @click.stop="edit('view',row)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | |
| | | wkshopname: '', // 生产车间名称 |
| | | |
| | | deliverydate: '', // 交付时间 |
| | | data_sources: '' // 数据来源 |
| | | data_sources: '', // 数据来源 |
| | | |
| | | mesmaxqty: 0// 工单的最大值 |
| | | }, |
| | | ordertypeArr: [// 工单类型 |
| | | { code: 'PO', name: '标准工单' }, |
| | |
| | | }, |
| | | |
| | | selected(row, index) { |
| | | // && row.isstep === 'Y' |
| | | // && row.isstep === 'Y' //后端这个字段还没放出来 |
| | | if (row.status === 'NEW') { |
| | | return true |
| | | } else { |
| | |
| | | this.dialogForm.partspec = row.partspec |
| | | this.dialogForm.wkshopcode = row.wkshp_code |
| | | this.dialogForm.deliverydate = row.saleOrderDeliveryDate.substring(0, 11) |
| | | this.dialogForm.mesqty = row.plan_qty |
| | | |
| | | const data = { |
| | | sourceid: this.dialogForm.sourceorderid, |
| | |
| | | data_sources: this.dialogForm.data_sources |
| | | } |
| | | const { data: res } = await UpdateMesOrderStepSearch(data) |
| | | this.dialogForm.mesqty = res.canupdate_qty |
| | | this.dialogForm.mesmaxqty = res.canupdate_qty |
| | | |
| | | res.stepdata.forEach(i => { |
| | | this.stepTableData.push( |
| | | { |
| | |
| | | return this.$message.info('源单单号不能为空!') |
| | | } |
| | | |
| | | if (this.dialogForm.data_sources === 'ERP' && this.dialogForm.mesmaxqty < this.dialogForm.mesqty) { |
| | | return this.$message.info('此工单的最大修改数值为:' + this.dialogForm.mesmaxqty) |
| | | } |
| | | |
| | | const workListSub = [] |
| | | this.stepTableData.forEach((i, j) => { |
| | | workListSub.push( |