|
@@ -10,7 +10,8 @@
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="100px">
|
|
|
<el-col :span="24" class="text">
|
|
|
<el-form-item label="申请单位" prop="company">
|
|
|
- <el-input v-model="form.company" placeholder="请输入申请单位"></el-input>
|
|
|
+ {{ form.company }}
|
|
|
+ <!-- <el-input v-model="form.company" placeholder="请输入申请单位"></el-input> -->
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="text">
|
|
@@ -38,69 +39,6 @@
|
|
|
<e-upload url="/files/cysci/qylr_file/upload" :limit="1" v-model="form.qylr" type="text"></e-upload>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="text">
|
|
|
- <el-form-item label="申领状态" prop="status">
|
|
|
- <el-radio-group v-model="form.status" disabled>
|
|
|
- <el-radio v-for="(i, index) in statusList" :key="index" :label="i.value">{{ i.label }}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="text">
|
|
|
- <el-form-item label="申领意见" prop="desc">
|
|
|
- <el-input v-model="form.desc" type="textarea" :autosize="{ minRows: 4, maxRows: 6 }" show-word-limit disabled></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="text" v-if="form.status == '1'">
|
|
|
- <el-form-item label="创新券">
|
|
|
- <el-col :span="10" class="coupons">
|
|
|
- <el-col :span="18" class="coupons_1">
|
|
|
- <el-col :span="24" class="coupons_1one">
|
|
|
- <el-col :span="3" class="image">
|
|
|
- <el-image :src="logo"></el-image>
|
|
|
- </el-col>
|
|
|
- <el-col :span="21" class="title"> 环南湖科创先导区双创服务平台 </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="coupons_1two"> 科技创新券 </el-col>
|
|
|
- <el-col :span="24" class="coupons_1thr">
|
|
|
- <p>
|
|
|
- 有效期:
|
|
|
- <span>{{ getDate(form.create_time, '1') }}</span>
|
|
|
- -<span>{{ getDate('2021', '2') }}</span>
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- NO.<span>{{ getDate(form.create_time, '3') }}</span>
|
|
|
- </p>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6" class="coupons_2">
|
|
|
- <p>科技创新券</p>
|
|
|
- <p><span>伍万圆</span></p>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- <!-- <el-col :span="10" class="coupons">
|
|
|
- <el-col :span="24" class="coupons_1">
|
|
|
- <el-col :span="3" class="image">
|
|
|
- <el-image :src="logo"></el-image>
|
|
|
- </el-col>
|
|
|
- <el-col :span="21" class="title"> 环南湖科创先导区双创服务平台 </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="coupons_2">
|
|
|
- <p>科技创新券</p>
|
|
|
- <p>伍万圆</p>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="coupons_3">
|
|
|
- <p>
|
|
|
- 有效期:
|
|
|
- <span>{{ getDate(form.create_time, '1') }}</span>
|
|
|
- -<span>{{ getDate('2021', '2') }}</span>
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- NO.<span>{{ getDate(form.create_time, '3') }}</span>
|
|
|
- </p>
|
|
|
- </el-col>
|
|
|
- </el-col> -->
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
<el-col :span="24" class="formBtn" v-if="form.status == ''">
|
|
|
<el-button type="danger" size="mini" @click="back">取消申领</el-button>
|
|
|
<el-button type="primary" size="mini" @click="onSubmit('form')">提交资料</el-button>
|
|
@@ -118,7 +56,7 @@ const _ = require('lodash');
|
|
|
const moment = require('moment');
|
|
|
const { policyType, policyStatus } = require('@common/dict/index');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: policy } = createNamespacedHelpers('policy');
|
|
|
+const { mapActions: policyApply } = createNamespacedHelpers('policyApply');
|
|
|
moment.locale('zh-cn');
|
|
|
export default {
|
|
|
name: 'detail',
|
|
@@ -139,16 +77,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ if (this.user && this.user.name) this.form.company = this.user.name;
|
|
|
+ if (this.policy_id) this.form.policy_id = this.policy_id;
|
|
|
if (this.id) this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...policy(['fetch', 'create']),
|
|
|
- async search() {
|
|
|
- const res = await this.fetch(this.id);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `form`, res.data);
|
|
|
- }
|
|
|
- },
|
|
|
+ ...policyApply(['create']),
|
|
|
onSubmit(formName) {
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|
|
@@ -191,6 +125,9 @@ export default {
|
|
|
id() {
|
|
|
return this.$route.query.id;
|
|
|
},
|
|
|
+ policy_id() {
|
|
|
+ return this.$route.query.policy_id;
|
|
|
+ },
|
|
|
},
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|