修改分账流程传值

添加流程校验逻辑
This commit is contained in:
赵毅 2025-12-15 10:06:06 +08:00
parent a0c801ee61
commit 6117026fbb
6 changed files with 42 additions and 9 deletions

View File

@ -9,4 +9,5 @@ export const apiArr = {
queryMerchant: "/api/v2/wechat/lkl-split-business/query-merchant", //商户进件信息查询 queryMerchant: "/api/v2/wechat/lkl-split-business/query-merchant", //商户进件信息查询
applyLedgerMer: "/api/v2/wechat/lkl-split-business/apply-ledger-mer", //商户分账业务开通申请 applyLedgerMer: "/api/v2/wechat/lkl-split-business/apply-ledger-mer", //商户分账业务开通申请
queryLedgerMer: "/api/v2/wechat/lkl-split-business/query-ledger-mer", //商户分账信息查询 queryLedgerMer: "/api/v2/wechat/lkl-split-business/query-ledger-mer", //商户分账信息查询
progresss: "/api/v2/wechat/lkl-split-business/progress", //商户分账进度查询
}; };

View File

@ -16,6 +16,8 @@ export const apiArr = {
addAddress: '/api/v2/wechat/commodity/receiving_address/add', // 收货地址添加 addAddress: '/api/v2/wechat/commodity/receiving_address/add', // 收货地址添加
addAddressList: '/api/v2/wechat/commodity/receiving_address', // 收货地址列表 addAddressList: '/api/v2/wechat/commodity/receiving_address', // 收货地址列表
queryOrder: '/api/v2/wechat/commodity/order/trade_query', // 查询订单 queryOrder: '/api/v2/wechat/commodity/order/trade_query', // 查询订单
splitLedger: '/api/v2/wechat/commodity/order/split-ledger', // 分账
orderUpdate: '/api/v2/wechat/commodity/order/update',
getComment: '/api/v2/wechat/commodity/review/list', // 获取评论 getComment: '/api/v2/wechat/commodity/review/list', // 获取评论
mergePreorder: '/api/v2/wechat/commodity/order/preorder', // 商品订单合并预下单 mergePreorder: '/api/v2/wechat/commodity/order/preorder', // 商品订单合并预下单

View File

@ -296,7 +296,7 @@ export default {
return { return {
// //
formData: { formData: {
mch_id: '000', // ID mch_id: uni.getStorageSync('mchId'), // ID
merRegName: '', // merRegName: '', //
merRegDistCode: '', // merRegDistCode: '', //
merRegAddr: '', // merRegAddr: '', //

View File

@ -3,11 +3,11 @@
<form class="acceptor-form" @submit.prevent="submitForm"> <form class="acceptor-form" @submit.prevent="submitForm">
<!-- 基本信息 --> <!-- 基本信息 -->
<view class="form-section"> <view class="form-section">
<view class="form-item"> <!-- <view class="form-item">
<label class="form-label required">商户号</label> <label class="form-label required">商户号</label>
<input type="number" class="form-input" v-model.number="formData.mch_id" placeholder="请输入商户号" <input type="number" class="form-input" v-model.number="formData.mch_id" placeholder="请输入商户号"
required> required>
</view> </view> -->
<view class="form-item"> <view class="form-item">
<label class="form-label">拉卡拉内部商户号</label> <label class="form-label">拉卡拉内部商户号</label>
@ -86,7 +86,7 @@ export default {
return { return {
// //
formData: { formData: {
mch_id: null, // mch_id: uni.getStorageSync('mchId'), //
merInnerNo: '', // merInnerNo: '', //
merCupNo: '', // merCupNo: '', //
contactMobile: '', // contactMobile: '', //

View File

@ -134,7 +134,7 @@ export default {
data() { data() {
return { return {
formData: { formData: {
mch_id: '000', mch_id: uni.getStorageSync('mchId'),
ec_type_code: 'Ec007', ec_type_code: 'Ec007',
cert_type: '', cert_type: '',
cert_name: '', cert_name: '',

View File

@ -42,10 +42,10 @@
<view class="iconStyle content2"> <view class="iconStyle content2">
<u-grid col="4" :border="false"> <u-grid col="4" :border="false">
<u-grid-item v-for="(item, index) in baseList" :key="index" @click="click(item)"> <u-grid-item v-for="(item, index) in baseList" :key="index" @click="click(item)">
<view class="grid-item"> <view class="grid-item" v-if="item.isShow">
<image class="nav_icon" :src="item.image" mode=""></image> <image class="nav_icon" :src="item.image" mode=""></image>
</view> </view>
<text class="grid-text">{{ item.name }}</text> <text class="grid-text" v-if="item.isShow">{{ item.name }}</text>
</u-grid-item> </u-grid-item>
</u-grid> </u-grid>
</view> </view>
@ -99,6 +99,7 @@ import {
apiArr apiArr
} from '../../../api/community'; } from '../../../api/community';
import { apiArr as walletApi } from '../../../api/wallet'; import { apiArr as walletApi } from '../../../api/wallet';
import { apiArr as apiArr2 } from '../../../api/contract';
export default { export default {
@ -121,36 +122,47 @@ export default {
image: "https://static.hshuishang.com/gp_cancelAfterVerification.png", image: "https://static.hshuishang.com/gp_cancelAfterVerification.png",
name: "到店核销", name: "到店核销",
url: "/packages/storeManagement/orderVerification/index", url: "/packages/storeManagement/orderVerification/index",
isShow: true,
}, },
{ {
image: "https://static.hshuishang.com/kefu0.png", image: "https://static.hshuishang.com/kefu0.png",
name: "客服", name: "客服",
url: "/packages/customerService/chattingRecords/index", url: "/packages/customerService/chattingRecords/index",
isShow: true,
}, },
{ {
image: "https://static.hshuishang.com/contract.png", image: "https://static.hshuishang.com/contract.png",
name: "电子签约", name: "电子签约",
url: "/packages/customerService/sign/index", url: "/packages/customerService/sign/index",
index: 1,
isShow: false,
}, },
{ {
image: "https://static.hshuishang.com/contract.png", image: "https://static.hshuishang.com/contract.png",
name: "商户进件", name: "商户进件",
url: "/packages/customerService/addMer/index", url: "/packages/customerService/addMer/index",
index: 2,
isShow: false,
}, },
{ {
image: "https://static.hshuishang.com/contract.png", image: "https://static.hshuishang.com/contract.png",
name: "分账开通", name: "分账开通",
url: "/packages/customerService/applyLedgerMer/index", url: "/packages/customerService/applyLedgerMer/index",
index: 4,
isShow: false,
}, },
{ {
image: "https://static.hshuishang.com/contract.png", image: "https://static.hshuishang.com/contract.png",
name: "创建接收方", name: "创建接收方",
url: "/packages/customerService/establishAcceptor/index", url: "/packages/customerService/establishAcceptor/index",
isShow: false,
}, },
{ {
image: "https://static.hshuishang.com/contract.png", image: "https://static.hshuishang.com/contract.png",
name: "申请绑定", name: "申请绑定",
url: "/packages/customerService/applyBind/index", url: "/packages/customerService/applyBind/index",
index: 5,
isShow: false,
} }
], ],
walletInfo: {}, walletInfo: {},
@ -161,10 +173,28 @@ export default {
this.top = meun.top; this.top = meun.top;
// this.top = meun.height + meun.top; // this.top = meun.height + meun.top;
this.localHeight = meun.height; this.localHeight = meun.height;
this.getShopList(); this.getShopList().then(() => {
uni.setStorageSync('mchId', this.selectedShop.id);
this.getStep();
});
}, },
methods: { methods: {
//
getStep() {
const params = {
mch_id: this.selectedShop.id,
}
request(apiArr2.progresss, 'POST', params, { silent: false }).then(res => {
if(res.data.link){
this.baseList.forEach(item => {
if(item.index == res.data.link){
item.isShow = true;
}
})
}
})
},
// //
getWalletInfo() { getWalletInfo() {
const params = { const params = {
@ -176,7 +206,7 @@ export default {
}, },
// //
getShopList() { getShopList() {
request(apiArr.getShopList, 'POST', {}, { silent: false }).then(res => { return request(apiArr.getShopList, 'POST', {}, { silent: false }).then(res => {
res.rows.map(item => { res.rows.map(item => {
item.album_images = picUrl + item.album_images; item.album_images = picUrl + item.album_images;
}) })