|
@@ -683,6 +683,48 @@ const formConfig = computed(() => {
|
|
|
label: "合同到账",
|
|
|
}
|
|
|
: {},
|
|
|
+ {
|
|
|
+ type: "radio",
|
|
|
+ prop: "isTransaction",
|
|
|
+ label: "是否往来",
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ fn: (val) => {
|
|
|
+ formData.data.transactionDeptId = ''
|
|
|
+ formConfig.value[7].data = transactionDepartmentData.value
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ prop: "transactionDeptId",
|
|
|
+ label: "往来单位",
|
|
|
+ data: [],
|
|
|
+ isShow: formData.data.isTransaction == "1",
|
|
|
+ isLoad: {
|
|
|
+ //链接
|
|
|
+ url: "transactionDepartment/list?pageNum=1&pageSize=999",
|
|
|
+ method: "get",
|
|
|
+ //返回数据的路径默认返回data
|
|
|
+ resUrl: "data",
|
|
|
+ //参数
|
|
|
+ req: {},
|
|
|
+ //返回数据的key
|
|
|
+ labelKey: "name",
|
|
|
+ //返回数据的value
|
|
|
+ labelVal: "id",
|
|
|
+ },
|
|
|
+ fn: (val) => {
|
|
|
+ console.log(formConfig.value)
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
type: "title",
|
|
|
title: "对方信息",
|
|
@@ -717,6 +759,20 @@ const formConfig = computed(() => {
|
|
|
},
|
|
|
];
|
|
|
});
|
|
|
+const transactionDepartmentData = ref([])
|
|
|
+const getTransactionDepartment = () => {
|
|
|
+ return proxy
|
|
|
+ .get("transactionDepartment/list?pageNum=1&pageSize=999", {})
|
|
|
+ .then((res) => {
|
|
|
+ transactionDepartmentData.value = res.data.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ });
|
|
|
+};
|
|
|
+getTransactionDepartment()
|
|
|
const formConfigOne = computed(() => {
|
|
|
return [
|
|
|
{
|
|
@@ -811,6 +867,10 @@ const rules = ref({
|
|
|
{ required: true, message: "请选择合同是否到账", trigger: "change" },
|
|
|
],
|
|
|
amount: [{ required: true, message: "请输入金额", trigger: "blur" }],
|
|
|
+ inAccountManagementId: [{ required: true, message: "请选择账户", trigger: "change" }],
|
|
|
+ inAmount: [{ required: true, message: "请输入金额", trigger: "blur" }],
|
|
|
+ isTransaction: [{ required: true, message: "请选择是否往来", trigger: "change" }],
|
|
|
+ transactionDeptId: [{ required: true, message: "请选择往来单位", trigger: "change" }],
|
|
|
// name: [{ required: true, message: "请输入账户名称", trigger: "blur" }],
|
|
|
// openingBank: [{ required: true, message: "请输入开户银行", trigger: "blur" }],
|
|
|
// accountOpening: [{ required: true, message: "请输入银行账号", trigger: "blur" }],
|
|
@@ -831,6 +891,7 @@ const rulesOne = ref({
|
|
|
const openModal = (val) => {
|
|
|
modalType.value = val;
|
|
|
formData.data = {
|
|
|
+ isTransaction:'1',
|
|
|
transactionTime: moment().format("yyyy-MM-DD HH:mm:ss"),
|
|
|
};
|
|
|
loadingDialog.value = false;
|