Parcourir la source

判断条件修改

xiaohaizhao il y a 2 ans
Parent
commit
778fd77986
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      Eservice/workOrderDetail/index.js

+ 3 - 3
Eservice/workOrderDetail/index.js

@@ -107,7 +107,7 @@ Page({
   },
   changeBillStatus(data) {
     let id = data.currentTarget.dataset.id;
-    if (id == 20230209144903 && this.data.billData.titems.length == 0 && this.data.billData.type == '维修') return wx.showToast({
+    if (id == 20230209144903 && this.data.billData.titems.length == 0 && this.data.billData.actiontype === "非工序模板") return wx.showToast({
       title: '还未添加产品,不可完结',
       icon: "none",
       mask: true
@@ -154,7 +154,7 @@ Page({
       }
     })
 
-    if (this.data.billData.type === "维修") {
+    if (this.data.billData.actiontype === "非工序模板") {
       wx.navigateTo({
         url: '/Eservice/materielConfirmBill/index?id=' + res.data.sa_workorder_confirmationid,
       })
@@ -174,7 +174,7 @@ Page({
 
   },
   toConfirmBill(data) {
-    if (this.data.billData.type === "维修") {
+    if (this.data.billData.actiontype === "非工序模板") {
       wx.navigateTo({
         url: '/Eservice/materielConfirmBill/index?id=' + data.currentTarget.dataset.item.sa_workorder_confirmationid + '&class=' + this.data.stopClick,
       })