|
|
|
|
@ -13,14 +13,6 @@
|
|
|
|
|
>
|
|
|
|
|
新增合同类
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="large"
|
|
|
|
|
class="category-button"
|
|
|
|
|
@click="handleAddContractByCategory('reimbursement')"
|
|
|
|
|
>
|
|
|
|
|
新增报销类
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="large"
|
|
|
|
|
@ -2142,9 +2134,32 @@ export default {
|
|
|
|
|
await addContrant(submitData);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 提交成功后关闭弹窗并刷新列表
|
|
|
|
|
// 提交成功后关闭弹窗
|
|
|
|
|
this.isShowAdd = false;
|
|
|
|
|
|
|
|
|
|
// 获取最新的合同列表
|
|
|
|
|
const res = await getContract({
|
|
|
|
|
page_size: 1,
|
|
|
|
|
page: 1,
|
|
|
|
|
is_auth: 1
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 检查第一条数据的状态
|
|
|
|
|
if (res.list.data && res.list.data.length > 0) {
|
|
|
|
|
const firstContract = res.list.data[0];
|
|
|
|
|
if (firstContract.req_status === 0 &&
|
|
|
|
|
firstContract.purchase_status === 0 &&
|
|
|
|
|
firstContract.invite_status === 0 &&
|
|
|
|
|
firstContract.join_status === 0) {
|
|
|
|
|
// 所有状态都为0,直接唤起付款登记窗口
|
|
|
|
|
this.$refs['paymentRegistration'].getContract(firstContract);
|
|
|
|
|
this.$refs['paymentRegistration'].isShowPaymentRegistration = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 刷新列表
|
|
|
|
|
this.getContracts();
|
|
|
|
|
|
|
|
|
|
Message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: this.isEditMode ? '编辑成功' : '新增成功'
|
|
|
|
|
|