diff --git a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue
index e29f9034..3ff65ac0 100644
--- a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue
+++ b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue
@@ -263,6 +263,9 @@ export default {
trigger: 'blur',
},
],
+ deptId:[
+ { required: true, message: '负责部门不能为空', trigger: 'change' },
+ ],
},
productList: [],
processFlowList: [],
diff --git a/src/views/produce/order/base/orderManage/orderDetailData.vue b/src/views/produce/order/base/orderManage/orderDetailData.vue
index 13a0f32d..d8371da1 100644
--- a/src/views/produce/order/base/orderManage/orderDetailData.vue
+++ b/src/views/produce/order/base/orderManage/orderDetailData.vue
@@ -9,7 +9,7 @@
type="primary"
plain
size="small"
- style="float: right; margin-top: -10px"
+ style="float: right; margin-top: -25px"
@click="returnOrderManage">
返回
@@ -421,6 +421,19 @@ export default {
.box1 {
height: 215px;
padding: 16px 16px 0 16px;
+ .boxTitle {
+ font-size: 16px;
+ font-weight: 600;
+ }
+ .blueTitle {
+ display: inline-block;
+ width: 4px;
+ height: 18px;
+ background-color: #0b58ff;
+ margin-right: 8px;
+ position: relative;
+ top:4px;
+ }
.blodTip {
height: 16px;
font-size: 14px;
diff --git a/src/views/produce/workOrder/SmallTitle.vue b/src/views/produce/workOrder/SmallTitle.vue
index 93b4a18f..8e04d268 100644
--- a/src/views/produce/workOrder/SmallTitle.vue
+++ b/src/views/produce/workOrder/SmallTitle.vue
@@ -40,7 +40,7 @@ $pxls: (xl, 28px) (lg, 24px) (de, 20px) (md, 18px) (sm, 16px);
$mgr: 8px;
@each $size, $height in $pxls {
.#{$size}-title {
- font-size: 18px;
+ font-size: $height;
line-height: $height;
color: #000;
font-weight: 500;
diff --git a/src/views/produce/workOrder/addWorkOrder.vue b/src/views/produce/workOrder/addWorkOrder.vue
index 608d4924..b7b1de94 100644
--- a/src/views/produce/workOrder/addWorkOrder.vue
+++ b/src/views/produce/workOrder/addWorkOrder.vue
@@ -327,8 +327,6 @@ export default {
{ id: 1, name: '普通' },
{ id: 2, name: '特殊' },
],
- planStartTime: '',
- planFinishTime: '',
isBind: false,
workOrderList: [],
};
@@ -369,11 +367,14 @@ export default {
}
this.$nextTick(() => {
this.$refs['dataForm'].resetFields();
- this.planStartTime = '';
- this.planFinishTime = '';
+ this.dataForm.planStartTime = '';
+ this.dataForm.planFinishTime = '';
+ this.dataForm.productLineIds = [{ lineId: null, processId: null, num: null }];
if (this.dataForm.id) {
getCoreWO(id).then((response) => {
this.dataForm = response.data;
+ this.dataForm.planStartTime = response.data.planStartTime ? response.data.planStartTime : '';
+ this.dataForm.planFinishTime = response.data.planFinishTime ? response.data.planFinishTime : '';
if (this.dataForm.priority !== undefined) {
this.dataForm.priority = String(this.dataForm.priority);
}
diff --git a/src/views/produce/workOrder/allocation.vue b/src/views/produce/workOrder/allocation.vue
index 9fc2dd85..36095e3a 100644
--- a/src/views/produce/workOrder/allocation.vue
+++ b/src/views/produce/workOrder/allocation.vue
@@ -16,26 +16,31 @@
{{ '分配产量' }}
-
+
- 工单名称:{{ dataForm.name }}
- 工单编码:{{ dataForm.code }}
+ 工单名称:{{ dataForm.name }}
+ 工单编码:{{ dataForm.code }}
- 产品名称:{{ dataForm.productName }}
- 产品规格:{{ dataForm.specifications }}
+ 产品名称:{{ dataForm.productName }}
+ 产品规格:{{ dataForm.specifications }}
- 实际生产数量:{{ dataForm.expectedTime }}
+ 实际生产数量:{{ dataForm.actualQuantity }}
-
+
@@ -49,7 +54,7 @@
-
+
保存
-
-
-
工单编码:{{ dataForm.code }}
+ 工单编码:{{ dataForm.code }}
-
+
基本信息
- 工单名称:{{ dataForm.name }}
- 工单来源:{{ dataForm.triggerOrigin === 1 ? 'MES' : dataForm.triggerOrigin === 2 ? 'ERP' : ''}}
+ 工单名称
{{ dataForm.name }}
+ 工单来源
{{ dataForm.triggerOrigin === 1 ? 'MES-手动' : (dataForm.triggerOrigin === 2 ? 'MES-订单下发' : (dataForm.triggerOrigin === 3 ? 'ERP' : ''))}}
- 所属订单:
- {{ item.orderName
- }}
+ 所属订单
+ {{ orderList.map(item => item.orderName).join(', ') }}
-
-
- 产品名称:{{ dataForm.productName }}
- 规 格:{{ dataForm.specifications }}
- 计划生产数量:{{ dataForm.planQuantity }}
-
-
- 预计用时(小时):{{ dataForm.remainingTime }}
- 计划投入数量:{{ dataForm.planAssignQuantity }}
- 优先级:{{ fitlerP(dataForm.priority) }}
-
-
- 负责人:{{ dataForm.workers }}
- 关联产线:
- {{ item.lineName
- }}
+ 产品名称
{{ dataForm.productName }}
+ 规 格
{{ dataForm.specifications }}
+ 计划生产数量
{{ dataForm.planQuantity }}
+ 预计用时(小时)
{{ dataForm.remainingTime }}
+ 计划投入数量
{{ dataForm.planAssignQuantity }}
+ 优先级
{{ fitlerP(dataForm.priority) }}
+ 负责人
{{ dataForm.workers }}
+ 关联产线
+ {{ item.lineName
+ }}
- 物料计算方式:{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展'
+ 物料计算方式
{{ dataForm.materialMethod === 1 ? '产品基础' : dataForm.materialMethod === 2 ? '工艺扩展'
:
- '' }}
-
-
- 关联工艺:{{ dataForm.processFlowName }}
+ '' }}
+
+ 关联工艺
{{ dataForm.processFlowName }}
@@ -78,8 +63,8 @@
height: 1px;
flex: 1;
margin-bottom: 12px;
+ padding: 16px;
background: #fff;
- padding: 16px 16px 32px;
border-radius: 8px;
display: flex;
flex-direction: column;
@@ -88,23 +73,17 @@
- 工单创建时间:{{ parseTime(dataForm.createTime) }}
- 计划开始时间:{{ parseTime(dataForm.planStartTime) }}
- 计划完成时间:{{ parseTime(dataForm.planFinishTime) }}
-
-
- 预计结束时间:{{ parseTime(dataForm.computeFinishTime) }}
- 实际开始时间:{{ parseTime(dataForm.startProduceTime) }}
- 实际完成时间:{{ parseTime(dataForm.finishProduceTime) }}
-
-
- 工单状态:{{ fitlerS(dataForm.status) }}
- 实际投入数量:{{ dataForm.assignQuantity }}
- 实际生产数量:{{ dataForm.actualQuantity }}
-
-
- 废片数量:{{ dataForm.nokQuantity }}
- 检测瑕疵数:{{ }}
+ 工单创建时间
{{ parseTime(dataForm.createTime) }}
+ 计划开始时间
{{ parseTime(dataForm.planStartTime) }}
+ 计划完成时间
{{ parseTime(dataForm.planFinishTime) }}
+ 预计结束时间
{{ parseTime(dataForm.expectedFinishTime) }}
+ 实际开始时间
{{ parseTime(dataForm.startProduceTime) }}
+ 实际完成时间
{{ parseTime(dataForm.finishProduceTime) }}
+ 工单状态
{{ fitlerS(dataForm.status) }}
+ 实际投入数量
{{ dataForm.assignQuantity }}
+ 实际生产数量
{{ dataForm.actualQuantity }}
+ 废片数量
{{ dataForm.nokQuantity }}
+ 检测瑕疵数
{{ dataForm.unpassCheckNum }}
@@ -189,11 +168,6 @@ const tableProps = [
prop: 'orderCode',
label: '订单编码',
},
- {
- prop: 'priority',
- label: '优先级',
- filter: (val) => ['', '低', '正常', '高'][val]
- },
{
prop: 'planAssignmentQuantity',
label: '计划分配数量',
@@ -370,7 +344,7 @@ export default {
name: work.name
}
})
- // console.log(this.workOrderButton);
+ console.log('this.workOrderButton======',this.workOrderButton);
this.init(this.workOrderButton[0].id, true)
})
} else {
@@ -583,59 +557,23 @@ export default {
};