[需求变更]-支出合同审核流程(未对接口)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user