guhongwei 4 lat temu
rodzic
commit
f70f69a01a

+ 5 - 3
src/views/adminCenter/company/cognizance/detail.vue

@@ -14,8 +14,8 @@
                 </el-form-item>
               </el-col>
               <one :form="form"></one>
-              <two :form="form"></two>
-              <thr :form="form"></thr>
+              <two :form="form" v-if="status == '1' || status == '-3' || status == '3'"></two>
+              <thr :form="form" v-if="status == '3'"></thr>
               <el-col :span="24" class="formBtn">
                 <el-button type="danger" size="mini" @click="back">取消申请</el-button>
                 <el-button type="primary" size="mini" @click="onSubmit('form')">提交申请</el-button>
@@ -82,7 +82,9 @@ export default {
         if (valid) {
           let data = this.form;
           data.material = this.oneMap();
-          data.medium_material = this.twoMap();
+          if (this.status == '1') {
+            data.medium_material = this.twoMap();
+          }
           if (this.id) {
             data.status = this.searchStatus(data.status);
             let res = await this.update(data);

+ 3 - 3
src/views/adminCenter/company/cognizance/index.vue

@@ -35,9 +35,9 @@ export default {
         {
           label: '编辑申请',
           method: 'edit',
-          // display: (item) => {
-          //   return item.status == '-1' || item.status == '1' || item.status == '-3' || item.status == '3';
-          // },
+          display: (item) => {
+            return item.status == '-1' || item.status == '1' || item.status == '-3' || item.status == '3';
+          },
         },
       ],
       fields: [

+ 5 - 4
src/views/adminCenter/inter/ticket/detail.vue

@@ -39,7 +39,7 @@
                   </el-col>
                 </el-col>
               </el-col>
-              <el-col :span="24" class="text">
+              <el-col :span="24" class="text" v-if="dataStatus == '3'">
                 <el-col :span="2" class="left"> 合同上传</el-col>
                 <el-col :span="20" class="right">
                   <e-upload
@@ -52,7 +52,7 @@
                   ></e-upload>
                 </el-col>
               </el-col>
-              <el-col :span="24" class="text" v-if="form.status == '2'">
+              <el-col :span="24" class="text" v-if="dataStatus == '2'">
                 <el-col :span="2" class="left"> 信息资料审核:</el-col>
                 <el-col :span="20" class="right">
                   <el-radio-group v-model="form.status">
@@ -61,7 +61,7 @@
                   </el-radio-group>
                 </el-col>
               </el-col>
-              <el-col :span="24" class="text" v-if="form.status == '2'">
+              <el-col :span="24" class="text" v-if="dataStatus == '2'">
                 <el-col :span="2" class="left"> 审核意见:</el-col>
                 <el-col :span="22" class="right">
                   <el-input v-model="form.desc" placeholder="请填写审核意见" type="textarea" :autosize="{ maxRows: 5, minRows: 3 }"></el-input>
@@ -69,7 +69,7 @@
               </el-col>
               <el-col :span="24" class="formBtn">
                 <el-button type="danger" size="mini" @click="back">取消申请</el-button>
-                <el-button type="primary" size="mini" @click="onSubmit('form')" v-if="form.status == '2'">提交保存</el-button>
+                <el-button type="primary" size="mini" @click="onSubmit('form')" v-if="dataStatus == '2'">提交保存</el-button>
                 <el-button type="primary" size="mini" @click="toSave('form')" v-else>保存合同</el-button>
               </el-col>
             </el-form>
@@ -125,6 +125,7 @@ export default {
     },
     async toSave() {
       let data = this.form;
+      data.status = '3';
       const res = await this.update(data);
       if (this.$checkRes(res, '上传成功', res.errmsg || '上传失败')) {
         this.back();

+ 1 - 1
src/views/adminCenter/ticket/index.vue

@@ -27,7 +27,7 @@ export default {
         {
           label: '审核',
           method: 'edit',
-          // display: (i) => i.status === '0' || i.status === '3',
+          // display: (i) => i.status != '5',
         },
         {
           label: '创新券发放',