|
@@ -46,6 +46,14 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="panelRow">
|
|
|
+ <div>是否签章:</div>
|
|
|
+ <el-radio-group v-model="contractStatus" @change="onRadioChange">
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-if="contractStatus == 1" class="panelRow">
|
|
|
<div>模板关联字段:</div>
|
|
|
<el-row style="width: 90%">
|
|
|
<el-col :span="8">公司名称</el-col>
|
|
@@ -235,6 +243,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
fieldList: [],
|
|
|
+ contractStatus: 0,
|
|
|
contract: {
|
|
|
organName: '',
|
|
|
feeType: '',
|
|
@@ -252,10 +261,12 @@ export default {
|
|
|
// 反显数据
|
|
|
let contract = this.model.contract
|
|
|
contract = contract || null
|
|
|
- console.log(contract)
|
|
|
if (contract) {
|
|
|
+ this.contractStatus = 1
|
|
|
this.contract = contract
|
|
|
this.$forceUpdate()
|
|
|
+ } else {
|
|
|
+ this.contractStatus = 0
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -263,6 +274,13 @@ export default {
|
|
|
await this.__init()
|
|
|
},
|
|
|
methods: {
|
|
|
+ onRadioChange(val) {
|
|
|
+ if (val == 1) {
|
|
|
+ this.onChange('contract', this.contract)
|
|
|
+ } else {
|
|
|
+ this.onChange('contract', '')
|
|
|
+ }
|
|
|
+ },
|
|
|
async __init() {
|
|
|
const templateList = []
|
|
|
this.templates.forEach((item) => {
|
|
@@ -275,8 +293,11 @@ export default {
|
|
|
let contract = this.model.contract
|
|
|
contract = contract || null
|
|
|
if (contract) {
|
|
|
+ this.contractStatus = 1
|
|
|
this.contract = contract
|
|
|
this.$forceUpdate()
|
|
|
+ } else {
|
|
|
+ this.contractStatus = 0
|
|
|
}
|
|
|
})
|
|
|
},
|