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