[需求变更]-支出合同审核流程(未对接口)

This commit is contained in:
zhaoxiao
2021-10-26 09:27:34 +08:00
parent 089a2ae5ea
commit 2d70be7322
3 changed files with 133 additions and 18 deletions
@@ -53,6 +53,7 @@ export default {
confirmLoading: false,
form: this.$form.createForm(this),
contractId: '',
contractType: 1, // 1---收入合同;2---支出合同
model: {},
labelCol: {
xs: { span: 24 },
@@ -92,7 +93,14 @@ export default {
values.contractId = this.contractId
const formData = Object.assign(this.model, values)
console.log('表单提交数据', formData)
aduitRevenueContract(formData).then((res) => {
// 收入合同、支出合同调用不同接口
let methodFunction
if (this.contractType === 1) {
methodFunction = aduitRevenueContract
} else {
methodFunction = ''
}
methodFunction(formData).then((res) => {
if (res.success) {
this.$message.success(res.message)
this.$emit('ok')