tangning 1 ماه پیش
والد
کامیت
f6bf0db305
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      src/views/work/quoteModel.vue

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

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