|
|
|
|
@ -195,6 +195,23 @@
|
|
|
|
|
<el-input v-model="form.capitalizedAmount" placeholder="请输入合同大写金额" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="付款账户" prop="paymentAccountId">
|
|
|
|
|
<el-select v-model="form.paymentAccountId" placeholder="请选择付款账户" :disabled="isFormDisabled"
|
|
|
|
|
clearable >
|
|
|
|
|
<el-option v-for="item in paymentAccountList" :key="item.paymentAccountId"
|
|
|
|
|
:label="`${item.accountType || ''} - ${item.accountNumber || ''}`"
|
|
|
|
|
:value="item.paymentAccountId" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="合同总价" prop="totalPrice">
|
|
|
|
|
<el-input v-model="form.totalPrice" placeholder="根据合同物料自动计算" disabled>
|
|
|
|
|
<template #append>元</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="附件" prop="ossId">
|
|
|
|
|
<!-- <el-button type="primary" plain icon="Upload" @click="handleFile">上传合同附件</el-button>-->
|
|
|
|
|
@ -209,13 +226,6 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="合同总价" prop="totalPrice">
|
|
|
|
|
<el-input v-model="form.totalPrice" placeholder="根据合同物料自动计算" disabled>
|
|
|
|
|
<template #append>元</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" :disabled="isFormDisabled" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
@ -608,6 +618,7 @@ import { contractAddMaterialInfo } from '@/api/oa/base/materialInfo';
|
|
|
|
|
import { MaterialInfoForm } from '@/api/oa/base/materialInfo/types';
|
|
|
|
|
import { listPaymentStage } from '@/api/oa/base/paymentStage';
|
|
|
|
|
import type { PaymentStageVO } from '@/api/oa/base/paymentStage/types';
|
|
|
|
|
import { getCrmPaymentAccountList } from '@/api/oa/crm/paymentAccount';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
@ -620,11 +631,12 @@ const {
|
|
|
|
|
business_direction,
|
|
|
|
|
contract_flag,
|
|
|
|
|
contract_type,
|
|
|
|
|
account_type,
|
|
|
|
|
contract_status,
|
|
|
|
|
material_flag,
|
|
|
|
|
contract_template_flag
|
|
|
|
|
} = toRefs<any>(
|
|
|
|
|
proxy?.useDict('contract_category', 'business_direction', 'contract_flag', 'contract_type', 'contract_status', 'material_flag', 'contract_template_flag')
|
|
|
|
|
proxy?.useDict('contract_category', 'business_direction', 'contract_flag', 'contract_type', 'account_type', 'contract_status', 'material_flag', 'contract_template_flag')
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const buttonLoading = ref(false);
|
|
|
|
|
@ -714,6 +726,13 @@ const getPaymentStageListSelect = async () => {
|
|
|
|
|
paymentStageList.value = res.rows || [];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** 付款账户下拉列表 */
|
|
|
|
|
const paymentAccountList = ref<any[]>([]);
|
|
|
|
|
const getPaymentAccountListSelect = async () => {
|
|
|
|
|
const res = await getCrmPaymentAccountList({});
|
|
|
|
|
paymentAccountList.value = res.data || [];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 合同物料对话框
|
|
|
|
|
const materialDialog = reactive({
|
|
|
|
|
visible: false,
|
|
|
|
|
@ -882,6 +901,7 @@ const initFormData: ContractInfoFormEx = {
|
|
|
|
|
flowStatus: undefined,
|
|
|
|
|
templateId: undefined,
|
|
|
|
|
ossId: undefined,
|
|
|
|
|
paymentAccountId: undefined,
|
|
|
|
|
paymentMethod: undefined,
|
|
|
|
|
signatureAppendix: undefined,
|
|
|
|
|
taxRate: undefined,
|
|
|
|
|
@ -1329,6 +1349,7 @@ const loadSelectOptions = () => {
|
|
|
|
|
getDeptInfoListSelect();
|
|
|
|
|
getCustomerInfoListSelect();
|
|
|
|
|
getPrintTemplateListSelect();
|
|
|
|
|
getPaymentAccountListSelect();
|
|
|
|
|
getUserInfoListSelect();
|
|
|
|
|
getPaymentStageListSelect();
|
|
|
|
|
};
|
|
|
|
|
|