|
@@ -68,14 +68,6 @@
|
|
|
<text class="label">商户名称</text>
|
|
|
<text class="desc">{{ item.enterpriseName }}</text>
|
|
|
</view>
|
|
|
- <!-- <view class="item">
|
|
|
- <text class="label">商品额度</text>
|
|
|
- <text class="desc">{{ item.glimit }}</text>
|
|
|
- </view> -->
|
|
|
- <!-- <view class="item">
|
|
|
- <text class="label">商品序号</text>
|
|
|
- <text class="desc">{{ item.gno }}</text>
|
|
|
- </view> -->
|
|
|
<view class="item">
|
|
|
<text class="label">交易地区名称</text>
|
|
|
<text class="desc">{{ item.tradeAreaName }}</text>
|
|
@@ -99,7 +91,7 @@
|
|
|
<text class="desc">{{ item2.preNo }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <text class="label">关联进境申报单编号</text>
|
|
|
+ <text class="label">进境申报单编号</text>
|
|
|
<text class="desc">{{ item2.itrdclDeclareId }}</text>
|
|
|
</view>
|
|
|
<view class="item">
|
|
@@ -129,7 +121,7 @@
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
<text class="label">商品额度</text>
|
|
|
- <text class="desc">{{ item2.gLimit }}</text>
|
|
|
+ <text class="desc">{{ item2.glimit }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="item">
|
|
@@ -190,6 +182,12 @@
|
|
|
<text class="label">企业名称</text>
|
|
|
<text class="desc">{{ item2.entName }}</text>
|
|
|
</view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="lable">互助委托协议</view>
|
|
|
+ <view v-for="(url,index) in imgList">
|
|
|
+ <image :src="ip + url" style="margin-top: 20px; width: 200px;"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="more" @click="expand = !expand">
|
|
|
<text class="icon"></text>
|
|
@@ -211,6 +209,8 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ ip: this.http.ip,
|
|
|
+ imgList: [],
|
|
|
expand: false, //展开
|
|
|
current: 0,
|
|
|
item: {},
|
|
@@ -218,7 +218,8 @@ export default {
|
|
|
orderId: '',
|
|
|
peopleConfirmStatus: '',
|
|
|
cooperEntrustStatus: '',
|
|
|
- applyConfirmStatus: ''
|
|
|
+ applyConfirmStatus: '',
|
|
|
+ cooper_entrust: 2
|
|
|
};
|
|
|
},
|
|
|
onLoad(e) {
|
|
@@ -256,26 +257,76 @@ export default {
|
|
|
uni.showToast({ title: '订单确认成功' });
|
|
|
this.current = 1;
|
|
|
uni.setNavigationBarTitle({ title: '互助委托确认' });
|
|
|
+ this.getData2();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
if (this.current == 1){
|
|
|
- this.http.request({
|
|
|
- url: '/level-one-server/app/TbOrder/cooperOrder',
|
|
|
- method: 'POST',
|
|
|
- data: { orderId: this.item.id },
|
|
|
- success: res => {
|
|
|
- uni.showToast({ title: '互助委托确认成功' });
|
|
|
- this.current = 2;
|
|
|
- uni.setNavigationBarTitle({ title: '进口申报确认' });
|
|
|
- }
|
|
|
- });
|
|
|
+ // 是否校验互助委托书【1校验 2不校验】
|
|
|
+ this.http.request({
|
|
|
+ url: '/sp-admin/SpCfg/getCfg',
|
|
|
+ method: 'POST',
|
|
|
+ data: { cfgName: 'cooper_entrust_cfg' },
|
|
|
+ success: res => {
|
|
|
+ this.cooper_entrust = JSON.parse(res.data.data).cooper_entrust
|
|
|
+
|
|
|
+ if(this.cooper_entrust == 1) {
|
|
|
+ console.log("---1---this.imgList.length="+this.imgList.length)
|
|
|
+ if(this.imgList.length == 0) {
|
|
|
+ console.log("---2---")
|
|
|
+ uni.showModal({
|
|
|
+ content: "请上传互助委托协议!",
|
|
|
+ success: res => {
|
|
|
+ if(res.confirm) {
|
|
|
+ uni.navigateTo({url: '/pages/personal/commissionAgreement?id='+this.item2.id})
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ console.log("---3---"+this.item2.judgeStatus)
|
|
|
+ if(this.item2.judgeStatus == 0) {
|
|
|
+ console.log("---4---")
|
|
|
+ uni.showModal({
|
|
|
+ content: "当前订单的互助委托协议未审核!请联系后台管理员进行审核!"
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(this.item2.judgeStatus == 2) {
|
|
|
+ console.log("---5---")
|
|
|
+ uni.showModal({
|
|
|
+ content: "当前订单的互助委托协议审核未通过!请重新上传!",
|
|
|
+ success: res => {
|
|
|
+ if(res.confirm) {
|
|
|
+ uni.navigateTo({url: '/pages/personal/commissionAgreement?id='+this.item2.id})
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ this.http.request({
|
|
|
+ url: '/level-one-server/app/TbOrder/cooperOrder',
|
|
|
+ method: 'POST',
|
|
|
+ data: { orderId: this.orderId },
|
|
|
+ success: res => {
|
|
|
+ uni.showToast({ title: '互助委托确认成功' });
|
|
|
+ this.current = 2;
|
|
|
+ uni.setNavigationBarTitle({ title: '进口申报确认' });
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
if (this.current == 2){
|
|
|
this.http.request({
|
|
|
url: '/level-one-server/app/TbOrder/applyOrder',
|
|
|
method: 'POST',
|
|
|
- data: { orderId: this.item.id },
|
|
|
+ data: { orderId: this.orderId },
|
|
|
success: res => {
|
|
|
uni.showToast({ title: '进口申报确认成功' });
|
|
|
setTimeout(() => {
|
|
@@ -300,11 +351,12 @@ export default {
|
|
|
data: { orderId: this.orderId },
|
|
|
success: res => {
|
|
|
this.item2 = res.data.data;
|
|
|
+ JSON.parse(this.item2.cooperEntrustImg).map(item => this.imgList.push(item))
|
|
|
+ console.log("-----5-----"+this.imgList)
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
ok() {
|
|
|
-
|
|
|
//根据不同的步骤提交不同的url或者状态参数
|
|
|
if (this.current == 0) {
|
|
|
uni.showModal({
|
|
@@ -313,7 +365,7 @@ export default {
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
this.confirmFn();
|
|
|
- return;
|
|
|
+ //return;
|
|
|
//跳转到人脸认证
|
|
|
uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
|
|
|
}
|
|
@@ -327,7 +379,7 @@ export default {
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
this.confirmFn();
|
|
|
- return;
|
|
|
+ //return;
|
|
|
//跳转到人脸认证
|
|
|
uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
|
|
|
}
|
|
@@ -341,7 +393,7 @@ export default {
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
this.confirmFn();
|
|
|
- return;
|
|
|
+ //return;
|
|
|
//跳转到人脸认证
|
|
|
uni.navigateTo({url:'/pages/face/faceRegister?type=2'})
|
|
|
}
|