Explorar el Código

添加判断有无序列号逻辑

xiaohaizhao hace 1 mes
padre
commit
52c269f798
Se han modificado 1 ficheros con 11 adiciones y 1 borrados
  1. 11 1
      pages/workOrder/detail.vue

+ 11 - 1
pages/workOrder/detail.vue

@@ -138,7 +138,7 @@
                         'color': '#3874F6',
                     }" text="信息修改" />
                 </view>
-                <view class="but-box-item" @click="confirmStartShow = true">
+                <view class="but-box-item" @click="!detail.sku ? toCMTips() : confirmStartShow = true">
                     <My-button text="确认开始" />
                     <up-modal negativeTop="100" :show="confirmStartShow" showCancelButton @confirm="confirmStart"
                         @cancel="confirmStartShow = false" ref="uModal" :asyncClose="true">
@@ -311,6 +311,16 @@ function takeOrders() {
     })
 }
 
+function toCMTips() {
+    uni.showModal({
+        confirmText: '前去修改',
+        content: '请完善产品信息和客户信息,确认开始后将不可修改!',
+        success: ({ confirm }) => {
+            if (confirm) toChangeMsg();
+        },
+    })
+}
+
 // 修改信息
 function toChangeMsg() {
     uni.navigateTo({