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

+ 7 - 0
src/packageMaterial/pages/newSale/index.vue

@@ -231,6 +231,13 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
 
     submitData() {
       if (this.rpMaterialOrderItemList.length < 1) return this.$toast('请选择');
+      for (var item of this.rpMaterialOrderItemList) {
+        if(!item.repairFlag) return this.$toast('维修标识不能为空');
+        if(!item.oldPartsNumber) return this.$toast('旧配件编号不能为空');
+        if(!item.oldPartsName) return this.$toast('旧配件名称不能为空');
+        if(!item.goodsName) return this.$toast('新配件名称不能为空');
+        if(!item.goodsCode) return this.$toast('新配件编号不能为空');
+      }
       if(!this.orderNo) return this.$toast('请填写工单号');
       this.$setStorage('materialSaleDataZhiFu', {
         type: this.type,