报工界面调整+计划页面调整2

yangwl
zhaoxiaolin 6 months ago
parent f6eb3363a6
commit 67f8030609

@ -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);
} }

@ -89,7 +89,7 @@
icon="el-icon-s-release" icon="el-icon-s-release"
size="mini" size="mini"
@click="handleDeleteOrder" @click="handleDeleteOrder"
:disabled="single" :disabled="nodelete"
v-hasPermi="['mes:pro:order:edit']" v-hasPermi="['mes:pro:order:edit']"
>关闭订单</el-button> >关闭订单</el-button>
</el-col> </el-col>
@ -637,6 +637,7 @@ export default {
proline: [], proline: [],
// //
single: true, single: true,
nodelete: true,
// //
splitnum: null, splitnum: null,
// //
@ -1437,6 +1438,7 @@ export default {
// //
handleAutoSplitSelection(selection) { handleAutoSplitSelection(selection) {
this.single = selection.length !== 1 this.single = selection.length !== 1
this.nodelete = selection.length!==1||selection[0].delFlag==1
this.orderCodes = selection this.orderCodes = selection
}, },
// //
@ -1462,7 +1464,14 @@ export default {
const orderIds = this.orderCodes.map(item => item.id); const orderIds = this.orderCodes.map(item => item.id);
const orderCodes = this.orderCodes.map(item => item.orderCode); const orderCodes = this.orderCodes.map(item => item.orderCode);
this.$modal.confirm('是否确认关闭订单"' + orderCodes + '"').then(function () { this.$modal.confirm('是否确认关闭订单"' + orderCodes + '"').then(function () {
return deleteOrder(orderIds); deleteOrder(orderIds).then(response => {
if(response.code == 200){
this.$modal.msgSuccess("操作成功");
}else{
this.$modal.msgError(response.mgs);
}
});
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();

Loading…
Cancel
Save