Commit d53bb7a4 by 张立顺

feat v4.35.0 功能开发

1 parent 69b37f1e
......@@ -619,21 +619,27 @@ export default {
this.showFormData = this.showFormData.filter(
(item) => !itemName.includes(item.name)
)
}
if (this.userInfo.beSuper || this.specialAccout) {
getParkStore({}).then((res) => {
res.forEach((item) => {
item.merchantId = item.merchantNo
})
this.baseData.parkServiceList = res
this.getOptionsList()
} getParkStore({}).then((res) => {
res.forEach((item) => {
item.merchantId = item.merchantNo
})
} else {
this.showFormData = this.showFormData.filter(
(item) => item.name !== "yqMerchantId"
)
this.getServiceStore(this.userInfo.detail.merchantId)
}
this.baseData.parkServiceList = res
this.getOptionsList()
})
// if (this.userInfo.beSuper || this.specialAccout) {
// getParkStore({}).then((res) => {
// res.forEach((item) => {
// item.merchantId = item.merchantNo
// })
// this.baseData.parkServiceList = res
// this.getOptionsList()
// })
// } else {
// this.showFormData = this.showFormData.filter(
// (item) => item.name !== "yqMerchantId"
// )
// this.getServiceStore(this.userInfo.detail.merchantId)
// }
const $store = this.$store.getters["d2admin/auth/curBtns"]
const btnId = "9040103" // 待补录订单权限ID
const signRefundBtnId = "9040105" // 标记退款权限ID
......
<!-- 安全验证码 -->
<template>
<!-- btn-ok-label="全部下载" -->
<d2-dialog title="安全验证码"
:is-visible="verificationCodeVisible"
class="verificationCode"
width="750px"
@closeDialog="handleClose"
@confirmDialog="handleConfirm">
<p class="title-tips">注意: 成功提交后,首次设置规则立即生效,修改规则第二天生效!</p>
<el-form ref="form"
:model="form"
:rules="rules"
label-suffix=":"
label-width="180px">
<d2-dialog title="安全验证码" :is-visible="verificationCodeVisible" class="verificationCode" width="750px"
@closeDialog="handleClose" @confirmDialog="handleConfirm">
<el-form ref="form" :model="form" :rules="rules" label-suffix=":" label-width="180px">
<el-form-item label="规则生效日期" prop="effectStartDate" required>
<!-- placeholder="请输入服务开始时间"
prefix-icon="0" -->
<el-date-picker value-format="yyyy-MM-dd" v-model="form.effectStartDate" type="date"
:picker-options="expireTimeOPtion">
</el-date-picker>
<!-- <el-input placeholder="请填写验证码"
v-model="form.smsCode"
:size="size"
style="width: 220px;" /> -->
</el-form-item>
<el-form-item label="管理员手机号验证">
{{ adminInfo.name }} {{ adminInfo.phone }}
<el-button :size="size"
@click="handleSend"
:disabled="isSend">
<el-button :size="size" @click="handleSend" :disabled="isSend">
{{ isSend ? sendMsg + '秒后,重试' : '发送验证短信' }}
</el-button>
</el-form-item>
<el-form-item label="验证码"
prop="smsCode">
<el-input placeholder="请填写验证码"
v-model="form.smsCode"
:size="size"
style="width: 220px;" />
<el-form-item label="验证码" prop="smsCode">
<el-input placeholder="请填写验证码" v-model="form.smsCode" :size="size" style="width: 220px;" />
</el-form-item>
</el-form>
<p class="title-tips">注意: 成功提交后,首次设置规则立即生效,修改规则第二天生效!</p>
</d2-dialog>
</template>
......@@ -57,12 +55,19 @@ export default {
data() {
return {
size: 'small',
expireTimeOPtion: {
disabledDate(time) {
return Date.now() > time.getTime() // 如果没有后面的-8.64e6就是不可以选择今天的
}
},
form: {
merchantId: '',
bizType: '1'
bizType: '1',
effectStartDate: ''
},
rules: {
smsCode: [{ required: true, message: '请输入验证码', trigger: 'blur' }]
smsCode: [{ required: true, message: '请输入验证码', trigger: 'blur' }],
effectStartDate: [{ required: true, message: '请选择生效开始日期', trigger: 'blur' }]
},
// 短信模块
isSend: false,
......@@ -117,7 +122,7 @@ export default {
if (valid) {
// 清空倒计时
this.sendMsg = 1
this.$emit('handleConfirm', this.form.smsCode)
this.$emit('handleConfirm', this.form)
this.handleClose()
// this.$refs['step' + this.stepStat].handleConfirm()
}
......@@ -127,5 +132,4 @@ export default {
}
</script>
<style>
</style>
<style></style>
......@@ -510,9 +510,12 @@ export default {
// console.log('this.rulesTestParams', this.rulesTestParams)
this.merchantTestVisible = true
},
codeHandleConfirm(smsCode) {
codeHandleConfirm({ smsCode, effectStartDate }) {
this.submitParams.smsCode = smsCode
this.submitParams.effectStartDate = effectStartDate + ' 00:00:00'
// console.log(this.submitParams)
// return
merchantSettleDistributeRule({ json: JSON.stringify(this.submitParams) }).then((result) => {
// 判断是否有没有进行过分账测试的账号
// autoFlag: 'N', // 自动分账标识(Y是,N否)
......
......@@ -109,6 +109,7 @@ export default {
sceneList,
verificationCodeVisible: false,
smsCode: '',
effectStartDate: '',
goodsTypeGroupRulesAll: [], // 所有的要提交的formdata goodsTypeGroupRules
editableTabsValue: "1",
currentIndex: 1,
......@@ -539,7 +540,8 @@ export default {
})
},
// 获取弹框中的验证码
codeHandleConfirm(smsCode) {
codeHandleConfirm({ smsCode, effectStartDate }) {
this.effectStartDate = effectStartDate + ' 00:00:00'
this.smsCode = smsCode
this.submitFormData()
},
......@@ -548,6 +550,7 @@ export default {
const { shopMerchantTotalFeeCalculateType, shopMerchantExpenseCategoryValue, partnerMerchantTotalFeeCalculateType, partnerMerchantExpenseCategoryValue } = this.formObj
const params = {
smsCode: this.smsCode,
effectStartDate: this.effectStartDate,
merchantId: this.merchantRow.merchantId,
sceneType: this.merchantRow.scene,
goodsTypeGroupRules: this.goodsTypeGroupRulesAll,
......
......@@ -28,6 +28,13 @@
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="多业务客户档案数据互通:">
<el-radio-group v-model="multiBusinessCustomerProfileDataExchangeMode">
<el-radio v-for="(item, index) in multiBusinessCustomerProfileDataExchange" :key="index"
:label="item.confId">{{ item.confLabel
}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="安装服务商:">
<el-input style="width:350px" maxlength="50" v-model.trim="installMerchantName"></el-input>
</el-form-item>
......@@ -36,7 +43,8 @@
</el-form-item>
<el-form-item label="设置为真实(主)服务商:">
<el-select style="width: 350px;" v-model="partnerMerchantId">
<el-option v-for="(subItem, subIndex) in serviceList" :key="subIndex" :label="subItem.partnerMerchantName" :value="subItem.partnerMerchantId"></el-option>
<el-option v-for="(subItem, subIndex) in serviceList" :key="subIndex" :label="subItem.partnerMerchantName"
:value="subItem.partnerMerchantId"></el-option>
</el-select>
</el-form-item>
<el-form-item>
......@@ -65,20 +73,25 @@ export default {
{ id: 3, name: 'POS机收款', disabled: false },
{ id: 0, name: '不升级', disabled: true },
{ id: 1, name: '微信支付', disabled: false }
// { id: 4, name: '支付宝支付', disabled: false }
],
loginTypeList: [
{ id: 0, name: '微信', disabled: false },
{ id: 1, name: '企业微信', disabled: false }
],
// 多业务客户档案数据互通
multiBusinessCustomerProfileDataExchange: [
{ confId: 0, confLabel: "禁用" },
{ confId: 1, confLabel: "启用" }
],
checkList: [0],
manageTypeList: manageTypeList,
businessModel: '',
multiBusinessCustomerProfileDataExchangeMode: 0,
installMerchantName: '',
loginControlList: [],
marketingMerchantName: '',
serviceList: [], // 服务商数据
partnerMerchantId: '', // 主服务商
partnerMerchantId: '' // 主服务商
}
},
mounted() {
......@@ -95,6 +108,7 @@ export default {
GETYQMERCHANTCONFIGDETAIL(oParams).then((res) => {
this.checkList = res.supportPayTypes || []
this.businessModel = res.businessModel
this.businessModel = res.multiBusinessCustomerProfileDataExchangeMode
this.installMerchantName = res.installMerchantName || ''
this.marketingMerchantName = res.marketingMerchantName || ''
this.loginControlList = res.loginControlList || [0, 1]
......@@ -186,6 +200,7 @@ export default {
oParams.yqMerchantId = this.$route.query.yqMerchantId
oParams.supportPayTypes = this.checkList
oParams.businessModel = this.businessModel
oParams.multiBusinessCustomerProfileDataExchangeMode = this.multiBusinessCustomerProfileDataExchangeMode
oParams.loginControlList = this.loginControlList
UPDATEYQMERCHANTCONFIG(oParams).then((res) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!