[update] 收入合同项目关联接口联调;支出合同页面

This commit is contained in:
zhaoxiao
2021-09-07 16:05:39 +08:00
parent 527bb2f593
commit 4549af906c
16 changed files with 1269 additions and 114 deletions
@@ -17,12 +17,12 @@
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
</a-form-item>
<a-form-item label="审核" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group v-decorator="['contractStatus', validatorRules.contractStatus]">
<a-radio :value="0">通过</a-radio>
<a-radio :value="1">拒绝</a-radio>
<a-radio-group v-decorator="['contractStatus', validatorRules.contractStatus]" @change="contractAuditStatuChange">
<a-radio :value="3">通过</a-radio>
<a-radio :value="4">拒绝</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item label="拒绝说明" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-form-item label="拒绝说明" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="showExplainRemarks">
<a-textarea
placeholder="请输入拒绝说明"
v-decorator="['explainRemarks', validatorRules.explainRemarks]"
@@ -36,6 +36,9 @@
<script>
import { aduitRevenueContract } from '../../../../api/incomePaymentsApi'
import { USER_INFO } from '../../../../store/mutation-types'
import Vue from 'vue'
import pick from 'lodash.pick'
export default {
name: 'RevenueContractAduitModule',
@@ -47,6 +50,7 @@ export default {
confirmLoading: false,
form: this.$form.createForm(this),
contractId: '',
model: {},
labelCol: {
xs: { span: 24 },
sm: { span: 4 }
@@ -68,7 +72,8 @@ export default {
rules: [{ required: true, message: '请输入拒绝说明' }],
validateTrigger: 'blur'
}
}
},
showExplainRemarks: false
}
},
methods: {
@@ -97,10 +102,30 @@ export default {
this.close()
},
open() {
let userInfo = Vue.ls.get(USER_INFO)
console.log(userInfo)
this.model.userName = userInfo.realname
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'userName'))
})
},
close() {
this.visible = false
},
/**
* 控制拒绝说明显隐
* @param e
*/
contractAuditStatuChange(e) {
console.log(e.target.value)
if (e.target.value === 3) {
this.showExplainRemarks = false
return
}
if (e.target.value === 4) {
this.showExplainRemarks = true
}
}
}
}