逻辑调整

This commit is contained in:
BinBin Song 2025-07-04 10:27:29 +08:00
parent 76e2746e35
commit 7ef1c6dcb5
2 changed files with 8 additions and 6 deletions

View File

@ -6,7 +6,7 @@
"private": false, "private": false,
"scripts": { "scripts": {
"i": "pnpm install", "i": "pnpm install",
"dev": "vite --mode base", "dev": "vite --mode dev",
"front": "vite --mode front", "front": "vite --mode front",
"ts:check": "vue-tsc --noEmit", "ts:check": "vue-tsc --noEmit",
"build:pro": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode pro", "build:pro": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode pro",

View File

@ -128,7 +128,7 @@ label="单据日期" align="center" prop="createTime" :formatter="dateFormatter"
</template> </template>
<template #default="scope"> <template #default="scope">
<el-button <el-button
link type="primary" :loading="printLoading" @click="isPrint( scope.row.id)" link type="primary" :loading="rowPrintLoading[scope.row.id]" @click="isPrint( scope.row.id)"
> >
打印 打印
</el-button> </el-button>
@ -220,9 +220,10 @@ link type="primary" @click="editReceivingStatus(scope.row.id)"
</tr> </tr>
<tr> <tr>
<td colspan="6"></td> <td colspan="5"></td>
<td style="font-weight: bold;">合计</td> <td style="font-weight: bold;">合计</td>
<td style="font-weight: bold;">{{ printData.purchaseAmountSum }}</td> <td style="font-weight: bold;">{{ printData.purchaseAmountSum }}</td>
<td></td>
<td style="font-weight: bold;">{{ printData.estimatedPriceSum }}</td> <td style="font-weight: bold;">{{ printData.estimatedPriceSum }}</td>
</tr> </tr>
</tbody> </tbody>
@ -442,13 +443,14 @@ onMounted(async () => {
}) })
const printLoading = ref(false) const rowPrintLoading = reactive({})
const isPrint = async (id) => { const isPrint = async (id) => {
printLoading.value = true rowPrintLoading[id] = true
var newVar = await PurchaseOrderNoApi.isPrint(id); var newVar = await PurchaseOrderNoApi.isPrint(id);
console.log(newVar) console.log(newVar)
printLoading.value = false rowPrintLoading[id] = false
openPrintDialog(newVar) openPrintDialog(newVar)
// var newVar = await PurchaseOrderNoApi.countReview(id); // var newVar = await PurchaseOrderNoApi.countReview(id);