逻辑调整
This commit is contained in:
parent
76e2746e35
commit
7ef1c6dcb5
@ -6,7 +6,7 @@
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"i": "pnpm install",
|
||||
"dev": "vite --mode base",
|
||||
"dev": "vite --mode dev",
|
||||
"front": "vite --mode front",
|
||||
"ts:check": "vue-tsc --noEmit",
|
||||
"build:pro": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode pro",
|
||||
|
@ -128,7 +128,7 @@ label="单据日期" align="center" prop="createTime" :formatter="dateFormatter"
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<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>
|
||||
@ -220,9 +220,10 @@ link type="primary" @click="editReceivingStatus(scope.row.id)"
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6"></td>
|
||||
<td colspan="5"></td>
|
||||
<td style="font-weight: bold;">合计</td>
|
||||
<td style="font-weight: bold;">{{ printData.purchaseAmountSum }}</td>
|
||||
<td></td>
|
||||
<td style="font-weight: bold;">{{ printData.estimatedPriceSum }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -442,13 +443,14 @@ onMounted(async () => {
|
||||
})
|
||||
|
||||
|
||||
const printLoading = ref(false)
|
||||
const rowPrintLoading = reactive({})
|
||||
|
||||
|
||||
const isPrint = async (id) => {
|
||||
printLoading.value = true
|
||||
rowPrintLoading[id] = true
|
||||
var newVar = await PurchaseOrderNoApi.isPrint(id);
|
||||
console.log(newVar)
|
||||
printLoading.value = false
|
||||
rowPrintLoading[id] = false
|
||||
openPrintDialog(newVar)
|
||||
|
||||
// var newVar = await PurchaseOrderNoApi.countReview(id);
|
||||
|
Loading…
Reference in New Issue
Block a user