Browse Source

fix(退回):退回没有暂存按钮

sufan 7 months ago
parent
commit
10bc44c57e

+ 3 - 1
src/components/Upload/index.vue

@@ -219,7 +219,9 @@ export default {
     isUploadBtn: {
       handler(newV) {
         this.$nextTick(() => {
-          this.$refs.upload.$el.querySelector('.el-upload').style.display = newV ? 'block' : 'none'
+          setTimeout(() => {
+            this.$refs.upload.$el.querySelector('.el-upload').style.display = newV ? 'block' : 'none'
+          }, 300)
         })
       },
       immediate: true

+ 1 - 0
src/views/creditManage/supplierManage/auditingTwo/auditingTwoMain.vue

@@ -84,6 +84,7 @@ export default {
     },
     conclusionChange(val) {
       this.isBack = val
+      this.$emit('tempClick', val)
     },
     async getParams(type) {
       const { id } = this.$route.params

+ 7 - 2
src/views/creditManage/supplierManage/auditingTwo/index.vue

@@ -10,10 +10,10 @@
         </div>
       </div>
       <div slot="bottom">
-        <auditing-two-main ref="auditingtwoMain" />
+        <auditing-two-main ref="auditingtwoMain" @tempClick="(val) => { isBack = val }" />
         <div class="submit-btn">
           <el-button @click="$router.go(-1)">关闭</el-button>
-          <el-button type="primary" @click="submitForm('temp')">暂存</el-button>
+          <el-button v-if="!isBack" type="primary" @click="submitForm('temp')">暂存</el-button>
           <el-button type="primary" @click="submitForm('submit')">提交</el-button>
         </div>
       </div>
@@ -29,6 +29,11 @@ export default {
     auditingTwoMain: () => import('./auditingTwoMain.vue'),
     SupplierManageView: () => import('../components/SupplierManageView.vue')
   },
+  data() {
+    return {
+      isBack: false
+    }
+  },
   methods: {
     async submitForm(type) {
       const params = await this.$refs.auditingtwoMain.getSubmit(type)