|
|
@@ -246,12 +246,16 @@
|
|
|
].code,
|
|
|
...data
|
|
|
};
|
|
|
- await report(params).then((res) => {
|
|
|
- this.$message.success('报工成功!');
|
|
|
- this.getDetail();
|
|
|
- this.isUpdate = !this.isUpdate;
|
|
|
- return res;
|
|
|
- });
|
|
|
+ const loading = this.$loading({ lock: true, text: '正在报工...' });
|
|
|
+ try {
|
|
|
+ await report(params).then((res) => {
|
|
|
+ this.$message.success('报工成功!');
|
|
|
+ this.getDetail();
|
|
|
+ this.isUpdate = !this.isUpdate;
|
|
|
+ return res;
|
|
|
+ });
|
|
|
+ } catch (error) {}
|
|
|
+ loading.close();
|
|
|
});
|
|
|
},
|
|
|
async init() {
|