diff --git a/src/api/productionManagement/frontTooling.js b/src/api/productionManagement/frontTooling.js
index 32f7501..3f613a6 100644
--- a/src/api/productionManagement/frontTooling.js
+++ b/src/api/productionManagement/frontTooling.js
@@ -16,6 +16,6 @@ export const setReadStatus = (params) => {
return request({
url: '/blade-desk/sjWorkOrder/setReadStatus',
method: 'post',
- data: params,
+ params: params,
});
};
diff --git a/src/api/productionManagement/productionMonitoring.js b/src/api/productionManagement/productionMonitoring.js
index 88307e7..b69d1aa 100644
--- a/src/api/productionManagement/productionMonitoring.js
+++ b/src/api/productionManagement/productionMonitoring.js
@@ -15,7 +15,7 @@ export const getList = (current, size, params) => {
// 调整优先级 /
export const updatePrioritye = data => {
return request({
- url: '/blade-desk/workOrder/updatePrioritye',
+ url: '/blade-desk/workOrder/updatePriority',
method: 'post',
data: data,
});
diff --git a/src/views/productionManagement/components/outsourceDialog.vue b/src/views/productionManagement/components/outsourceDialog.vue
index 47b8c6e..c117cfc 100644
--- a/src/views/productionManagement/components/outsourceDialog.vue
+++ b/src/views/productionManagement/components/outsourceDialog.vue
@@ -6,7 +6,6 @@
:modelValue="showDialog"
width="60%"
@close="closeDialog"
- @open="handleOpen"
>
@@ -20,7 +19,6 @@
-
-
+
-
+
{
- this.outsourceData = res.data;
+ this.outsourceData = res.data.data;
});
},
closeDialog() {
this.$emit('closeDialog');
},
- // 切换计划结束时间
- changeEndTime(val, index) {
- console.log('val-------------', val);
- console.log('index-------------', index);
- if (val) {
- if (this.outsourceData.length > index) {
- this.outsourceData[index + 1].startTime = val;
- }
- }
- },
// 确定
turnOem() {
if (this.outsourceData.length == 0) {
this.$message.error('当前数据列表为空');
return;
}
- var bool = false;
- var isCheck = false;
- this.outsourceData.forEach(item => {
- if (item.handle && (!item.startTime || !item.endTime)) {
- bool = true;
- }
- if (item.handle) {
- isCheck = true;
- }
- });
- if (bool) {
- this.$message.error('请维护外协工序的计划开始/结束日期!');
- return;
- }
- if (!isCheck) {
- this.$message.error('请勾选需要外协的工序');
- return;
- }
let query={
workOrderRuns:this.itemData,
@@ -181,42 +153,6 @@ export default {
this.closeDialog();
});
},
- handleOpen() {
- this.outsourceData = [
- {
- // 工序号/代码/名称相关嵌套结构
- prWorkPlan: {
- orders: 'GX001',
- procedureSet: {
- ppsCode: 'PCS001',
- ppsName: '粗加工',
- },
- },
- // 工艺能力相关嵌套结构
- bsCraftAbility: {
- caId: 1,
- },
- // 工序描述
- makeMemo: '该工序完成零件外圆粗车加工',
- // 不可转外协原因
- reason: '外协无成本优势',
- },
- {
- prWorkPlan: {
- orders: 'GX002',
- procedureSet: {
- ppsCode: 'PCS002',
- ppsName: '精加工',
- },
- },
- bsCraftAbility: {
- caId: 2,
- },
- makeMemo: '需使用硬质合金刀具',
- reason: '外协厂商无对应高精度铣床',
- },
- ];
- },
},
};
diff --git a/src/views/productionManagement/components/productionMonitoringDialog.vue b/src/views/productionManagement/components/productionMonitoringDialog.vue
index 0e2339b..839fe22 100644
--- a/src/views/productionManagement/components/productionMonitoringDialog.vue
+++ b/src/views/productionManagement/components/productionMonitoringDialog.vue
@@ -6,16 +6,7 @@
width="30%"
@close="closeDialog"
>
-
-
+
-
\ No newline at end of file
+
diff --git a/src/views/productionManagement/frontTooling.vue b/src/views/productionManagement/frontTooling.vue
index 4e4c9b7..12356c0 100644
--- a/src/views/productionManagement/frontTooling.vue
+++ b/src/views/productionManagement/frontTooling.vue
@@ -43,7 +43,7 @@ export default {
height: 'auto',
align: 'center',
calcHeight: 32,
- rowKey: 'rlsId',
+ rowKey: 'woId',
tip: false,
simplePage: true,
searchShow: true,
@@ -314,12 +314,12 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
- let arr = this.selectionList.map(item => item.id);
+ let arr = this.selectionList.map(item => item.woId);
let query = {
woIds: arr.join(','),
};
setReadStatus(query).then(res => {
- this.$message.success('转烧结成功');
+ this.$message.success('操作成功');
this.onLoad(this.page, this.query);
});
});
diff --git a/src/views/productionManagement/productionMonitoring.vue b/src/views/productionManagement/productionMonitoring.vue
index de91796..56cc7b5 100644
--- a/src/views/productionManagement/productionMonitoring.vue
+++ b/src/views/productionManagement/productionMonitoring.vue
@@ -119,6 +119,7 @@
@@ -132,7 +133,7 @@ import closedDialog from './components/closedDialog.vue';
import abnormalDialog from './components/abnormalDialog.vue';
import productionMonitoringDialog from './components/productionMonitoringDialog.vue';
-import { getList } from '@/api/productionManagement/productionMonitoring';
+import { getList,turnType } from '@/api/productionManagement/productionMonitoring';
export default {
components: {
@@ -187,7 +188,7 @@ export default {
editBtnText: '修改',
viewBtnText: '详情',
labelWidth: 120,
- menuWidth: 220,
+ menuWidth: 380,
dialogWidth: 1200,
dialogClickModal: false,
searchEnter: true,
@@ -299,7 +300,7 @@ export default {
},
{
label: '计划单号',
- prop: 'poCode',
+ prop: 'ypCode',
search: true,
sortable: true,
// hide: true,
@@ -308,7 +309,7 @@ export default {
},
{
label: '返工单号',
- prop: 'qcReworkCode',
+ prop: 'reworkCode',
search: false,
sortable: true,
overHidden: true,
@@ -536,7 +537,6 @@ export default {
},
],
},
-
{
label: '生产数量',
prop: 'productionQuantity',
@@ -634,12 +634,12 @@ export default {
}).then(() => {
let query = {
id: row.woId,
- yieldType: 'sintering',
+ yieldType: '12001',
};
- // turnType(query).then((res) => {
- // this.$message.success('转烧结成功');
- // this.onLoad(this.page, this.query);
- // });
+ turnType(query).then((res) => {
+ this.$message.success('转烧结成功');
+ this.onLoad(this.page, this.query);
+ });
});
},
// 生产监控
diff --git a/src/views/productionManagement/sinTerWorkOrder/index.vue b/src/views/productionManagement/sinTerWorkOrder/index.vue
index 77e7d06..d71a812 100644
--- a/src/views/productionManagement/sinTerWorkOrder/index.vue
+++ b/src/views/productionManagement/sinTerWorkOrder/index.vue
@@ -98,6 +98,7 @@
@@ -209,7 +210,7 @@ export default {
},
{
label: '订单状态',
- prop: 'runStatusTitle',
+ prop: 'runStatus',
type: 'select',
search: true,
sortable: true,
diff --git a/src/views/productionManagement/sjKitPreparation/index.vue b/src/views/productionManagement/sjKitPreparation/index.vue
index 5ed7728..6fc50ac 100644
--- a/src/views/productionManagement/sjKitPreparation/index.vue
+++ b/src/views/productionManagement/sjKitPreparation/index.vue
@@ -19,11 +19,11 @@
- 完成
+ 完成
- 发送
+ 发送
- 车间订单生成
+ 车间订单生成