| | |
| | | show-tooltip-when-overflow |
| | | prop="delive_qty" |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- label="操作"--> |
| | | <!-- width="120"--> |
| | | <!-- fixed="right"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div class="operationClass">--> |
| | | <!-- <el-tooltip v-del-tab-index class="item" effect="dark" content="SOP预览" placement="top">--> |
| | | <!-- <i--> |
| | | <!-- v-if="mesSetting.tech"--> |
| | | <!-- class="el-icon-files"--> |
| | | <!-- style="cursor: pointer;color:#42b983;margin-right: 15px"--> |
| | | <!-- @click="pre(row,2)"--> |
| | | <!-- />--> |
| | | <!-- </el-tooltip>--> |
| | | <!-- </div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | label="操作" |
| | | width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="SOP预览" placement="top"> |
| | | <i |
| | | v-if="mesSetting.tech" |
| | | class="el-icon-files" |
| | | style="cursor: pointer;color:#42b983;margin-right: 15px" |
| | | @click="pre(row,2)" |
| | | /> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | |
| | | const flag2 = [] |
| | | const data = [] |
| | | this.formData3.forEach((i, index) => { |
| | | const islastreport = this.wkshopcodeArr.find(j => j.torg_code === i.wkshopcode).islastreport |
| | | const workListSub = [] |
| | | if (i.stepTableData.length > 0) { |
| | | i.stepTableData.forEach((it, j) => { |
| | |
| | | isbott: j === 0 ? 'Y' : 'N', |
| | | isend: j === i.stepTableData.length - 1 ? 'Y' : 'N', |
| | | ratio: it.ratio, |
| | | sumqty: it.sumqty |
| | | sumqty: it.sumqty, |
| | | isShow: islastreport === 'N' ? 'Y' : (j === i.stepTableData.length - 1 ? 'Y' : 'N') |
| | | } |
| | | ) |
| | | }) |
| | | console.log(JSON.parse(JSON.stringify(workListSub))) |
| | | |
| | | if (this.mesSetting.isOrder) { |
| | | const f = workListSub.every((item, index, array) => { |
| | |
| | | if (this.mesSetting.route && !this.dialogForm.routecode) { |
| | | return this.$message.error('请选择工艺路线!') |
| | | } |
| | | |
| | | const islastreport = this.wkshopcodeArr.find(i => i.torg_code === this.dialogForm.wkshopcode).islastreport |
| | | |
| | | // console.log(islastreport === 'N', islastreport) |
| | | const workListSub = [] |
| | | this.stepTableData.forEach((i, j) => { |
| | | workListSub.push( |
| | |
| | | isbott: j === 0 ? 'Y' : 'N', |
| | | isend: j === this.stepTableData.length - 1 ? 'Y' : 'N', |
| | | ratio: i.ratio, |
| | | sumqty: i.sumqty |
| | | sumqty: i.sumqty, |
| | | isShow: islastreport === 'N' ? 'Y' : (j === this.stepTableData.length - 1 ? 'Y' : 'N') |
| | | } |
| | | ) |
| | | }) |
| | |
| | | return this.$message.error('有序报工情况下,超报比例后道工序不能大于前道工序!') |
| | | } |
| | | } |
| | | console.log(isNaN(this.dialogForm.mesqty - this.dialogForm.mesqtyinit)) |
| | | // console.log(isNaN(this.dialogForm.mesqty - this.dialogForm.mesqtyinit)) |
| | | const data = { |
| | | wostatus: this.dialogForm.mesorderstus, // 工单状态 |
| | | wocode: this.dialogForm.mesordercode, // 工单号 |
| | |
| | | routecode: this.dialogForm.routecode, |
| | | workListSub |
| | | } |
| | | |
| | | // console.log(JSON.parse(JSON.stringify(data))) |
| | | |
| | | this.$store.state.app.buttonIsDisabled = true |
| | | AddUpdateMesOrder(data, this.operation === 'add' ? 'Add' : 'Update').then(res => { |
| | |
| | | MesOrderPrintSearch(data2).then(res2 => { |
| | | if (res2.code === '200') { |
| | | this.dialogVisibleApprove = true |
| | | let res3 = [] |
| | | if (row.islastreport === 'Y') { |
| | | res3 = res2.data.recordset.filter(i => i.isshow === 'Y') |
| | | } else { |
| | | res3 = res2.data.recordset |
| | | } |
| | | |
| | | const res3 = res2.data.recordset |
| | | // this.tableDataPrint = res3 |
| | | this.tableDataPrint = this.chunkArray(res3, 8) |
| | | |
| | |
| | | data_sources: row.data_sources |
| | | } |
| | | const { data: res } = await UpdateMesOrderStepSearch(data) |
| | | |
| | | if (row.islastreport === 'Y') { |
| | | this.tableDataDetail = res.stepdata.filter(i => i.isend === 'Y') |
| | | } else { |
| | | this.tableDataDetail = res.stepdata |
| | | } |
| | | this.tableDataDetail = res.stepdata |
| | | // if (row.islastreport === 'Y') { |
| | | // this.tableDataDetail = res.stepdata.filter(i => i.isend === 'Y') |
| | | // } else { |
| | | // this.tableDataDetail = res.stepdata |
| | | // } |
| | | }, |
| | | // 工序删除 |
| | | stepDel(row) { |
| | |
| | | $main_color: #42b983; |
| | | |
| | | .stepSelectedValueClass { |
| | | ::v-deep input { |
| | | //min-height: 34px !important; |
| | | height: 68px !important; |
| | | //::v-deep input { |
| | | // //min-height: 34px !important; |
| | | // height: 98px !important; |
| | | //} |
| | | |
| | | ::v-deep .el-input__inner{ |
| | | height: 120px!important; |
| | | } |
| | | |
| | | ::v-deep .el-select__tags>span{ |
| | | display: flex ; |
| | | align-items: center; |
| | | justify-content: flex-start; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | } |
| | | |
| | | .dialogVisibleRoute { |