业主接口加上

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

@ -37,6 +37,7 @@ module.exports = {
[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:8030`,
// target: `http://192.168.0.110:8030`, // target: `http://192.168.0.110:8030`,
// target: `http://192.168.0.105:8030`,
// target: `http://120.77.94.227:8030`, // target: `http://120.77.94.227:8030`,
// target: `http://xiaowen.vaiwan.com`, // target: `http://xiaowen.vaiwan.com`,
changeOrigin: true, changeOrigin: true,

Loading…
Cancel
Save