Commit 70d98170 authored by Marcus's avatar Marcus

重货线路

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