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>
......
...@@ -60,25 +60,25 @@ ...@@ -60,25 +60,25 @@
<span class="app-order-time">订单号:</span>{{item.ReOrderNo}} <span class="app-order-time">订单号:</span>{{item.ReOrderNo}}
</div> </div>
<div flex="cross:center" class="app-order-user"> <div flex="cross:center" class="app-order-user">
<img v-if="item.OrderModel.OrderSource==1" src="../../assets/img/userman/wx.png" alt=""> <img v-if="item.OrderModel.OrderSource==1" src="../../assets/img/userman/wx.png" alt="">
<span>{{item.UserName}}({{item.UserId}})</span> <span>{{item.UserName}}({{item.UserId}})</span>
</div> </div>
<!-- <div flex="dir:left wrap:wrap" class="app-order-offline"> <!-- <div flex="dir:left wrap:wrap" class="app-order-offline">
<div class="express-send-box"> <div class="express-send-box">
<span class="el-tag el-tag--small el-tag--light">{{item.DeliveryMethodName}}</span> <span class="el-tag el-tag--small el-tag--light">{{item.DeliveryMethodName}}</span>
</div> </div>
<el-tag v-if="item.PaymentTime==''" style="margin-left:5px" size="small" type="warning">未付款</el-tag> <el-tag v-if="item.PaymentTime==''" style="margin-left:5px" size="small" type="warning">未付款</el-tag>
<el-tag v-else style="margin-left:5px" size="small" type="warning">已付款</el-tag> <el-tag v-else style="margin-left:5px" size="small" type="warning">已付款</el-tag>
<el-tag v-if="item.DeliveryTime=='' && item.ReceivingTime==''" style="margin-left:5px" size="small" type="success">未发货</el-tag> <el-tag v-if="item.DeliveryTime=='' && item.ReceivingTime==''" style="margin-left:5px" size="small" type="success">未发货</el-tag>
<el-tag v-if="item.DeliveryTime!='' && item.ReceivingTime==''" style="margin-left:5px" size="small" type="success">待发货</el-tag> <el-tag v-if="item.DeliveryTime!='' && item.ReceivingTime==''" style="margin-left:5px" size="small" type="success">待发货</el-tag>
<el-tag v-if="item.ReceivingTime!=''" style="margin-left:5px" size="small" type="success">已收货</el-tag> <el-tag v-if="item.ReceivingTime!=''" style="margin-left:5px" size="small" type="success">已收货</el-tag>
<el-tag v-if="item.ReceivingTime!=''" style="margin-left:5px" size="small" type="success">已完成</el-tag> <el-tag v-if="item.ReceivingTime!=''" style="margin-left:5px" size="small" type="success">已完成</el-tag>
<el-tag v-if="item.OrderStatus==7" style="margin-left:5px" size="small" type="danger">已取消</el-tag> <el-tag v-if="item.OrderStatus==7" style="margin-left:5px" size="small" type="danger">已取消</el-tag>
</div> --> </div> -->
</div> </div>
</div> </div>
...@@ -131,17 +131,17 @@ ...@@ -131,17 +131,17 @@
<div>实付金额:¥{{item.Income}}</div> <div>实付金额:¥{{item.Income}}</div>
<div v-if="item.ReOrderStatus==3">申请退款:¥{{item.Refund}}</div> <div v-if="item.ReOrderStatus==3">申请退款:¥{{item.Refund}}</div>
</div> </div>
</div> </div>
<div flex="cross:center" class="app-order-info" style="width: 8%;"> <div flex="cross:center" class="app-order-info" style="width: 8%;">
<el-tooltip class="item" effect="dark" :content="item.Remark" placement="top"> <el-tooltip class="item" effect="dark" :content="item.Remark" placement="top">
<div>{{item.Remark}}</div> <div>{{item.Remark}}</div>
</el-tooltip> </el-tooltip>
</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="">
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
<div class="card-footer"> <div class="card-footer">
<div> <div>
<div flex="dir:left"> <div flex="dir:left">
<div class="address-box">收货人: {{item.OrderModel.Consignee}} <div class="address-box">收货人: {{item.OrderModel.Consignee}}
电话:{{item.OrderModel.Mobile}} 地址: 电话:{{item.OrderModel.Mobile}} 地址:
{{item.OrderModel.DistrictAddress}} {{item.OrderModel.DistrictAddress}}
{{item.OrderModel.ShoppingAddress}}</div> {{item.OrderModel.ShoppingAddress}}</div>
...@@ -207,8 +207,8 @@ ...@@ -207,8 +207,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>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
<el-table-column prop="Specification" label="规格"> <el-table-column prop="Specification" label="规格">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(item,index) in scope.row.SpecificationList" :key="index" style="margin-left:5px"> <span v-for="(item,index) in scope.row.SpecificationList" :key="index" style="margin-left:5px">
{{item}} {{item}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -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>
...@@ -357,7 +400,7 @@ export default { ...@@ -357,7 +400,7 @@ export default {
isIndeterminate: true, isIndeterminate: true,
addMsg:{}, addMsg:{},
dialogVisible:false, dialogVisible:false,
activeName:'first', activeName:'first',
msgVal:'', msgVal:'',
dateList:[], dateList:[],
...@@ -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(){
...@@ -489,7 +545,7 @@ export default { ...@@ -489,7 +545,7 @@ export default {
null null
); );
}).catch(() => { }).catch(() => {
}); });
}, },
// 修改收货地址 // 修改收货地址
...@@ -547,28 +603,75 @@ export default { ...@@ -547,28 +603,75 @@ export default {
this.fahuoList=[]; this.fahuoList=[];
item.OrderDetailModel.ReNumber=item.ReNumber; item.OrderDetailModel.ReNumber=item.ReNumber;
this.fahuoList.push(item.OrderDetailModel); this.fahuoList.push(item.OrderDetailModel);
this.fhDig=true; this.fhDig=true;
}, },
// 售后订单审核 //审核同意 收货地址选择
setOrder(item,num){ agree(item){
let msg={ let that=this;
ReOrderId:item.ReOrderId, this.SetOrderMsg.ReOrderId=item.ReOrderId;
Type:num this.SetOrderMsg.Type=1;
} that.$confirm('同意,是否继续', '提示', {
let str=""; confirmButtonText: '确定',
let that=this; cancelButtonText: '取消',
if(num==1){ type: 'warning'
str="同意,是否继续"; }).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();
...@@ -580,7 +683,7 @@ export default { ...@@ -580,7 +683,7 @@ export default {
null null
); );
}).catch(() => { }).catch(() => {
}); });
}, },
...@@ -688,7 +791,7 @@ export default { ...@@ -688,7 +791,7 @@ export default {
} }
this.getList(); this.getList();
}, },
Export(){ Export(){
this.msg.ExcelEnumIds=this.checkedCities; this.msg.ExcelEnumIds=this.checkedCities;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
...@@ -706,7 +809,7 @@ export default { ...@@ -706,7 +809,7 @@ export default {
data.forEach(item=>{ data.forEach(item=>{
this.cityOptions.push(item.Id) this.cityOptions.push(item.Id)
}) })
}) })
}, },
handleCheckAllChange(val) { handleCheckAllChange(val) {
...@@ -723,7 +826,7 @@ export default { ...@@ -723,7 +826,7 @@ export default {
this.msg.SelectStatus=dataId; this.msg.SelectStatus=dataId;
this.getList(); this.getList();
}, },
getList(){ getList(){
if(!this.msgVal || this.msgVal==''){ if(!this.msgVal || this.msgVal==''){
this.msg.ReOrderNo=''; this.msg.ReOrderNo='';
...@@ -749,10 +852,10 @@ export default { ...@@ -749,10 +852,10 @@ export default {
let pageData=res.data.data.pageData; let pageData=res.data.data.pageData;
this.tableData=pageData; this.tableData=pageData;
} }
}) })
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
...@@ -772,7 +875,7 @@ export default { ...@@ -772,7 +875,7 @@ export default {
this.orderTypeList=res.data.data; this.orderTypeList=res.data.data;
}) })
}, },
getplat(){ getplat(){
this.apipost("/api/user/GetMemberUserSourceEnumList",{}, res => { this.apipost("/api/user/GetMemberUserSourceEnumList",{}, res => {
this.platList=res.data.data; this.platList=res.data.data;
...@@ -809,7 +912,7 @@ export default { ...@@ -809,7 +912,7 @@ export default {
} }
}) })
}, },
}, },
}; };
</script> </script>
...@@ -885,7 +988,7 @@ export default { ...@@ -885,7 +988,7 @@ export default {
width: 15%; width: 15%;
text-align: center; text-align: center;
border-right: 1px solid #EBEEF5; border-right: 1px solid #EBEEF5;
} }
.app-order-list .goods-item .goods .app-order-goods-price { .app-order-list .goods-item .goods .app-order-goods-price {
height: 24px; height: 24px;
......
...@@ -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