diff --git a/src/App.vue b/src/App.vue
index b8a1e05..18d390c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -25,3 +25,6 @@ export default {
},
};
+
diff --git a/src/main.js b/src/main.js
index 3bd07f6..cad56e7 100644
--- a/src/main.js
+++ b/src/main.js
@@ -46,6 +46,7 @@ import WmsWarehouseCascader from '@/components/WmsWarehouseCascader';
import WmsCarrierSelect from "@/components/WmsCarrierSelect/index.vue";
import DictRadio from '@/components/DictRadio';
import DictSelect from '@/components/DictSelect';
+import vuePlugsPrint from '@/utils/vuePlugsPrint'
import KrPrintDesigner from "kr-print-designer";
import "kr-print-designer/lib/kr-print-designer.css";
@@ -102,6 +103,7 @@ Vue.component('WmsCarrierSelect', WmsCarrierSelect)
Vue.component('DictRadio', DictRadio)
Vue.component('DictSelect', DictSelect)
Vue.component('WmsWarehouseCascader', WmsWarehouseCascader)
+Vue.use(vuePlugsPrint);
Vue.use(KrPrintDesigner);
Vue.use(permission)
diff --git a/src/settings.js b/src/settings.js
index 0b1c2ee..2577930 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -3,7 +3,7 @@ module.exports = {
* 框架版本号
*/
version: '3.8.1',
- title: '上海干巷MES',
+ title: '上海干巷MOM',
/**
* 主题颜色
*/
diff --git a/src/store/index.js b/src/store/index.js
index 84024a5..a779b6a 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -7,6 +7,8 @@ import permission from './modules/permission'
import settings from './modules/settings'
import socket from './modules/socket'
import quality from './modules/quality'
+import wms from './modules/wms'
+import dict from './modules/dict'
import getters from './getters'
Vue.use(Vuex)
@@ -15,20 +17,22 @@ Vue.use(Vuex)
* 当前用户数据
*/
const state = {
- appVersionInfo: ''
+ appVersionInfo: ''
}
const store = new Vuex.Store({
- modules: {
- app,
- user,
- tagsView,
- permission,
- settings,
+ modules: {
+ app,
+ user,
+ tagsView,
+ permission,
+ settings,
socket,
- quality,
- },
- state: state,//这里放全局参数
- getters
+ quality,
+ wms,
+ dict,
+ },
+ state: state, //这里放全局参数
+ getters
})
-export default store
+export default store
\ No newline at end of file
diff --git a/src/style/base.styl b/src/style/base.styl
new file mode 100644
index 0000000..425c6af
--- /dev/null
+++ b/src/style/base.styl
@@ -0,0 +1,145 @@
+@import 'reset'
+@import "variables.styl"
+.icon
+ width 1em
+ height 1em
+ vertical-align -0.15em
+ fill currentColor
+ overflow hidden
+
+@keyframes spin {
+ 0% {
+ transform rotate(0deg)
+ }
+ 100% {
+ transform rotate(360deg)
+ }
+}
+.tc
+ text-align center
+.tl
+ text-align left
+.tr
+ text-align right
+.spin
+ animation spin .6s infinite linear
+ display inline-block
+.lineov2
+ overflow hidden
+ text-overflow ellipsis
+ display -webkit-box
+ -webkit-line-clamp 2
+ -webkit-box-orient vertical
+
+.lineov1
+ text-overflow ellipsis
+ overflow hidden
+ white-space nowrap
+
+.flex-container
+ display flex
+
+.align-center
+ align-items center
+
+.flex-center
+ display flex
+ align-items center
+
+.flex-top
+ display flex
+ align-items flex-start
+
+.justify-end
+ justify-content flex-end
+
+.flex-one
+ flex 1 1 0
+
+.flex-two
+ flex 2
+
+.mouse-pointer
+ cursor pointer
+
+.no-break
+ word-break keep-all
+ white-space nowrap
+
+.break-all
+ word-break break-all
+ white-space normal
+
+/* ---- Chrome ----*/
+.scroll::-webkit-scrollbar
+ width: 5px;
+
+/*滚动条粗细*/
+
+.scroll::-webkit-scrollbar-track
+ -webkit-box-shadow: none;
+ background: #f8f8f9; /*滑道颜色*/
+ border-radius: 5px;
+
+/*滑道的圆滑度*/
+
+.scroll::-webkit-scrollbar-thumb
+ background: #c1c1c1; /*滑块颜色*/
+ border-radius: 5px
+
+/*滑块圆滑度*/
+
+.scroll::-webkit-scrollbar-thumb:hover
+ background: gray;
+
+/*滑块上浮*/
+
+/*--- FirFox ---*/
+.scroll
+ scrollbar-width: thin;
+ scrollbar-color: orange green;
+
+/*滚动条的基本颜色*/
+
+.common-table
+ width 100%
+ border-collapse: collapse;
+ tr > td, tr > th
+ border 1px solid $border-color
+ padding 5px 8px
+ tr > th
+ font-weight bolder
+ white-space nowrap
+
+.inline-div
+ display inline-block
+
+[class~=flex].gutter-span
+ > * + *
+ margin-left .75rem
+
+.warning
+ color $yellow
+.active
+ color $active-color
+.white
+ color white
+.gold
+ color $gold-color
+.gray
+ color $gray-color
+.red
+ color $red
+.blue
+ color $blue
+.green
+ color green
+.bg-white
+ background #fff
+.pct100
+ width 100%
+.bolder-font
+ font-weight bolder
+
+.large-tip
+ font-size 16px
diff --git a/src/style/reset.styl b/src/style/reset.styl
new file mode 100644
index 0000000..eeeda5a
--- /dev/null
+++ b/src/style/reset.styl
@@ -0,0 +1,51 @@
+
+// @for num from 1 through 10
+for num in (1..20)
+ .mt{num * 5}
+ margin-top: 5px * num
+ .mr{num * 5}
+ margin-right: 5px * num
+ .mb{num * 5}
+ margin-bottom: 5px * num
+ .ml{num * 5}
+ margin-left: 5px * num
+ .m{num * 5}
+ margin: 5px * num
+ .pt{num * 5}
+ padding-top: 5px * num
+ .pr{num * 5}
+ padding-right: 5px * num
+ .pb{num * 5}
+ padding-bottom: 5px * num
+ .pl{num * 5}
+ padding-left: 5px * num
+ .p{num * 5}
+ padding: 5px * num
+// @for num from 1 through 10
+for num in (1..5)
+ .mt{num * 8}
+ margin-top: 8px * num
+ .mr{num * 8}
+ margin-right: 8px * num
+ .mb{num * 8}
+ margin-bottom: 8px * num
+ .ml{num * 8}
+ margin-left: 8px * num
+ .m{num * 8}
+ margin: 8px * num
+ .pt{num * 8}
+ padding-top: 8px * num
+ .pr{num * 8}
+ padding-right: 8px * num
+ .pb{num * 8}
+ padding-bottom: 8px * num
+ .pl{num * 8}
+ padding-left: 8px * num
+ .p{num * 8}
+ padding: 8px * num
+for num in (1..20)
+ .pct{num * 5}
+ width 5% * num
+for num in (1..30)
+ .w{num * 10}
+ width 10px * num
diff --git a/src/style/variables.styl b/src/style/variables.styl
new file mode 100644
index 0000000..cf78e30
--- /dev/null
+++ b/src/style/variables.styl
@@ -0,0 +1,29 @@
+body
+ --active #409EFF
+ --success #67C23A
+ --warning #E6A23C
+ --red #F56C6C
+ --info var(--gray-6)
+ --gray-1 #F2F6FC
+ --gray-2 #EBEEF5
+ --gray-3 #E4E7ED
+ --gray-4 #DCDFE6
+ --gray-5 #C0C4CC
+ --gray-6 #909399
+ --gray-7 #606266
+ --gray-8 #303133
+ --white #FFFFFF
+ --black #000000
+ --transparent transparent
+
+$gray-1 = var(--gray-1)
+$gray-2 = var(--gray-2)
+$gray-3 = var(--gray-3)
+$gray-4 = var(--gray-4)
+$gray-5 = var(--gray-5)
+$gray-6 = var(--gray-6)
+$gray-7 = var(--gray-7)
+$gray-8 = var(--gray-8)
+$active-color = var(--active)
+$red = var(--red)
+$border-color = var(--gray-4)
diff --git a/src/utils/vuePlugsPrint.js b/src/utils/vuePlugsPrint.js
new file mode 100644
index 0000000..97dba19
--- /dev/null
+++ b/src/utils/vuePlugsPrint.js
@@ -0,0 +1,143 @@
+// 打印类属性、方法定义
+/* eslint-disable */
+const Print = function (dom, options, pageSize) {
+
+ if (!(this instanceof Print)) return new Print(dom, options, pageSize);
+
+ this.options = this.extend({
+ 'noPrint': '.no-print'
+ }, options, pageSize);
+
+ if ((typeof dom) === "string") {
+ this.dom = document.querySelector(dom);
+ } else {
+ this.isDOM(dom)
+ this.dom = this.isDOM(dom) ? dom : dom.$el;
+ }
+
+ this.init(pageSize);
+};
+Print.prototype = {
+ init: function (pageSize) {
+ var content = this.getStyle(pageSize) + this.getHtml();
+ this.writeIframe(content);
+ },
+ extend: function (obj, obj2) {
+ for (var k in obj2) {
+ obj[k] = obj2[k];
+ }
+ return obj;
+ },
+
+ getStyle: function (pageSize) {
+ var str = "",
+ styles = document.querySelectorAll('style,link');
+ for (var i = 0; i < styles.length; i++) {
+ str += styles[i].outerHTML;
+ }
+ str += "";
+ str += "";
+
+ str = str.replace('size: A5', `size: ${pageSize}`);
+
+ return str;
+ },
+
+ getHtml: function () {
+ var inputs = document.querySelectorAll('input');
+ var textareas = document.querySelectorAll('textarea');
+ var selects = document.querySelectorAll('select');
+
+ for (var k = 0; k < inputs.length; k++) {
+ if (inputs[k].type == "checkbox" || inputs[k].type == "radio") {
+ if (inputs[k].checked == true) {
+ inputs[k].setAttribute('checked', "checked")
+ } else {
+ inputs[k].removeAttribute('checked')
+ }
+ } else if (inputs[k].type == "text") {
+ inputs[k].setAttribute('value', inputs[k].value)
+ } else {
+ inputs[k].setAttribute('value', inputs[k].value)
+ }
+ }
+
+ for (var k2 = 0; k2 < textareas.length; k2++) {
+ if (textareas[k2].type == 'textarea') {
+ textareas[k2].innerHTML = textareas[k2].value
+ }
+ }
+
+ for (var k3 = 0; k3 < selects.length; k3++) {
+ if (selects[k3].type == 'select-one') {
+ var child = selects[k3].children;
+ for (var i in child) {
+ if (child[i].tagName == 'OPTION') {
+ if (child[i].selected == true) {
+ child[i].setAttribute('selected', "selected")
+ } else {
+ child[i].removeAttribute('selected')
+ }
+ }
+ }
+ }
+ }
+
+ let content = this.dom.outerHTML;
+ if (content.indexOf('hidden="hidden"') > -1) {
+ content = content.replace('hidden="hidden"', '');
+ }
+ return content;
+ },
+
+ writeIframe: function (content) {
+ var w, doc, iframe = document.createElement('iframe'), f = document.body.appendChild(iframe);
+ iframe.id = "myIframe";
+ //iframe.style = "position:absolute;width:0;height:0;top:-10px;left:-10px;";
+ iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-10px;left:-10px;');
+ w = f.contentWindow || f.contentDocument;
+ doc = f.contentDocument || f.contentWindow.document;
+ doc.open();
+ doc.write(content);
+ doc.close();
+ var _this = this
+ iframe.onload = function () {
+ _this.toPrint(w, _this.options);
+ setTimeout(function () {
+ document.body.removeChild(iframe)
+ }, 100)
+ }
+ },
+
+ toPrint: function (frameWindow, options) {
+ try {
+ setTimeout(function () {
+ frameWindow.focus();
+ try {
+ if (!frameWindow.document.execCommand('print', false, null)) {
+ frameWindow.print();
+ }
+ if (options.callback ) options.callback()
+ } catch (e) {
+ frameWindow.print();
+ }
+ frameWindow.close();
+ }, 10);
+ } catch (err) {
+ console.log('err', err);
+ }
+ },
+ isDOM: (typeof HTMLElement === 'object') ?
+ function (obj) {
+ return obj instanceof HTMLElement;
+ } :
+ function (obj) {
+ return obj && typeof obj === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';
+ },
+};
+const MyPlugin = {}
+MyPlugin.install = function (Vue, options) {
+ // 4. 添加实例方法
+ Vue.prototype.$print = Print
+}
+export default MyPlugin
diff --git a/src/views/components/ItemSelect.vue b/src/views/components/ItemSelect.vue
index 5ec6812..2fe0bf4 100644
--- a/src/views/components/ItemSelect.vue
+++ b/src/views/components/ItemSelect.vue
@@ -2,7 +2,7 @@
-
+
-
MES管理系统
+
MOM管理系统
上海干巷车镜实业有限公司创建于1970年开始生产汽车、摩托车后视镜。经过三十多年的艰苦创业和技术改造,现已成为国内专业生产各种型号汽车后视镜行业骨干企业。
@@ -158,6 +158,12 @@ export default {
if (valid) {
this.loading = true
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('password', encrypt(this.loginForm.password), {
expires: 30,
diff --git a/src/views/productManagement/workorder_online.vue b/src/views/productManagement/workorder_online.vue
index 25061fa..d204d32 100644
--- a/src/views/productManagement/workorder_online.vue
+++ b/src/views/productManagement/workorder_online.vue
@@ -141,11 +141,16 @@ export default {
},
//todo 更改单元格格式
rowClassName(item) {
- if (item.row.status > 0) {
+ if (item.row.status === 1) {
return {
backgroundColor: '#FFFF00',
}
}
+ if (item.row.status === 2) {
+ return {
+ backgroundColor: '#55ff00',
+ }
+ }
return null
},
},
diff --git a/src/views/qualityManagement/FQC/qualityStatistics.vue b/src/views/qualityManagement/FQC/qualityStatistics.vue
index 1a3110b..f8861a7 100644
--- a/src/views/qualityManagement/FQC/qualityStatistics.vue
+++ b/src/views/qualityManagement/FQC/qualityStatistics.vue
@@ -47,9 +47,9 @@
-
-
-
+
+
+
@@ -271,6 +271,7 @@
this.mergeCells.push({ row: i, col: 9, rowspan: num, colspan: 0 })
this.mergeCells.push({ row: i, col: 10, rowspan: num, colspan: 0 })
this.mergeCells.push({ row: i, col: 11, rowspan: num, colspan: 0 })
+ this.mergeCells.push({ row: i, col: 12, rowspan: num, colspan: 0 })
}
},
diff --git a/src/views/wms/area/index.vue b/src/views/wms/area/index.vue
index fa4e4be..68b449d 100644
--- a/src/views/wms/area/index.vue
+++ b/src/views/wms/area/index.vue
@@ -8,7 +8,13 @@
-
+
搜索
@@ -21,13 +27,40 @@
新增
- 修改
+ 修改
- 删除
+ 删除
- 导出
+ 导出
@@ -40,8 +73,12 @@
- 修改
- 删除
+ 修改
+ 删除
@@ -59,8 +96,7 @@
-
-
+
@@ -76,202 +112,191 @@
\ No newline at end of file
+ /** 删除按钮操作 */
+ handleDelete(row) {
+ const ids = row.id || this.ids
+ this.$modal
+ .confirm('是否确认删除库区编号为"' + ids + '"的数据项?')
+ .then(function () {
+ return delWmsArea(ids)
+ })
+ .then(() => {
+ this.getList()
+ this.$store.dispatch('wms/getAreaList')
+ this.$modal.msgSuccess('删除成功')
+ })
+ .catch(() => {})
+ },
+ /** 导出按钮操作 */
+ handleExport() {
+ const queryParams = this.queryParams
+ this.$modal
+ .confirm('是否确认导出所有库区数据项?')
+ .then(() => {
+ this.exportLoading = true
+ return exportWmsArea(queryParams)
+ })
+ .then((response) => {
+ this.$download.download(response)
+ this.exportLoading = false
+ })
+ .catch(() => {})
+ },
+ },
+}
+
diff --git a/src/views/wms/customer/index.vue b/src/views/wms/customer/index.vue
index afebdf9..7d1996d 100644
--- a/src/views/wms/customer/index.vue
+++ b/src/views/wms/customer/index.vue
@@ -370,7 +370,7 @@
/** 查看流水 */
handleDetail(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/relation/customerTransaction', query: { id } })
+ this.$router.push({ path: '/wms/wmsCustomerManagement/customerTransaction', query: { id } })
},
/* 新增 应付款 */
handleEnter(row) {
diff --git a/src/views/wms/delivery/index.vue b/src/views/wms/delivery/index.vue
index d487933..d35d2e0 100644
--- a/src/views/wms/delivery/index.vue
+++ b/src/views/wms/delivery/index.vue
@@ -150,7 +150,7 @@
//查看出库单
handleView(row) {
const id = row.shipmentOrderId
- this.$router.push({ path: '/wms/shipmentOrder/status', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/status', query: { id } })
},
// 格式化承运商
getCarrier(row, column) {
diff --git a/src/views/wms/inventory/index.vue b/src/views/wms/inventory/index.vue
index db437fe..90852a1 100644
--- a/src/views/wms/inventory/index.vue
+++ b/src/views/wms/inventory/index.vue
@@ -25,7 +25,7 @@
-
+
@@ -86,6 +86,10 @@
}
},
async created() {
+ this.$store.dispatch("wms/getWarehouseList");
+ this.$store.dispatch("wms/getAreaList");
+ this.$store.dispatch("wms/getRackList");
+ this.getList();
},
computed: {
...mapGetters(['userId']),
diff --git a/src/views/wms/inventoryCheck/edit.vue b/src/views/wms/inventoryCheck/edit.vue
index e8965d8..39060e7 100644
--- a/src/views/wms/inventoryCheck/edit.vue
+++ b/src/views/wms/inventoryCheck/edit.vue
@@ -15,7 +15,7 @@
-
+
@@ -157,7 +157,7 @@
methods: {
/** 取消按钮 */
cancel() {
- this.$tab.closeOpenPage({ path: '/inventoryCheck' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/inventoryCheck' })
},
/** 提交按钮 */
submitFinishForm() {
diff --git a/src/views/wms/inventoryCheck/index.vue b/src/views/wms/inventoryCheck/index.vue
index cb72fe6..d86042a 100644
--- a/src/views/wms/inventoryCheck/index.vue
+++ b/src/views/wms/inventoryCheck/index.vue
@@ -161,7 +161,10 @@
};
},
async created() {
-
+ this.$store.dispatch("wms/getWarehouseList");
+ this.$store.dispatch("wms/getAreaList");
+ this.$store.dispatch("wms/getRackList");
+ this.getList();
},
methods: {
/** 查询库存盘点单据列表 */
@@ -223,17 +226,17 @@
},
/** 新增按钮操作 */
handleAdd() {
- this.$router.push({ path: '/check/edit' })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/check/edit' })
},
/** 修改按钮操作 */
handleUpdate(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/check/edit', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/check/edit', query: { id } })
},
/** 查看按钮操作 */
handleView(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/check/status', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/check/status', query: { id } })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/inventoryCheck/status.vue b/src/views/wms/inventoryCheck/status.vue
index d5c6d4b..4816b44 100644
--- a/src/views/wms/inventoryCheck/status.vue
+++ b/src/views/wms/inventoryCheck/status.vue
@@ -114,7 +114,7 @@
methods: {
/** 取消按钮 */
cancel() {
- this.$tab.closeOpenPage({ path: '/inventoryCheck' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/inventoryCheck' })
},
/** 加载 盘点单详情 */
loadDetail(id) {
diff --git a/src/views/wms/inventoryMovement/edit.vue b/src/views/wms/inventoryMovement/edit.vue
index 1e8ed43..fd42233 100644
--- a/src/views/wms/inventoryMovement/edit.vue
+++ b/src/views/wms/inventoryMovement/edit.vue
@@ -161,7 +161,7 @@
})
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/inventoryMovement' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/inventoryMovement' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/inventoryMovement/index.vue b/src/views/wms/inventoryMovement/index.vue
index a25f85b..0c6239b 100644
--- a/src/views/wms/inventoryMovement/index.vue
+++ b/src/views/wms/inventoryMovement/index.vue
@@ -175,16 +175,16 @@
},
/** 新增按钮操作 */
handleAdd() {
- this.$router.push({ path: "/wms/inventoryMovement/edit" });
+ this.$router.push({ path: "/wms/wmsInventoryManagement/inventoryMovement/edit" });
},
/** 修改按钮操作 */
handleUpdate(row) {
const id = row.id || this.ids
- this.$router.push({ path: "/wms/inventoryMovement/edit", query: { id } });
+ this.$router.push({ path: "/wms/wmsInventoryManagement/inventoryMovement/edit", query: { id } });
},
handleStatus(row) {
const id = row.id || this.ids
- this.$router.push({ path: "/wms/inventoryMovement/status", query: { id } });
+ this.$router.push({ path: "/wms/wmsInventoryManagement/inventoryMovement/status", query: { id } });
},
/** 删除按钮操作 */
handleDelete(row) {
diff --git a/src/views/wms/inventoryMovement/status.vue b/src/views/wms/inventoryMovement/status.vue
index b665f94..0740c15 100644
--- a/src/views/wms/inventoryMovement/status.vue
+++ b/src/views/wms/inventoryMovement/status.vue
@@ -196,7 +196,7 @@
}
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/inventoryMovement' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/inventoryMovement' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/inventorySettlement/edit.vue b/src/views/wms/inventorySettlement/edit.vue
index c891fdb..dd75296 100644
--- a/src/views/wms/inventorySettlement/edit.vue
+++ b/src/views/wms/inventorySettlement/edit.vue
@@ -142,9 +142,9 @@
cancel() {
const { settlementType } = this.form
if (Number(settlementType) === 1) {
- this.$tab.closeOpenPage({ path: "/settlement/inventorySettlementMonth?settlementType=1" });
+ this.$tab.closeOpenPage({ path: "/wms/wmsDataBoard/inventorySettlementMonth?settlementType=1" });
} else {
- this.$tab.closeOpenPage({ path: "/settlement/inventorySettlementYear?settlementType=2" });
+ this.$tab.closeOpenPage({ path: "/wms/wmsDataBoard/inventorySettlementYear?settlementType=2" });
}
},
loadSettlement() {
diff --git a/src/views/wms/inventorySettlement/status.vue b/src/views/wms/inventorySettlement/status.vue
index 73ac675..75b9d4d 100644
--- a/src/views/wms/inventorySettlement/status.vue
+++ b/src/views/wms/inventorySettlement/status.vue
@@ -133,9 +133,9 @@
cancel() {
const { settlementType } = this.form
if (Number(settlementType) === 1) {
- this.$tab.closeOpenPage({ path: "/settlement/inventorySettlementMonth?settlementType=1" });
+ this.$tab.closeOpenPage({ path: "/wms/wmsDataBoard/inventorySettlementMonth?settlementType=1" });
} else {
- this.$tab.closeOpenPage({ path: "/settlement/inventorySettlementYear?settlementType=2" });
+ this.$tab.closeOpenPage({ path: "/wms/wmsDataBoard/inventorySettlementYear?settlementType=2" });
}
},
loadSettlement() {
diff --git a/src/views/wms/item/index.vue b/src/views/wms/item/index.vue
index 58bc7fc..c946468 100644
--- a/src/views/wms/item/index.vue
+++ b/src/views/wms/item/index.vue
@@ -232,6 +232,9 @@
};
},
created() {
+ this.$store.dispatch("wms/getWarehouseList");
+ this.$store.dispatch("wms/getAreaList");
+ this.$store.dispatch("wms/getRackList");
this.getList();
itemTypeTreeselect().then(response => {
this.deptOptions = response.data
diff --git a/src/views/wms/rack/index.vue b/src/views/wms/rack/index.vue
index 176880f..04cb2a4 100644
--- a/src/views/wms/rack/index.vue
+++ b/src/views/wms/rack/index.vue
@@ -158,7 +158,10 @@
...mapGetters(["warehouseMap", "warehouseList", "areaList", "areaMap"]),
},
created() {
- // this.getList();
+ this.$store.dispatch("wms/getWarehouseList");
+ this.$store.dispatch("wms/getAreaList");
+ this.$store.dispatch("wms/getRackList");
+ this.getList();
},
methods: {
/** 查询货架列表 */
@@ -291,7 +294,7 @@
return exportWmsRack(queryParams);
})
.then((response) => {
- this.$download.download(response);
+ this.$downFile.download(response);
this.exportLoading = false;
})
.catch(() => {});
diff --git a/src/views/wms/receiptOrder/dashboard.vue b/src/views/wms/receiptOrder/dashboard.vue
index 4f718b1..5bc0d0b 100644
--- a/src/views/wms/receiptOrder/dashboard.vue
+++ b/src/views/wms/receiptOrder/dashboard.vue
@@ -220,7 +220,15 @@ export default {
],
}
},
- async created() {},
+ async created() {
+ 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");
+ this.getList();
+ },
methods: {
handleWave() {
addWaveForReceipt({ ids: this.ids }).then((res) => {
@@ -291,16 +299,16 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
- this.$router.push({ path: '/wms/receiptOrder/edit' })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/receiptOrder/edit' })
},
/** 修改按钮操作 */
handleUpdate(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/wms/receiptOrder/edit', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/receiptOrder/edit', query: { id } })
},
handleStatus(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/wms/receiptOrder/status', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/receiptOrder/status', query: { id } })
},
/** 删除按钮操作 */
handleDelete(row) {
diff --git a/src/views/wms/receiptOrder/edit.vue b/src/views/wms/receiptOrder/edit.vue
index 1f1f524..7406331 100644
--- a/src/views/wms/receiptOrder/edit.vue
+++ b/src/views/wms/receiptOrder/edit.vue
@@ -195,7 +195,7 @@
this.form.payableAmount = sum
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/receiptOrder' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/receiptOrder' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/receiptOrder/status.vue b/src/views/wms/receiptOrder/status.vue
index b581347..0764fd3 100644
--- a/src/views/wms/receiptOrder/status.vue
+++ b/src/views/wms/receiptOrder/status.vue
@@ -194,7 +194,7 @@
}
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/receiptOrder' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/receiptOrder' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/shipmentOrder/dashborad.vue b/src/views/wms/shipmentOrder/dashborad.vue
index ce59d36..cde93ad 100644
--- a/src/views/wms/shipmentOrder/dashborad.vue
+++ b/src/views/wms/shipmentOrder/dashborad.vue
@@ -250,7 +250,7 @@
},
/** 新增按钮操作 */
handleAdd() {
- this.$router.push({ path: '/wms/shipmentOrder/edit' })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/edit' })
},
printOut(row, print) {
this.modalObj = {
@@ -357,11 +357,11 @@
/** 修改按钮操作 */
handleUpdate(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/wms/shipmentOrder/edit', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/edit', query: { id } })
},
handleStatus(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/wms/shipmentOrder/status', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/status', query: { id } })
},
/** 删除按钮操作 */
handleDelete(row) {
diff --git a/src/views/wms/shipmentOrder/edit.vue b/src/views/wms/shipmentOrder/edit.vue
index 04d9594..2527c20 100644
--- a/src/views/wms/shipmentOrder/edit.vue
+++ b/src/views/wms/shipmentOrder/edit.vue
@@ -218,7 +218,7 @@ export default {
this.form.receivableAmount = sum
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/shipmentOrder' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/shipmentOrder' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/shipmentOrder/index.vue b/src/views/wms/shipmentOrder/index.vue
index b67f762..0545d29 100644
--- a/src/views/wms/shipmentOrder/index.vue
+++ b/src/views/wms/shipmentOrder/index.vue
@@ -99,7 +99,13 @@
}
},
created() {
- // this.getList()
+ 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");
+ this.getList()
},
methods: {
handleWave() {
@@ -170,7 +176,7 @@
},
/** 新增按钮操作 */
handleAdd() {
- this.$router.push({ path: '/wms/shipmentOrder/edit' })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/edit' })
},
printOut(row, print) {
this.modalObj = {
@@ -277,11 +283,11 @@
/** 修改按钮操作 */
handleUpdate(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/wms/shipmentOrder/edit', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/edit', query: { id } })
},
handleStatus(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/wms/shipmentOrder/status', query: { id } })
+ this.$router.push({ path: '/wms/wmsInventoryManagement/shipmentOrder/status', query: { id } })
},
/** 删除按钮操作 */
handleDelete(row) {
diff --git a/src/views/wms/shipmentOrder/status.vue b/src/views/wms/shipmentOrder/status.vue
index be7e3a5..574b0b0 100644
--- a/src/views/wms/shipmentOrder/status.vue
+++ b/src/views/wms/shipmentOrder/status.vue
@@ -353,7 +353,7 @@
}
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/shipmentOrder' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/shipmentOrder' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/supplier/index.vue b/src/views/wms/supplier/index.vue
index 15bae75..c3b2773 100644
--- a/src/views/wms/supplier/index.vue
+++ b/src/views/wms/supplier/index.vue
@@ -286,7 +286,7 @@
/** 查看流水 */
handleDetail(row) {
const id = row.id || this.ids
- this.$router.push({ path: '/relation/supplierTransaction', query: { id } })
+ this.$router.push({ path: '/wms/wmsCustomerManagement/supplierTransaction', query: { id } })
},
/* 新增 应付款 */
handleEnter(row) {
diff --git a/src/views/wms/warehouse/index.vue b/src/views/wms/warehouse/index.vue
index 1cb7ec2..351b49f 100644
--- a/src/views/wms/warehouse/index.vue
+++ b/src/views/wms/warehouse/index.vue
@@ -45,7 +45,7 @@
-
+
@@ -225,6 +225,10 @@
...mapGetters(["warehouseList", "warehouseMap", "areaList", "areaMap", "rackList", "rackMap", "userId"])
},
async created() {
+ this.$store.dispatch("wms/getWarehouseList");
+ this.$store.dispatch("wms/getAreaList");
+ this.$store.dispatch("wms/getRackList");
+ this.getList();
},
methods: {
/** 查询仓库列表 */
diff --git a/src/views/wms/wave/index.vue b/src/views/wms/wave/index.vue
index 272a248..5dfd0a4 100644
--- a/src/views/wms/wave/index.vue
+++ b/src/views/wms/wave/index.vue
@@ -102,7 +102,7 @@
methods: {
handleAllocation(row) {
this.$router.push({
- path: "/wms/wave/status",
+ path: "/wms/wmsInventoryManagement/wave/status",
query: {
id: row.id
}
diff --git a/src/views/wms/wave/receipt/index.vue b/src/views/wms/wave/receipt/index.vue
index e357935..161794d 100644
--- a/src/views/wms/wave/receipt/index.vue
+++ b/src/views/wms/wave/receipt/index.vue
@@ -94,7 +94,7 @@
methods: {
handleAllocation(row) {
this.$router.push({
- path: "/wms/wave/receipt/status",
+ path: "/wms/wmsInventoryManagement/wave/receipt/status",
query: {
id: row.id
}
diff --git a/src/views/wms/wave/receipt/status.vue b/src/views/wms/wave/receipt/status.vue
index cf7ac25..bbf25c2 100644
--- a/src/views/wms/wave/receipt/status.vue
+++ b/src/views/wms/wave/receipt/status.vue
@@ -291,7 +291,7 @@ export default {
}
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/receiptOrder' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/receiptOrder' })
},
/** 提交按钮 */
submitForm() {
diff --git a/src/views/wms/wave/status.vue b/src/views/wms/wave/status.vue
index 71a2d91..d2836fa 100644
--- a/src/views/wms/wave/status.vue
+++ b/src/views/wms/wave/status.vue
@@ -287,7 +287,7 @@
}
},
cancel() {
- this.$tab.closeOpenPage({ path: '/wms/shipmentOrder' })
+ this.$tab.closeOpenPage({ path: '/wms/wmsInventoryManagement/shipmentOrder' })
},
/** 提交按钮 */
submitForm() {
diff --git a/vue.config.js b/vue.config.js
index 1366792..72caead 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -37,9 +37,12 @@ module.exports = {
port: 8887, // 项目启动port,
open: true,
proxy: {
- '/wms': {
+ [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
[process.env.VUE_APP_BASE_API]: {