|
@@ -5,7 +5,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="归属公司" prop="corporationId">
|
|
|
- <el-select v-model="formData.data.corporationId" placeholder="请选择" filterable style="width: 100%">
|
|
|
+ <el-select v-model="formData.data.corporationId" placeholder="请选择" filterable style="width: 100%" @change="changeType">
|
|
|
<el-option v-for="item in companyData" :label="item.name" :value="item.id"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -602,16 +602,6 @@ const getDictData = () => {
|
|
|
currencyType.value = res.rows;
|
|
|
});
|
|
|
proxy
|
|
|
- .post("/accountRequestFunds/page", {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 999,
|
|
|
- type: "1",
|
|
|
- writeOffStatus: "0",
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- advanceList.value = res.rows;
|
|
|
- });
|
|
|
- proxy
|
|
|
.get("/tenantUser/list", {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10000,
|
|
@@ -651,7 +641,7 @@ const handleChangeAmount = () => {
|
|
|
for (let i = 0; i < formData.data.accountRequestFundsDetailList.length; i++) {
|
|
|
const e = formData.data.accountRequestFundsDetailList[i];
|
|
|
if (e.amount) {
|
|
|
- sum = Number(parseFloat(Number(sum) + Number(e.amount)).toFixed(2))
|
|
|
+ sum = Number(parseFloat(Number(sum) + Number(e.amount)).toFixed(2));
|
|
|
}
|
|
|
}
|
|
|
formData.data.total = sum;
|
|
@@ -693,7 +683,7 @@ const judgeStatus = () => {
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
-};;
|
|
|
+};
|
|
|
const oldType = ref("");
|
|
|
const changeType = () => {
|
|
|
if (formData.data.type === "3" || oldType.value === "3") {
|
|
@@ -716,6 +706,19 @@ const changeType = () => {
|
|
|
}
|
|
|
}
|
|
|
oldType.value = proxy.deepClone(formData.data.type);
|
|
|
+ proxy
|
|
|
+ .post("/accountRequestFunds/page", {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 999,
|
|
|
+ type: "1",
|
|
|
+ writeOffStatus: "0",
|
|
|
+ corporationId: formData.data.corporationId,
|
|
|
+ status: "30",
|
|
|
+ createUser: useUserStore().user.userId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ advanceList.value = res.rows;
|
|
|
+ });
|
|
|
};
|
|
|
const openPrint = ref(false);
|
|
|
const printDetails = ref({});
|