Commit 8ec255ff authored by zhangjianguo's avatar zhangjianguo

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

parent 150763d5
......@@ -21,19 +21,19 @@
width="227"
label="基本信息">
<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">
{{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">
</template>
</template>
</el-table-column>
<el-table-column
prop="Moblie"
label="账户信息">
<template slot-scope="scope">
<span>提现方式:{{scope.row.WithdrawalWayName}}</span>
</template>
</template>
</el-table-column>
<el-table-column
prop="Moblie"
......@@ -42,7 +42,7 @@
<p>用户申请提现金额:{{scope.row.AppliedMoney}}</p>
<p>手续费:{{scope.row.Fee}}</p>
<p>实际打款金额:<span class="cred">{{scope.row.RemitMoney}}</span></p>
</template>
</template>
</el-table-column>
<el-table-column
prop="AuditStatusName"
......@@ -62,7 +62,7 @@
<template slot-scope="scope">
<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>
</template>
</el-table-column>
<el-table-column
......@@ -79,11 +79,11 @@
<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="">
</el-tooltip>
</template>
</template>
</el-table-column>
</el-table>
</div>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
......@@ -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-group>
</div>
</el-form>
</el-form>
<div style="text-align:right;margin-top:20px">
<el-button size="small" type="primary" @click="Export">导出</el-button>
</div>
......@@ -119,7 +119,7 @@
<p style="margin-bottom:10px">请输入备注</p>
<el-form-item>
<el-input size="small" v-model="addMsg.Remark"></el-input>
</el-form-item>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="reasonDig = false">取 消</el-button>
......@@ -130,7 +130,7 @@
</template>
<script>
export default {
data() {
return {
adduserDig:false,
......@@ -212,7 +212,7 @@
this.GetDropdownList();
},
methods: {
openReason(num,row){
this.addMsg.Remark='';
this.addMsg.Type=num;
......@@ -223,24 +223,28 @@
this.msg.AuditStatus=val.$attrs.dataId;
this.getList();
},
czsubmitForm (formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
let cmd="/api/user/SetDistributorRemitAudit";
this.apipost(cmd,this.addMsg,
this.loading = true
this.apipost(cmd,this.addMsg,
res => {
if (res.data.resultCode === 1) {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
this.reasonDig=false;
} else {
this.loading = false
} else {
this.Error(res.data.message);
}
this.loading = false
}
},
null
);
);
} else {
return false;
}
......@@ -273,7 +277,7 @@
let pageData=res.data.data.pageData;
this.tableData=pageData;
}
})
},
GetDropdownList(){
......@@ -300,7 +304,7 @@
data.forEach(item=>{
this.cityOptions.push(item.Id)
})
})
},
GetMemberGradeList(){
......@@ -334,7 +338,7 @@
},
mounted() {
}
};
......@@ -404,16 +408,16 @@
float: right;
}
.disWithdrawal .app-image{
background-position: center center;
width: 50px;
background-position: center center;
width: 50px;
height: 50px;
border-radius:0%;
border-radius:0%;
float: left;
margin-right: 8px;
}
.disWithdrawal .blue{
color:#409EFF;
}
.disWithdrawal .content .searchInput{
border: 1px solid #DCDFE6;
......
......@@ -693,18 +693,24 @@ export default {
},
SaleForRefunds(){
this.apipost('/api/order/SetOrderAfterSaleForRefunds',this.dkMsg,
this.loading=true
this.apipost('/api/order/SetOrderAfterSaleForRefunds',this.dkMsg,
res => {
if (res.data.resultCode === 1) {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
this.dkDig=false;
} else {
this.loading=false
} else {
this.Error(res.data.message);
}
this.loading=false
}
},
null
);
);
},
// 打款
dkOpenDig(item){
......
......@@ -614,6 +614,7 @@
hszDig: false,
hszMsg: {},
btnLoad:false,
}
},
created() {
......@@ -793,22 +794,27 @@
);
},
pending(item,type){
this.pendD=true;
this.pendMgs.OrderId = item.OrderId;
this.pendMgs.Type = type;
this.pendMgs.Remark = '';
this.pendD=true;
this.pendMgs.OrderId = item.OrderId;
this.pendMgs.Type = type;
this.pendMgs.Remark = '';
},
// 待处理调用接口
pendingForm(){
this.loading=true;
this.apipost('/api/order/SetOrderApplyForCancelAudit', this.pendMgs,
res => {
if (res.data.resultCode === 1) {
this.pendD= false
this.pendD= false;
this.loading=false;
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
this.loading=false;
}
},
......@@ -1135,26 +1141,33 @@
// 强制取消
OrderExit2(item){
let that=this;
let text='';
if(item.OrderStatus==1){
text='确认取消?'
}else if(item.OrderStatus==2){
text='确认取消?客人付款金额将原路退回。'
}
that.Confirm(text, function () {
that.apipost(
"/api/order/SetOrderForcedToCancel",
{OrderId:item.OrderId},
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
);
});
let text='';
if(item.OrderStatus==1){
text='确认取消?'
}else if(item.OrderStatus==2){
text='确认取消?客人付款金额将原路退回。'
}
that.Confirm(text, function () {
that.loading= true
that.apipost(
"/api/order/SetOrderForcedToCancel",
{OrderId:item.OrderId},
res => {
if (res.data.resultCode == 1) {
that.loading= false
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
that.loading= false
}
},
);
});
},
handleClick(val) {
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