Explorar o código

现场考察报告, 判断

yuedefeng %!s(int64=5) %!d(string=hai) anos
pai
achega
8c6f8be771

+ 1 - 1
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -913,7 +913,7 @@ export default {
     // 注册资金限制
     var checkMoney = (rule, value, callback) => {
       if (value < 0) {
-        callback(new Error('注册资本必须大于0'))
+        callback(new Error('注册资本不能小于0'))
       } else {
         callback()
       }

+ 6 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -1440,10 +1440,10 @@ export default {
             console.error(err)
           })
       }
-      if (this.activeName === '0' &&
-        this.formDataCert.InStyle != '2' && this.formDataCert.InStyle != '3') {
+      const InStyleNum = parseInt(this.formData.InStyle)
+      if (this.activeName === '0' && this.isInvestigate === true && InStyleNum !== 2 && InStyleNum !== 3) {
         // 准入方式,除一级二级外其他需要考察报告
-        if (!this.$refs['GoodsInfo'].isscenefile) {
+        if (!this.$refs['GoodsInfo'].isscenefile) { // 是否已经上传现场考察报告
           this.$notify({
             title: '提示',
             message: '请上传现场考察报告!',
@@ -1504,7 +1504,7 @@ export default {
         this.UnitOrgOptions = list
         this.allorgunitOptions = res.data.items['Allunitorglist']
         // 系统参数设置: 是否需要现场考察报告
-        this.isInvestigate = res.data.items['isInvestigate'] === 'true'
+        this.isInvestigate = (res.data.items['isInvestigate'] === 'true')
         this.orgUnitChange(this.UnitOrg, 'init')
         // this.auditerOptions = res.data.items['Auditer']
         // this.organizeOption = res.data.items['Organizes']
@@ -1866,8 +1866,8 @@ export default {
       }
     },
     commitAudit () {
-      if (this.formDataCert.InStyle != '2' && this.formDataCert.InStyle != '3') {
-        console.log(this.$refs['GoodsInfo'].isscenefile, 'DA11')
+      const InStyleNum = parseInt(this.formData.InStyle)
+      if (this.isInvestigate === true && InStyleNum !== 2 && InStyleNum !== 3) {
         // 准入方式,除一级二级外其他需要考察报告
         if (!this.$refs['GoodsInfo'].isscenefile) {
           this.$notify({