Commit c15a2c04 authored by zhoutong's avatar zhoutong

国外供应商详情

parent cf733825
...@@ -6,7 +6,7 @@ VUE_APP_TITLE = 捷道管理系统-测试站 ...@@ -6,7 +6,7 @@ VUE_APP_TITLE = 捷道管理系统-测试站
# 捷道管理系统/开发环境 # 捷道管理系统/开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com' VUE_APP_BASE_API = 'https://api.sit.jdshangmen.com'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
......
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
<el-input v-model="formData.externalVO.goodName" :placeholder="$t('请输入品名')" show-word-limit clearable readonly></el-input> <el-input v-model="formData.externalVO.goodName" :placeholder="$t('请输入品名')" show-word-limit clearable readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('清关国家')" prop="clearanceFileId"> <el-form-item :label="$t('清关国家')" prop="clearanceFileId">
<el-select v-model="formData.clearanceFileId" @change="changeFile" disabled> <el-select v-model="formData.externalVO.clearanceFileId" @change="changeFile" disabled>
<el-option v-for="(item) in fileList" :value="item.id" :label="getCountry(item.country,item.district)" :key="item.id" /> <el-option v-for="(item) in fileList" :value="item.id" :label="getCountry(item.country,item.district)" :key="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -347,6 +347,7 @@ import Selector from '@/components/Selector' ...@@ -347,6 +347,7 @@ import Selector from '@/components/Selector'
import {validatePwd} from '@/api/ecw/busiPwd' import {validatePwd} from '@/api/ecw/busiPwd'
import SuppliersSelector from '@/components/SuppliersSelector' import SuppliersSelector from '@/components/SuppliersSelector'
import { getDockPage } from "@/api/ecw/dock"; import { getDockPage } from "@/api/ecw/dock";
import { getListTree } from "@/api/ecw/region";
export default { export default {
components: {upload, AreaSelector, Selector, SuppliersSelector}, components: {upload, AreaSelector, Selector, SuppliersSelector},
props: [], props: [],
...@@ -457,6 +458,9 @@ export default { ...@@ -457,6 +458,9 @@ export default {
getDockPage({ pageNo: "1", pageSize: "10000" }).then((res) => { getDockPage({ pageNo: "1", pageSize: "10000" }).then((res) => {
this.allDocks = res.data.list; this.allDocks = res.data.list;
}); });
getListTree({treeType: 1}).then(response => {
this.treeList = response.data
})
this.getFile() this.getFile()
...@@ -570,8 +574,11 @@ export default { ...@@ -570,8 +574,11 @@ export default {
}, },
getCountry(countryId, districtId) { getCountry(countryId, districtId) {
let country = this.treeList.find(item=>item.id == countryId) let country = this.treeList.find(item=>item.id == countryId)
if(country){
let district = country.children.find(item=>item.id == districtId) let district = country.children.find(item=>item.id == districtId)
return this.$l(country, 'title')+' '+this.$l(district, 'title') return this.$l(country, 'title')+' '+this.$l(district, 'title')
}
return ''
}, },
delContact(index){ delContact(index){
this.$confirm(this.$t('确定删除此联系人么?')).then(() => { this.$confirm(this.$t('确定删除此联系人么?')).then(() => {
......
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