|
@@ -15,7 +15,7 @@
|
|
|
<div class="rebook1_box" v-loading="loading">
|
|
|
<div class="rebook1_from-box">
|
|
|
<div class="rebook1_from">
|
|
|
- <el-form :model="rebookForm" ref="rebookForm" label-width="100px" :rules="rules">
|
|
|
+ <el-form :model="rebookForm" ref="rebookForm" label-width="110px" :rules="rules">
|
|
|
<el-form-item label="剧目名称:" style="margin-bottom: 0px;">
|
|
|
<span>{{ rebookForm.performName }}</span>
|
|
|
</el-form-item>
|
|
@@ -242,6 +242,8 @@ export default {
|
|
|
rules: {
|
|
|
performDate: [{ required: true, message: '请选择日期', trigger: ['blur','change'] }],
|
|
|
performTimeId: [{ required: true, message: '请选择场次', trigger: ['blur','change'] }],
|
|
|
+ rePaymentTime: [{ required: true, message: '选择日期', trigger: ['blur','change'] }],
|
|
|
+ photoList: [{ required: true, message: '请上传凭证', trigger: ['blur','change'] }],
|
|
|
realPrice_1: [{ required: true, message: '请输入金额', trigger: ['blur','change'] }],
|
|
|
resubmitRemark: [{ required: false, message: '请输入备注', trigger: ['blur','change'] }]
|
|
|
},
|
|
@@ -532,27 +534,6 @@ export default {
|
|
|
if(this.rebookForm.diffPrice && !isNaN(this.rebookForm.diffPrice) && value && !isNaN(value)) {
|
|
|
this.$set(this.rebookForm,'small',mathM.format(Number(value) - Number(this.rebookForm.diffPrice),10) )
|
|
|
}
|
|
|
- },
|
|
|
- /** 获取授信余额和账户余额 */
|
|
|
- async selectMarketTeamBySourceFun(value) {
|
|
|
- console.log("value===",value)
|
|
|
- try {
|
|
|
- let res = await selectMarketTeamBySourceApi({
|
|
|
- source: value
|
|
|
- })
|
|
|
- this.balance = res.data.balance
|
|
|
- if(res.data.grantQuota && res.data.grantUsed) {
|
|
|
- this.grantQuota = res.data.grantQuota - res.data.grantUsed
|
|
|
- }else if(res.data.grantQuota) {
|
|
|
- this.grantQuota = res.data.grantQuota
|
|
|
- }else {
|
|
|
- this.grantQuota = 0
|
|
|
- }
|
|
|
-
|
|
|
- } catch (error) {
|
|
|
- this.balance = null
|
|
|
- this.grantQuota = null
|
|
|
- }
|
|
|
},
|
|
|
/** 上传图片 单张 */
|
|
|
handleAvatarSuccess(response, file, fileList) {
|
|
@@ -587,7 +568,7 @@ export default {
|
|
|
const balanceRes = await getBalanceInfo(row.memberId)
|
|
|
if(balanceRes.code === 200) {
|
|
|
this.balance = balanceRes.data.balance
|
|
|
- this.balance = balanceRes.data.grantQuota
|
|
|
+ this.grantQuota = balanceRes.data.grantSurplus
|
|
|
}
|
|
|
} catch(err) {
|
|
|
console.error('获取余额信息失败', err)
|
|
@@ -649,4 +630,28 @@ export default {
|
|
|
color: #fff;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+::v-deep .avatar-uploader .el-upload {
|
|
|
+ border: 1px dashed #d9d9d9;
|
|
|
+ border-radius: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ ::v-deep .avatar-uploader .el-upload:hover {
|
|
|
+ border-color: #409EFF;
|
|
|
+ }
|
|
|
+ ::v-deep .avatar-uploader-icon {
|
|
|
+ font-size: 28px;
|
|
|
+ color: #8c939d;
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ line-height: 100px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ ::v-deep .avatar {
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
</style>
|