|
@@ -20,14 +20,6 @@ Page({
|
|
|
this.setData({
|
|
|
billData:res.data
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- if (this.data.billData.status === '待开始') {
|
|
|
- getApp().globalData.handelSelect = this
|
|
|
- wx.navigateTo({
|
|
|
- url: '/Eservice/workBillConfirmInfo/index',
|
|
|
- })
|
|
|
- }
|
|
|
- }, 1000);
|
|
|
|
|
|
},
|
|
|
changeBillStatus(data) {
|
|
@@ -42,13 +34,21 @@ Page({
|
|
|
|
|
|
Dialog.confirm(dialogConfig)
|
|
|
.then(async () => {
|
|
|
- const res = await api._post({
|
|
|
- "id": id,
|
|
|
- "content": {
|
|
|
- "sa_workorderid":this.data.id
|
|
|
- }
|
|
|
- })
|
|
|
- this.mainData()
|
|
|
+ if (id == '20230209144503') {
|
|
|
+ getApp().globalData.handelSelect = this
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/Eservice/workBillConfirmInfo/index',
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ const res = await api._post({
|
|
|
+ "id": id,
|
|
|
+ "content": {
|
|
|
+ "sa_workorderid":this.data.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.mainData()
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
.catch(() => console.log('点击了取消'))
|
|
|
.finally(() => Dialog.close());
|