物料管理
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
<u-button type="primary" size="big" text="生成配料任务" @click="generatetask"></u-button>
|
||||
<u-modal :show="task.show" :title="task.title" :content="task.content" @confirm="task.show = false"></u-modal>
|
||||
<u-loading-page :loading="loading" loading-text="加载数据中..." loading-color="#00ff00" icon-size="150"></u-loading-page>
|
||||
|
||||
<u-notify ref="uNotify" message="Hi uView"></u-notify>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user