tangning 1 tháng trước cách đây
mục cha
commit
f6bf0db305
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/views/work/quoteModel.vue

+ 4 - 1
src/views/work/quoteModel.vue

@@ -84,6 +84,7 @@
         priceListsPrice: {},
         manMadeList: [],
         valueObj: {},
+        cameraType: '',
       });
       const optionsList = ref([]);
       const loading = ref(false);
@@ -224,6 +225,8 @@
         addPriceItem(priceLists);
         resetFields();
         fileFlow.type = data.type;
+        fileFlow.cameraType = data.cameraType;
+
         setFieldsValue({
           ...data,
           warrantyExpirationDateText: `${data.warrantyDate || '无'}( ${t(
@@ -533,7 +536,7 @@
         const params = await validate();
         let newPrice = parseFloat(fileFlow.priceCount);
         console.log('newPrice', fileFlow.manMadeList, fileFlow.priceLists, params);
-        if (!(newPrice > 0)) {
+        if (fileFlow.cameraType != 4 && !(newPrice > 0)) {
           return createMessage.error('合计金额不能小于0');
         }
         try {