|
|
@@ -238,6 +238,23 @@
|
|
|
>解绑销售易
|
|
|
</el-button>
|
|
|
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleRedPacket(scope.row)"
|
|
|
+ v-hasPermi="['company:company:redPacket']"
|
|
|
+ >绑定红包商户</el-button>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleAppRedPacket(scope.row)"
|
|
|
+ v-hasPermi="['company:company:AppRedPacket']"
|
|
|
+ >绑定app提现商户</el-button>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -786,6 +803,103 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 红包商户配置 -->
|
|
|
+ <el-dialog :title="redPacketConfigOpen.title" :visible.sync="redPacketConfigOpen.open" width="800px" append-to-body>
|
|
|
+ <el-form ref="redPacketConfig" :model="redPacketConfig" label-width="150px">
|
|
|
+ <el-form-item label="红包接口类型" prop="isNew">
|
|
|
+ <el-radio-group v-model="redPacketConfig.isNew">
|
|
|
+ <el-radio label="0">商家转账到零钱(旧)</el-radio>
|
|
|
+ <el-radio label="1">商家转账(新)</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公众号appid" prop="appId">
|
|
|
+ <el-input v-model="redPacketConfig.appId" label="请输入appId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="小程序appid" prop="appId">
|
|
|
+ <el-input v-model="redPacketConfig.miniappId" label="请输入appId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商户号" prop="mchId">
|
|
|
+ <el-input v-model="redPacketConfig.mchId" label="请输入mchId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商户密钥" prop="mchKey">
|
|
|
+ <el-input v-model="redPacketConfig.mchKey" label="mchKey"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="p12证书路径" prop="keyPath">
|
|
|
+ <el-input v-model="redPacketConfig.keyPath" label="请输入keyPath"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="apiV3密钥" prop="apiV3Key">
|
|
|
+ <el-input v-model="redPacketConfig.apiV3Key" label="请输入apiV3Key"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公钥ID" prop="publicKeyId">
|
|
|
+ <el-input v-model="redPacketConfig.publicKeyId" label="请输入公钥ID"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公钥证书" prop="publicKeyPath">
|
|
|
+ <el-input v-model="redPacketConfig.publicKeyPath" label="请输入publicKeyPath"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="key路径" prop="privateKeyPath">
|
|
|
+ <el-input v-model="redPacketConfig.privateKeyPath" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="cert路径" prop="privateCertPath">
|
|
|
+ <el-input v-model="redPacketConfig.privateCertPath" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="回调地址" prop="notifyUrl">
|
|
|
+ <el-input v-model="redPacketConfig.notifyUrl" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="onSubmitCompanyRedPacket">提交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- app提现配置 -->
|
|
|
+ <el-dialog :title="hisAppRedPacketOpen.title" :visible.sync="hisAppRedPacketOpen.open" width="800px" append-to-body>
|
|
|
+ <el-form ref="hisAppRedPacket" :model="hisAppRedPacket" label-width="150px">
|
|
|
+ <el-form-item label="红包接口类型" prop="isNew">
|
|
|
+ <el-radio-group v-model="hisAppRedPacket.isNew">
|
|
|
+ <el-radio label="0">商家转账到零钱(旧)</el-radio>
|
|
|
+ <el-radio label="1">商家转账(新)</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公众号appid" prop="appId">
|
|
|
+ <el-input v-model="hisAppRedPacket.appId" label="请输入appId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="小程序appid" prop="appId">
|
|
|
+ <el-input v-model="hisAppRedPacket.miniappId" label="请输入appId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商户号" prop="mchId">
|
|
|
+ <el-input v-model="hisAppRedPacket.mchId" label="请输入mchId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商户密钥" prop="mchKey">
|
|
|
+ <el-input v-model="hisAppRedPacket.mchKey" label="mchKey"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="p12证书路径" prop="keyPath">
|
|
|
+ <el-input v-model="hisAppRedPacket.keyPath" label="请输入keyPath"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="apiV3密钥" prop="apiV3Key">
|
|
|
+ <el-input v-model="hisAppRedPacket.apiV3Key" label="请输入apiV3Key"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公钥ID" prop="publicKeyId">
|
|
|
+ <el-input v-model="hisAppRedPacket.publicKeyId" label="请输入公钥ID"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公钥证书" prop="publicKeyPath">
|
|
|
+ <el-input v-model="hisAppRedPacket.publicKeyPath" label="请输入publicKeyPath"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="key路径" prop="privateKeyPath">
|
|
|
+ <el-input v-model="hisAppRedPacket.privateKeyPath" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="cert路径" prop="privateCertPath">
|
|
|
+ <el-input v-model="hisAppRedPacket.privateCertPath" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="回调地址" prop="notifyUrl">
|
|
|
+ <el-input v-model="hisAppRedPacket.notifyUrl" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="onSubmitAppRedPacket">提交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -808,6 +922,7 @@ import {
|
|
|
import { getFollowDoctorList } from '@/api/his/doctor'
|
|
|
import { docList } from '@/api/his/doctor'
|
|
|
import { getVoiceApiList } from '@/api/company/companyVoiceApi'
|
|
|
+import { editCompanyConfig,getCompanyConfigKey } from '@/api/company/companyConfig'
|
|
|
import { getCitysArea } from '../../../api/company/company'
|
|
|
import { cateList } from '@/api/his/packageCate'
|
|
|
import { getConfigByKey } from '@/api/system/config'
|
|
|
@@ -819,6 +934,23 @@ export default {
|
|
|
name: 'Company',
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
+ redPacketConfigOpen:{
|
|
|
+ open: false,
|
|
|
+ title: '红包商户配置'
|
|
|
+ },
|
|
|
+
|
|
|
+ hisAppRedPacketOpen:{
|
|
|
+ open: false,
|
|
|
+ title: 'app提现商户配置'
|
|
|
+ },
|
|
|
+
|
|
|
+ redPacketConfig:{},
|
|
|
+ hisAppRedPacket:{},
|
|
|
+
|
|
|
+ redPacketConfigForm:{},
|
|
|
+ hisAppRedPacketForm:{},
|
|
|
+
|
|
|
gatewayList:[],
|
|
|
projectFrom:process.env.VUE_APP_HSY_SPACE,
|
|
|
|
|
|
@@ -1222,6 +1354,26 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ onSubmitAppRedPacket(){
|
|
|
+ this.hisAppRedPacketForm.configValue=JSON.stringify(this.hisAppRedPacket);
|
|
|
+ editCompanyConfig(this.hisAppRedPacketForm).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.hisAppRedPacketOpen.open=false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ onSubmitCompanyRedPacket(){
|
|
|
+ this.redPacketConfigForm.configValue=JSON.stringify(this.redPacketConfig);
|
|
|
+ editCompanyConfig(this.redPacketConfigForm).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.redPacketConfigOpen.open=false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getList() {
|
|
|
this.loading = true
|
|
|
listCompany(this.queryParams).then(response => {
|
|
|
@@ -1516,6 +1668,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// 解绑销售易账号
|
|
|
handleUnbindXsy(row) {
|
|
|
this.$confirm('是否确认解绑当前销售易账号?', '提示', {
|
|
|
@@ -1534,6 +1688,31 @@ export default {
|
|
|
}
|
|
|
}).catch(() => {})
|
|
|
},
|
|
|
+
|
|
|
+ handleRedPacket(row){
|
|
|
+ const companyId=row.companyId;
|
|
|
+
|
|
|
+ getCompanyConfigKey('redPacket:config',companyId).then(res=>{
|
|
|
+ if(res.data.configValue!=null){
|
|
|
+ this.redPacketConfig=JSON.parse(res.data.configValue);
|
|
|
+ }
|
|
|
+ this.redPacketConfigForm.configId=res.data.configId;
|
|
|
+ this.redPacketConfigOpen.open=true;
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ handleAppRedPacket(row){
|
|
|
+ const companyId=row.companyId;
|
|
|
+
|
|
|
+ getCompanyConfigKey('his:AppRedPacket',companyId).then(res=>{
|
|
|
+ if(res.data.configValue!=null){
|
|
|
+ this.hisAppRedPacket=JSON.parse(res.data.configValue);
|
|
|
+ }
|
|
|
+ this.hisAppRedPacketForm.configId=res.data.configId;
|
|
|
+ this.hisAppRedPacketOpen.open=true;
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|