@@ -64,7 +64,7 @@
@@ -136,7 +136,6 @@ export default {
tableBtn,
tableProps,
topBtnConfig,
- workOrderName: '111',
addOrUpdateVisible: false,
listQuery: {
pageSize: 10,
@@ -144,7 +143,8 @@ export default {
total: 0,
},
dataForm: {
- id: undefined
+ id: undefined,
+ name: ''
},
materialList: [],
visible: false,
@@ -199,10 +199,11 @@ export default {
this.listQuery.total = response.data.total;
});
},
- init(id, isdetail) {
+ init(row, isdetail) {
this.initData();
this.isdetail = isdetail || false;
- this.dataForm.id = id || undefined;
+ this.dataForm.id = row.id || undefined;
+ this.dataForm.name = row.name || '';
this.visible = true;
this.getList()
@@ -237,6 +238,7 @@ export default {
// 新增 / 修改
addNew(id) {
this.addOrUpdateVisible = true;
+ console.log('22', id)
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id);
});
diff --git a/src/views/base/coreWorkOrder/addWorkOrder.vue b/src/views/base/coreWorkOrder/addWorkOrder.vue
index 5c6bc38c..ce76ebc9 100644
--- a/src/views/base/coreWorkOrder/addWorkOrder.vue
+++ b/src/views/base/coreWorkOrder/addWorkOrder.vue
@@ -178,7 +178,8 @@ export default {
priority: '',
productLineIds: [],
type: '',
- workers: ''
+ workers: '',
+ status: 1
},
rules: {
name: [{ required: true, message: "工单名称不能为空", trigger: "blur" }],
diff --git a/src/views/base/coreWorkOrder/attr-add.vue b/src/views/base/coreWorkOrder/attr-add.vue
index df5f0c9c..e12787e0 100644
--- a/src/views/base/coreWorkOrder/attr-add.vue
+++ b/src/views/base/coreWorkOrder/attr-add.vue
@@ -75,6 +75,7 @@
{
this.$refs['dataForm'].resetFields();
if (this.dataForm.id) {
- getCoreWOMa({
- id: this.dataForm.id
- }).then((res) => {
+ getCoreWOMa(this.dataForm.id).then((res) => {
this.dataForm = res.data
});
}
@@ -162,7 +162,7 @@ export default {
if (this.dataForm.id) {
updateCoreWOMa({
...this.dataForm,
- workOrderId: this.productId,
+ workOrderId: this.workOrderId,
}).then((response) => {
this.$modal.msgSuccess('修改成功');
this.visible = false;
@@ -173,7 +173,7 @@ export default {
// 添加的提交
createCoreWOMa({
...this.dataForm,
- workOrderId: this.productId,
+ workOrderId: this.workOrderId,
}).then((response) => {
this.$modal.msgSuccess('新增成功');
this.visible = false;
diff --git a/src/views/base/coreWorkOrder/detail.vue b/src/views/base/coreWorkOrder/detail.vue
new file mode 100644
index 00000000..e201d561
--- /dev/null
+++ b/src/views/base/coreWorkOrder/detail.vue
@@ -0,0 +1,413 @@
+
+
+
+
+ {{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
+
+
+
+
工单编码:{{ dataForm.code }}
+
+
+ 基本信息
+
+
+
+ 工单名称:{{ dataForm.name }}
+ 工单来源:{{ dataForm.triggerOrigin === 1 ? 'MES' : dataForm.triggerOrigin === 2 ? 'ERP' : ''}}
+ 所属订单:
+ {{ item.name }}
+
+
+
+ 产品名称:{{ dataForm.productName }}
+ 规 格:{{ dataForm.specifications }}
+ 计划生产数量:{{ dataForm.planQuantity }}
+
+
+ 预计用时(小时):{{ dataForm.expectedTime }}
+ 计划投入数量:{{ dataForm.planAssignQuantity }}
+ 优先级:{{ fitlerP(dataForm.priority) }}
+
+
+ 负责人:{{ dataForm.workers }}
+ 关联产线:{{ dataForm.productLineNames }}
+ 物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展' : '' }}
+
+
+
+
+ 生产信息
+
+
+
+ 订单创建时间:
+ {{ item.createTime }}
+
+ 计划开始时间:{{ dataForm.planStartTime }}
+ 计划完成时间:{{ dataForm.planFinishTime }}
+
+
+ 预计结束时间:{{ dataForm.computeFinishTime }}
+ 实际开始时间:{{ dataForm.startProduceTime }}
+ 实际完成时间:{{ dataForm.finishProduceTime }}
+
+
+ 工单状态:{{ fitlerS(dataForm.status) }}
+ 实际投入数量:{{ dataForm.assignQuantity }}
+ 实际生产数量:{{ dataForm.actualQuantity }}
+
+
+ 废片数量:{{ dataForm.nokQuantity }}
+ 检测瑕疵数:{{ 0 }}
+
+
+
+
+
+ 订单相关信息
+
+
+
+
+
+
+
+
+
+ 预计用料信息
+
+
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
diff --git a/src/views/base/coreWorkOrder/index.vue b/src/views/base/coreWorkOrder/index.vue
index c0a93c59..0bfd8b96 100644
--- a/src/views/base/coreWorkOrder/index.vue
+++ b/src/views/base/coreWorkOrder/index.vue
@@ -34,23 +34,32 @@
ref="addOrUpdate"
@refreshDataList="refreshWorkOrder">
+
+
+
+ @refreshDataList="closeDetail">
diff --git a/src/views/base/materialDate/add-or-updata.vue b/src/views/base/materialDate/add-or-updata.vue
index 110a01f1..06fca85e 100644
--- a/src/views/base/materialDate/add-or-updata.vue
+++ b/src/views/base/materialDate/add-or-updata.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: DY
- * @LastEditTime: 2023-10-24 18:34:07
+ * @LastEditTime: 2023-11-06 19:55:59
* @Description:
-->