@@ -500,7 +500,12 @@
})
},
// 报工
- edit(type, id) {
+ async edit(type, id) {
+ // 判断报工是否可执行
+ if(type == 'report') {
+ const result = await this.checkId(id)
+ if(!result) return
+ }
uni.navigateTo({
url: `/pages/salesServiceManagement/workOrder/components/editPlan?type=${type}&id=${id}`