Commit 7fcb34c6 authored by 邓春圆's avatar 邓春圆

全部渠道列表

parent 6e35e931
...@@ -89,3 +89,28 @@ export function warehouseLinePage(params){ ...@@ -89,3 +89,28 @@ export function warehouseLinePage(params){
params, params,
}) })
} }
//获得空运线路模板
export function getAirLineChannelTemplateList(params){
return request({
url:'/ecw/warehouse-line/get-air-line-channel-template-list',
method:'get',
params
})
}
// 根据线路id渠道列表和清关费(复制使用)
export function getAirLineChannelPackagingList(id){
return request({
url:'/ecw/warehouse-line/get-air-line-channel-packaging-list',
method:'get',
params:{lineId:id}
})
}
// 创建仓库线路的渠道包装
export function createWarehouseLineChannelPackaging(data){
return request({
url:'/ecw/warehouse-line/create-warehouse-line-channel-packaging',
method:'put',
data
})
}
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
type:String, type:String,
default:'channelPriceStepClearanceList' default:'channelPriceStepClearanceList'
}, },
readonly: Boolean readonly: Boolean,
}, },
name: "packaging-type", name: "packaging-type",
components: {Template, WeightSelect, CurrencySelect}, components: {Template, WeightSelect, CurrencySelect},
...@@ -152,10 +152,11 @@ export default { ...@@ -152,10 +152,11 @@ export default {
deleteFn(index){ deleteFn(index){
this.value1[this.keyArr].splice(index, 1) this.value1[this.keyArr].splice(index, 1)
this.$forceUpdate(); this.$forceUpdate();
} }
}, },
watch:{ watch:{
'value1.priceStepClearanceList':{ 'value1.priceStepClearanceCreateReqVOList':{
handler(val){ handler(val){
if(val && val.length === 0){ if(val && val.length === 0){
this.addInterval(); this.addInterval();
......
...@@ -33,30 +33,33 @@ ...@@ -33,30 +33,33 @@
</el-form> </el-form>
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('序号')" align="center" type="index" /> <el-table-column :label="$t('序号')" align="center" type="index"/>
<el-table-column :label="$t('始发仓')" align="center"> <el-table-column :label="$t('始发仓')" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{$l(exportWarehouseList.find(i=>i.id === row.startWarehouseId),'title')}} {{ $l(exportWarehouseList.find(i => i.id === row.startWarehouseId), 'title') }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('目的仓')" align="center"> <el-table-column :label="$t('目的仓')" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{$l(importWarehouseList.find(i=>i.id === row.destWarehouseId),'title')}} {{ $l(importWarehouseList.find(i => i.id === row.destWarehouseId), 'title') }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('运输方式')" align="center" > <el-table-column :label="$t('运输方式')" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportType"></dict-tag> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportType"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('出货渠道')" align="center" > <el-table-column :label="$t('出货渠道')" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<!-- {{channelList.find(i=>i.channelId === row.)}}--> {{ row.channelIds ? $l(row, 'channelNames') : '/'}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button v-if="row.transportType === 3" type="text">空运渠道包装清关费</el-button> <el-button v-if="row.transportType === 3" type="text" @click="$router.push({
path:'/offer/channel-route?id='+ row.id,
})">空运渠道包装清关费
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -154,9 +157,8 @@ export default { ...@@ -154,9 +157,8 @@ export default {
this.loading = true; this.loading = true;
const params = {...this.queryParams} const params = {...this.queryParams}
// 执行查询 // 执行查询
warehouseLinePage(params).then(r =>{ warehouseLinePage(params).then(r => {
this.loading = false; this.loading = false;
console.log(r,'rrr')
this.list = r.data.list; this.list = r.data.list;
this.total = r.data.total this.total = r.data.total
}) })
......
This diff is collapsed.
<script> <script>
import {getAirLineChannelTemplateList} from "@/api/ecw/customerContacts"; import {warehouseLinePage} from "@/api/ecw/customerContacts";
import {getWarehouseList} from "@/api/ecw/warehouse"; import {getWarehouseList} from "@/api/ecw/warehouse";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
export default { export default {
name: "airFreightRouteTemplate", name: "airFreightRouteTemplate",
components: {Template}, components: {Template},
props:{
lineId:{
default:''
}
},
data() { data() {
return { return {
open: true, open: false,
warehouseList:[], warehouseList: [],
list:[], list: [],
form:{ total: 0,
form: {},
queryParams: {
pageSize:20,
transportType:3
} }
} }
}, },
mounted() { mounted() {
getWarehouseList().then((r) => { getWarehouseList().then((r) => {
this.warehouseList = r.data; this.warehouseList = r.data;
}); });
this.getList();
}, },
methods: { methods: {
getList() { getList() {
getAirLineChannelTemplateList(this.form).then(r => { warehouseLinePage(this.queryParams).then(r => {
console.log(r,'rrr') this.list = r.data.list;
this.list = r.data; this.total = r.data.total
}) })
}, },
copy(value) {
this.$emit('copy', value)
this.open = false
}
}, },
computed: { computed: {
exportWarehouseList() { exportWarehouseList() {
...@@ -44,20 +53,27 @@ export default { ...@@ -44,20 +53,27 @@ export default {
); );
}, },
}, },
watch: {
open(value) {
if (value) {
this.getList();
}
}
}
} }
</script> </script>
<template> <template>
<div> <div>
<div style="display: inline-block"> <div @click="open = true;" style="display: inline-block">
<slot></slot> <slot></slot>
</div> </div>
<el-dialog :visible.sync="open"> <el-dialog :visible.sync="open">
<el-card> <el-card>
<template #header> <template #header>
<el-form inline > <el-form inline>
<el-form-item label="始发地" > <el-form-item label="始发地">
<el-select v-model="form.startWarehouseId" :placeholder="$t('请选择始发地')"> <el-select v-model="form.startWarehouseId" :placeholder="$t('请选择始发地')">
<el-option v-for="item in exportWarehouseList" :label="$l(item, 'title')" :value="item.id" <el-option v-for="item in exportWarehouseList" :label="$l(item, 'title')" :value="item.id"
:key="item.id"></el-option> :key="item.id"></el-option>
...@@ -65,7 +81,8 @@ export default { ...@@ -65,7 +81,8 @@ export default {
</el-form-item> </el-form-item>
<el-form-item :label="$t('目的地')" prop="destWarehouseId"> <el-form-item :label="$t('目的地')" prop="destWarehouseId">
<el-select v-model="form.destWarehouseId" :placeholder="$t('请选择目的地')"> <el-select v-model="form.destWarehouseId" :placeholder="$t('请选择目的地')">
<el-option v-for="item in importWarehouseList" :label="$l(item, 'title')" :value="item.id" :key="item.id"></el-option> <el-option v-for="item in importWarehouseList" :label="$l(item, 'title')" :value="item.id"
:key="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -73,22 +90,27 @@ export default { ...@@ -73,22 +90,27 @@ export default {
<el-table border :data="list"> <el-table border :data="list">
<el-table-column label="始发仓"> <el-table-column label="始发仓">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ $l(row,'startWarehouseName')}} {{ $l(exportWarehouseList.find(i => i.id === row.startWarehouseId), 'title') }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="目的仓" > <el-table-column label="目的仓">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ $l(row,'destWarehouseName')}} {{ $l(importWarehouseList.find(i => i.id === row.destWarehouseId), 'title') }}
</template>
</el-table-column>
<el-table-column label="渠道数">
<template slot-scope="{row}">
{{ row.channelIds ? row.channelIds.split(',').length : 0 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="渠道数" prop="channelCount" ></el-table-column>
<el-table-column> <el-table-column>
<template> <template slot-scope="{row}">
<el-button type="text">复制</el-button> <el-button type="text" v-if="lineId !== row.id" @click="copy(row)">复制</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
@pagination="getList"/>
</el-card> </el-card>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -137,6 +137,8 @@ ...@@ -137,6 +137,8 @@
<el-button size="mini" type="primary" @click="serviceClick(scope.row)" v-if="scope.row.lineId != null" <el-button size="mini" type="primary" @click="serviceClick(scope.row)" v-if="scope.row.lineId != null"
v-hasPermi="['ecw:warehouse:routerQuery']">{{$t('开通服务')}}</el-button> v-hasPermi="['ecw:warehouse:routerQuery']">{{$t('开通服务')}}</el-button>
<el-button size="mini" type="danger" @click="$router.push('/offer/channel-route?lineId='+scope.row.lineId)" v-if="scope.row.lineId != null && scope.row.transportType == 3" >{{$t('渠道包装清关费')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
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