lilei пре 5 дана
родитељ
комит
dd7e3cabbc
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/views/productManagement/productPricing/auditModal.vue

+ 3 - 3
src/views/productManagement/productPricing/auditModal.vue

@@ -91,7 +91,7 @@ export default {
       toThousands, // 金额 截取到两位函数 3位添加‘,’
       isShow: this.openModal, //  是否打开弹框
       detailsData: null, //  详情数据
-      priceShow: undefined
+      priceShow: '0'
     }
   },
   methods: {
@@ -100,7 +100,7 @@ export default {
       productPricingSnDetail({ sn: this.itemSn }).then(res => {
         if (res.status == 200) {
           this.detailsData = res.data
-          this.priceShow = this.detailsData.FirstPriceFlag == 1 ? '1' : '0'
+          this.priceShow = this.detailsData.firstPriceFlag
         } else {
           this.detailsData = null
         }
@@ -108,7 +108,7 @@ export default {
     },
     // 审核  type =='AUDIT_REJECT'?'不通过':'通过(PRICED)'
     handleAudit (type) {
-      if (this.priceShow == undefined) {
+      if (this.priceShow === undefined) {
         this.$message.warning('请选择是否显示')
         return
       }