Commit 70d98170 authored by Marcus's avatar Marcus

重货线路

parent bf7a33d0
......@@ -168,15 +168,26 @@
<el-table
v-show="showLine"
border
:data="form.customerLines"
:data="warehouseList"
style="width: 500px">
<el-table-column
prop="departureId"
label="始发地">
<template v-slot="{row}">
<el-checkbox>{{ row.titleZh }}</el-checkbox>
</template>
</el-table-column>
<el-table-column
prop="objectiveId"
label="目的地">
<el-select multiple placeholder="请选择">
<el-option
v-for="item in importCityList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-table-column>
</el-table>
</el-form-item>
......@@ -360,6 +371,8 @@ import {createCustomer, getCustomer, updateCustomer} from '@/api/ecw/customer'
import {getNodeList} from "@/api/ecw/node"
import { getProductTypeList } from '@/api/ecw/productType'
import { getProductList } from '@/api/ecw/product'
import {getTradeCityList} from "@/api/ecw/region"
import {getWarehouseList} from "@/api/ecw/warehouse"
export default {
name: "edit",
......@@ -380,10 +393,15 @@ export default {
getProductTypeList().then(r => {
this.productTypeList = r.data
})
getProductList().then(r => {
this.productList = r.data
})
getTradeCityList({type: 1}).then(r => {
this.importCityList = r.data.filter(item => item.type === '1')
})
getWarehouseList().then(r => {
this.warehouseList = r.data
})
},
data(){
return {
......@@ -408,7 +426,9 @@ export default {
nodeList: [],
productTypeList: [],
productList: [],
showLine: false
showLine: false,
warehouseList: [],
importCityList: []
}
},
methods: {
......
......@@ -91,7 +91,7 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-view" @click="handleQuery(scope.row)"
<el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)"
v-hasPermi="['ecw:customer:query']">查看</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:customer:update']">修改</el-button>
......@@ -603,7 +603,7 @@ export default {
// this.title = "添加客户";
},
/** 查看按钮操作 */
handleQuery(row) {
handleView(row) {
this.$router.push('/customer/query/' + row.id)
},
/** 修改按钮操作 */
......
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