|
|
|
@ -518,6 +518,7 @@
|
|
|
|
|
<el-table v-loading="loading" :data="item.libList" ref="mypConsumeTable" @selection-change="pConsumeSelection">
|
|
|
|
|
<el-table-column width="50" align="center" type="selection"/>
|
|
|
|
|
<el-table-column label="recordId" align="center" prop="recordId" v-if="false"/>
|
|
|
|
|
<el-table-column label="parentOrder" align="center" prop="parentOrder" v-if="false"/>
|
|
|
|
|
<el-table-column label="工单编码" width="140" align="left" prop="workorderCode" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column label="订单编码" width="130" align="left" prop="workorderCodeSap" :show-overflow-tooltip="true"
|
|
|
|
|
:formatter="orderCodeFormate"/>
|
|
|
|
@ -539,6 +540,7 @@
|
|
|
|
|
<el-select v-model="scope.row.warehouseCode" placeholder="请选择仓库" width="50%"
|
|
|
|
|
@change="handleEdit(scope.$index,scope.row)"
|
|
|
|
|
v-if="scope.row.workorderCodeSap == null||scope.row.attr1"
|
|
|
|
|
clearable
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="work in cwarehouseList"
|
|
|
|
@ -1363,6 +1365,7 @@ export default {
|
|
|
|
|
this.$modal.msgError(`请选择数据`);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
submitConsumePS(this.consumeRows).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("报工信息修改成功");
|
|
|
|
|
this.openConsume = false;
|
|
|
|
@ -1491,7 +1494,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//物料损耗表格--新增确认
|
|
|
|
|
onSelectNewPrepare(obj) {
|
|
|
|
|
debugger
|
|
|
|
|
let sr = this.selectRow[0]
|
|
|
|
|
for(let i=0;i<obj.length;i++){
|
|
|
|
|
const row = {
|
|
|
|
|
workorderCode: obj[i].workorderCode,
|
|
|
|
@ -1499,7 +1502,8 @@ export default {
|
|
|
|
|
materialName: obj[i].componentName,
|
|
|
|
|
quantity: obj[i].quantity,
|
|
|
|
|
unit: obj[i].unit,
|
|
|
|
|
recoil:"X"
|
|
|
|
|
recoil:"X",
|
|
|
|
|
parentOrder:sr.workorderCode
|
|
|
|
|
};
|
|
|
|
|
this.consumeList.push(row);
|
|
|
|
|
}
|
|
|
|
|