Compare commits

..

No commits in common. "a0c801ee61a11fb6d58593af3371f1e6f6186abe" and "cdb74c3aa69556c8a44e2503c5210d5686792809" have entirely different histories.

3 changed files with 85 additions and 160 deletions

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">商户ID</label> <label class="form-label required">商户ID</label>
<input type="number" class="form-input" v-model.number="formData.mch_id" placeholder="请输入商户ID" <input type="number" class="form-input" v-model.number="formData.mch_id" placeholder="请输入商户ID"
required> required>
</view> --> </view>
<view class="form-item"> <view class="form-item">
<label class="form-label required">商户注册名称</label> <label class="form-label required">商户注册名称</label>
@ -17,20 +17,22 @@
<view class="form-item"> <view class="form-item">
<label class="form-label required">商户地区代码</label> <label class="form-label required">商户地区代码</label>
<input type="text" class="form-input" v-model="formData.merRegDistCode" <view class="popup-select" @click="showAreaPopup = true">
placeholder="请输入商户地区代码" required> <span>{{ selectedAreaLabel || '请选择商户地区代码' }}</span>
</view>
</view> </view>
<view class="form-item"> <view class="form-item">
<label class="form-label required">商户详细地址</label> <label class="form-label required">商户详细地址</label>
<input type="text" class="form-input" v-model="formData.merRegAddr" <input type="text" class="form-input" v-model="formData.merRegAddr"
placeholder="请输入去除省、市、区后的详细地址" required> placeholder="请输入去除省、市、区后的详细地址6-200字符" required>
</view> </view>
<view class="form-item"> <view class="form-item">
<label class="form-label required">商户MCC编号</label> <label class="form-label required">商户MCC编号</label>
<input type="text" class="form-input" v-model="formData.mccCode" <view class="popup-select" @click="showMccPopup = true">
placeholder="请输入商户MCC编号" required> <span>{{ selectedMccLabel || '请选择商户MCC编号' }}</span>
</view>
</view> </view>
<view class="form-item"> <view class="form-item">
@ -56,8 +58,9 @@
<view class="form-item"> <view class="form-item">
<label class="form-label required">商户经营内容</label> <label class="form-label required">商户经营内容</label>
<input type="text" class="form-input" v-model="formData.merBusiContent" <view class="popup-select" @click="showBusiContentPopup = true">
placeholder="请输入商户经营内容" required> <span>{{ selectedBusiContentLabel || '请选择商户经营内容' }}</span>
</view>
</view> </view>
</view> </view>
@ -145,22 +148,6 @@
<span>{{ selectedAcctTypeLabel || '请选择结算账户性质' }}</span> <span>{{ selectedAcctTypeLabel || '请选择结算账户性质' }}</span>
</view> </view>
</view> </view>
<!-- 费率信息 -->
<view class="form-item">
<label class="form-label required">费率类型</label>
<input type="text" class="form-input" v-model="formData.feeData[0].feeRateTypeCode" placeholder="请输入费率类型" required>
</view>
<view class="form-item">
<label class="form-label required">费率类型名称</label>
<input type="text" class="form-input" v-model="formData.feeData[0].feeRateTypeName" placeholder="请输入费率类型名称" required>
</view>
<view class="form-item">
<label class="form-label required">手续费率(%)</label>
<input type="number" class="form-input" v-model="formData.feeData[0].feeRatePct" placeholder="请输入手续费率" step="0.01" required>
</view>
</view> </view>
<!-- 附件上传 --> <!-- 附件上传 -->
@ -296,7 +283,7 @@ export default {
return { return {
// //
formData: { formData: {
mch_id: '000', // ID mch_id: null, // ID
merRegName: '', // merRegName: '', //
merRegDistCode: '', // merRegDistCode: '', //
merRegAddr: '', // merRegAddr: '', //
@ -319,13 +306,7 @@ export default {
acctNo: '', // acctNo: '', //
acctName: '', // acctName: '', //
acctTypeCode: '', // acctTypeCode: '', //
feeData: [ feeData: [], //
{
feeRateTypeCode: "",
feeRateTypeName: "",
feeRatePct: ""
}
], //
fileData: [ fileData: [
{ {
attType: '', attType: '',
@ -373,15 +354,10 @@ export default {
], ],
idTypeOptions: [ idTypeOptions: [
{ value: '01', label: '身份证' }, { value: 'IDCARD', label: '身份证' },
{ value: '02', label: '护照' }, { value: 'PASSPORT', label: '护照' },
{ value: '03', label: '港澳通行证' }, { value: 'MILITARY_ID', label: '军人证' },
{ value: '04', label: '台胞证' }, { value: 'OTHER', label: '其他' }
{ value: '10', label: '外国人永久居留身份证' },
{ value: '11', label: '港澳居民居住证' },
{ value: '12', label: '台湾居民居住证' },
{ value: '13', label: '执行事务合伙人' },
{ value: '99', label: '其它证件' },
], ],
acctTypeOptions: [ acctTypeOptions: [
@ -656,22 +632,6 @@ export default {
uni.showToast({ title: '请选择结算账户性质', icon: 'none' }); uni.showToast({ title: '请选择结算账户性质', icon: 'none' });
return false; return false;
} }
//
if (!formData.feeData[0].feeRateTypeCode) {
uni.showToast({ title: '请输入费率类型', icon: 'none' });
return false;
}
if (!formData.feeData[0].feeRateTypeName) {
uni.showToast({ title: '请输入费率类型名称', icon: 'none' });
return false;
}
if (!formData.feeData[0].feeRatePct) {
uni.showToast({ title: '请输入手续费率', icon: 'none' });
return false;
}
return true; return true;
}, },
@ -747,7 +707,7 @@ export default {
acctNo: this.formData.acctNo, acctNo: this.formData.acctNo,
acctName: this.formData.acctName, acctName: this.formData.acctName,
acctTypeCode: this.formData.acctTypeCode, acctTypeCode: this.formData.acctTypeCode,
feeData: this.formData.feeData, feeData: [],
fileData: [] fileData: []
}; };

View File

@ -530,7 +530,7 @@
<h3>第十条 </h3> <h3>第十条 </h3>
<view class="subsection-item"> <view class="subsection-item">
<text>乙方(含乙方分支机构合作方,下同)为甲方提供的受理终端(包含收款码)仅限甲方在</text> <text>乙方(含乙方分支机构合作方,下同)为甲方提供的受理终端(包含收款码)仅限甲方在</text>
<input type="text" v-model="paramData.A101" class="input-field" /> <input type="text" v-model="paramData.A101" class="input-field very-small" />
<text> <text>
地区使用甲方应提供符合受理终端安装要求的场地条件并妥善保管和使用如因甲方管理或使用不当造成终端损坏或遗失的甲方应按市场价向乙方赔偿赔付方式为现金转账或授权乙方从甲方终端押金交易资金等途径扣除双方协议终止或解除时乙方有权收回关闭放置在甲方的受理终端或关闭网络支付接口 地区使用甲方应提供符合受理终端安装要求的场地条件并妥善保管和使用如因甲方管理或使用不当造成终端损坏或遗失的甲方应按市场价向乙方赔偿赔付方式为现金转账或授权乙方从甲方终端押金交易资金等途径扣除双方协议终止或解除时乙方有权收回关闭放置在甲方的受理终端或关闭网络支付接口
</text> </text>
@ -783,7 +783,7 @@
<view class="subsection-item"> <view class="subsection-item">
<input type="text" class="input-field small" v-model="paramData.B1" placeholder="年" /> <input type="text" class="input-field small" v-model="paramData.B1" placeholder="年" />
<input type="text" class="input-field small" v-model="paramData.B2" placeholder="月" /> <input type="text" class="input-field small" v-model="paramData.B2" placeholder="月" />
NO<input type="text" class="input-field small" /> NO<input type="text" v-model="paramData.A115" class="input-field small" />
</view> </view>
<view class="section"> <view class="section">
@ -1149,7 +1149,7 @@
<view class="section"> <view class="section">
<view class="subsection-item"> <view class="subsection-item">
<text>鉴于我方为拉卡拉支付股份有限公司简称拉卡拉的特约商户已与拉卡拉签订特约商户支付服务合作协议并且我方结算账户所属银行</text> <text>鉴于我方为拉卡拉支付股份有限公司简称拉卡拉的特约商户已与拉卡拉签订特约商户支付服务合作协议并且我方结算账户所属银行</text>
<input type="text" v-model="paramData.D1" class="input-field" /> <input type="text" v-model="paramData.D1" class="input-field very-small" />
<text>简称银行会不定期开展商户手续费补贴等营销活动</text> <text>简称银行会不定期开展商户手续费补贴等营销活动</text>
</view> </view>
@ -1182,9 +1182,9 @@
<view class="subsection-item"> <view class="subsection-item">
<text>我方同意并指定</text> <text>我方同意并指定</text>
<input type="text" v-model="paramData.D4" class="input-field" /> <input type="text" v-model="paramData.D4" class="input-field very-small" />
<text>公司联系方式</text> <text>公司联系方式</text>
<input type="text" v-model="paramData.D5" class="input-field" /> <input type="text" v-model="paramData.D5" class="input-field very-small" />
<text>(含其分支机构及总公司以下简称数据处理方)为我方提供数据处理服务同意并授权数据处理方为终端布放与受理标识张贴终端维护商户培训耗材配送交易证明材料调取对账目的收集存储并向拉卡拉传送我方通过线下或线上方式提供的入网信息(包括但不限于拉卡拉商户注册登记表中的信息商户提交的电子版及纸质版资料以及监管部门要求的其他信息)同意并授权拉卡拉将我方金融信息(包括我方企业名称统一社会信用代码法定代表人姓名及证件号码经营地址联系人姓名及证件号码联系人手机号联系人电子邮箱结算账户信息交易数据入账信息对账单明细数据下同)提供给数据处理方同意并授权数据处理方从拉卡拉接收并处理前述我方相关信息</text> <text>(含其分支机构及总公司以下简称数据处理方)为我方提供数据处理服务同意并授权数据处理方为终端布放与受理标识张贴终端维护商户培训耗材配送交易证明材料调取对账目的收集存储并向拉卡拉传送我方通过线下或线上方式提供的入网信息(包括但不限于拉卡拉商户注册登记表中的信息商户提交的电子版及纸质版资料以及监管部门要求的其他信息)同意并授权拉卡拉将我方金融信息(包括我方企业名称统一社会信用代码法定代表人姓名及证件号码经营地址联系人姓名及证件号码联系人手机号联系人电子邮箱结算账户信息交易数据入账信息对账单明细数据下同)提供给数据处理方同意并授权数据处理方从拉卡拉接收并处理前述我方相关信息</text>
</view> </view>

View File

@ -108,7 +108,7 @@
<button type="button" class="submit-btn" @click="submitApplication">提交申请</button> <button type="button" class="submit-btn" @click="submitApplication">提交申请</button>
</view> </view>
</form> </form>
<!-- 自定义弹窗 --> <!-- 自定义弹窗 -->
<view v-if="showCustomModal" class="custom-modal-overlay" @click="closeModal"> <view v-if="showCustomModal" class="custom-modal-overlay" @click="closeModal">
<view class="custom-modal" @click.stop> <view class="custom-modal" @click.stop>
@ -177,7 +177,7 @@ export default {
if (options.ec_content) { if (options.ec_content) {
this.formData.ec_content_parameters = options.ec_content; this.formData.ec_content_parameters = options.ec_content;
} }
// //
uni.$on('agreementSigned', (data) => { uni.$on('agreementSigned', (data) => {
if (data && data.ec_content) { if (data && data.ec_content) {
@ -189,7 +189,7 @@ export default {
} }
}); });
}, },
// //
onUnload() { onUnload() {
uni.$off('agreementSigned'); uni.$off('agreementSigned');
@ -214,103 +214,68 @@ export default {
mask: true mask: true
}); });
request(apiArr.ecDownload, "POST", params).then(res => { // URL
const respData = res.resp_data; const downloadUrl = `${RequsetUrl}${apiArr.ecDownload}?ec_apply_id=${storeValue.ec_apply_id}`;
//
if (respData.ec_status === 'COMPLETED' && respData.ec_file) {
try {
// Base64URLBase64
const base64Data = respData.ec_file;
// URLBase64
const safeBase64 = base64Data.replace(/-/g, '+').replace(/_/g, '/');
// // uni.downloadFile
const fileName = `contract_${respData.ec_apply_id || Date.now()}.pdf`; uni.downloadFile({
url: downloadUrl,
// uni-app使API header: {
// 'Authorization': uni.getStorageSync('ctoken')
const fs = uni.getFileSystemManager(); },
success: (res) => {
// uni.hideLoading();
const tempFilePath = `${uni.env.USER_DATA_PATH}/${fileName}`; //
uni.saveFile({
try { tempFilePath: res.tempFilePath,
// Base64 success: (saveRes) => {
fs.writeFile({ uni.showToast({
filePath: tempFilePath, title: '下载成功',
data: safeBase64, icon: 'success'
encoding: 'base64', });
success: () => { //
uni.hideLoading(); uni.showModal({
uni.showToast({ title: '提示',
title: '合同下载成功', content: '合同已下载完成,是否立即打开?',
icon: 'success' success: (modalRes) => {
}); if (modalRes.confirm) {
console.log('文件保存成功:', tempFilePath); //
uni.openDocument({
// filePath: saveRes.savedFilePath,
uni.openDocument({ showMenu: true,
filePath: tempFilePath, success: (openRes) => {
showMenu: true, console.log('文件打开成功');
success: (openRes) => { },
console.log('文件打开成功:', openRes); fail: (err) => {
}, console.error('文件打开失败:', err);
fail: (openErr) => { uni.showToast({
console.error('文件打开失败:', openErr); title: '文件打开失败',
uni.showToast({ icon: 'none'
title: '文件打开失败', });
icon: 'none' }
}); });
} }
});
},
fail: (writeErr) => {
uni.hideLoading();
console.error('文件写入失败:', writeErr);
uni.showToast({
title: '合同下载失败',
icon: 'none'
});
} }
}); });
} catch (fsError) { },
uni.hideLoading(); fail: (err) => {
console.error('文件系统操作失败:', fsError); console.error('文件保存失败:', err);
uni.showToast({ uni.showToast({
title: '文件系统错误', title: '文件保存失败',
icon: 'none' icon: 'none'
}); });
} }
} catch (error) { });
uni.hideLoading(); },
console.error('处理文件数据失败:', error); fail: (err) => {
uni.showToast({
title: '文件处理失败',
icon: 'none'
});
}
} else {
uni.hideLoading(); uni.hideLoading();
if (respData.ec_status !== 'COMPLETED') { console.error('下载请求失败:', err);
uni.showToast({ uni.showToast({
title: '电子合同尚未完成', title: '下载失败,请稍后重试',
icon: 'none' icon: 'none'
}); });
} else {
uni.showToast({
title: '合同文件不存在',
icon: 'none'
});
}
} }
}).catch(err => { });
uni.hideLoading();
console.error('下载合同失败:', err);
uni.showToast({
title: '下载失败,请重试',
icon: 'none'
});
})
}, },
// //
ecQuery() { ecQuery() {
@ -318,12 +283,12 @@ export default {
this.applyUrl = uni.getStorageSync('applyUrl'); this.applyUrl = uni.getStorageSync('applyUrl');
this.showCustomModal = true; this.showCustomModal = true;
}, },
// //
closeModal() { closeModal() {
this.showCustomModal = false; this.showCustomModal = false;
}, },
// //
openApplyUrl() { openApplyUrl() {
if (this.applyUrl) { if (this.applyUrl) {
@ -332,11 +297,11 @@ export default {
}); });
} }
}, },
// //
confirmQuery() { confirmQuery() {
this.showCustomModal = false; this.showCustomModal = false;
// //
const storeValue = uni.getStorageSync('storeValue'); const storeValue = uni.getStorageSync('storeValue');
if (!storeValue || !storeValue.ec_apply_id) { if (!storeValue || !storeValue.ec_apply_id) {
@ -363,7 +328,7 @@ export default {
} }
}) })
}, },
// //
getEcTypeLabel(code) { getEcTypeLabel(code) {
// valuevalue // valuevalue