diff --git a/src/views/productManagement/workorder.vue b/src/views/productManagement/workorder.vue
index 3394a24..fef9723 100644
--- a/src/views/productManagement/workorder.vue
+++ b/src/views/productManagement/workorder.vue
@@ -49,8 +49,6 @@
成品零件号 |
优先级 1-100 |
颜色 |
- 是否已排产 |
- 是否已生产 |
工单顺序 |
操作 |
@@ -84,19 +82,27 @@
{{ item.actualnumber }} |
{{ item.priority }} |
{{ item.color }} |
- {{ item.isarrange }} |
- {{ item.isproduction }} |
+
{{ item.order }} |
-
- 下达生产
+
+ 开始领料
取消排程
-
- 生产中
+
+ 领料中
-
- 结束生产
+
+ 领料结束
+
+
+ 生产中
+
+
+ 生产结束
+
+
+ 领料不合格
|
@@ -125,7 +131,7 @@
-
+
@@ -305,16 +311,16 @@ export default {
}
})
},
- //todo 下达生产
+ //todo 下达领料指令
ReleaseProduction(row) {
this.$modal
- .confirm('是否确认下达生产' + row.id + '"的数据项?')
+ .confirm('是否确认开始领料-' + row.id + '-的数据项?')
.then(function () {
return releaseProduction(row.id)
})
.then((res) => {
if ((res.code == 200) & (res.data == 1)) {
- this.$notify.success('下达生产成功')
+ this.$notify.success('开始领料成功')
this.getList()
} else {
this.$notify.error('未知错误')
diff --git a/src/views/productManagement/workplan.vue b/src/views/productManagement/workplan.vue
index 541e779..973058b 100644
--- a/src/views/productManagement/workplan.vue
+++ b/src/views/productManagement/workplan.vue
@@ -177,11 +177,14 @@
{{ scope.row.date }}
-
+
- 未排程
- 已排程
- 异常
+ 未排程
+ 已排程
+ 领料中
+ 领料结束
+ 生产中
+ 生产完成
@@ -374,7 +377,7 @@ export default {
year: null,
week: null,
date: null,
- isarrange: '',
+ wrokerorder_status: '',
arrangeStarttime: null,
arrangeEndtime: null,
productionTime: null,
@@ -471,7 +474,7 @@ export default {
query.fkProPlanId = this.selectPlan.id
query.year = this.selectPlan.year
query.week = this.selectPlan.week
- query.isarrange = '0'
+ query.wrokerorder_status = 0
insertNewworkorder(query).then((res) => {
if (res.code == 200) {
if (res.data == 1) {
@@ -609,7 +612,7 @@ export default {
this.dialog_2.form.week = row.week
this.dialog_2.form.date = row.date
this.dialog_2.form.arrangeStarttime = row.arrangeStarttime
- this.dialog_2.form.isarrange = row.isarrange
+ this.dialog_2.form.wrokerorder_status = row.wrokerorder_status
this.dialog_2.form.arrangeEndtime = row.arrangeEndtime
this.dialog_2.form.productionTime = row.productionTime
this.dialog_2.form.productionName = row.productionName