业主名称第一项

master
Mr.sun 2 years ago
parent eff550dc31
commit ff40760a4e
  1. 28
      src/views/libraryManage/inventory/inventory.vue
  2. 2
      vue.config.js

@ -6,7 +6,10 @@
:inline="true" :inline="true"
:model="enterForm" :model="enterForm"
> >
<el-form-item label="业主名称"> <el-form-item
label="业主名称"
prop="consignorId"
>
<el-select <el-select
v-model="enterForm.consignorId" v-model="enterForm.consignorId"
placeholder="请选择" placeholder="请选择"
@ -38,10 +41,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<el-form-item <el-form-item label="库区编号">
label="库区编号"
prop='state'
>
<el-select <el-select
v-model="enterForm.areaId" v-model="enterForm.areaId"
placeholder="请选择库区编号" placeholder="请选择库区编号"
@ -152,7 +152,7 @@ export default {
tableProps: {}, tableProps: {},
ids: [], ids: [],
enterForm: { enterForm: {
consignorId: 1, consignorId: '',
storageId: '', storageId: '',
areaId: '', areaId: '',
locationCode: '', locationCode: '',
@ -178,7 +178,6 @@ export default {
this.getBasicListsto() this.getBasicListsto()
storageList1().then((res) => { storageList1().then((res) => {
this.enterForm.storageId = res.data[0].id this.enterForm.storageId = res.data[0].id
this.listAreaByStorage(this.enterForm.storageId) this.listAreaByStorage(this.enterForm.storageId)
}) })
}, },
@ -190,6 +189,8 @@ export default {
getBasicList() { getBasicList() {
consignorList().then((res) => { consignorList().then((res) => {
this.options = res.rows this.options = res.rows
console.log(this.options)
this.enterForm.consignorId = this.options[0].id
}) })
}, },
// //
@ -209,8 +210,7 @@ export default {
listAreaByStorage(val) { listAreaByStorage(val) {
listAreaByStorage(this.enterForm.storageId).then((res) => { listAreaByStorage(this.enterForm.storageId).then((res) => {
this.areaIdhList = res.data this.areaIdhList = res.data
this.enterForm.areaId = 1 // this.enterForm.areaId = 1
// console.log(this.areaIdhList)
}) })
}, },
// //
@ -267,17 +267,7 @@ export default {
}, },
// //
exportBtn() { exportBtn() {
// const request = {
// pageSize: isAll === "all" ? null : this.paging.size,
// pageNum: isAll === "all" ? null : this.paging.page,
// ...this.searchForm,
// };
dealEmptyQueryCondition(request) dealEmptyQueryCondition(request)
// this.download(
// "monitor/job/export",
// request,
// `goods_${new Date().getTime()}.xlsx`
// );
} }
} }
} }

@ -35,7 +35,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://127.0.0.1:8030`, target: `http://127.0.0.1:8031`,
// target: `http://192.168.0.110:8030`, // target: `http://192.168.0.110:8030`,
// target: `http://192.168.0.105:8030`, // target: `http://192.168.0.105:8030`,
// target: `http://120.77.94.227:8030`, // target: `http://120.77.94.227:8030`,

Loading…
Cancel
Save