|
@@ -4,16 +4,19 @@
|
|
|
<el-tabs class="edit-tabs" v-model="activeName">
|
|
<el-tabs class="edit-tabs" v-model="activeName">
|
|
|
<div class="right-btns">
|
|
<div class="right-btns">
|
|
|
<el-button type="primary" size="small">新增答复</el-button>
|
|
<el-button type="primary" size="small">新增答复</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small">新增费用</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small">新增附件</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small">分案/接续流程</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="tips">
|
|
<div class="tips">
|
|
|
<div class="tips-text">
|
|
<div class="tips-text">
|
|
|
<span class="name">当前流程节点</span>
|
|
<span class="name">当前流程节点</span>
|
|
|
- <span class="val">是否决定签约</span>
|
|
|
|
|
|
|
+ <span class="val">{{ nowStatus }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tips-text">
|
|
<div class="tips-text">
|
|
|
<span class="name">处理人</span>
|
|
<span class="name">处理人</span>
|
|
|
- <span class="val">夏秋雨</span>
|
|
|
|
|
|
|
+ <span class="val">{{ user }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tips-text">
|
|
<div class="tips-text">
|
|
@@ -24,16 +27,21 @@
|
|
|
<el-button type="text" size="small">立即处理</el-button>
|
|
<el-button type="text" size="small">立即处理</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-tab-pane label="基本信息" name="first">
|
|
<el-tab-pane label="基本信息" name="first">
|
|
|
- <base-info></base-info>
|
|
|
|
|
|
|
+ <base-info ref="base" :info.sync="formData"></base-info>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="附件列表" name="second"></el-tab-pane>
|
|
<el-tab-pane label="附件列表" name="second"></el-tab-pane>
|
|
|
<el-tab-pane label="费用信息" name="third"></el-tab-pane>
|
|
<el-tab-pane label="费用信息" name="third"></el-tab-pane>
|
|
|
<el-tab-pane label="流程信息" name="fourth"></el-tab-pane>
|
|
<el-tab-pane label="流程信息" name="fourth"></el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog title="是否决定签约" center :visible.sync="showCheck" width="600px">
|
|
|
|
|
+ <signed :info="formData" @submit="submit" @cancel="showChec = false"></signed>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import BaseInfo from '../components/logoPatent/BaseInfo.vue';
|
|
import BaseInfo from '../components/logoPatent/BaseInfo.vue';
|
|
|
|
|
+import Signed from '../components/logoPatent/Signed.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'LogoPatentEdit',
|
|
name: 'LogoPatentEdit',
|
|
|
created() {
|
|
created() {
|
|
@@ -42,44 +50,15 @@ export default {
|
|
|
.get('logoPatent/get/' + this.$route.query.id)
|
|
.get('logoPatent/get/' + this.$route.query.id)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.formData = res;
|
|
this.formData = res;
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.init();
|
|
|
|
|
+ });
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- this.$http
|
|
|
|
|
- .post('/partner/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.content.length > 0) {
|
|
|
|
|
- res.content.forEach(item => {
|
|
|
|
|
- this.clientPartnerIdOptions.push({
|
|
|
|
|
- label: item.name,
|
|
|
|
|
- value: item.id
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .catch(e => {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- this.$message.error(e.error);
|
|
|
|
|
- });
|
|
|
|
|
- this.$http
|
|
|
|
|
- .post('/partner/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- if (res.content.length > 0) {
|
|
|
|
|
- res.content.forEach(item => {
|
|
|
|
|
- this.supplierPartnerIdOptions.push({
|
|
|
|
|
- label: item.name,
|
|
|
|
|
- value: item.id
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- .catch(e => {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- this.$message.error(e.error);
|
|
|
|
|
- });
|
|
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -110,10 +89,33 @@ export default {
|
|
|
{ label: '首付80%', value: 'DOWN_PAYMENT_80' },
|
|
{ label: '首付80%', value: 'DOWN_PAYMENT_80' },
|
|
|
{ label: '首付50%', value: 'DOWN_PAYMENT_50' }
|
|
{ label: '首付50%', value: 'DOWN_PAYMENT_50' }
|
|
|
],
|
|
],
|
|
|
- activeName: 'first'
|
|
|
|
|
|
|
+ activeName: 'first',
|
|
|
|
|
+ showCheck: true
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ nowStatus() {
|
|
|
|
|
+ if (!this.formData.contract) {
|
|
|
|
|
+ return '是否决定签约';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ user() {
|
|
|
|
|
+ if (!this.formData.contract) {
|
|
|
|
|
+ return '客户经理';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ init() {
|
|
|
|
|
+ if (this.activeName === 'first') {
|
|
|
|
|
+ this.$refs.base.init();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
onSave() {
|
|
onSave() {
|
|
|
this.$refs.form.validate(valid => {
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -123,8 +125,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- submit() {
|
|
|
|
|
- let data = { ...this.formData };
|
|
|
|
|
|
|
+ submit(info) {
|
|
|
|
|
+ let data = { ...info };
|
|
|
|
|
|
|
|
this.saving = true;
|
|
this.saving = true;
|
|
|
this.$http
|
|
this.$http
|
|
@@ -158,7 +160,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
- BaseInfo
|
|
|
|
|
|
|
+ BaseInfo,
|
|
|
|
|
+ Signed
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|