From 94fc7aa616090838d703e3bc1576bb68f5c230c8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 12 七月 2025 17:08:43 +0800
Subject: [PATCH] 1.来票台账附件上传接口中未传文件ID
---
src/views/procurementManagement/paymentEntry/index.vue | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue
index 109200d..56b143c 100644
--- a/src/views/procurementManagement/paymentEntry/index.vue
+++ b/src/views/procurementManagement/paymentEntry/index.vue
@@ -30,9 +30,9 @@
<el-button type="primary" @click="openForm('add')">
鏂板浠樻
</el-button>
- <el-button type="danger" plain @click="handleDelete">
- 鍒犻櫎
- </el-button>
+<!-- <el-button type="danger" plain @click="handleDelete">-->
+<!-- 鍒犻櫎-->
+<!-- </el-button>-->
</el-form-item>
</el-col>
</el-row>
@@ -72,7 +72,7 @@
@selection-change="handleSelectionChange"
:tableLoading="tableLoading"
@pagination="pagination"
- :total="total"
+ :total="page.total"
></PIMTable>
</div>
<el-dialog
@@ -136,8 +136,6 @@
<el-col :span="12">
<el-form-item label="鍙戠エ閲戦(鍏�)锛�" prop="invoiceAmount">
<el-input
- type="number"
- :step="0.01"
v-model="form.invoiceAmount"
placeholder="鑷姩濉厖"
clearable
@@ -147,9 +145,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="鏈浠樻閲戦锛�" prop="currentPaymentAmount">
- <el-input
- type="number"
- :step="0.01"
+ <el-input-number :step="0.01" :min="0" style="width: 100%"
v-model="form.currentPaymentAmount"
placeholder="璇疯緭鍏�"
clearable
@@ -245,10 +241,12 @@
{
label: "渚涘簲鍟嗗悕绉�",
prop: "supplierName",
+ width:240
},
{
label: "鍙戠エ鍙�",
prop: "invoiceNumber",
+ width:200
},
{
label: "鍙戠エ閲戦(鍏�)",
@@ -271,6 +269,10 @@
return params ? parseFloat(params).toFixed(2) : 0;
},
},
+ {
+ label: "褰曞叆浜�",
+ prop: "issUer",
+ },
]);
const tableData = ref([]);
const selectedRows = ref([]);
@@ -280,8 +282,8 @@
const page = reactive({
current: 1,
size: 100,
+ total: 0,
});
-const total = ref(0);
// 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁
const operationType = ref("");
@@ -350,7 +352,7 @@
invoiceListPage({ ...searchForm, ...page }).then((res) => {
tableLoading.value = false;
tableData.value = res.records;
- total.value = res.total;
+ page.total = res.total;
});
};
// 琛ㄦ牸閫夋嫨鏁版嵁
@@ -443,6 +445,12 @@
const handleDelete = () => {
let ids = [];
if (selectedRows.value.length > 0) {
+ // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹�
+ const unauthorizedData = selectedRows.value.filter(item => item.issUer !== userStore.nickName);
+ if (unauthorizedData.length > 0) {
+ proxy.$modal.msgWarning("涓嶅彲鍒犻櫎浠栦汉缁存姢鐨勬暟鎹�");
+ return;
+ }
ids = selectedRows.value.map((item) => item.id);
} else {
proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁");
--
Gitblit v1.9.3