应付计费邮编改造
This commit is contained in:
@@ -281,10 +281,12 @@
|
||||
|
||||
<script setup name="PayBill">
|
||||
import { getToken } from '@/utils/auth'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import { listSupplier } from '@/api/customersuppliermanagement/supplierinfo/supplier'
|
||||
import { listPayBill, getPayBill, previewPayBill, generatePayBill, voidPayBill, submitPayBill, approvePayBill, rejectPayBill, savePayBillDiff, acceptPayBillDiff, removePayBillLine, savePayBillFile, deletePayBillFile, redPayBill, savePayFinance, exportPayStatement, importPaySupplier } from '@/api/price/payBill'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const userStore = useUserStore()
|
||||
const loading = ref(false)
|
||||
const rows = ref([])
|
||||
const total = ref(0)
|
||||
@@ -480,7 +482,8 @@ function submitRow(row) {
|
||||
}
|
||||
|
||||
function approveRow(row) {
|
||||
proxy.$modal.confirm('审核通过?蓝字需要发票价税合计、税额和账单一致,审核人不能是提交人。').then(() => approvePayBill(row.billId)).then(() => {
|
||||
const limit = String(userStore.id) === '1' ? '' : ',审核人不能是提交人'
|
||||
proxy.$modal.confirm('审核通过?蓝字需要发票价税合计、税额和账单一致' + limit + '。').then(() => approvePayBill(row.billId)).then(() => {
|
||||
proxy.$modal.msgSuccess('已审核通过')
|
||||
loadList()
|
||||
if (detail.value?.billId === row.billId) reloadDetail()
|
||||
@@ -558,6 +561,11 @@ function onFileUploaded(res) {
|
||||
fileUrl: res.url || res.fileName
|
||||
}).then(() => {
|
||||
proxy.$modal.msgSuccess('凭证已上传')
|
||||
fileForm.fileType = 'INVOICE'
|
||||
fileForm.invoiceNo = ''
|
||||
fileForm.amount = null
|
||||
fileForm.taxAmount = 0
|
||||
fileForm.sellerName = ''
|
||||
reloadDetail()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user