Commit 8b8c69d4 by huangqy

111

parent 92035141
...@@ -9,12 +9,15 @@ ...@@ -9,12 +9,15 @@
<el-row type="flex" justify="space-between" align="middle"> <el-row type="flex" justify="space-between" align="middle">
<el-col> <el-col>
<el-form-item label="管理单位 :"> <el-form-item label="管理单位 :">
<el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable> <el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgCode"> :value="item.glOrgCode">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -217,7 +220,8 @@ export default { ...@@ -217,7 +220,8 @@ export default {
// 抽屉flag // 抽屉flag
drawerFlag: false, drawerFlag: false,
// 数据导出抽屉的flag // 数据导出抽屉的flag
exportDrawerFlag: false exportDrawerFlag: false,
orgList: []
} }
}, },
...@@ -328,17 +332,27 @@ export default { ...@@ -328,17 +332,27 @@ export default {
// 获取下拉列表 // 获取下拉列表
async getSelecData () { async getSelecData () {
// 获取管理单位 // 获取管理单位
const { data: res } = await this.$axios.get('/org/getAllGl') // const { data: res } = await this.$axios.get('/org/getAllGl')
if (res.code !== 99200) return this.$message(res.message) // if (res.code !== 99200) return this.$message(res.message)
this.allFH = res.data // this.allFH = res.data
// 获取物资列表 // 获取物资列表
const { data: stres } = await this.$axios.get('/account/getDefStoreGoods') const { data: stres } = await this.$axios.get('/account/getDefStoreGoods')
if (stres.code !== 99200) return this.$message(stres.message) if (stres.code !== 99200) return this.$message(stres.message)
this.storeGoodsSelectData = stres.data this.storeGoodsSelectData = stres.data
this.storeGoodsSelectDataCopy = stres.data this.storeGoodsSelectDataCopy = stres.data
},
async getOrgName(orgCode) {
console.log(orgCode)
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
} }
}, },
},
computed: { computed: {
......
...@@ -820,13 +820,11 @@ export default { ...@@ -820,13 +820,11 @@ export default {
}, },
handleChange1(value) { handleChange1(value) {
this.setFormData.fwOrgCode = this.orgList.find(i => i.orgCode === value).orgCode; this.setFormData.fwOrgCode = this.orgList.find(i => i.orgCode === value).orgCode;
this.setFormData.fwOrgName = this.orgList.find(i => i.orgCode === value).orgName; this.setFormData.fwOrgName = this.orgList.find(i => i.orgCode === value).orgName;
}, },
handleChange2(value) { handleChange2(value) {
this.setFormData.glOrgCode = this.orgList.find(i => i.orgCode === value).orgCode; this.setFormData.glOrgCode = this.orgList.find(i => i.orgCode === value).orgCode;
this.setFormData.glOrgName = this.orgList.find(i => i.orgCode === value).orgName; this.setFormData.glOrgName = this.orgList.find(i => i.orgCode === value).orgName;
}, },
......
...@@ -20,12 +20,15 @@ ...@@ -20,12 +20,15 @@
<!-- <el-col :span="5"> --> <!-- <el-col :span="5"> -->
<el-form-item label="管理单位:"> <el-form-item label="管理单位:">
<el-select v-model="searchData.condition.glOrgName" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px"> <el-select v-model="searchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px" :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgName"> :value="item.glOrgName">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -212,6 +215,7 @@ export default { ...@@ -212,6 +215,7 @@ export default {
}, },
// 总条数 // 总条数
total: 0, total: 0,
orgList: []
} }
}, },
...@@ -250,6 +254,15 @@ export default { ...@@ -250,6 +254,15 @@ export default {
this.timeData = [] this.timeData = []
this.getGoodsData() this.getGoodsData()
}, },
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 获取统计信息 // 获取统计信息
async getSpanData () { async getSpanData () {
......
...@@ -18,12 +18,15 @@ ...@@ -18,12 +18,15 @@
</el-form-item> </el-form-item>
<el-form-item label="管理单位 :"> <el-form-item label="管理单位 :">
<el-select v-model="searchData.condition.glOrgName" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px"> <el-select v-model="searchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px" :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgName"> :value="item.glOrgName">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -239,6 +242,7 @@ export default { ...@@ -239,6 +242,7 @@ export default {
}, },
// 总条数 // 总条数
total: 0, total: 0,
orgList: []
} }
}, },
...@@ -283,6 +287,15 @@ export default { ...@@ -283,6 +287,15 @@ export default {
if (res1.code !== 99200) return this.$message(res1.message) if (res1.code !== 99200) return this.$message(res1.message)
this.allFH = res1.data this.allFH = res1.data
}, },
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 获取号型详情 // 获取号型详情
async getTypeData (row) { async getTypeData (row) {
row ? this.activeGoods = row : '' row ? this.activeGoods = row : ''
......
...@@ -16,12 +16,15 @@ ...@@ -16,12 +16,15 @@
</el-form-item> </el-form-item>
<el-form-item label="管理单位 :" class="mgr15"> <el-form-item label="管理单位 :" class="mgr15">
<el-select v-model="searchData.glOrgName" filterable placeholder="请选择或输入管理单位" clearable> <el-select v-model="searchData.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgName"> :value="item.glOrgName">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -279,6 +282,7 @@ export default { ...@@ -279,6 +282,7 @@ export default {
}, },
// 总条数 // 总条数
total: 0, total: 0,
orgList: []
} }
}, },
...@@ -305,6 +309,15 @@ export default { ...@@ -305,6 +309,15 @@ export default {
let time = y + '-' + m + '-' + d let time = y + '-' + m + '-' + d
this.searchData.condition.date = time this.searchData.condition.date = time
}, },
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 同步数据 // 同步数据
async syncData () { async syncData () {
this.loadingFlag = true this.loadingFlag = true
......
...@@ -21,12 +21,15 @@ ...@@ -21,12 +21,15 @@
<!-- <el-col :span="5"> --> <!-- <el-col :span="5"> -->
<el-form-item label="管理单位:"> <el-form-item label="管理单位:">
<el-select v-model="searchData.condition.glOrgName" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px"> <el-select v-model="searchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px" :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgName"> :value="item.glOrgName">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -219,6 +222,7 @@ export default { ...@@ -219,6 +222,7 @@ export default {
}, },
// 总条数 // 总条数
total: 0, total: 0,
orgList: []
} }
}, },
...@@ -296,6 +300,15 @@ export default { ...@@ -296,6 +300,15 @@ export default {
if (res1.code !== 99200) return this.$message(res1.message) if (res1.code !== 99200) return this.$message(res1.message)
this.allFH = res1.data this.allFH = res1.data
}, },
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 时间选择器回调 // 时间选择器回调
dateChange (date) { dateChange (date) {
......
...@@ -24,12 +24,15 @@ ...@@ -24,12 +24,15 @@
v-model="searchData.condition.glOrgName" v-model="searchData.condition.glOrgName"
style="widht: 100px" style="widht: 100px"
/>--> />-->
<el-select v-model="searchData.glOrgName" filterable placeholder="请选择或输入管理单位" clearable> <el-select v-model="searchData.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgName"> :value="item.glOrgName">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -270,6 +273,7 @@ export default { ...@@ -270,6 +273,7 @@ export default {
}, },
// 总条数 // 总条数
total: 0, total: 0,
orgList: []
} }
}, },
...@@ -285,6 +289,15 @@ export default { ...@@ -285,6 +289,15 @@ export default {
}, },
methods: { methods: {
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 同步数据 // 同步数据
async syncData () { async syncData () {
this.loadingFlag = true this.loadingFlag = true
......
...@@ -19,12 +19,16 @@ ...@@ -19,12 +19,16 @@
</el-form-item> </el-form-item>
<el-form-item label="管理单位 :"> <el-form-item label="管理单位 :">
<el-select v-model="searchData.condition.glOrgName" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px"> <el-select v-model="searchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable class="mgr15" style="width: 200px" :filter-method="getOrgName">
<el-option
<!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgName"> :value="item.glOrgName">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -241,6 +245,7 @@ export default { ...@@ -241,6 +245,7 @@ export default {
}, },
// 总条数 // 总条数
total: 0, total: 0,
orgList: []
} }
}, },
...@@ -257,6 +262,15 @@ export default { ...@@ -257,6 +262,15 @@ export default {
}, },
methods: { methods: {
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 重置 // 重置
resClick () { resClick () {
this.searchData = { this.searchData = {
......
...@@ -8,12 +8,15 @@ ...@@ -8,12 +8,15 @@
<el-form :inline="true" :model="allSearchData.condition" size="medium" style="height: 70px" label-position="left" > <el-form :inline="true" :model="allSearchData.condition" size="medium" style="height: 70px" label-position="left" >
<el-row align="middle"> <el-row align="middle">
<el-form-item label="管理单位 :"> <el-form-item label="管理单位 :">
<el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable> <el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgCode"> :value="item.glOrgCode">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -157,6 +160,7 @@ export default { ...@@ -157,6 +160,7 @@ export default {
allData: [], allData: [],
// 托盘明细 // 托盘明细
tpData: [], tpData: [],
orgList: [],
allFH: [], allFH: [],
storeGoodsSelectData: [], storeGoodsSelectData: [],
...@@ -199,6 +203,15 @@ export default { ...@@ -199,6 +203,15 @@ export default {
}, },
methods: { methods: {
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
async remoteMethod(value) { async remoteMethod(value) {
if (value) { //val存在 if (value) { //val存在
const { data: stres } = await this.$axios.get('/account/getDefStoreGoods?goodsCode=' + value) const { data: stres } = await this.$axios.get('/account/getDefStoreGoods?goodsCode=' + value)
......
...@@ -9,12 +9,15 @@ ...@@ -9,12 +9,15 @@
<el-row align="middle"> <el-row align="middle">
<el-form-item label="管理单位 :"> <el-form-item label="管理单位 :">
<el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable> <el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgCode"> :value="item.glOrgCode">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -235,6 +238,7 @@ export default { ...@@ -235,6 +238,7 @@ export default {
condition: {} condition: {}
}, },
tpTotal: 0, tpTotal: 0,
orgList: []
} }
}, },
...@@ -252,6 +256,15 @@ export default { ...@@ -252,6 +256,15 @@ export default {
}, },
methods: { methods: {
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
async remoteMethod(value) { async remoteMethod(value) {
if (value) { //val存在 if (value) { //val存在
const { data: stres } = await this.$axios.get('/account/getDefStoreGoods?goodsCode=' + value) const { data: stres } = await this.$axios.get('/account/getDefStoreGoods?goodsCode=' + value)
......
...@@ -9,12 +9,15 @@ ...@@ -9,12 +9,15 @@
<el-row type="flex" justify="space-between" align="middle"> <el-row type="flex" justify="space-between" align="middle">
<el-col> <el-col>
<el-form-item label="管理单位 :"> <el-form-item label="管理单位 :">
<el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable> <el-select v-model="allSearchData.condition.glOrgCode" filterable placeholder="请选择或输入管理单位" clearable :filter-method="getOrgName">
<el-option <!-- <el-option
v-for="item in allFH" v-for="item in allFH"
:key="item.glOrgCode" :key="item.glOrgCode"
:label="item.glOrgName" :label="item.glOrgName"
:value="item.glOrgCode"> :value="item.glOrgCode">
</el-option> -->
<el-option v-for="d in orgList" :key="d.orgCode" :label="d.orgName" :value="d.orgCode">
{{ d.orgName }}
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -192,7 +195,8 @@ ...@@ -192,7 +195,8 @@
// 抽屉flag // 抽屉flag
drawerFlag: false, drawerFlag: false,
// 数据导出抽屉的flag // 数据导出抽屉的flag
exportDrawerFlag: false exportDrawerFlag: false,
orgList: []
} }
}, },
...@@ -209,6 +213,15 @@ ...@@ -209,6 +213,15 @@
}, },
methods: { methods: {
async getOrgName(orgCode) {
if (null != orgCode && '' != orgCode) {
const {data: res} = await this.$axios.post('/org/getOrgByCode', {
orgCode: orgCode
})
if (res.code !== 99200) return this.$message.error(res.message)
this.orgList = res.data
}
},
// 重置 // 重置
resClick () { resClick () {
this.allSearchData = { this.allSearchData = {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论