Sfoglia il codice sorgente

审批按钮状态判断

baichengfei 5 anni fa
parent
commit
09524efe4f

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -739,7 +739,7 @@
         <el-button type="primary"
                    size="mini"
                    @click="comSubmitToSeparateUnitClick()"
-                   v-if="IsCompanyUser == 1 && parseInt(activeName)==3 && Status <= 0">
+                   v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) === 3 && Number() <= 0">
           提交
         </el-button>
       </div>

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -827,7 +827,7 @@
         <el-button type="primary"
                    size="mini"
                    @click="comSubmitToSeparateUnitClick()"
-                   v-if="IsCompanyUser == 1 && parseInt(activeName)==3 && Status <= 0">
+                   v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) === 3 && Number(Status) <= 0">
           提交
         </el-button>
       </div>

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/operation.vue

@@ -656,7 +656,7 @@
         <el-button type="primary"
                    size="mini"
                    @click="comSubmitToSeparateUnitClick()"
-                   v-if="IsCompanyUser == 1 && parseInt(activeName)==3 && Status <= 0">
+                   v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) === 3 && Number(Status) <= 0">
           提交
         </el-button>
       </div>

+ 4 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -53,10 +53,10 @@
           <el-button type="primary"
                      size="mini"
                      @click="commitAudit()"
-                     v-if="add_flat && parseInt(IsCompanyUser) === 1 && parseInt(activeName) === 3 || Number(this.formData.Status) < 0">
+                     v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) >= 3 && Number(this.formData.Status) <= 0">
             提交
           </el-button>
-          <el-button v-if="parseInt(IsCompanyUser) !== 1 && (this.formData.Status == '' || parseInt(this.formData.Status) === 0 || Number(this.formData.Status) < 0) " type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
+          <el-button v-if="parseInt(IsCompanyUser) !== 1 && Number(this.formData.Status) <= 0" type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
             提交审批
           </el-button>
         </span>
@@ -357,7 +357,7 @@
         <el-button type="primary"
                    size="mini"
                    @click="commitAudit()"
-                   v-if="add_flat && IsCompanyUser == 1 && parseInt(activeName)==3">
+                   v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) >=3 && Number(this.formData.Status) <= 0">
           提交
         </el-button>
       </div>
@@ -1184,7 +1184,7 @@ export default {
           if (this.formData.Status > 0) {
             this.totalTab = 4
           }
-          if (this.formData.Status > 0 || this.formData.Status == -5) {
+          if (this.formData.Status > 0) {
             this.add_flat = false
           }
           if ((this.formData.Status > 0) && (this.formData.Status != 4)) {

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

@@ -52,10 +52,10 @@
           <el-button type="primary"
                      size="mini"
                      @click="commitAudit()"
-                     v-if="add_flat && parseInt(IsCompanyUser) === 1 && parseInt(totalTab) >= 3 || Number(this.formData.Status) < 0">
+                     v-if="parseInt(IsCompanyUser) === 1 && parseInt(totalTab) >= 3 || Number(this.formData.Status) <= 0">
             提交
           </el-button>
-          <el-button v-if="add_flat && parseInt(IsCompanyUser) !== 1 && parseInt(totalTab) >= 3 || Number(this.formData.Status) < 0" type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
+          <el-button v-if="parseInt(IsCompanyUser) !== 1 && parseInt(totalTab) >= 3 || Number(this.formData.Status) <= 0" type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
             提交审批
           </el-button>
           <!--<el-button type="primary" @click="toPdf" size="mini" :disabled="formData.Status == 0">准入范围</el-button>-->
@@ -388,7 +388,7 @@
         <el-button type="primary"
                    size="mini"
                    @click="commitAudit()"
-                   v-if="add_flat && IsCompanyUser == 1 && parseInt(activeName)==3">
+                   v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) >=3 && Number(this.formData.Status) <= 0">
           提交
         </el-button>
       </div>

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -42,10 +42,10 @@
           <el-button type="primary"
                      size="mini"
                      @click="commitAudit()"
-                     v-if="add_flat && parseInt(IsCompanyUser) === 1 && parseInt(activeName) === 3 || Number(this.formData.Status) < 0">
+                     v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) >= 3 || Number(this.formData.Status) <= 0">
             提交
           </el-button>
-          <el-button v-if="parseInt(IsCompanyUser) !== 1 && (this.formData.Status == '' || parseInt(this.formData.Status) === 0) || Number(this.formData.Status) <= 0" type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
+          <el-button v-if="parseInt(IsCompanyUser) !== 1 && Number(this.formData.Status) <= 0" type="primary" size="mini" style="float: right;margin-left: 25px" @click="commitAudit()">
             提交审批
           </el-button>
         </span>
@@ -350,7 +350,7 @@
         <el-button type="primary"
                    size="mini"
                    @click="commitAudit()"
-                   v-if="add_flat && IsCompanyUser == 1 && parseInt(activeName)==3">
+                   v-if="parseInt(IsCompanyUser) === 1 && parseInt(activeName) >=3 && Number(this.formData.Status) <= 0">
           提交
         </el-button>
       </div>

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -28,10 +28,10 @@
                      v-if="formData.Id !='' && Number(formData.Status) <= 0" @click="saveinfochange">保存
           </el-button>
           <el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
-            v-if="formData.Id !='' && Number(formData.Status) <= 0 && IsCompanyUser == 0">提交审核
+            v-if="formData.Id !='' && Number(formData.Status) <= 0 && parseInt(IsCompanyUser) === 0">提交审核
           </el-button>
           <el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
-            v-if="formData.Id !='' && Number(formData.Status) <= 0 && IsCompanyUser == 1">提交
+            v-if="formData.Id !='' && Number(formData.Status) <= 0 && parseInt(IsCompanyUser) === 1">提交
           </el-button>
           <router-link :to="'/oilsupplier/supplierappend/basislist'">
             <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>