Commit 7dbdf5a4 authored by zhangjianguo's avatar zhangjianguo

1

parent 6ab785fc
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
<el-button type="primary" size="small" @click="JumpDeploy" style="margin-top: 20px">可跳转小程序设置</el-button> <el-button type="primary" size="small" @click="JumpDeploy" style="margin-top: 20px">可跳转小程序设置</el-button>
<div style="text-align: center;"> <div style="text-align: center;">
<el-button type="primary" @click="active=1" >下一步</el-button> <el-button type="primary" @click="updateSet" >下一步</el-button>
</div> </div>
</div> </div>
...@@ -101,9 +101,10 @@ ...@@ -101,9 +101,10 @@
</div> </div>
</el-dialog> </el-dialog>
<!--可跳转小程序设置--> <!--可跳转小程序设置-->
<!--TODO 不确定参数是否是这样-->
<el-dialog title="小程序码" :visible.sync="rightshow" width="418px"> <el-dialog title="小程序码" :visible.sync="rightshow" width="418px">
<div style="text-align: center;"> <div style="text-align: center;">
<img src="" alt="" style="width: 200px;"> <img :src="getWeiXin" alt="" style="width: 200px;">
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="rightshow=false" >确定</el-button> <el-button type="primary" @click="rightshow=false" >确定</el-button>
...@@ -130,6 +131,7 @@ ...@@ -130,6 +131,7 @@
getQRcode_load:false, getQRcode_load:false,
upload_load:false, upload_load:false,
getLoginQRcode:'', getLoginQRcode:'',
getWeiXin:'',
previewQRcode:'', previewQRcode:'',
Version:'', Version:'',
} }
...@@ -173,6 +175,15 @@ ...@@ -173,6 +175,15 @@
} }
}) })
}, },
updateSet(){
this.apipost("/api/Publish/UpdateSetting", {}, res => {
if (res.data.resultCode == 1) {
this.active=1;
} else {
this.Info(res.data.message);
}
})
},
getSignQRcode(){ getSignQRcode(){
this.getQRcode_load = true this.getQRcode_load = true
this.apipost("/api/Publish/GetLoginAppletWeChat", {}, res => { this.apipost("/api/Publish/GetLoginAppletWeChat", {}, res => {
...@@ -221,7 +232,14 @@ ...@@ -221,7 +232,14 @@
// }) // })
}, },
getApplet(){ //获取小程序的二维码 getApplet(){ //获取小程序的二维码
this.rightshow=true this.rightshow=true;
this.apipost("/api/Publish/GetWeiXinShare", {}, res => {
if (res.data.resultCode == 1) {
this.getWeiXin = res.data.data;
} else {
this.Info(res.data.message);
}
})
}, },
UpdateLivePlayBtn(val){ UpdateLivePlayBtn(val){
this.apipost("/api/Tenant/UpdateLivePlayerPlugin", {'LivePlayerPlugin':val}, res => { this.apipost("/api/Tenant/UpdateLivePlayerPlugin", {'LivePlayerPlugin':val}, res => {
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</div> </div>
</div> </div>
<el-button size="small" type="primary" @click="UpdateMallDistributionMsg()">保 存</el-button> <el-button size="small" type="primary" @click="UpdateMallDistributionMsg()">保 存</el-button>
<el-button size="small" type="primary">生成测试二维码</el-button> <!--<el-button size="small" type="primary">生成测试二维码</el-button>-->
</template> </template>
</div> </div>
</template> </template>
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
</div> </div>
<div flex="main:center cross:center" class="app-order-info" style="width: 18%;"> <div flex="main:center cross:center" class="app-order-info" style="width: 18%;">
<el-tooltip class="item" effect="dark" content="同意" placement="top"> <el-tooltip class="item" effect="dark" content="同意" placement="top">
<img @click="setOrder(item,1)" v-if="item.ReOrderStatus==1" style="margin-right:5px" src="../../assets/img/userman/pass.png" alt=""> <img @click="agree(item,1)" v-if="item.ReOrderStatus==1" style="margin-right:5px" src="../../assets/img/userman/pass.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="拒绝" placement="top"> <el-tooltip class="item" effect="dark" content="拒绝" placement="top">
<img @click="setOrder(item,2)" v-if="item.ReOrderStatus==1" style="margin-right:5px" src="../../assets/img/userman/nopass.png" alt=""> <img @click="setOrder(item,2)" v-if="item.ReOrderStatus==1" style="margin-right:5px" src="../../assets/img/userman/nopass.png" alt="">
...@@ -340,6 +340,49 @@ ...@@ -340,6 +340,49 @@
<el-button size="small" type="primary" @click="FhsubmitForm('fhMsg')">确 定</el-button> <el-button size="small" type="primary" @click="FhsubmitForm('fhMsg')">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!--选择的商品列表-->
<el-dialog title="收货地区选择" :visible.sync="regionshow" width="1024px">
<template>
<el-table
:data="regionlist"
border
style="width: 100%">
<el-table-column label="选择" width="55">
<template slot-scope="scope">
<el-radio v-model="SetOrderMsg.DeliveryId" :label="scope.row.ID"><i></i></el-radio>
</template>
</el-table-column>
<el-table-column
property="Name"
label="收件人姓名"
width="200">
</el-table-column>
<el-table-column
property="Mobile"
label="联系方式"
width="200">
</el-table-column>
<el-table-column
property="Address"
label="详细地址"
width="200"
>
</el-table-column>
<el-table-column
property="Remarks"
label="备注">
</el-table-column>
</el-table>
<el-pagination style="text-align:right" background @current-change="handleCurrentChangere"
v-if="regionlist&&regionlist.length>0" :current-page.sync="regionMsg.pageIndex"
layout="total,prev, pager, next" :page-size="regionMsg.pageSize" :total="regiontotal">
</el-pagination>
</template>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="regionshow = false">取 消</el-button>
<el-button size="small" type="primary" @click="regionsubmitForm()">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -455,6 +498,19 @@ export default { ...@@ -455,6 +498,19 @@ export default {
fahuoList: [], fahuoList: [],
fhDig: false, fhDig: false,
ExpressList:[], ExpressList:[],
SetOrderMsg:{
ReOrderId:0,
Type:0,
DeliveryId:'',
},
regionMsg:{
pageIndex:1,
pageSize:20,
Name:'',
},
regionshow:false,
regionlist:[],
regiontotal:0,
} }
}, },
created(){ created(){
...@@ -549,26 +605,73 @@ export default { ...@@ -549,26 +605,73 @@ export default {
this.fahuoList.push(item.OrderDetailModel); this.fahuoList.push(item.OrderDetailModel);
this.fhDig=true; this.fhDig=true;
}, },
// 售后订单审核 //审核同意 收货地址选择
setOrder(item,num){ agree(item){
let msg={
ReOrderId:item.ReOrderId,
Type:num
}
let str="";
let that=this; let that=this;
if(num==1){ this.SetOrderMsg.ReOrderId=item.ReOrderId;
str="同意,是否继续"; this.SetOrderMsg.Type=1;
that.$confirm('同意,是否继续', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.regionshow=true;
this.getLogisticsDeliveryPage()
}).catch(() => {
});
},
//收货地址的列表
getLogisticsDeliveryPage(){
this.apipost("/api/MallBase/GetLogisticsDeliveryPage", this.regionMsg, res => {
if (res.data.resultCode == 1) {
this.regionlist = res.data.data.pageData;
this.regiontotal = res.data.data.count;
} else {
this.Info(res.data.message);
} }
if(num==2){ })
str="拒绝,是否继续"; },
handleCurrentChangere(val){
this.regionMsg.pageIndex = val;
this.getLogisticsDeliveryPage();
},
regionsubmitForm(){
this.apipost('/api/order/SetOrderAfterSaleAudit',this.SetOrderMsg,
res => {
if (res.data.resultCode === 1) {
this.regionshow=false
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
} }
that.$confirm(str, '提示', { },
null
);
},
// 售后订单审核
setOrder(item){
this.SetOrderMsg.ReOrderId=item.ReOrderId;
this.SetOrderMsg.Type=2;
this.SetOrderMsg.DeliveryId='';
let that=this;
// if(num==1){
// str="同意,是否继续";
// }
that.$confirm('拒绝,是否继续', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.apipost('/api/order/SetOrderAfterSaleAudit',msg, this.apipost('/api/order/SetOrderAfterSaleAudit',this.SetOrderMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
......
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
label="数量" label="数量"
width="150"> width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div>总数量:{{scope.row.TotalNum ==-1? '无限制领取':scope.row.TotalNum}}</div> <div>总数量:{{scope.row.TotalNum ==-1? '无限制领取':scope.row.TotalNum+scope.row.ResidueNum}}</div>
<div v-if="scope.row.TotalNum !=-1">剩余发放数:{{scope.row.ResidueNum}}</div> <div v-if="scope.row.TotalNum !=-1">剩余发放数:{{scope.row.TotalNum}}</div>
</template> </template>
</el-table-column> </el-table-column>
......
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