Commit 8ec255ff authored by zhangjianguo's avatar zhangjianguo

生成财务单据时 不能多次点击

parent 150763d5
...@@ -21,19 +21,19 @@ ...@@ -21,19 +21,19 @@
width="227" width="227"
label="基本信息"> label="基本信息">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="app-image" :style="{backgroundImage:'url(' + scope.row.Photo + ')',backgroundSize:'cover'}"></div> <div class="app-image" :style="{backgroundImage:'url(' + scope.row.Photo + ')',backgroundSize:'cover'}"></div>
<div flex="dir:left cross:center"> <div flex="dir:left cross:center">
{{scope.row.UserName}} {{scope.row.UserName}}
</div> </div>
<img v-if="scope.row.Source==1" style="width:24px;height:24px" src="../../assets/img/userman/wx.png" alt="" class="platform-img"> <img v-if="scope.row.Source==1" style="width:24px;height:24px" src="../../assets/img/userman/wx.png" alt="" class="platform-img">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Moblie" prop="Moblie"
label="账户信息"> label="账户信息">
<template slot-scope="scope"> <template slot-scope="scope">
<span>提现方式:{{scope.row.WithdrawalWayName}}</span> <span>提现方式:{{scope.row.WithdrawalWayName}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Moblie" prop="Moblie"
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<p>用户申请提现金额:{{scope.row.AppliedMoney}}</p> <p>用户申请提现金额:{{scope.row.AppliedMoney}}</p>
<p>手续费:{{scope.row.Fee}}</p> <p>手续费:{{scope.row.Fee}}</p>
<p>实际打款金额:<span class="cred">{{scope.row.RemitMoney}}</span></p> <p>实际打款金额:<span class="cred">{{scope.row.RemitMoney}}</span></p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="AuditStatusName" prop="AuditStatusName"
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<p v-if="scope.row.AuditRemark && scope.row.AuditRemark!=''">审核备注:{{scope.row.AuditRemark}}</p> <p v-if="scope.row.AuditRemark && scope.row.AuditRemark!=''">审核备注:{{scope.row.AuditRemark}}</p>
<p v-if="scope.row.RemitRemark && scope.row.RemitRemark!=''">打款备注:{{scope.row.RemitRemark}}</p> <p v-if="scope.row.RemitRemark && scope.row.RemitRemark!=''">打款备注:{{scope.row.RemitRemark}}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -79,11 +79,11 @@ ...@@ -79,11 +79,11 @@
<el-tooltip class="item" effect="dark" content="拒绝" placement="top-start"> <el-tooltip class="item" effect="dark" content="拒绝" placement="top-start">
<img v-if="scope.row.AuditStatus==1 || scope.row.AuditStatus==2" @click="openReason(3,scope.row)" style="width:32px;height:32px" src="../../assets/img/userman/nopass.png" alt=""> <img v-if="scope.row.AuditStatus==1 || scope.row.AuditStatus==2" @click="openReason(3,scope.row)" style="width:32px;height:32px" src="../../assets/img/userman/nopass.png" alt="">
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination style="text-align:right" <el-pagination style="text-align:right"
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
...@@ -107,8 +107,8 @@ ...@@ -107,8 +107,8 @@
<el-checkbox style="margin-bottom:10px;;width:135px" v-for="city in cities" :label="city.Id" :key="city.Name">{{city.Name}}</el-checkbox> <el-checkbox style="margin-bottom:10px;;width:135px" v-for="city in cities" :label="city.Id" :key="city.Name">{{city.Name}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</el-form> </el-form>
<div style="text-align:right;margin-top:20px"> <div style="text-align:right;margin-top:20px">
<el-button size="small" type="primary" @click="Export">导出</el-button> <el-button size="small" type="primary" @click="Export">导出</el-button>
</div> </div>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<p style="margin-bottom:10px">请输入备注</p> <p style="margin-bottom:10px">请输入备注</p>
<el-form-item> <el-form-item>
<el-input size="small" v-model="addMsg.Remark"></el-input> <el-input size="small" v-model="addMsg.Remark"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="reasonDig = false">取 消</el-button> <el-button size="small" @click="reasonDig = false">取 消</el-button>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
adduserDig:false, adduserDig:false,
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
this.GetDropdownList(); this.GetDropdownList();
}, },
methods: { methods: {
openReason(num,row){ openReason(num,row){
this.addMsg.Remark=''; this.addMsg.Remark='';
this.addMsg.Type=num; this.addMsg.Type=num;
...@@ -223,24 +223,28 @@ ...@@ -223,24 +223,28 @@
this.msg.AuditStatus=val.$attrs.dataId; this.msg.AuditStatus=val.$attrs.dataId;
this.getList(); this.getList();
}, },
czsubmitForm (formName) { czsubmitForm (formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
let cmd="/api/user/SetDistributorRemitAudit"; let cmd="/api/user/SetDistributorRemitAudit";
this.apipost(cmd,this.addMsg, this.loading = true
this.apipost(cmd,this.addMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
this.Success(res.data.message) this.Success(res.data.message)
this.reasonDig=false; this.reasonDig=false;
this.loading = false
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} this.loading = false
}
}, },
null null
); );
} else { } else {
return false; return false;
} }
...@@ -273,7 +277,7 @@ ...@@ -273,7 +277,7 @@
let pageData=res.data.data.pageData; let pageData=res.data.data.pageData;
this.tableData=pageData; this.tableData=pageData;
} }
}) })
}, },
GetDropdownList(){ GetDropdownList(){
...@@ -300,7 +304,7 @@ ...@@ -300,7 +304,7 @@
data.forEach(item=>{ data.forEach(item=>{
this.cityOptions.push(item.Id) this.cityOptions.push(item.Id)
}) })
}) })
}, },
GetMemberGradeList(){ GetMemberGradeList(){
...@@ -334,7 +338,7 @@ ...@@ -334,7 +338,7 @@
}, },
mounted() { mounted() {
} }
}; };
...@@ -404,16 +408,16 @@ ...@@ -404,16 +408,16 @@
float: right; float: right;
} }
.disWithdrawal .app-image{ .disWithdrawal .app-image{
background-position: center center; background-position: center center;
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius:0%; border-radius:0%;
float: left; float: left;
margin-right: 8px; margin-right: 8px;
} }
.disWithdrawal .blue{ .disWithdrawal .blue{
color:#409EFF; color:#409EFF;
} }
.disWithdrawal .content .searchInput{ .disWithdrawal .content .searchInput{
border: 1px solid #DCDFE6; border: 1px solid #DCDFE6;
......
...@@ -693,18 +693,24 @@ export default { ...@@ -693,18 +693,24 @@ export default {
}, },
SaleForRefunds(){ SaleForRefunds(){
this.apipost('/api/order/SetOrderAfterSaleForRefunds',this.dkMsg, this.loading=true
this.apipost('/api/order/SetOrderAfterSaleForRefunds',this.dkMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
this.Success(res.data.message) this.Success(res.data.message)
this.dkDig=false; this.dkDig=false;
} else { this.loading=false
} else {
this.Error(res.data.message); this.Error(res.data.message);
} this.loading=false
}
}, },
null null
); );
}, },
// 打款 // 打款
dkOpenDig(item){ dkOpenDig(item){
......
...@@ -614,6 +614,7 @@ ...@@ -614,6 +614,7 @@
hszDig: false, hszDig: false,
hszMsg: {}, hszMsg: {},
btnLoad:false, btnLoad:false,
} }
}, },
created() { created() {
...@@ -793,22 +794,27 @@ ...@@ -793,22 +794,27 @@
); );
}, },
pending(item,type){ pending(item,type){
this.pendD=true; this.pendD=true;
this.pendMgs.OrderId = item.OrderId; this.pendMgs.OrderId = item.OrderId;
this.pendMgs.Type = type; this.pendMgs.Type = type;
this.pendMgs.Remark = ''; this.pendMgs.Remark = '';
}, },
// 待处理调用接口 // 待处理调用接口
pendingForm(){ pendingForm(){
this.loading=true;
this.apipost('/api/order/SetOrderApplyForCancelAudit', this.pendMgs, this.apipost('/api/order/SetOrderApplyForCancelAudit', this.pendMgs,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.pendD= false this.pendD= false;
this.loading=false;
this.getList(); this.getList();
this.Success(res.data.message) this.Success(res.data.message)
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
this.loading=false;
} }
}, },
...@@ -1135,26 +1141,33 @@ ...@@ -1135,26 +1141,33 @@
// 强制取消 // 强制取消
OrderExit2(item){ OrderExit2(item){
let that=this; let that=this;
let text=''; let text='';
if(item.OrderStatus==1){ if(item.OrderStatus==1){
text='确认取消?' text='确认取消?'
}else if(item.OrderStatus==2){ }else if(item.OrderStatus==2){
text='确认取消?客人付款金额将原路退回。' text='确认取消?客人付款金额将原路退回。'
} }
that.Confirm(text, function () { that.Confirm(text, function () {
that.apipost( that.loading= true
"/api/order/SetOrderForcedToCancel", that.apipost(
{OrderId:item.OrderId}, "/api/order/SetOrderForcedToCancel",
res => { {OrderId:item.OrderId},
if (res.data.resultCode == 1) { res => {
that.Success(res.data.message); if (res.data.resultCode == 1) {
that.getList(); that.loading= false
} else { that.Success(res.data.message);
that.Error(res.data.message); that.getList();
} } else {
}, that.Error(res.data.message);
); that.loading= false
});
}
},
);
});
}, },
handleClick(val) { handleClick(val) {
let dataId = val.$attrs.dataId; let dataId = val.$attrs.dataId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment