diff --git a/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue b/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue
index 1f016ba..b887ec9 100644
--- a/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue
+++ b/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue
@@ -90,7 +90,7 @@
-
+
@@ -115,7 +115,7 @@ export default {
title: '生成配料任务',
content: ''
},
- loading:false
+ loading: false
};
},
filters: {
@@ -141,7 +141,6 @@ export default {
},
methods: {
// todo 获取上料起点
-
get_startpoints() {
achievestartpoints().then((res) => {
if (res.code == 200) {
@@ -159,8 +158,7 @@ export default {
},
//todo 根据日期获取工单
get_workorder_list() {
-
- this.loading=true;
+ this.loading = true;
// let date = new Date(this.workerorder_time);
// date = new Date(date.getTime() + date.getTimezoneOffset() * 60 * 1000);
@@ -178,9 +176,18 @@ export default {
};
getworkorderlist(query).then((res) => {
if (res.code == 200) {
- this.loading=false;
- this.workerorder_list = res.data;
+ this.loading = false;
+ //提示
+ this.$refs.uNotify.show({
+ top: 100,
+ type: 'success',
+ message: '获取工单数据成功,共' + res.data.length + '条。时间为'+shanghaiTime,
+ duration: 1000 * 3,
+ fontSize: 20,
+ safeAreaInsetTop: true
+ });
+ this.workerorder_list = res.data;
for (let item = 0; item < this.workerorder_list.length; item++) {
this.workerorder_list[item].selected = false;
this.workerorder_list[item].previousNumbered = 0;
@@ -231,19 +238,17 @@ export default {
if (res.code == 200) {
this.task.show = true;
this.task.content = '生产配料任务成功' + res.data;
- this.reset()
+ this.reset();
}
});
},
- reset(){
- this.select_position="";
- this.selected_index=null;
+ reset() {
+ this.select_position = '';
+ this.selected_index = null;
for (let i = 0; i < this.workerorder_list.length; i++) {
- this.workerorder_list[i].previousNumbered = 0,
- this.workerorder_list[i].selected = false
+ (this.workerorder_list[i].previousNumbered = 0), (this.workerorder_list[i].selected = false);
}
this.get_workorder_list();
-
}
}
};