From c6fea1cc0d1d0eac39f71dc2f40971f99758c7f3 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Mon, 19 Oct 2026 14:20:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E4=B8=8E=E6=8A=A5=E4=BB=B7=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去掉货到付款和发货凭证,尾款或全款时提示交易已完结;已购单据报价次数也可查看买家信息。 Co-authored-by: Cursor --- .gitignore | 73 +------------- pages/enquiry/quote.vue | 26 +++++ pages/order/components/makePay.vue | 96 +++++-------------- pages/order/components/payList.vue | 23 +++-- pages/order/order.vue | 2 +- pages/user/components/balance-log.vue | 53 ++++++---- .../client/enquiry/quote/kh/confirmQuote.js | 2 +- .../router/service/user/pub/login.js | 1 + 8 files changed, 104 insertions(+), 172 deletions(-) diff --git a/.gitignore b/.gitignore index ea7f0ea..2f0d4c5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,75 +5,4 @@ /.idea /uniCloud-aliyun/cloudfunctions/router/node_modules/ /pnpm-lock.yaml -/金久信源码/金久信数据库/fadada-verify-record.json -/金久信源码/金久信数据库/jjx-account.json -/金久信源码/金久信数据库/jjx-ad.json -/金久信源码/金久信数据库/jjx-album.json -/金久信源码/金久信数据库/jjx-article.json -/金久信源码/金久信数据库/jjx-article-category.json -/金久信源码/金久信数据库/jjx-article-collect.json -/金久信源码/金久信数据库/jjx-article-download.json -/金久信源码/金久信数据库/jjx-balance.json -/金久信源码/金久信数据库/jjx-balance-log.json -/金久信源码/金久信数据库/jjx-business-card.json -/金久信源码/金久信数据库/jjx-business-contact.json -/金久信源码/金久信数据库/jjx-cart.json -/金久信源码/金久信数据库/jjx-certificate.json -/金久信源码/金久信数据库/jjx-company-manage-change-log.json -/金久信源码/金久信数据库/jjx-contract.json -/金久信源码/金久信数据库/jjx-contract-template.json -/金久信源码/金久信数据库/jjx-coop-config.json -/金久信源码/金久信数据库/jjx-dict.json -/金久信源码/金久信数据库/jjx-enquiry-attributes.json -/金久信源码/金久信数据库/jjx-enquiry-category.json -/金久信源码/金久信数据库/jjx-enquiry-package.json -/金久信源码/金久信数据库/jjx-enquiry-quote.json -/金久信源码/金久信数据库/jjx-enquiry-sheet.json -/金久信源码/金久信数据库/jjx-enquiry-template.json -/金久信源码/金久信数据库/jjx-ensure-config.json -/金久信源码/金久信数据库/jjx-factory.json -/金久信源码/金久信数据库/jjx-goods.json -/金久信源码/金久信数据库/jjx-goods-category.json -/金久信源码/金久信数据库/jjx-goods-cooperate.json -/金久信源码/金久信数据库/jjx-industry.json -/金久信源码/金久信数据库/jjx-message.json -/金久信源码/金久信数据库/jjx-message-config.json -/金久信源码/金久信数据库/jjx-old.json -/金久信源码/金久信数据库/jjx-old-category.json -/金久信源码/金久信数据库/jjx-old-quote.json -/金久信源码/金久信数据库/jjx-order.json -/金久信源码/金久信数据库/jjx-order-goods.json -/金久信源码/金久信数据库/jjx-order-pay-list.json -/金久信源码/金久信数据库/jjx-order-selfProduct.json -/金久信源码/金久信数据库/jjx-other-article.json -/金久信源码/金久信数据库/jjx-other-article-category.json -/金久信源码/金久信数据库/jjx-process-category.json -/金久信源码/金久信数据库/jjx-process-quote.json -/金久信源码/金久信数据库/jjx-process-sheet.json -/金久信源码/金久信数据库/jjx-quote-num-config.json -/金久信源码/金久信数据库/jjx-qyb.json -/金久信源码/金久信数据库/jjx-self-support.json -/金久信源码/金久信数据库/jjx-self-support-quote-list.json -/金久信源码/金久信数据库/jjx-sign-pay_list.json -/金久信源码/金久信数据库/jjx-site-config.json -/金久信源码/金久信数据库/jjx-spot-ad.json -/金久信源码/金久信数据库/jjx-spot-amount.json -/金久信源码/金久信数据库/jjx-spot-category.json -/金久信源码/金久信数据库/jjx-spot-goods.json -/金久信源码/金久信数据库/jjx-steal-factory.json -/金久信源码/金久信数据库/jjx-user-address.json -/金久信源码/金久信数据库/jjx-user-article.json -/金久信源码/金久信数据库/jjx-user-contract.json -/金久信源码/金久信数据库/jjx-user-level.json -/金久信源码/金久信数据库/jjx-user-quote-num.json -/金久信源码/金久信数据库/opendb-admin-log.json -/金久信源码/金久信数据库/opendb-admin-menus.json -/金久信源码/金久信数据库/opendb-app-list.json -/金久信源码/金久信数据库/opendb-verify-codes.json -/金久信源码/金久信数据库/uni-id-log.json -/金久信源码/金久信数据库/uni-id-permissions.json -/金久信源码/金久信数据库/uni-id-roles.json -/金久信源码/金久信数据库/uni-id-users.json -/金久信源码/金久信数据库/vk-files.json -/金久信源码/金久信数据库/vk-files-categories.json -/金久信源码/金久信数据库/vk-global-data.json +/金久信源码/ \ No newline at end of file diff --git a/pages/enquiry/quote.vue b/pages/enquiry/quote.vue index 49978fc..fe902bb 100644 --- a/pages/enquiry/quote.vue +++ b/pages/enquiry/quote.vue @@ -111,6 +111,7 @@ export default { }, enquiryId: null, reloaded: false, + sheetQuoteNum: 0, // 表单相关开始----------------------------------------------------------- form1: { // 表单请求数据,此处可以设置默认值 @@ -175,6 +176,7 @@ export default { this.enquiryId = enquiryId this.form1.data.sheetId = enquiryId this.userInfo = vk.getVuex('$user.userInfo') || {userLevel: 0} + this.refreshUserQuotePrivilege() this.getEnquiryDetail() }, computed: { @@ -184,6 +186,7 @@ export default { canViewBuyerInfo() { const remainQuoteNum = Number(this.userInfo && this.userInfo.remainQuoteNum) || 0 + const sheetQuoteNum = Number(this.sheetQuoteNum) || 0 const quoteExpiredAt = this.userInfo && this.userInfo.quoteExpiredAt const monthlyQuoteActive = !!(quoteExpiredAt && dayjs(quoteExpiredAt).isAfter(dayjs())) return this.isLoggedIn && ( @@ -191,6 +194,7 @@ export default { this.sheet.hasQuote || Number(this.userInfo.userLevel) > 0 || remainQuoteNum > 0 || + sheetQuoteNum > 0 || monthlyQuoteActive ) }, @@ -245,6 +249,27 @@ export default { } }, + async refreshUserQuotePrivilege() { + if (!this.isLoggedIn) return + try { + const {userInfo} = await vk.userCenter.getCurrentUserInfo() + this.userInfo = userInfo || {userLevel: 0} + let sheetQuoteNum = 0 + if (this.enquiryId) { + const res = await vk.callFunction({ + url: 'client/user/kh/getUserQuoteNumList', + data: { + type: 'enquiry', + sheetId: this.enquiryId, + }, + }) + if (res && res.data && res.data.num) sheetQuoteNum = Number(res.data.num) || 0 + } + this.sheetQuoteNum = sheetQuoteNum + } catch (e) { + // ignore + } + }, // 提交报价单 async submit() { @@ -308,6 +333,7 @@ export default { } }, onShow() { + this.refreshUserQuotePrivilege() this.reloaded = false setTimeout(() => { this.reloaded = true diff --git a/pages/order/components/makePay.vue b/pages/order/components/makePay.vue index b1a8ce7..a79da4c 100644 --- a/pages/order/components/makePay.vue +++ b/pages/order/components/makePay.vue @@ -31,33 +31,9 @@ - + + + @@ -143,51 +119,29 @@ export default { type: 'error', message: '请输入支付金额' }) - if (this.payInfo.isExpress && this.payInfo.expressPhoto.length === 0) return this.$message({ - type: 'error', - message: '请上传凭证' + await vk.callFunction({ + url: 'client/order/kh/makePay', + title: '请求中...', + data: {payInfo: this.payInfo} }) - // if (this.payInfo.isExpress && !this.payInfo.expressName) return this.$message({ - // type: 'error', - // message: '请输入物流公司' - // }) - // if (this.payInfo.isExpress && !this.payInfo.expressNo) return this.$message({ - // type: 'error', - // message: '请输入物流单号' - // }) - if (this.payInfo.isExpress) { - this.$confirm('发货状态一旦确定无法修改,请谨慎操作', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(async () => { - await vk.callFunction({ - url: 'client/order/kh/makePay', - title: '请求中...', - data: {payInfo: this.payInfo} - }) - this.$message({ - type: 'success', - message: '支付单创建成功' - }) - this.close() - }) - } else { - await vk.callFunction({ - url: 'client/order/kh/makePay', - title: '请求中...', - data: {payInfo: this.payInfo} - }) - this.$message({ - type: 'success', - message: '支付单创建成功' - }) - this.close() - } + this.$message({ + type: 'success', + message: '支付单创建成功' + }) + this.close() }, changeType() { - this.payInfo.isExpress = ['货到付款', '全款'].includes(this.payInfo.type) - console.log(this.payInfo.isExpress, this.payInfo.type) + if (['尾款', '全款'].includes(this.payInfo.type)) { + this.$confirm( + '选择尾款或全款支付申请,均代表本次交易已完结,对应本次交易最终货款的结算完成。提交申请后,系统无法再次发起付款申请;若发生误申请情形,仅可通过交易双方协商线下渠道协商办理支付,请您谨慎选择。', + '重要提示', + { + confirmButtonText: '确认为最终结算', + showCancelButton: false, + type: 'warning' + } + ) + } }, isNotaryPaidOrder() { return Number(this.orderInfo.signMethod) === 0 @@ -196,8 +150,8 @@ export default { }, isPayTypeDisabled(item) { if (this.isNotaryPaidOrder()) return false - return (!['预付款', '货到付款', '全款'].includes(item) && this.orderInfo.payStatus === 0) - || (['预付款', '货到付款', '全款'].includes(item) && this.orderInfo.payStatus > 0) + return (!['预付款', '全款'].includes(item) && this.orderInfo.payStatus === 0) + || (['预付款', '全款'].includes(item) && this.orderInfo.payStatus > 0) } }, mounted() { diff --git a/pages/order/components/payList.vue b/pages/order/components/payList.vue index dd72813..db9d3a3 100644 --- a/pages/order/components/payList.vue +++ b/pages/order/components/payList.vue @@ -72,22 +72,27 @@ - - - {{ item.remark ? item.remark : '无' }} {{ item.buyerRemark ? item.buyerRemark : '无' }} - + + 无 + + + 无 diff --git a/pages/order/order.vue b/pages/order/order.vue index e7bbde6..973c3c6 100644 --- a/pages/order/order.vue +++ b/pages/order/order.vue @@ -427,7 +427,7 @@ export default { keyword: '', orderPayList: [], payInfo: {}, - payTypeList: ['预付款', '进度款', '尾款', '货到付款', '全款'], + payTypeList: ['预付款', '进度款', '尾款', '全款'], topExpiredAt: '', userInfo: null, rate: 0, diff --git a/pages/user/components/balance-log.vue b/pages/user/components/balance-log.vue index a18a280..fcdd354 100644 --- a/pages/user/components/balance-log.vue +++ b/pages/user/components/balance-log.vue @@ -1,23 +1,23 @@