仓库管理-库位信息: 初始化

This commit is contained in:
qianhao.xu
2024-03-12 17:38:38 +08:00
parent 7f7c8f5d84
commit 67070b8c36
6 changed files with 11 additions and 74 deletions

View File

@@ -5,7 +5,7 @@ import { downFile } from '@/utils/request'
export function production_warehouse_info(query) { export function production_warehouse_info(query) {
// 发送get请求获取工单列表 // 发送get请求获取工单列表
return request({ return request({
url: '/mes/pro/workorder_v2/getWorkoderList', url: '/mes/wm/storagelocation/production_warehouse_info',
method: 'get', method: 'get',
params: query, params: query,
}) })

View File

@@ -37,21 +37,7 @@ import DictTag from '@/components/DictTag'
import VueMeta from 'vue-meta' import VueMeta from 'vue-meta'
// 字典数据组件 // 字典数据组件
import DictData from '@/components/DictData' import DictData from '@/components/DictData'
//wms table组件
import WmsTable from '@/components/WmsTable'
import WmsSupplierSelect from '@/components/WmsSupplierSelect'
import WmsCustomerSelect from '@/components/WmsCustomerSelect'
import KrPrintDesigner from "kr-print-designer";
import "kr-print-designer/lib/kr-print-designer.css";
import DictRadio from '@/components/DictRadio'
import DictSelect from '@/components/DictSelect'
import WmsWarehouseCascader from '@/components/WmsWarehouseCascader'
import vuePlugsPrint from '@/utils/vuePlugsPrint'
import WmsCarrierSelect from "@/components/WmsCarrierSelect/index.vue";
// 全局方法挂载 // 全局方法挂载
Vue.prototype.getDicts = getDicts Vue.prototype.getDicts = getDicts
@@ -72,13 +58,8 @@ Vue.component('Editor', Editor)
Vue.component('FileUpload', FileUpload) Vue.component('FileUpload', FileUpload)
Vue.component('ImageUpload', ImageUpload) Vue.component('ImageUpload', ImageUpload)
Vue.component('ImagePreview', ImagePreview) Vue.component('ImagePreview', ImagePreview)
Vue.component('WmsTable',WmsTable)
Vue.component('WmsSupplierSelect',WmsSupplierSelect)
Vue.component('WmsCustomerSelect',WmsCustomerSelect)
Vue.component('WmsCarrierSelect',WmsCarrierSelect)
Vue.component('DictRadio',DictRadio)
Vue.component('DictSelect',DictSelect)
Vue.component('WmsWarehouseCascader',WmsWarehouseCascader)
Vue.use(KrPrintDesigner); Vue.use(KrPrintDesigner);
Vue.use(vuePlugsPrint); Vue.use(vuePlugsPrint);

View File

@@ -24,38 +24,5 @@ const getters = {
currentWorkOrder_thirty: (state) => state.quality.currentWorkOrder_thirty, currentWorkOrder_thirty: (state) => state.quality.currentWorkOrder_thirty,
firstquality_time: (state) => state.quality.firstquality_time, firstquality_time: (state) => state.quality.firstquality_time,
// 字典相关
items: state => state.dict.items,
dictTypeMap: state => state.dict.dictTypeMap,
opTypes: state => {
const map = state.dict.dictTypeMap
let res = [];
['wms_receipt_type', 'wms_shipment_type', 'wms_movement_type', 'wms_check_type'].forEach(it => {
if (!map[it]) {
return
}
res = res.concat(map[it])
})
return res
},
opTypeMap: (state, getters) => {
const arr = getters.opTypes,
map = {};
arr.forEach(it => map[it.value] = it.label);
return map;
},
// wms相关
supplierList: state => state.wms.supplierList,
customerList: state => state.wms.customerList,
customerMap: state => state.wms.customerMap,
carrierList: state => state.wms.carrierList,
carrierMap: state => state.wms.carrierMap,
supplierMap: state => state.wms.supplierMap,
warehouseList: state => state.wms.warehouseList,
warehouseMap: state => state.wms.warehouseMap,
areaList: state => state.wms.areaList,
areaMap: state => state.wms.areaMap,
rackList: state => state.wms.rackList,
rackMap: state => state.wms.rackMap
} }
export default getters export default getters

View File

@@ -158,12 +158,7 @@ export default {
if (valid) { if (valid) {
this.loading = true this.loading = true
if (this.loginForm.rememberMe) { if (this.loginForm.rememberMe) {
this.$store.dispatch("wms/getWarehouseList");
this.$store.dispatch("wms/getAreaList");
this.$store.dispatch("wms/getRackList");
this.$store.dispatch("wms/getSuppliers");
this.$store.dispatch("wms/getCustomer");
this.$store.dispatch("wms/getCarrier");
Cookies.set('username', this.loginForm.username, { expires: 30 }) Cookies.set('username', this.loginForm.username, { expires: 30 })
Cookies.set('password', encrypt(this.loginForm.password), { Cookies.set('password', encrypt(this.loginForm.password), {
expires: 30, expires: 30,

View File

@@ -46,8 +46,8 @@ export default {
shelfList: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'L'], shelfList: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'L'],
layerList: [1, 2, 3], layerList: [1, 2, 3],
formInline: { formInline: {
shelf: '', shelf: 'A',
layer: 0, layer: 1,
}, },
pagination: { pagination: {
total: 0, total: 0,
@@ -64,13 +64,13 @@ export default {
const query = { const query = {
shelf: this.formInline.shelf, shelf: this.formInline.shelf,
layer: this.formInline.layer, layer: this.formInline.layer,
pageNum: this.formInline.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.formInline.pageSize, pageSize: this.pagination.pageSize,
} }
production_warehouse_info(query).then((res) => { production_warehouse_info(query).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.tableData = res.data[0] this.tableData = res.data.item1
this.pagination.total = res.data[1] this.pagination.total = res.data.item2
} }
}) })
}, },

View File

@@ -37,13 +37,7 @@ module.exports = {
port: 8887, // 项目启动port, port: 8887, // 项目启动port,
open: true, open: true,
proxy: { proxy: {
[process.env.VUE_APP_BASE_API+'/wms']: {
target: 'http://localhost:8000/', // 后端接口地址
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '',
},
},
// 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://localhost:8888/', // 后端接口地址 target: 'http://localhost:8888/', // 后端接口地址