linwenxin hace 7 meses
padre
commit
aaf89fd956
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/packageMaterial/pages/newSale/index.vue

+ 3 - 2
src/packageMaterial/pages/newSale/index.vue

@@ -7,7 +7,7 @@
         <u--input :maxlength="11" placeholder="请输入" border="none" inputAlign="right" v-model="userMobile"></u--input>
       </view>
       <view class="item">
-        <view class="label">工单单号</view>
+        <view class="label"><text>*</text>工单单号</view>
         <u--input :readonly="hasOid" placeholder="请输入" border="none" inputAlign="right" v-model="orderNo"></u--input>
       </view>
       <view class="item" @tap="hasOid ? '' : (isShowWebsitDialog = true)">
@@ -230,7 +230,8 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
     },
 
     submitData() {
-      if(this.rpMaterialOrderItemList.length < 1) return this.$toast('请选择');
+      if (this.rpMaterialOrderItemList.length < 1) return this.$toast('请选择');
+      if(!this.orderNo) return this.$toast('请填写工单号');
       this.$setStorage('materialSaleDataZhiFu', {
         type: this.type,
         categoryId: this.type == 'P' ? this?.category?.categoryId : '',