|
@@ -114,12 +114,16 @@
|
|
|
<el-link target="_blank" type="success" :href="bussiness.apiFilePath">Api文档下载(打开需输入密钥)</el-link>
|
|
<el-link target="_blank" type="success" :href="bussiness.apiFilePath">Api文档下载(打开需输入密钥)</el-link>
|
|
|
</span>
|
|
</span>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-button style="margin-left:50px;" type="primary" class="button" @click="editBussiness">编辑资料</el-button>
|
|
|
|
|
|
|
+ <el-button style="margin-left:50px;" type="primary" class="button" @click="editBussiness">商户配置(可设置回调地址)</el-button>
|
|
|
<span style="color: white;margin-left: 40px;">服务费率(千分比):{{bussiness.serviceRate}}</span>
|
|
<span style="color: white;margin-left: 40px;">服务费率(千分比):{{bussiness.serviceRate}}</span>
|
|
|
|
|
+ <span style="color: white;margin-left: 40px;">每日限额(元):{{bussiness.maxLimit}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="color: white;margin-left: 40px;">
|
|
|
|
|
+ <br/>
|
|
|
|
|
+ <span style="color: white;margin-left: 40px;">商户回调地址:{{bussiness.recallUrl}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin-left: 20px;margin-top:30px;">
|
|
<div style="margin-left: 20px;margin-top:30px;">
|
|
|
<span style="color: white;">账户余额</span>
|
|
<span style="color: white;">账户余额</span>
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin-left: 20px;margin-top:10px;padding-bottom: 20px;">
|
|
<div style="margin-left: 20px;margin-top:10px;padding-bottom: 20px;">
|
|
|
<span>
|
|
<span>
|
|
@@ -130,6 +134,18 @@
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <div style="margin-left: 20px;margin-top:30px;">
|
|
|
|
|
+ <span style="color: white;">在途金额</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="margin-left: 20px;margin-top:10px;padding-bottom: 20px;">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <avue-avatar style="margin-bottom: 30px;" src="/img/bg/rmb.png"></avue-avatar>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span style="font-size:60px;margin-left:20px;margin-bottom: 20px;color:white;">
|
|
|
|
|
+ {{bussiness.freeze}}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col span="12" height="400px">
|
|
<el-col span="12" height="400px">
|
|
@@ -359,9 +375,10 @@
|
|
|
labelWidth: 130,
|
|
labelWidth: 130,
|
|
|
span: 24,
|
|
span: 24,
|
|
|
hide: true,
|
|
hide: true,
|
|
|
|
|
+ placeholder: "请输入回调地址,比如:http://xxx.xxx.xxx.xxx/xxx",
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: false,
|
|
required: false,
|
|
|
- message: "请输入关联账号的密码",
|
|
|
|
|
|
|
+ message: "请输入回调地址,比如:http://xxx.xxx.xxx.xxx/xxx",
|
|
|
trigger: "blur"
|
|
trigger: "blur"
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
@@ -722,6 +739,7 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
submitBussiness() {
|
|
submitBussiness() {
|
|
|
|
|
+ this.bussiness.userPassword = null;
|
|
|
update(this.bussiness).then(res => {
|
|
update(this.bussiness).then(res => {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: "success",
|
|
type: "success",
|
|
@@ -732,7 +750,6 @@
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
convertCurrency(money) {
|
|
convertCurrency(money) {
|
|
|
- debugger
|
|
|
|
|
//汉字的数字
|
|
//汉字的数字
|
|
|
var cnNums = new Array('零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖');
|
|
var cnNums = new Array('零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖');
|
|
|
//基本单位
|
|
//基本单位
|
|
@@ -856,7 +873,6 @@
|
|
|
this.billrecord.bussinessFee = this.statDatas[1].value
|
|
this.billrecord.bussinessFee = this.statDatas[1].value
|
|
|
//易宝订单
|
|
//易宝订单
|
|
|
this.yibaoOrder.orderId = this.billrecord.orderId; //商户请求号
|
|
this.yibaoOrder.orderId = this.billrecord.orderId; //商户请求号
|
|
|
- debugger
|
|
|
|
|
this.yibaoOrder.orderAmount = this.money; //充值金额
|
|
this.yibaoOrder.orderAmount = this.money; //充值金额
|
|
|
// this.yibaoOrder.payType = "B2B"; //"B2C:个人网银" "B2B:企业网银
|
|
// this.yibaoOrder.payType = "B2B"; //"B2C:个人网银" "B2B:企业网银
|
|
|
this.yibaoOrder.goodsName = "充值"
|
|
this.yibaoOrder.goodsName = "充值"
|
|
@@ -864,9 +880,9 @@
|
|
|
// this.yibaoOrder.bankCode = "ABC,ICBC,BOC,CMBCHINA,SZPA,CCB"; //银行编码
|
|
// this.yibaoOrder.bankCode = "ABC,ICBC,BOC,CMBCHINA,SZPA,CCB"; //银行编码
|
|
|
this.yibaoOrder.redirectUrl = "https://music.nanyue6688.com/cyzhtest/#/wel/index";
|
|
this.yibaoOrder.redirectUrl = "https://music.nanyue6688.com/cyzhtest/#/wel/index";
|
|
|
addBillrecord(this.billrecord).then(res => {
|
|
addBillrecord(this.billrecord).then(res => {
|
|
|
|
|
+ console.log(JSON.stringify(res))
|
|
|
chongzhi(this.yibaoOrder).then(res => {
|
|
chongzhi(this.yibaoOrder).then(res => {
|
|
|
location.href = res.data.data.payUrl;
|
|
location.href = res.data.data.payUrl;
|
|
|
-
|
|
|
|
|
console.log(JSON.stringify(res))
|
|
console.log(JSON.stringify(res))
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -949,11 +965,7 @@
|
|
|
method: "post",
|
|
method: "post",
|
|
|
data: this.query
|
|
data: this.query
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
-
|
|
|
|
|
this.drawRealDemandLine(res.data.data.dateList, res.data.data.unClearList, res.data.data.clearedList)
|
|
this.drawRealDemandLine(res.data.data.dateList, res.data.data.unClearList, res.data.data.clearedList)
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getData() {
|
|
getData() {
|
|
@@ -974,7 +986,11 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
drawPie() {
|
|
drawPie() {
|
|
|
- let todayOutChart = echarts.init(document.getElementById('todayOut'));
|
|
|
|
|
|
|
+ let $todayOut = document.getElementById('todayOut');
|
|
|
|
|
+ if(!$todayOut){
|
|
|
|
|
+ return ;
|
|
|
|
|
+ }
|
|
|
|
|
+ let todayOutChart = echarts.init($todayOut);
|
|
|
todayOutChart.setOption(this.optionTodayOut);
|
|
todayOutChart.setOption(this.optionTodayOut);
|
|
|
|
|
|
|
|
let histroyOuntChart = echarts.init(document.getElementById('historyOut'));
|
|
let histroyOuntChart = echarts.init(document.getElementById('historyOut'));
|
|
@@ -989,7 +1005,9 @@
|
|
|
//柱形图
|
|
//柱形图
|
|
|
drawRealDemandLine(dateList, unclearDataList, clearedDataList) {
|
|
drawRealDemandLine(dateList, unclearDataList, clearedDataList) {
|
|
|
// 基于准备好的dom,初始化echarts实例
|
|
// 基于准备好的dom,初始化echarts实例
|
|
|
- let myChart = echarts.init(document.getElementById('orderStatistics'))
|
|
|
|
|
|
|
+ let $orderStatistics = document.getElementById('orderStatistics');
|
|
|
|
|
+ if (!$orderStatistics) return;
|
|
|
|
|
+ let myChart = echarts.init($orderStatistics)
|
|
|
// 基于准备好的dom,初始化echarts实例
|
|
// 基于准备好的dom,初始化echarts实例
|
|
|
// 绘制图表
|
|
// 绘制图表
|
|
|
myChart.setOption({
|
|
myChart.setOption({
|