From 8169b80ea64bacb34b5e775882b91535fed483d2 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Thu, 27 Feb 2025 23:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 10 +- pages/index/clearanceService.vue | 175 +++++++++++++++++--------------- pages_order/auth/customsClearApply.vue | 28 +++++ pages_order/order/offerOrBillLading.vue | 5 +- 4 files changed, 131 insertions(+), 87 deletions(-) diff --git a/api/api.js b/api/api.js index eccbbb1..5f6ccb2 100644 --- a/api/api.js +++ b/api/api.js @@ -92,6 +92,13 @@ const config = { limit : 1500, showLoading: true, }, + // 清关申请 + myCustoms: { + url: '/product/myCustoms', + method: 'POST', + limit : 1500, + showLoading: true, + }, // 产品报价 addProduct: { url: '/product/addProduct', @@ -182,7 +189,7 @@ const config = { url: '/index/alprice', method: 'POST', }, - // 我的头像昵称,平台客户电话等信息 + // 获取个人信息 getUserInfo: { url: '/index/index', method: 'POST', @@ -197,6 +204,7 @@ const config = { myOrderlist: { url: '/product/myOrderlist', method: 'GET', + auth : true, }, // 采购商根据订单id查询订单信息 getMyOrderInfo: { diff --git a/pages/index/clearanceService.vue b/pages/index/clearanceService.vue index ddd375d..467186f 100644 --- a/pages/index/clearanceService.vue +++ b/pages/index/clearanceService.vue @@ -1,101 +1,108 @@ \ No newline at end of file diff --git a/pages_order/auth/customsClearApply.vue b/pages_order/auth/customsClearApply.vue index f4b326c..49649c4 100644 --- a/pages_order/auth/customsClearApply.vue +++ b/pages_order/auth/customsClearApply.vue @@ -175,7 +175,35 @@ export default { skyhfileList: [], } }, + onLoad() { + this.myCustoms() + }, methods: { + myCustoms(){ + this.$api('myCustoms', res => { + if(res.code == 200 && res.result){ + this.form = res.result + + delete this.form.id + + this.jbhxxfileList = this.form.basicAccount ? this.form.basicAccount.split(',').map(url => { + return { + url + } + }) : [] + this.skyhfileList = this.form.bankInfo ? this.form.bankInfo.split(',').map(url => { + return { + url + } + }) : [] + this.yyzzfileList = this.form.businessLicense ? this.form.businessLicense.split(',').map(url => { + return { + url + } + }) : [] + } + }) + }, // 申请审核 applyReview() { diff --git a/pages_order/order/offerOrBillLading.vue b/pages_order/order/offerOrBillLading.vue index b048058..c745f02 100644 --- a/pages_order/order/offerOrBillLading.vue +++ b/pages_order/order/offerOrBillLading.vue @@ -464,9 +464,10 @@ return } - if(this.form.productType != 0 && !productType){ + if(!this.productType[this.form.productType]){ uni.showToast({ - title: '请选择商品类型' + title: '请选择商品类型', + icon: 'none' }) return }