Browse Source

修改微信直播页面添加参数

master
xuwenbo 4 years ago
parent
commit
1bd5fb98f6
  1. 138
      src/views/shop/order/detail.vue
  2. 44
      src/views/wechat/live/index.vue

138
src/views/shop/order/detail.vue

@ -15,7 +15,6 @@
<span class="color-danger">当前订单状态{{order.statusName}}</span> <span class="color-danger">当前订单状态{{order.statusName}}</span>
<div class="operate-button-container" v-show="order._status===1"> <div class="operate-button-container" v-show="order._status===1">
<el-button size="mini" @click="showUpdateReceiverDialog">修改收货人信息</el-button> <el-button size="mini" @click="showUpdateReceiverDialog">修改收货人信息</el-button>
<el-button size="mini">修改商品信息</el-button>
<el-button size="mini" @click="showUpdateMoneyDialog">修改费用信息</el-button> <el-button size="mini" @click="showUpdateMoneyDialog">修改费用信息</el-button>
<el-button size="mini" @click="showCloseOrderDialog">关闭订单</el-button> <el-button size="mini" @click="showCloseOrderDialog">关闭订单</el-button>
<el-button size="mini" @click="showMarkOrderDialog">备注订单</el-button> <el-button size="mini" @click="showMarkOrderDialog">备注订单</el-button>
@ -51,7 +50,7 @@
<el-row> <el-row>
<el-col :span="4" class="table-cell">{{order.orderId}}</el-col> <el-col :span="4" class="table-cell">{{order.orderId}}</el-col>
<el-col :span="4" class="table-cell">暂无</el-col> <el-col :span="4" class="table-cell">暂无</el-col>
<el-col :span="4" class="table-cell">{{order.userDTO.nickname}}</el-col> <el-col :span="4" class="table-cell">{{userDTO.nickname}}</el-col>
<el-col :span="4" class="table-cell">{{order.payTypeName }}</el-col> <el-col :span="4" class="table-cell">{{order.payTypeName }}</el-col>
<el-col :span="4" class="table-cell">{{order.isChannel | formatSourceType}}</el-col> <el-col :span="4" class="table-cell">{{order.isChannel | formatSourceType}}</el-col>
<el-col :span="4" class="table-cell">{{order.pinkName }}</el-col> <el-col :span="4" class="table-cell">{{order.pinkName }}</el-col>
@ -96,7 +95,7 @@
<el-col :span="4" class="table-cell-title">管理员备注</el-col> <el-col :span="4" class="table-cell-title">管理员备注</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="table-cell">{{ order.userDTO.nickname}}</el-col> <el-col :span="4" class="table-cell">{{ userDTO.nickname}}</el-col>
<el-col :span="4" class="table-cell">{{order.realName}}</el-col> <el-col :span="4" class="table-cell">{{order.realName}}</el-col>
<el-col :span="4" class="table-cell">{{order.userPhone}}</el-col> <el-col :span="4" class="table-cell">{{order.userPhone}}</el-col>
<el-col :span="4" class="table-cell"> <el-col :span="4" class="table-cell">
@ -247,42 +246,42 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
<el-dialog title="修改收货人信息" <!-- <el-dialog title="修改收货人信息"-->
:visible.sync="receiverDialogVisible" <!-- :visible.sync="receiverDialogVisible"-->
width="40%"> <!-- width="40%">-->
<el-form :model="receiverInfo" <!-- <el-form :model="receiverInfo"-->
ref="receiverInfoForm" <!-- ref="receiverInfoForm"-->
label-width="150px"> <!-- label-width="150px">-->
<el-form-item label="收货人姓名:"> <!-- <el-form-item label="收货人姓名:">-->
<el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input> <!-- <el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="手机号码:"> <!-- <el-form-item label="手机号码:">-->
<el-input v-model="receiverInfo.receiverPhone" style="width: 200px"> <!-- <el-input v-model="receiverInfo.receiverPhone" style="width: 200px">-->
</el-input> <!-- </el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="邮政编码:"> <!-- <el-form-item label="邮政编码:">-->
<el-input v-model="receiverInfo.receiverPostCode" style="width: 200px"> <!-- <el-input v-model="receiverInfo.receiverPostCode" style="width: 200px">-->
</el-input> <!-- </el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="所在区域:"> <!-- <el-form-item label="所在区域:">-->
<v-distpicker :province="receiverInfo.receiverProvince" <!-- <v-distpicker :province="receiverInfo.receiverProvince"-->
:city="receiverInfo.receiverCity" <!-- :city="receiverInfo.receiverCity"-->
:area="receiverInfo.receiverRegion" <!-- :area="receiverInfo.receiverRegion"-->
@selected="onSelectRegion"></v-distpicker> <!-- @selected="onSelectRegion"></v-distpicker>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="详细地址:"> <!-- <el-form-item label="详细地址:">-->
<el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3"> <!-- <el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3">-->
</el-input> <!-- </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 @click="receiverDialogVisible = false"> </el-button> <!-- <el-button @click="receiverDialogVisible = false"> </el-button>-->
<el-button type="primary" @click="handleUpdateReceiverInfo"> </el-button> <!-- <el-button type="primary" @click="handleUpdateReceiverInfo"> </el-button>-->
</span> <!-- </span>-->
</el-dialog> <!-- </el-dialog>-->
<el-dialog title="修改费用信息" <el-dialog title="修改费用信息"
:visible.sync="moneyDialogVisible" :visible.sync="moneyDialogVisible"
width="40%"> width="80%">
<div class="table-layout"> <div class="table-layout">
<el-row> <el-row>
<el-col :span="6" class="table-cell-title">商品合计</el-col> <el-col :span="6" class="table-cell-title">商品合计</el-col>
@ -291,12 +290,12 @@
<el-col :span="6" class="table-cell-title">积分抵扣</el-col> <el-col :span="6" class="table-cell-title">积分抵扣</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6" class="table-cell">{{order.totalAmount}}</el-col> <el-col :span="6" class="table-cell">{{order.totalPrice}}</el-col>
<el-col :span="6" class="table-cell"> <el-col :span="6" class="table-cell">
<el-input v-model.number="moneyInfo.freightAmount" size="mini"><template slot="prepend"></template></el-input> <el-input type="number" v-model="order.payPostage" size="mini"><template slot="prepend"></template></el-input>
</el-col> </el-col>
<el-col :span="6" class="table-cell">-{{order.couponAmount}}</el-col> <el-col :span="6" class="table-cell">-{{order.couponPrice}}</el-col>
<el-col :span="6" class="table-cell">-{{order.integrationAmount}}</el-col> <el-col :span="6" class="table-cell">-{{order.useIntegral}}</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6" class="table-cell-title">活动优惠</el-col> <el-col :span="6" class="table-cell-title">活动优惠</el-col>
@ -307,13 +306,13 @@
<el-row> <el-row>
<el-col :span="6" class="table-cell">-{{order.promotionAmount}}</el-col> <el-col :span="6" class="table-cell">-{{order.promotionAmount}}</el-col>
<el-col :span="6" class="table-cell"> <el-col :span="6" class="table-cell">
<el-input v-model.number="moneyInfo.discountAmount" size="mini"><template slot="prepend">-</template></el-input> <el-input type="number" v-model="order.deductionPrice" size="mini"><template slot="prepend">-</template></el-input>
</el-col> </el-col>
<el-col :span="6" class="table-cell"> <el-col :span="6" class="table-cell">
<span class="color-danger">{{order.totalAmount+moneyInfo.freightAmount}}</span> <span class="color-danger">{{order.totalPrice}}</span>
</el-col> </el-col>
<el-col :span="6" class="table-cell"> <el-col :span="6" class="table-cell">
<span class="color-danger">{{order.payAmount+moneyInfo.freightAmount-moneyInfo.discountAmount}}</span> <span class="color-danger">{{order.payPrice}}</span>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -322,21 +321,21 @@
<el-button type="primary" @click="handleUpdateMoneyInfo"> </el-button> <el-button type="primary" @click="handleUpdateMoneyInfo"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- <el-dialog title="关闭订单"--> <el-dialog title="关闭订单"
<!-- :visible.sync="closeDialogVisible"--> :visible.sync="closeDialogVisible"
<!-- width="40%">--> width="40%">
<!-- <el-form :model="closeInfo"--> <el-form :model="closeInfo"
<!-- label-width="150px">--> label-width="150px">
<!-- <el-form-item label="操作备注:">--> <el-form-item label="操作备注:">
<!-- <el-input v-model="closeInfo.note" type="textarea" rows="3">--> <el-input v-model="closeInfo.note" type="textarea" rows="3">
<!-- </el-input>--> </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 @click="closeDialogVisible = false"> </el-button>--> <el-button @click="closeDialogVisible = false"> </el-button>
<!-- <el-button type="primary" @click="handleCloseOrder"> </el-button>--> <el-button type="primary" @click="handleCloseOrder"> </el-button>
<!-- </span>--> </span>
<!-- </el-dialog>--> </el-dialog>
<el-dialog title="订单跟踪" <el-dialog title="订单跟踪"
:visible.sync="kuaidiDialogVisible" :visible.sync="kuaidiDialogVisible"
width="40%"> width="40%">
@ -405,6 +404,7 @@ import {formatTimeTwo} from '@/utils/index';
closeInfo:{note:null,id:null}, closeInfo:{note:null,id:null},
markOrderDialogVisible:false, markOrderDialogVisible:false,
markInfo:{note:null}, markInfo:{note:null},
userDTO: {},
logisticsDialogVisible: { logisticsDialogVisible: {
visible: false, visible: false,
list: [] list: []
@ -428,15 +428,6 @@ import {formatTimeTwo} from '@/utils/index';
return value; return value;
} }
}, },
formatPayType(value) {
if (value === 1) {
return '支付宝';
} else if (value === 2) {
return '微信';
} else {
return '未支付';
}
},
formatSourceType(value) { formatSourceType(value) {
if (value === 1) { if (value === 1) {
return '小程序'; return '小程序';
@ -444,13 +435,6 @@ import {formatTimeTwo} from '@/utils/index';
return '公众号/H5'; return '公众号/H5';
} }
}, },
formatOrderType(value) {
if (value === 1) {
return '秒杀订单';
} else {
return '正常订单';
}
},
formatShippingType(value){ formatShippingType(value){
if (value === 1) { if (value === 1) {
return '快递'; return '快递';
@ -539,6 +523,7 @@ import {formatTimeTwo} from '@/utils/index';
let id = that.$route.params.id || 0; let id = that.$route.params.id || 0;
getOrderDetail(id).then(response => { getOrderDetail(id).then(response => {
this.order = response; this.order = response;
this.userDTO = this.order.userDTO;
}); });
}, },
onSelectRegion(data){ onSelectRegion(data){
@ -614,6 +599,7 @@ import {formatTimeTwo} from '@/utils/index';
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.moneyDialogVisible=false;
// updateMoneyInfo(this.moneyInfo).then(response=>{ // updateMoneyInfo(this.moneyInfo).then(response=>{
// this.moneyDialogVisible=false; // this.moneyDialogVisible=false;
// this.$message({ // this.$message({
@ -674,7 +660,7 @@ import {formatTimeTwo} from '@/utils/index';
showMarkOrderDialog(){ showMarkOrderDialog(){
this.markOrderDialogVisible=true; this.markOrderDialogVisible=true;
this.markInfo.id=this.id; this.markInfo.id=this.id;
// this.closeOrder.note=null; this.order.remark=null;
}, },
handleMarkOrder(){ handleMarkOrder(){
this.$confirm('是否要备注订单?', '提示', { this.$confirm('是否要备注订单?', '提示', {

44
src/views/wechat/live/index.vue

@ -79,6 +79,25 @@
<el-radio :label="0">开启</el-radio> <el-radio :label="0">开启</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="是否关闭回放" prop="closeLike" >
<el-radio-group v-model="form.closeReplay" :disabled="isDisabled">
<el-radio :label="1" class="radio">关闭</el-radio>
<el-radio :label="0">开启</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否关闭分享" prop="closeGoods" >
<el-radio-group v-model="form.closeShare" :disabled="isDisabled">
<el-radio :label="1" class="radio">关闭</el-radio>
<el-radio :label="0">开启</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否关闭客服" prop="closeComment" >
<el-radio-group v-model="form.closeKf" :disabled="isDisabled">
<el-radio :label="1" class="radio">关闭</el-radio>
<el-radio :label="0">开启</el-radio>
</el-radio-group>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="text" @click="crud.cancelCU">取消</el-button> <el-button type="text" @click="crud.cancelCU">取消</el-button>
@ -170,6 +189,29 @@
<el-tag v-else :type=" '' ">开启</el-tag> <el-tag v-else :type=" '' ">开启</el-tag>
</div> </div>
</template> </template>
<el-table-column v-if="columns.visible('closeReplay')" prop="closeReplay" label="回放" >
<template slot-scope="scope">
<div>
<el-tag v-if="scope.row.closeReplay === 1" :type="''">关闭</el-tag>
<el-tag v-else :type=" '' ">开启</el-tag>
</div>
</template>
</el-table-column>
<el-table-column v-if="columns.visible('closeShare')" prop="closeShare" label="分享" >
<template slot-scope="scope">
<div>
<el-tag v-if="scope.row.closeShare === 1" :type="''">关闭</el-tag>
<el-tag v-else :type=" '' ">开启</el-tag>
</div>
</template>
</el-table-column>
<el-table-column v-if="columns.visible('closeKf')" prop="closeKf" label="客服" >
<template slot-scope="scope">
<div>
<el-tag v-if="scope.row.closeKf === 1" :type="''">关闭</el-tag>
<el-tag v-else :type=" '' ">开启</el-tag>
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column v-permission="['admin','yxWechatLive:edit','yxWechatLive:del']" label="操作" width="150px" align="center"> <el-table-column v-permission="['admin','yxWechatLive:edit','yxWechatLive:del']" label="操作" width="150px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -204,7 +246,7 @@ const defaultCrud = CRUD({ optShow: {
del: false, del: false,
download: true download: true
},title: '直播房间', url: 'api/yxWechatLive', sort: 'room_id,desc', crudMethod: { ...crudYxWechatLive }}) },title: '直播房间', url: 'api/yxWechatLive', sort: 'room_id,desc', crudMethod: { ...crudYxWechatLive }})
const defaultForm = { product: [],roomId: null,productId: null, name: null, coverImge: null, startDate: null, endDate : null,shareImge: null, liveStatus: null, coverImgArr: [],shareImgArr: [],anchorImgArr: [],startTime: null, endTime: null, anchorName: null, anchorWechat: null, anchorImge: null, type: null, screenType: null, closeLike: null,closeGoods: null, closeComment: null } const defaultForm = { product: [],roomId: null,productId: null, name: null, coverImge: null, startDate: null, endDate : null,shareImge: null, liveStatus: null, coverImgArr: [],shareImgArr: [],anchorImgArr: [],startTime: null, endTime: null, anchorName: null, anchorWechat: null, anchorImge: null, type: 1, screenType: 0, closeLike: 0,closeGoods: 0, closeComment: 0,closeReplay: 0,closeShare:0,closeKf:0 }
export default { export default {
name: 'YxWechatLive', name: 'YxWechatLive',
components: { pagination, crudOperation, rrOperation ,MaterialList,udOperation,LiveGoods}, components: { pagination, crudOperation, rrOperation ,MaterialList,udOperation,LiveGoods},

Loading…
Cancel
Save