盘点库区

master
Mr.sun 2 years ago
parent 22bfe5e10d
commit cdaf26da21
  1. 10
      src/api/libraryManage/inventory.js
  2. 1
      src/views/libraryManage/components/goods.vue
  3. 11
      src/views/libraryManage/inventory/inventory.vue
  4. 4
      src/views/libraryManage/inventoryLock/apply/ProductLock.vue
  5. 4
      vue.config.js

@ -27,11 +27,19 @@ export function add(data) {
}); });
} }
// 库内管理-补货-根据库别查询区域
// export function listAreaByStorage(query) {
// return request({
// url: `/wms/stock/common/listAreaByStorage/${query}`,
// method: "get",
// });
// }
// 库内管理-补货-根据库别查询区域 // 库内管理-补货-根据库别查询区域
export function listAreaByStorage(query) { export function listAreaByStorage(query) {
return request({ return request({
url: `/wms/stock/common/listAreaByStorage/${query}`, url: `/wms/storage/list`,
method: "get", method: "get",
params:query
}); });
} }

@ -252,6 +252,7 @@ export default {
} }
queryGoodsAndLocation(obj) queryGoodsAndLocation(obj)
.then((res) => { .then((res) => {
console.log(111)
if (res.code === 200) { if (res.code === 200) {
this.tableData = res.rows this.tableData = res.rows
this.paging.total = res.total this.paging.total = res.total

@ -41,15 +41,15 @@
<el-form-item label="库区编号"> <el-form-item label="库区编号">
<el-select <el-select
v-model="enterForm.areaId" v-model="enterForm.id"
placeholder="请选择库区编号" placeholder="请选择库区编号"
clearable clearable
style="width: 240px" style="width: 240px"
> >
<el-option <el-option
v-for="item in areaIdhList" v-for="item in areaIdhList"
:key="item.areaCode" :key="item.storageCode"
:label="item.areaName" :label="item.storageName"
:value="item.id" :value="item.id"
> >
</el-option> </el-option>
@ -170,6 +170,7 @@ export default {
mounted() { mounted() {
this.getBasicList() this.getBasicList()
this.getBasicListsto() this.getBasicListsto()
this.listAreaByStorage()
}, },
async created() { async created() {
this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this)) this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this))
@ -190,14 +191,16 @@ export default {
// //
selectStoId(val) { selectStoId(val) {
this.enterForm.areaId = '' this.enterForm.areaId = ''
if (val) { if (val) {
this.listAreaByStorage(val) this.listAreaByStorage(val)
} }
}, },
// //
listAreaByStorage(val) { listAreaByStorage(val) {
listAreaByStorage(val).then((res) => { listAreaByStorage().then((res) => {
this.areaIdhList = res.data this.areaIdhList = res.data
// console.log(this.areaIdhList)
}) })
}, },
// //

@ -39,10 +39,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<!-- <el-form-item>
<el-button type="primary" @click="queryTable">搜索</el-button>
<el-button @click="resetQuery">重置</el-button>
</el-form-item> -->
</el-form> </el-form>
</div> </div>
<div class="opt-box"> <div class="opt-box">

@ -35,8 +35,8 @@ 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:8030`,
target: `http://192.168.0.110:8030`, // target: `http://192.168.0.110: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