diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..52b5985 --- /dev/null +++ b/.env.test @@ -0,0 +1,20 @@ +# 页面标题 +VUE_APP_TITLE = 供应商自助管理平台 + +# 开发环境配置 +ENV = 'test' + +# 若依管理系统/开发环境 +VUE_APP_BASE_API = 'http://192.168.0.66:8881/UDI_SPMS_SERVER' + +# 应用访问路径 例如使用前缀 /admin/ +VUE_APP_CONTEXT_PATH = '/' + +# 监控地址 +VUE_APP_MONITRO_ADMIN = 'http://localhost:9090/admin/login' + +# xxl-job 控制台地址 +VUE_APP_XXL_JOB_ADMIN = 'http://localhost:9100/xxl-job-admin' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/package.json b/package.json index 57441c3..7b3dd22 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "license": "MIT", "scripts": { "dev": "vue-cli-service serve", - "build:prod": "vue-cli-service build", + "build:prod": "vue-cli-service build --mode production", + "build:test": "vue-cli-service build --mode test", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" }, diff --git a/src/api/inout/order.js b/src/api/inout/order.js index 031b8d6..083084b 100644 --- a/src/api/inout/order.js +++ b/src/api/inout/order.js @@ -49,6 +49,13 @@ export function submitBiz(query) { }); } +export function submitAllocateBiz(query) { + return axios({ + url: "/warehouse/inout/waitAllocate/submitOrderWeb", + method: "post", + data: query + }); +} export function saveOrderWeb(query) { return axios({ diff --git a/src/api/inout/orderDetailBiz.js b/src/api/inout/orderDetailBiz.js index fc89016..dcbd347 100644 --- a/src/api/inout/orderDetailBiz.js +++ b/src/api/inout/orderDetailBiz.js @@ -41,7 +41,6 @@ export function insertInvoice(params) { } - export function getCheckDetailList(params) { return axios({ url: "/udiwms/inout/wditCheck/filterList", @@ -50,6 +49,14 @@ export function getCheckDetailList(params) { }); } +export function getWaitAllocateList(params) { + return axios({ + url: "/udiwms/inout/waitAllocate/filterList", + method: "get", + params: params + }); +} + export function updateOrder(params) { return axios({ diff --git a/src/api/sync/spsSyncDownload.js b/src/api/sync/spsSyncDownload.js index 7498d4d..ffebc1a 100644 --- a/src/api/sync/spsSyncDownload.js +++ b/src/api/sync/spsSyncDownload.js @@ -25,4 +25,13 @@ export function findConfig(query) { }); } +export function downloadFile(query) { + return axios({ + url: "/sps/sync/download/info/file", + method: "get", + params: query, + responseType: 'blob' + }); +} + diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 56f5a6b..929a684 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -96,7 +96,8 @@ export default { handleCurrentChange(val) { this.$emit('pagination', { page: val, limit: this.pageSize }) if (this.autoScroll) { - scrollTo(0, 800) + //滚动效果 + // scrollTo(0, 800) } } } diff --git a/src/utils/DefaultCheck.js b/src/utils/DefaultCheck.js new file mode 100644 index 0000000..5eec157 --- /dev/null +++ b/src/utils/DefaultCheck.js @@ -0,0 +1,9 @@ +export function DefaultCheck (line,dataList){ + this.$nextTick(() => { + if (line === null) { + this.$refs.refDom.setCurrentRow(dataList[0]); + } else { + this.$refs.refDom.setCurrentRow(line,true); + } + }); +} \ No newline at end of file diff --git a/src/views/basic/busType/bussinessTypeModify.vue b/src/views/basic/busType/bussinessTypeModify.vue index 6ca76b0..808fc2b 100644 --- a/src/views/basic/busType/bussinessTypeModify.vue +++ b/src/views/basic/busType/bussinessTypeModify.vue @@ -526,11 +526,14 @@ - - - + + + + + @@ -546,11 +549,14 @@ - - - + + + + + @@ -566,11 +572,14 @@ - - - + + + + + @@ -586,11 +595,14 @@ - - - + + + + + @@ -606,11 +618,14 @@ - - - + + + + + @@ -626,11 +641,14 @@ - - - + + + + + @@ -645,11 +663,14 @@ - - - + + + + + @@ -665,11 +686,14 @@ - - - + + + + + @@ -684,11 +708,14 @@ - - - + + + + + diff --git a/src/views/basic/corpMaintain/corpImport.vue b/src/views/basic/corpMaintain/corpImport.vue index 136d80a..60a6549 100644 --- a/src/views/basic/corpMaintain/corpImport.vue +++ b/src/views/basic/corpMaintain/corpImport.vue @@ -13,7 +13,7 @@ - + diff --git a/src/views/basic/product/bindHospProduct.vue b/src/views/basic/product/bindHospProduct.vue index d010fca..667afa4 100644 --- a/src/views/basic/product/bindHospProduct.vue +++ b/src/views/basic/product/bindHospProduct.vue @@ -159,7 +159,8 @@ export default { page: 1, limit: 20, addType: 1, - diType: 1 + diType: 1, + bindType: 1 }; this.getList(); }, diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue index 7e6892d..7f7e35d 100644 --- a/src/views/basic/product/product.vue +++ b/src/views/basic/product/product.vue @@ -1,61 +1,86 @@ @@ -193,31 +304,87 @@ v-if="editDialogVisible" > - + - - - - - - - + + + + + + + -
+
产品标识:
- - - - - + + + + + @@ -227,10 +394,9 @@ ref="editQuery" border label-width="140px" - style="margin-top: 20px; " + style="margin-top: 20px" > - @@ -555,9 +557,9 @@ 添加业务单据类型 + >添加业务单据类型
@@ -589,9 +591,9 @@ 移除 + >移除 @@ -608,8 +610,8 @@ v-if="addBusToInDialogVisible" >
- 选入 + 选入
- 选入 + 选入
- 选入 + 选入
{}); + .catch(() => { + }); }, testConnect() { @@ -896,7 +899,8 @@ export default { this.busTypes = response.data.list || []; this.total = response.data.total || 0; }) - .catch(() => {}); + .catch(() => { + }); }, addBusTypeDialog() { diff --git a/src/views/sync/SysUdimsData.vue b/src/views/sync/SysUdimsData.vue index fb6773f..c46c6dd 100644 --- a/src/views/sync/SysUdimsData.vue +++ b/src/views/sync/SysUdimsData.vue @@ -28,7 +28,7 @@ - 查询 + 查询 同步单据 @@ -83,7 +83,7 @@ 下载 - 删除 @@ -191,12 +191,16 @@ export default { id: null, status: null, page: 1, - limit: 20, + limit: 10, }; this.syncTime = null; this.getList(); }, + search(){ + this.filterQuery.page=1; + this.getList(); + }, getList() { this.loading = true; this.filterQuery.syncTime = this.syncTime; @@ -342,18 +346,15 @@ export default { }, statusFilterType(status) { const statusMap = { - 0: "warning", - 1: "success", + 1: "danger", 2: "danger", + 3: "danger", + 4: "success", }; return statusMap[status]; }, wmsFilterType(status) { - const statusMap = { - "未处理": "warning", - "处理成功": "success", - }; - return statusMap[status]; + return status?'success':'warning'; }, diff --git a/src/views/sync/SysUdimsDownloadData.vue b/src/views/sync/SysUdimsDownloadData.vue index 8fdf4c1..73e63f7 100644 --- a/src/views/sync/SysUdimsDownloadData.vue +++ b/src/views/sync/SysUdimsDownloadData.vue @@ -12,9 +12,8 @@ - - - + + @@ -79,30 +78,32 @@ show-overflow-tooltip > + +
@@ -121,7 +122,7 @@ diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue index c4d0da4..6df606c 100644 --- a/src/views/system/dept/invWarehouse.vue +++ b/src/views/system/dept/invWarehouse.vue @@ -1,4 +1,5 @@ @@ -266,17 +300,22 @@ - - + + - 查询 - 重置 + 查询 + 重置 - - - - - - + + + 取消 - 提交 + 提交 @@ -344,9 +376,10 @@ :close-on-press-escape="false" v-if="relUserVisible" > - @@ -359,21 +392,21 @@ :close-on-press-escape="false" v-if="relBusTypeVisible" > - - {{ currentRow.name }}-用户列表 - - @@ -383,29 +416,28 @@ - -