|
|
@ -80,16 +80,6 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<!--<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
|
|
v-hasPermi="['mes:bppro:workorder:add']"
|
|
|
|
|
|
|
|
>上传SAP生产</el-button>
|
|
|
|
|
|
|
|
</el-col>-->
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
@ -173,6 +163,17 @@
|
|
|
|
>设备修改
|
|
|
|
>设备修改
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
|
|
@click="deleteWetMaterial"
|
|
|
|
|
|
|
|
v-hasPermi="['mes:bppro:workorder:edit']"
|
|
|
|
|
|
|
|
>湿料计划删除</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
@ -633,7 +634,8 @@ import {
|
|
|
|
getOrderAndWork,getProSortNo,
|
|
|
|
getOrderAndWork,getProSortNo,
|
|
|
|
getWorkBatchList,
|
|
|
|
getWorkBatchList,
|
|
|
|
subChangeWorkOrder,subChangeWorkOrderM,
|
|
|
|
subChangeWorkOrder,subChangeWorkOrderM,
|
|
|
|
checkWorkOrder
|
|
|
|
checkWorkOrder,
|
|
|
|
|
|
|
|
deleteWetMaterial
|
|
|
|
} from '@/api/plan/bpworkorder'
|
|
|
|
} from '@/api/plan/bpworkorder'
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
import { getProEquipment, getProRoutes, getProShifts,selectMaterielList} from '@/api/plan/order'
|
|
|
|
import { getProEquipment, getProRoutes, getProShifts,selectMaterielList} from '@/api/plan/order'
|
|
|
@ -1724,7 +1726,20 @@ export default {
|
|
|
|
this.splitForm.materialName = this.materielBP[0].productDescZh;
|
|
|
|
this.splitForm.materialName = this.materielBP[0].productDescZh;
|
|
|
|
|
|
|
|
|
|
|
|
this.innerBPVisible = false;
|
|
|
|
this.innerBPVisible = false;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
//删除湿料计划
|
|
|
|
|
|
|
|
deleteWetMaterial(row) {
|
|
|
|
|
|
|
|
const workorderIds = row.workorderId || this.ids;
|
|
|
|
|
|
|
|
const workorderCodes = row.workorderCode || this.codes;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认删除生产工单编号为"' + workorderCodes + '"的湿料数据项?').then(function () {
|
|
|
|
|
|
|
|
return deleteWetMaterial(workorderIds);
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("删除湿料计划成功");
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|