bug修改,到账开票审核按钮判断条件修改

This commit is contained in:
zhaoxiao
2021-12-23 13:50:45 +08:00
parent 5be36d42f7
commit ae40db5ebb
6 changed files with 63 additions and 48 deletions
@@ -246,7 +246,7 @@
</div> </div>
<!-- /分期信息--> <!-- /分期信息-->
<a-form-item class="table-operator"> <a-form-item class="table-operator">
<a-button type="primary" @click="save" v-preventclick>保存</a-button> <a-button type="primary" @click="save" v-preventclick>提交</a-button>
<a-button @click="handleCancle">取消</a-button> <a-button @click="handleCancle">取消</a-button>
</a-form-item> </a-form-item>
</a-form> </a-form>
@@ -442,39 +442,46 @@ export default {
if (this.confirmLoading) { if (this.confirmLoading) {
return return
} }
this.confirmLoading = true
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
if (this.installmentList && this.installmentList.length > 0) { const that = this
let formData = {} this.$confirm({
formData.installment = this.installmentList title: '确认提交?',
formData.contract = Object.assign(this.model, values) content: '提交后将给存档人发送提醒消息',
console.log('表单提交数据', formData) onOk: function () {
let url = '' that.confirmLoading = true
if (!this.model.id) { if (that.installmentList && that.installmentList.length > 0) {
url = this.url.add let formData = {}
} else { formData.installment = that.installmentList
url = this.url.edit formData.contract = Object.assign(that.model, values)
} console.log('表单提交数据', formData)
postAction(url, formData).then(res => { let url = ''
if (res.success) { if (!that.model.id) {
this.contractId = res.result.id url = that.url.add
this.$message.success(res.message) } else {
// 跳转至支出合同list页面 url = that.url.edit
this.$router.push({ }
path: '/contractManagement/ExpenditureContract' postAction(url, formData).then(res => {
if (res.success) {
that.contractId = res.result.id
that.$message.success(res.message)
// 跳转至支出合同list页面
that.$router.push({
path: '/contractManagement/ExpenditureContract'
})
} else {
that.$message.warning(res.message)
}
}).finally(() => {
setTimeout(() => {
that.confirmLoading = false
}, 1000)
}) })
} else { } else {
this.$message.warning(res.message) that.confirmLoading = false
} }
}).finally(() => { }
setTimeout(() => { })
this.confirmLoading = false
}, 1000)
})
} else {
this.confirmLoading = false
}
} else { } else {
this.confirmLoading = false this.confirmLoading = false
} }
@@ -192,22 +192,29 @@ export default {
this.$message.warn('请至少关联一个项目') this.$message.warn('请至少关联一个项目')
return return
} }
this.confirmLoading = true const that = this
this.associatedProjectLoading = true this.$confirm({
const param = { title: '确认提交?',
id: this.contractId, content: '提交后将给存档人发送提醒消息',
status: 3 onOk: function () {
} that.confirmLoading = true
submitAudit(param).then(res => { that.associatedProjectLoading = true
if (res.success) { const param = {
this.$message.success(res.message) id: that.contractId,
this.$router.go(-1) status: 3
} else { }
this.$message.warn(res.message) submitAudit(param).then(res => {
if (res.success) {
that.$message.success(res.message)
that.$router.go(-1)
} else {
that.$message.warn(res.message)
}
}).finally(() => {
that.confirmLoading = false
that.associatedProjectLoading = false
})
} }
}).finally(() => {
this.confirmLoading = false
this.associatedProjectLoading = false
}) })
} }
} }
@@ -147,7 +147,7 @@ export default {
title: '操作', title: '操作',
dataIndex: 'operation', dataIndex: 'operation',
align: 'center', align: 'center',
width: 300, width: 520,
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' }
} }
], ],
@@ -176,6 +176,7 @@ export default {
title: '职务', title: '职务',
align: 'center', align: 'center',
dataIndex: 'post', dataIndex: 'post',
width: 220,
scopedSlots: { customRender: 'textRow' } scopedSlots: { customRender: 'textRow' }
}, { }, {
title: '手机号', title: '手机号',
@@ -116,7 +116,7 @@
<!-- 待审核状态显示审核按钮--> <!-- 待审核状态显示审核按钮-->
<a @click="auditProof(record)" <a @click="auditProof(record)"
class="audit-btn" class="audit-btn"
v-if="record.paymentStatus === 'toBeReviewed'" v-if="record.checkPaymentStatus === 'toBeReviewed'"
v-has="'incomePaymentAndInvoiving:audit'">审核</a> v-has="'incomePaymentAndInvoiving:audit'">审核</a>
<!-- 未审核通过的会议项目不允许在这里来款--> <!-- 未审核通过的会议项目不允许在这里来款-->
<a @click="incomePayment(record)" <a @click="incomePayment(record)"
@@ -171,7 +171,7 @@ export default {
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center',
fixed: 'right', fixed: 'right',
width: 280, width: 500,
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
} }
], ],
@@ -8,7 +8,7 @@
<a-row> <a-row>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="项目名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="项目名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入项目名称" v-model="queryParam.companyName" :maxLength='50'></a-input> <a-input placeholder="请输入项目名称" v-model="queryParam.projectName" :maxLength='50'></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">