Commit 9b1b1270 by weix

修改bug

parent 808c9981
...@@ -16,4 +16,4 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/' ...@@ -16,4 +16,4 @@ VUE_APP_BASE_API11 = 'https://oss.xoado.com/v1/'
VUE_APP_BASE_API12 = 'http://xoado.tpddns.net:10001' VUE_APP_BASE_API12 = 'http://xoado.tpddns.net:10001'
VUE_APP_BASE_API13 = 'http://xoado.tpddns.net:10001/anc' VUE_APP_BASE_API13 = 'http://xoado.tpddns.net:10001/anc'
VUE_APP_BASE_API14 = 'http://xoado.tpddns.cn:10001/xoadotravel' VUE_APP_BASE_API14 = 'http://xoado.tpddns.cn:10001/xoadotravel'
VUE_APP_BASE_API15 = 'http://xoado.tpddns.net:10001/brand' VUE_APP_BASE_API15 = 'http://xoado.tpddns.net:10001/smart'
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
methods: { methods: {
loginout() { loginout() {
this.$store.dispatch('user/loginOut'); this.$store.dispatch('user/loginOut');
this.$store.commit('business/DEL_BRANDLIST')
} }
}, },
computed: { computed: {
......
...@@ -39,6 +39,10 @@ const mutations = { ...@@ -39,6 +39,10 @@ const mutations = {
state.brandList = payload state.brandList = payload
sessionStorage.setItem('brandList', payload) sessionStorage.setItem('brandList', payload)
}, },
DEL_BRANDLIST(state) {
state.brandList = '';
sessionStorage.removeItem('brandList');
}
} }
const actions = { const actions = {
...@@ -50,17 +54,16 @@ const actions = { ...@@ -50,17 +54,16 @@ const actions = {
/** 正式环境注释 */ /** 正式环境注释 */
res.data.forEach(item => { res.data.forEach(item => {
if(item.brandName.indexOf('玖玖') !== -1) { if(item.brandName.indexOf('玖玖') !== -1) {
item.brandUrl = 'http://192.168.0.251:8181/brand'; item.brandUrl = 'http://xoado.tpddns.net:10001/brand';
} }
if(item.brandName.indexOf('江南') !== -1) { if(item.brandName.indexOf('江南') !== -1) {
item.brandUrl = 'http://192.168.0.251:9191/brand'; item.brandUrl = 'http://xoado.tpddns.net:10001/brandjn';
} }
if(item.brandName.indexOf('妥妥') !== -1) { if(item.brandName.indexOf('妥妥') !== -1) {
item.brandUrl = 'http://192.168.0.251:9292/brand'; item.brandUrl = 'http://xoado.tpddns.net:10001/brandtt';
} }
}) })
/** 测试环境注释 */ /** 测试环境注释 */
// res.data.forEach(item => { // res.data.forEach(item => {
// item.brandUrl = item.brandUrl+'/brand'; // item.brandUrl = item.brandUrl+'/brand';
......
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
<span style="white-space: nowrap; margin-right: 10px" <span style="white-space: nowrap; margin-right: 10px"
>品牌方:</span >品牌方:</span
> >
<el-select v-model="optionse" placeholder="请选择"> <el-select v-model="platformInfo" placeholder="请选择" style="width: 200px;">
<el-option <el-option
v-for="item in optionsx" v-for="item in brandLists"
:key="item.value" :key="item.value"
:label="item.label" :label="item.brandName"
:value="item.value" :value="JSON.stringify(item)"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
style="margin: 0 10px" style="margin: 0 10px"
size="small" size="small"
@click="Inquire" @click="Inquire"
>查询</el-button >查询
</el-button
> >
</div> </div>
</div> </div>
...@@ -121,7 +122,8 @@ ...@@ -121,7 +122,8 @@
text-align: right; text-align: right;
" "
>订单来源:</span >订单来源:</span
>{{ orderSources(payData.orderSource) >{{
orderSources(payData.orderSource)
}}{{ payData.channelNumber }} }}{{ payData.channelNumber }}
</div> </div>
<div>车牌号:{{ payData.tplateNumber }}</div> <div>车牌号:{{ payData.tplateNumber }}</div>
...@@ -193,7 +195,8 @@ ...@@ -193,7 +195,8 @@
:underline="false" :underline="false"
style="padding-left: 10px" style="padding-left: 10px"
@click="getpayInfoFun" @click="getpayInfoFun"
>获取</el-link >获取
</el-link
> >
</div> </div>
</div> </div>
...@@ -201,7 +204,8 @@ ...@@ -201,7 +204,8 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="paystatus = false">取 消</el-button> <el-button @click="paystatus = false">取 消</el-button>
<el-button type="primary" @click="setpaystatusBtn" <el-button type="primary" @click="setpaystatusBtn"
>确定更改</el-button >确定更改
</el-button
> >
</div> </div>
</el-dialog> </el-dialog>
...@@ -344,7 +348,8 @@ ...@@ -344,7 +348,8 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="finishStatus = false">取 消</el-button> <el-button @click="finishStatus = false">取 消</el-button>
<el-button type="primary" @click="updataBatch" <el-button type="primary" @click="updataBatch"
>强制完单</el-button >强制完单
</el-button
> >
</div> </div>
</el-dialog> </el-dialog>
...@@ -360,14 +365,16 @@ ...@@ -360,14 +365,16 @@
size="mini" size="mini"
@click="cancelOrder()" @click="cancelOrder()"
v-if="dataSource.status * 1 < 3" v-if="dataSource.status * 1 < 3"
>取消订单</el-button >取消订单
</el-button
> >
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
@click="driverInfo()" @click="driverInfo()"
v-if="dataSource.status * 1 == 2" v-if="dataSource.status * 1 == 2"
>同步司机信息</el-button >同步司机信息
</el-button
> >
<el-button <el-button
type="warning" type="warning"
...@@ -376,7 +383,8 @@ ...@@ -376,7 +383,8 @@
dataSource.status * 1 < 6 && dataSource.status * 1 >= 1 dataSource.status * 1 < 6 && dataSource.status * 1 >= 1
" "
@click="finishOrder()" @click="finishOrder()"
>强制完单</el-button >强制完单
</el-button
> >
<el-button <el-button
...@@ -389,7 +397,8 @@ ...@@ -389,7 +397,8 @@
dataSource.orderSource * 1 == 4 || dataSource.orderSource * 1 == 4 ||
dataSource.orderSource * 1 == 7) dataSource.orderSource * 1 == 7)
" "
>更改支付状态</el-button >更改支付状态
</el-button
> >
<!-- orderSource=6 4 7 --> <!-- orderSource=6 4 7 -->
...@@ -408,11 +417,12 @@ ...@@ -408,11 +417,12 @@
<li> <li>
<div> <div>
<span>订单编号:{{ dataSource.orderId }}</span> <span>订单编号:{{ dataSource.orderId }}</span>
<CopyIcon :msg="dataSource.orderId" /> <CopyIcon :msg="dataSource.orderId"/>
</div> </div>
<div> <div>
<span <span
>订单来源:{{ orderSources(dataSource.orderSource) >订单来源:{{
orderSources(dataSource.orderSource)
}}{{ dataSource.channelNumber }}</span }}{{ dataSource.channelNumber }}</span
> >
<CopyIcon <CopyIcon
...@@ -453,10 +463,11 @@ ...@@ -453,10 +463,11 @@
</div> </div>
<div> <div>
<span v-if="dataSource.passengerMobile" <span v-if="dataSource.passengerMobile"
>下单人:{{ dataSource.originatorName >下单人:{{
dataSource.originatorName
}}{{ dataSource.originatorMobile }}</span }}{{ dataSource.originatorMobile }}</span
> >
<CopyIcon :msg="dataSource.originatorMobile" /> <CopyIcon :msg="dataSource.originatorMobile"/>
</div> </div>
</li> </li>
<li> <li>
...@@ -522,7 +533,7 @@ ...@@ -522,7 +533,7 @@
<li v-if="dataSource.waybillId"> <li v-if="dataSource.waybillId">
<div> <div>
<span>运单编号:{{ dataSource.waybillId }}</span> <span>运单编号:{{ dataSource.waybillId }}</span>
<CopyIcon :msg="dataSource.waybillId" /> <CopyIcon :msg="dataSource.waybillId"/>
</div> </div>
</li> </li>
</ul> </ul>
...@@ -683,7 +694,7 @@ ...@@ -683,7 +694,7 @@
> >
<el-row> <el-row>
<audio ref="audio" controls style="outline: none; width: 100%"> <audio ref="audio" controls style="outline: none; width: 100%">
<source :src="orderrecord" type="audio/mpeg" /> <source :src="orderrecord" type="audio/mpeg"/>
<!--<source src="../../assets/test.mp3" type="audio/mpeg" />--> <!--<source src="../../assets/test.mp3" type="audio/mpeg" />-->
Your browser does not support the audio element Your browser does not support the audio element
</audio> </audio>
...@@ -728,7 +739,7 @@ ...@@ -728,7 +739,7 @@
<script> <script>
import JudgeType from "@/mixins/judgeType"; import JudgeType from "@/mixins/judgeType";
import { formatDate } from "@/utils/formatDate"; import {formatDate} from "@/utils/formatDate";
import { import {
getThisorderInfo, getThisorderInfo,
userLog, userLog,
...@@ -736,7 +747,7 @@ import { ...@@ -736,7 +747,7 @@ import {
OrderDetailsSelect, OrderDetailsSelect,
soundRecording, soundRecording,
} from "@/port/set-request"; } from "@/port/set-request";
import { platformInfosList } from "@/port/platfrom/setting"; import {platformInfosList} from "@/port/platfrom/setting";
import { import {
CancelOrder, CancelOrder,
updateBatchOrder, updateBatchOrder,
...@@ -746,7 +757,7 @@ import { ...@@ -746,7 +757,7 @@ import {
} from "@/port/orderOperation"; } from "@/port/orderOperation";
import maps from "./maps"; import maps from "./maps";
import CopyIcon from "./components/CopyIcon"; import CopyIcon from "./components/CopyIcon";
import { mapGetters } from "vuex"; import {mapGetters} from "vuex";
export default { export default {
name: "OrderDetails", name: "OrderDetails",
...@@ -767,9 +778,22 @@ export default { ...@@ -767,9 +778,22 @@ export default {
transportId: "user/transportId", transportId: "user/transportId",
userInfo: "user/userInfo", userInfo: "user/userInfo",
}), }),
brandLists() {
let brandList = this.$store.getters.brandList;
if(brandList.length === 0) {
return new Promise(() =>{
this.$store.dispatch('business/getBrandList')
})
brandList = this.$store.getters.brandList;
}
this.platformInfo = brandList.length > 0 ? JSON.stringify(brandList[0]) : '';
return brandList;
}
}, },
data() { data() {
return { return {
platformInfo: '',
optionsx: [ optionsx: [
{ {
brandUrl: "https://hgxd.99zcx.com", brandUrl: "https://hgxd.99zcx.com",
...@@ -840,7 +864,8 @@ export default { ...@@ -840,7 +864,8 @@ export default {
// optionsx // optionsx
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
methods: { methods: {
...@@ -850,16 +875,16 @@ export default { ...@@ -850,16 +875,16 @@ export default {
let platformId = this.optionse; let platformId = this.optionse;
let json = { let json = {
orderId: this.orderid, orderId: this.orderid,
brandUrl: "", brandUrl: JSON.parse(this.platformInfo).brandUrl,
platformId: "", platformId: JSON.parse(this.platformInfo).platformId,
}; };
let arr = this.optionsx; // let arr = this.optionsx;
arr.map(function (item) { // arr.map(function (item) {
if (item.value == platformId) { // if (item.value == platformId) {
json.brandUrl = item.brandUrl; // json.brandUrl = item.brandUrl;
json.platformId = item.value; // json.platformId = item.value;
} // }
}); // });
this.getOrderInfo(json); this.getOrderInfo(json);
this.seeLeftLog(json); this.seeLeftLog(json);
}, },
...@@ -868,7 +893,7 @@ export default { ...@@ -868,7 +893,7 @@ export default {
this.finishStatus = true; this.finishStatus = true;
}, },
updataBatch() { updataBatch() {
let json = [{ orderid: this.finishdata.orderId, status: 6 }]; let json = [{orderid: this.finishdata.orderId, status: 6}];
updateBatchOrder(json).then((res) => { updateBatchOrder(json).then((res) => {
if (res.status == 200) { if (res.status == 200) {
this.finishStatus = false; this.finishStatus = false;
...@@ -1198,7 +1223,7 @@ export default { ...@@ -1198,7 +1223,7 @@ export default {
beforeDestroy() { beforeDestroy() {
this.$store.commit( this.$store.commit(
"business/SET_ORDERDETAIL", "business/SET_ORDERDETAIL",
JSON.stringify({ brandUrl: "", platformId: "" }) JSON.stringify({brandUrl: "", platformId: ""})
); );
}, },
}; };
...@@ -1206,10 +1231,10 @@ export default { ...@@ -1206,10 +1231,10 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
html html
body body
.vue-admin-beautiful-wrapper .vue-admin-beautiful-wrapper
.app-main-container .app-main-container
> [class*="-container"] { > [class*="-container"] {
padding: 0; padding: 0;
background: #f5f5f5; background: #f5f5f5;
} }
...@@ -1492,14 +1517,17 @@ html ...@@ -1492,14 +1517,17 @@ html
.orangeColor { .orangeColor {
color: #ff9901; color: #ff9901;
} }
.orderpaydialog { .orderpaydialog {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.orderpaydialog > div { .orderpaydialog > div {
flex: 1; flex: 1;
} }
.orderpaydialogContent { .orderpaydialogContent {
margin: 10px 0; margin: 10px 0;
display: flex; display: flex;
......
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