完成商户分账信息查询功能
This commit is contained in:
parent
61b44c2e5f
commit
2f2e11cc6b
@ -638,7 +638,7 @@ export default {
|
|||||||
|
|
||||||
ecQuery() {
|
ecQuery() {
|
||||||
const storeValue = uni.getStorageSync('storeValue');
|
const storeValue = uni.getStorageSync('storeValue');
|
||||||
if (!storeValue || !storeValue.ec_apply_id) {
|
if (!storeValue || !storeValue.contractId) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请先提交申请',
|
title: '请先提交申请',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@ -218,12 +218,13 @@ page {
|
|||||||
.submit-section {
|
.submit-section {
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn {
|
.submit-btn,
|
||||||
|
.submit-btn1 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
background-color: #007aff;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
@ -232,6 +233,16 @@ page {
|
|||||||
box-shadow: 0 4rpx 12rpx rgba(0, 122, 255, 0.3);
|
box-shadow: 0 4rpx 12rpx rgba(0, 122, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #007aff;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn1 {
|
||||||
|
background-color: #ff4016;
|
||||||
|
margin-right: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.submit-btn:active {
|
.submit-btn:active {
|
||||||
background-color: #0051d5;
|
background-color: #0051d5;
|
||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
|
|||||||
@ -5,7 +5,8 @@
|
|||||||
<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="请输入商户号" required>
|
<input type="number" class="form-input" v-model.number="formData.mch_id" placeholder="请输入商户号"
|
||||||
|
required>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item">
|
<view class="form-item">
|
||||||
@ -20,7 +21,8 @@
|
|||||||
|
|
||||||
<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="formData.contactMobile" placeholder="请输入联系手机号" required>
|
<input type="number" class="form-input" v-model="formData.contactMobile" placeholder="请输入联系手机号"
|
||||||
|
required>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item">
|
<view class="form-item">
|
||||||
@ -52,6 +54,7 @@
|
|||||||
|
|
||||||
<!-- 提交按钮 -->
|
<!-- 提交按钮 -->
|
||||||
<view class="form-section submit-section">
|
<view class="form-section submit-section">
|
||||||
|
<button type="button" class="submit-btn1" @click="ecQuery">结果查询</button>
|
||||||
<button type="submit" class="submit-btn" @click="submitForm">提交申请</button>
|
<button type="submit" class="submit-btn" @click="submitForm">提交申请</button>
|
||||||
</view>
|
</view>
|
||||||
</form>
|
</form>
|
||||||
@ -61,7 +64,8 @@
|
|||||||
<view class="popup-content">
|
<view class="popup-content">
|
||||||
<view class="popup-title">选择附件类型</view>
|
<view class="popup-title">选择附件类型</view>
|
||||||
<view class="popup-list">
|
<view class="popup-list">
|
||||||
<view class="popup-item" v-for="type in fileAttachTypeOptions" :key="type.value" @click="selectFileAttachType(showFileAttachTypePopup, type)">
|
<view class="popup-item" v-for="type in fileAttachTypeOptions" :key="type.value"
|
||||||
|
@click="selectFileAttachType(showFileAttachTypePopup, type)">
|
||||||
{{ type.label }}
|
{{ type.label }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -237,6 +241,33 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
ecQuery() {
|
||||||
|
// const storeValue = uni.getStorageSync('storeValue');
|
||||||
|
// if (!storeValue || !storeValue.contractId) {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: '请先提交申请',
|
||||||
|
// icon: 'none'
|
||||||
|
// });
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// const params = {
|
||||||
|
// contractId: storeValue.contractId
|
||||||
|
// }
|
||||||
|
request(apiArr.queryLedgerMer, "POST", {}).then(res => {
|
||||||
|
if (res.respData.splitStatus === 'VALID') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '审核通过',
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
} else if (res.respData.contractStatus === 'INVALID') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '审核未通过',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 表单提交逻辑
|
// 表单提交逻辑
|
||||||
submitForm() {
|
submitForm() {
|
||||||
// 验证表单
|
// 验证表单
|
||||||
@ -271,25 +302,13 @@ export default {
|
|||||||
|
|
||||||
console.log('提交的数据:', submitData);
|
console.log('提交的数据:', submitData);
|
||||||
|
|
||||||
// 调用applyLedgerMer接口提交数据
|
|
||||||
request(apiArr.applyLedgerMer, "POST", submitData).then(res => {
|
request(apiArr.applyLedgerMer, "POST", submitData).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|
||||||
if (res && res.cmdRetCode === 'SUCCESS') {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '提交成功',
|
title: '提交成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
|
uni.setStorageSync('storeValue', { fz_apply_id: res.resp_data.ec_apply_id });
|
||||||
setTimeout(() => {
|
|
||||||
uni.navigateBack();
|
|
||||||
}, 1500);
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res?.retMsg || '提交失败',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
console.error('提交失败:', error);
|
console.error('提交失败:', error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user