|
|
@@ -794,10 +794,10 @@ const onjrpcClick = async () => {
|
|
|
params.printCode = 1;
|
|
|
params.processCode = 1;
|
|
|
const ProductionSchedulingAdd_add = await ProductionSchedulingAdd(params);
|
|
|
- if (ProductionSchedulingAdd_add .code === 0) {
|
|
|
+ if (ProductionSchedulingAdd_add.code === 0) {
|
|
|
const pc_zc_table = await MachineWorkOrderList({ machine:_machine.value});
|
|
|
chejianfuData.value = pc_zc_table.data['制程'];
|
|
|
- chejianData.value = pc_zc_table.data['"排程"'];
|
|
|
+ chejianData.value = pc_zc_table.data['排程'];
|
|
|
ElMessage({type: 'success',message: '加入排产 更新成功'});
|
|
|
} else {
|
|
|
ElMessage({ type: 'error',message: '更新失败'})
|
|
|
@@ -817,9 +817,10 @@ const onztwgClick = async () => {
|
|
|
params.processCode = 1;
|
|
|
const ProductionSchedulingAdd_stop = await ProductionSchedulingPause(params);
|
|
|
console.log(ProductionSchedulingAdd_stop)
|
|
|
- if (ProductionSchedulingAdd_stop .code === 0) {
|
|
|
+ if (ProductionSchedulingAdd_stop.code === 0) {
|
|
|
const pc_zc_table = await MachineWorkOrderList({ machine:_machine.value});
|
|
|
- chejianData.value = pc_zc_table.data['"排程"'];
|
|
|
+ console.log(pc_zc_table)
|
|
|
+ chejianData.value = pc_zc_table.data['排程'];
|
|
|
chejianfuData.value = pc_zc_table.data['制程'];
|
|
|
ElMessage({type: 'success',message: '暂停排产 更新成功'});
|
|
|
} else {
|
|
|
@@ -841,9 +842,9 @@ const ongxwgClick = async () => {
|
|
|
params.workOrder = _ZC_gdbh.value;
|
|
|
params.processCode = _gxh.value;
|
|
|
const complete_get = await complete(params);
|
|
|
- if (complete_get .code === 0) {
|
|
|
+ if (complete_get.code === 0) {
|
|
|
const pc_zc_table = await MachineWorkOrderList({ machine:_machine.value});
|
|
|
- chejianData.value = pc_zc_table.data['"排程"'];
|
|
|
+ chejianData.value = pc_zc_table.data['排程'];
|
|
|
chejianfuData.value = pc_zc_table.data['制程'];
|
|
|
ElMessage({type: 'success',message: '工序完工 更新成功'})
|
|
|
} else {
|