Commit e0326401 authored by 邓春圆's avatar 邓春圆

Merge remote-tracking branch 'origin/dev' into dev

parents f014406d 7028fab8
<template> <template>
<div> <div>
<div class="filters mb-10" v-if="showFilter"> <div class="filters mb-10" v-if="showFilter">
<template v-if="!type">
{{$t('运输方式')}} {{$t('运输方式')}}
<dict-selector :type='DICT_TYPE.ECW_TRANSPORT_TYPE' v-model="transportType" :placeholder="$t('请选择运输方式')" :filter="transportFilter" style="width:150px" /> <dict-selector :type='DICT_TYPE.ECW_TRANSPORT_TYPE' v-model="transportType" :placeholder="$t('请选择运输方式')" :filter="transportFilter" style="width:150px" />
</template>
{{$t('始发地')}}: {{$t('始发地')}}:
<el-select :placeholder="$t('请选择始发地')" v-model="exportCity" clearable> <el-select :placeholder="$t('请选择始发地')" v-model="exportCity" clearable>
<el-option v-for="item in exportCityList" :key="item.id" :label="item.titleZh" :value="item.id" /> <el-option v-for="item in exportCityList" :key="item.id" :label="item.titleZh" :value="item.id" />
...@@ -14,7 +15,7 @@ ...@@ -14,7 +15,7 @@
<el-option v-for="item in importCityList" :key="item.id" :label="item.titleZh" :value="item.id" /> <el-option v-for="item in importCityList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select> </el-select>
<template v-if="type == 'air'"> <template v-if="type != 'sea'">
{{$t('出货渠道')}}: {{$t('出货渠道')}}:
<el-select :placeholder="$t('请选择目渠道')" v-model="channelId" clearable> <el-select :placeholder="$t('请选择目渠道')" v-model="channelId" clearable>
<el-option v-for="item in channelList" :key="item.channelId" :label="item.nameZh" :value="item.channelId" /> <el-option v-for="item in channelList" :key="item.channelId" :label="item.nameZh" :value="item.channelId" />
......
...@@ -129,7 +129,7 @@ input, textarea{ ...@@ -129,7 +129,7 @@ input, textarea{
} }
.el-scrollbar__view{ .el-scrollbar__view{
overflow-x: hidden; /*overflow-x: hidden;*/
} }
.el-rate{ .el-rate{
......
This diff is collapsed.
...@@ -292,10 +292,10 @@ export default { ...@@ -292,10 +292,10 @@ export default {
product_id: productData.prodId, product_id: productData.prodId,
product_type: res.data.typeId, product_type: res.data.typeId,
transportId: this.orderData.transportId, transportId: this.orderData.transportId,
exportCity: this.orderData.logisticsInfoDto.startCityId, importCity: this.orderData.objectiveVO.objectiveId,
importCity: this.orderData.logisticsInfoDto.destCityId, exportCity: this.orderData.departureVO.departureId,
startWarehouseId: this.orderData.logisticsInfoDto.startWarehouseId, startWarehouseId: this.orderData.departureVO.id,
destWarehouseId: this.orderData.logisticsInfoDto.destWarehouseId, destWarehouseId: this.orderData.objectiveVO.id,
lineId: this.orderData.logisticsInfoDto.lineId, lineId: this.orderData.logisticsInfoDto.lineId,
channelId: this.orderData.logisticsInfoDto.channelId channelId: this.orderData.logisticsInfoDto.channelId
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item :label="$t('单价模式')" prop="priceType"> <el-form-item :label="$t('单价模式')" prop="priceType">
<dict-selector :type="DICT_TYPE.ECW_PRICE_TYPE" v-model="form.priceType" form-type="radio" /> <dict-selector :type="DICT_TYPE.ECW_PRICE_TYPE" v-model="form.priceType" form-type="radio" formatter='number' />
</el-form-item> </el-form-item>
<!--阶梯订单--> <!--阶梯订单-->
...@@ -210,6 +210,7 @@ export default { ...@@ -210,6 +210,7 @@ export default {
specialList: [], specialList: [],
priceStepList: [], priceStepList: [],
stepPrice: 0, stepPrice: 0,
priceType: null
// advanceStatus: 0, // advanceStatus: 0,
// needBook: 0, // needBook: 0,
// dayLimit: 10000 // dayLimit: 10000
...@@ -234,7 +235,9 @@ export default { ...@@ -234,7 +235,9 @@ export default {
computed: { computed: {
// 类型,默认海运sea,air表示空运 // 类型,默认海运sea,air表示空运
type(){ type(){
return this.$route.path.split(/[-_]/).pop() let type = this.$route.path.split(/[-_]/).pop()
if(type == 'air' || type == 'sea') return type
return null
}, },
// 默认运费的货币和体积单位 // 默认运费的货币和体积单位
currencyAndUnit(){ currencyAndUnit(){
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="150px"> <el-form ref="form" :model="form" :rules="rules" label-width="150px">
<products-selector ref="productSelector" v-model="form.productIdList" show-all @setall="isAllProduct=$event" :default-ids="form.productIdList" class="mb-20" /> <products-selector ref="productSelector" v-model="form.productIdList" show-all @setall="isAllProduct=$event" :default-ids="form.productIdList" class="mb-20" />
<routers-selector v-model="selectedRoutes" :type="type" :show-filter="false" /> <routers-selector v-model="selectedRoutes" :type="type" />
<el-card style="margin-bottom: 10px"> <el-card style="margin-bottom: 10px">
<div slot="header" style="font-size:20px;"> <div slot="header" style="font-size:20px;">
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="advanceStatus" :label="$t('询')" align="center" width="80"> <el-table-column prop="advanceStatus" :label="$t('询')" align="center" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.NEED_ORDER_INQUIRY" :value="scope.row.needOrderInquiry"></dict-tag> <dict-tag :type="DICT_TYPE.NEED_ORDER_INQUIRY" :value="scope.row.needOrderInquiry"></dict-tag>
</template> </template>
...@@ -406,7 +406,8 @@ export default { ...@@ -406,7 +406,8 @@ export default {
AuditStatusEnum: AuditStatusEnum, AuditStatusEnum: AuditStatusEnum,
locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION), locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION),
// 查看更多阶梯价 // 查看更多阶梯价
showMoreStepPriceItem: null showMoreStepPriceItem: null,
entryPath: null
}; };
}, },
...@@ -545,6 +546,10 @@ export default { ...@@ -545,6 +546,10 @@ export default {
// if(!this.$route.query.product_id){ // if(!this.$route.query.product_id){
// return this.product = null // return this.product = null
// } // }
// 价格列表 跟 商品的价格列表,有时候商品价格列表的路由变动会导致价格列表也执行此处代码,所以做一个判断排除
// https://zentao.test.jdshangmen.com/bug-view-4928.html
if(this.$route.path != this.entryPath) return
let productId = this.product?.id let productId = this.product?.id
if(this.$route.name === 'ProductPrice'){ if(this.$route.name === 'ProductPrice'){
if(this.$route.query.product_id != productId){ if(this.$route.query.product_id != productId){
...@@ -562,6 +567,7 @@ export default { ...@@ -562,6 +567,7 @@ export default {
} }
}, },
created() { created() {
this.entryPath = this.$route.path
if(this.$route.query.product_type){ if(this.$route.query.product_type){
this.$set(this.queryParams, 'typeId', +this.$route.query.product_type); this.$set(this.queryParams, 'typeId', +this.$route.query.product_type);
} }
......
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