业主接口加上

master
Mr.sun 2 years ago
parent a12fe2456d
commit 62b154de27
  1. 62
      src/views/libraryManage/inventory/inventory.vue
  2. 1
      vue.config.js

@ -6,7 +6,7 @@
:inline="true"
:model="enterForm"
>
<!-- <el-form-item label="业主名称">
<el-form-item label="业主名称">
<el-select
v-model="enterForm.consignorId"
placeholder="请选择"
@ -21,7 +21,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="库房">
<!-- <el-form-item label="库房">
<el-select
v-model="enterForm.storageId"
placeholder="请选择库房"
@ -38,14 +38,29 @@
</el-option>
</el-select>
</el-form-item> -->
<el-form-item label="货位">
<el-input
v-model="enterForm.locationCode"
placeholder="请输入货位"
<!-- <el-form-item
label="库区编号"
prop='state'
>
<el-select
v-model="enterForm.areaId"
placeholder="请选择库区编号"
clearable
></el-input>
</el-form-item>
<el-form-item label="盘点方式">
style="width: 240px"
>
<el-option
v-for="item in areaIdhList"
:key="item.areaCode"
:label="item.areaName"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item> -->
<el-form-item
label="盘点方式"
prop="invWay"
>
<el-radio-group v-model="enterForm.invWay">
<el-radio label="open">明盘</el-radio>
<el-radio label="close">盲盘</el-radio>
@ -75,26 +90,13 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label="库区编号"
prop='state'
>
<el-select
v-model="enterForm.areaId"
placeholder="请选择库区编号"
<el-form-item label="货位">
<el-input
v-model="enterForm.locationCode"
placeholder="请输入货位"
clearable
style="width: 240px"
>
<el-option
v-for="item in areaIdhList"
:key="item.areaCode"
:label="item.areaName"
:value="item.id"
>
</el-option>
</el-select>
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@ -150,11 +152,11 @@ export default {
tableProps: {},
ids: [],
enterForm: {
consignorId: '',
consignorId: 1,
storageId: '',
areaId: '',
locationCode: '',
invWay: '',
invWay: 'close',
invType: ''
},
options: [],
@ -222,7 +224,7 @@ export default {
},
//
queryTable() {
if (!this.enterForm.consignorId) return this.$message('业主名称必填!')
// if (!this.enterForm.consignorId) return this.$message('!')
if (!this.enterForm.invWay) return this.$message('盘点方式必选!')
if (!this.enterForm.invType) return this.$message('盘点类型必选!')
this.loading = true

@ -37,6 +37,7 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
target: `http://127.0.0.1:8030`,
// target: `http://192.168.0.110:8030`,
// target: `http://192.168.0.105:8030`,
// target: `http://120.77.94.227:8030`,
// target: `http://xiaowen.vaiwan.com`,
changeOrigin: true,

Loading…
Cancel
Save