Browse Source

1.添加仓库

fix_bug_pro20231227
0.0 2 years ago
parent
commit
48be446329
  1. 8
      src/api/basicdata/basicdataGoodsShelf.js
  2. 123
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue
  3. 18
      src/views/warehouse/updownGoods/warehouseUpdownGoodsLog.vue

8
src/api/basicdata/basicdataGoodsShelf.js

@ -64,7 +64,13 @@ export const addAllocation = (row) => {
data: row
})
}
export const addlayer = (row) => {
return request({
url: '/api/logpm-basicdata/goodsShelf/addlayer',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/api/logpm-basicdata/goodsShelf/update',

123
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue

@ -58,12 +58,13 @@
<template #default="slotProps">
<el-text type="primary" text icon="el-icon-edit" @click="handleEdit(slotProps.scope.row)">编辑</el-text>
<el-text type="primary" text icon="el-icon-edit" @click="addAllocation(slotProps.scope.row)">编辑货位</el-text>
<el-text type="primary" text icon="el-icon-edit" @click="layerAllocation(slotProps.scope.row)">列加层</el-text>
<el-text type="primary" text icon="el-icon-edit" @click="locationList(slotProps.scope.row)">货位列表</el-text>
<el-text type="primary" text icon="el-icon-delete" @click="rowDel(slotProps.scope.row)">删除</el-text>
</template>
</tablecmt>
</el-row>
<el-row>
<div class="avue-crud__pagination" style="width:100%">
@ -181,13 +182,79 @@
</span>
</template>
</el-dialog>
<el-dialog >
<!-- {{this.data.qrCodeUrl}}-->
<!-- <img w-full :src="this.data.qrCodeUrl" alt="Preview Image" />-->
<el-dialog :title="title"
v-model="box2"
width="50%"
append-to-body>
<el-form :disabled="view" :model="form2" label-width="80px">
<!-- 表单字段 -->
<el-row>
<el-col :span="12" >
<el-form-item label="当 前 层:" label-width="100px">
<!-- <el-select v-model="form2.currentLayer" placeholder="选择当前层(不选则为所有层加列)" style="width: 88%;">-->
<!-- <el-optio-->
<!-- v-for="item in currentData"-->
<!-- :key="item.id"-->
<!-- :label="item.templateName"-->
<!-- :value="item.id">-->
<!-- </el-optio>-->
<!-- </el-select>-->
<el-input v-model="form2.storeyNum" placeholder="请输入当前层(不填则为所有层加列)" style="width: 88%;"/>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="当 前 列:" label-width="100px">
<el-input v-model="form2.rowNum" placeholder="请输入当前列(新增为最后一列)" style="width: 88%;"/>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="修改/增加列:" label-width="100px">
<el-input v-model="form2.columnNum" placeholder="请输入修改/增加列数" style="width: 88%;"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 表单按钮 -->
<template #footer>
<span class="dialog-footer">
<el-button type="primary" icon="el-icon-circle-check" @click="handleSubmitAdd"> </el-button>
<el-button type="primary" icon="el-icon-circle-check" @click="handleSubmitred"> </el-button>
<el-button icon="el-icon-circle-close" @click="box = false"> </el-button>
</span>
</template>
</el-dialog>
<el-dialog :title="title"
v-model="box3"
width="50%"
append-to-body>
<el-form :disabled="view" :model="form3" label-width="80px">
<!-- 表单字段 -->
<el-row>
<el-col :span="12" >
<el-form-item label="加层所在列:" label-width="100px">
<el-input v-model="form3.rowNum" placeholder="请输入当前列" style="width: 88%;"/>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="添加层数:" label-width="100px">
<el-input v-model="form3.layerNum" placeholder="请输入添加层数:" style="width: 88%;"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 表单按钮 -->
<template #footer>
<span class="dialog-footer">
<el-button type="primary" icon="el-icon-circle-check" @click="handleSubmitly"> </el-button>
<el-button icon="el-icon-circle-close" @click="box = false"> </el-button>
</span>
</template>
</el-dialog>
<!-- -->
<el-dialog
title="二维码"
@ -247,7 +314,7 @@
</template>
<script>
import { getList, getDetail, add, update, remove,getQRCodeImg,getShowTemplate,getPrintTemplate,addAllocation,disable,enable } from "@/api/basicdata/basicdataGoodsShelf";
import { getList, getDetail, add, update, remove,getQRCodeImg,getShowTemplate,getPrintTemplate,addAllocation,disable,enable,addlayer } from "@/api/basicdata/basicdataGoodsShelf";
import {getList as allgetList,update as allupdate} from "@/api/basicdata/basicdataGoodsAllocation";
import option from "@/option/basicdata/basicdataGoodsShelf";
import { mapGetters } from "vuex";
@ -258,6 +325,10 @@ import { getLodop } from '@/utils/LodopFuncs.js'
export default {
data () {
return {
form2:{},
box2:false,
form3:{},
box3:false,
columnList: [
{
prop: '',
@ -373,6 +444,7 @@ export default {
},
// ...
],
currentData:[],
columnListedit: [],
a: [],
height: 0,
@ -721,6 +793,7 @@ export default {
console.log("--------------->a".a);
return a
},
searchHide () {
this.search = !this.search;
},
@ -755,6 +828,21 @@ export default {
//TODO
});
},
//
layerAllocation(row){
console.log("row>>>>>>>>",row);
this.title = '列加层'
this.box3 = true
// this.isShowQRCode = true;
// this.idShowStatus = false;
// this.allocation = true;
getDetail(row.id).then(res => {
this.form3 = res.data.data;
console.log(">>>>>>>>>>",this.form);
//TODO
});
},
//
locationList(row){
console.log("row>>>>>>>>",row);
@ -762,6 +850,27 @@ export default {
this.box1 = true
this.allonLoad(this.allpage)
},
handleSubmitAdd(){
this.form2.addFlag = 1
addAllocation(this.form2).then(() => {
this.box2 = false;
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleSubmitly(){
addlayer(this.form3).then(() => {
this.box3 = false;
this.onLoad(this.page);
this.$message({
type: "success",
message: "操作成功!"
});
});
},
handleSubmit () {
if (this.allocation){
console.log("this.form>>>>>>>货位", this.form);

18
src/views/warehouse/updownGoods/warehouseUpdownGoodsLog.vue

@ -1,7 +1,7 @@
<template>
<basic-container>
<div class="avue-crud">
<el-row>
<!-- 列表模块 -->
<tablecmt
@ -36,7 +36,7 @@
</div>
</el-row>
<!-- 表单模块 -->
</div>
</basic-container>
<edittablehead
@ -189,6 +189,16 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'logWarehouseName',
label: '记录仓库',
type: 1,
values: '',
width: '180',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'createTime',
label: '创建时间',
@ -366,11 +376,11 @@ export default {
},
selectsc(index, row) {
console.log(index, row);
},
timesc(index, row) {
console.log(index, row);
},
inputsc(index, row) {
console.log(index, row);

Loading…
Cancel
Save