diff --git a/common/style/layout.css b/common/style/layout.css index a8a66d4..6b2eb4e 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -1,11 +1,11 @@ /** 平板尺寸960*600 **/ page { - background-color: #f6f6f6 !important; + background-color: #0a2b57 !important; min-height: 100% !important; height: 100% !important; } uni-page-body { - background-color: #f6f6f6 !important; + background-color: #0a2b57 !important; min-height: 100% !important; height: 100% !important; } @@ -17,12 +17,20 @@ uni-button{ font-size: 16px; } +uni-button[disabled]:not([type]), uni-button[disabled][type=default] { + background-color: transparent; +} + .content{ width: 100%; height: 100%; background: center / 100% auto url(./static/images/page_bg.jpg) no-repeat; background-color: #040d1e; } +.footer{ + width: 100%; + height: 10px; +} .search-confirm-wrap { width: calc(100% - 20px); margin: 10px auto 0 auto; @@ -106,21 +114,18 @@ uni-button{ background: center / 100% 100% url(./static/images/bg-task-r1.png) no-repeat; } .grid-wrap{ - width: calc(100% - 20px); - height: calc(100% - 145px); - padding: 5px 10px 0 10px; + width: 100%; + /* height: calc(100% - 145px); */ margin: 0 auto; + padding-top: 5px; background: center / 100% 100% url(./static/images/bg-task-r2.png) no-repeat; - /* border: 1px solid #0090e6; - background-color: rgba(2, 38, 72, 90%); - border-radius: 9px; - box-shadow: inset 3px 3px 14px -2px #0089df, inset -3px -3px 14px -2px #0089df; */ } .table-wrap { width: 100%; - height: calc(100% - 53px); - overflow-y: scroll; - margin-bottom: 9px; + padding: 0 10px; + /* height: calc(100% - 53px); */ + /* overflow-y: scroll; */ + /* margin-bottom: 9px; */ } .grid-wrap .grid-table{ width: 100%; @@ -284,7 +289,7 @@ uni-button{ .zd-sec-wraper { width: 100%; background-color: rgba(63,106,202,0.3); - padding: 5px 10px; + padding: 5px 0px; border-bottom: 1px solid #7A9FE0; transition: height 0.5s ease; } @@ -463,4 +468,4 @@ uni-button{ color: #fff; border: 1px solid #21D0F2; border-radius: 12px -} +} \ No newline at end of file diff --git a/common/style/reset.css b/common/style/reset.css index 60ee351..9eda0ab 100644 --- a/common/style/reset.css +++ b/common/style/reset.css @@ -31,6 +31,9 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re .relative { position: relative; } +.absolute { + position: absolute; +} .hide { display: none; } @@ -40,6 +43,9 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re .show { display: block; } +.overauto { + overflow: auto !important; +} .ellipsis{ overflow: hidden; text-overflow: ellipsis; diff --git a/components/GridDetail.vue b/components/GridDetail.vue new file mode 100644 index 0000000..95d1a39 --- /dev/null +++ b/components/GridDetail.vue @@ -0,0 +1,170 @@ + + + + + \ No newline at end of file diff --git a/components/Pagination.vue b/components/Pagination.vue index 5f493a5..eaade80 100644 --- a/components/Pagination.vue +++ b/components/Pagination.vue @@ -3,12 +3,20 @@ < {{ item }} > + 跳转到 + + @@ -66,8 +80,9 @@ export default { display: flex; align-items: center; justify-content: center; + padding: 20px 0; } -text { +text,.page_input { display: inline-block; padding: 0 10px; background-color: #fff; @@ -85,4 +100,18 @@ text.active { text.ellipsis { cursor: default; } +.page_input { + width: 50px + height: 28px; + text-align: center; +} +.page_txt { + background-color: transparent; + border-color: transparent; + color: #fff; + padding: 0; +} +.mgl10 { + margin-left: 20px +} \ No newline at end of file diff --git a/pages/home/home.vue b/pages/home/home.vue index f668de6..8a09e0b 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -27,38 +27,30 @@ + + diff --git a/pages/login/login.vue b/pages/login/login.vue index c4e462e..65493d0 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -44,8 +44,8 @@ - 刷新时间 - + + diff --git a/pages/management/in-storage.vue b/pages/management/in-storage.vue index b45e646..23d782c 100644 --- a/pages/management/in-storage.vue +++ b/pages/management/in-storage.vue @@ -3,13 +3,17 @@ - - + + + + + - + @@ -24,13 +28,14 @@ {{crType === 'IN'? '入库单号':'出库单号'}} 发起部门 去向 - 状态 仓库名称 - 制单日期 - 制单人 - 业务日期 - 操作日期 + 状态 + 制单日期 + 制单人 + 业务日期 + 操作日期 操作人 + 更多 @@ -39,15 +44,16 @@ {{e.djbh}} - {{e.fqmc}} + {{e.bmmc}} {{e.zzmc}} - {{e.djzt}} {{e.ckmc}} - {{e.cjsj.substring(0, 10)}} - {{e.cjr}} - {{e.ywrq.substring(0, 10)}} - {{e.update_time}} + {{e.djzt}} + {{e.cjsj}} + {{e.cjr}} + {{e.ywrq}} + {{e.update_time}} {{e.update_name}} + @@ -56,7 +62,7 @@ 选择 仓库名称 物料编号 - 物料名称 + 物料名称 单位 库位 数量 @@ -65,13 +71,14 @@ 库存 操作日期 操作人 + 更多 {{j+1}} {{el.ckmc}} {{el.wlbm}} - {{el.wlmc}} + {{el.wlmc}} {{el.jldw}} {{el.kwbm}} {{el.sl}} @@ -80,10 +87,11 @@ {{el.kcsl}} {{el.update_time}} {{el.update_name}} + - + @@ -95,22 +103,23 @@ + + - {{type === '1' ?'库位修改' : '库位确认'}} + {{crType === 'IN' ? '入库' : '出库'}} 序号 物料编号 物料名称 - 推荐库位 - 实际库位 + 选择库位 数量 + 库存数量 {{t+1}} {{ele.wlbm}} {{ele.wlmc}} - {{ele.tjkw}} {{ele.sysl}} + {{ele.kcsl}} @@ -150,13 +160,15 @@ import SearchBox from '@/components/SearchBox.vue' import ScanInput from '@/components/ScanInput.vue' import Pagination from '@/components/Pagination.vue' + import GridDetail from '@/components/GridDetail.vue' import {easOutInBillPage, easOutInBillDetailPage, easOutInBillUpdate, easOutInBillDetailUpdate, queryInventoryInfo} from '@/utils/getData2.js' export default { components: { NavBar, SearchBox, ScanInput, - Pagination + Pagination, + GridDetail }, data() { return { @@ -189,7 +201,11 @@ show: false, type: '', kwCode: '', - checkArr3: [] + checkArr3: [], + delShow: false, + detailObj: {}, + value: '', + range:[{value: 1, text: '提交'}, {value: 2, text: '审核'}] }; }, onShow() { @@ -220,7 +236,7 @@ this._easOutInBillPage() }, async _easOutInBillPage () { - let res = await easOutInBillPage(this.val1, this.id, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') + let res = await easOutInBillPage(this.val1, this.id, this.value, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '') if (res.code === 1) { this.checkArr1 = [] res.result.map(el => { @@ -328,12 +344,34 @@ if (this.checkArr2.length === 0) { return } else if (this.checkArr2.length === 1) { - this.type = '1' - this._queryInventoryInfo() - } else { - this.type = '2' - this.show = true - this.kwCode = '' + if (Number(this.checkArr2[0].sl) > Number(this.checkArr2[0].kcsl)) { + uni.showToast({ + title: '库存不足', + icon: 'none' + }) + return + } else { + this.type = '1' + this._queryInventoryInfo() + } + } else if (this.checkArr2.length >= 2) { + let flag = false + this.checkArr2.map(el => { + if (Number(el.sl) > Number(el.kcsl)) { + flag = true + } + }) + if (flag) { + uni.showToast({ + title: '库存不足', + icon: 'none' + }) + return + } else { + this.type = '2' + this.show = true + this.kwCode = '' + } } }, async _queryInventoryInfo () { @@ -423,6 +461,10 @@ } catch (e) { this.disabled2 = false } + }, + getDetails (type,e) { + this.delShow = !this.delShow + this.detailObj = {type: type, data:e} } } } @@ -430,4 +472,25 @@ diff --git a/utils/getData2.js b/utils/getData2.js index 4c7d1ce..730da03 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -21,11 +21,12 @@ export const getBillsCount = (area) => request({ }) // 1.2分页查询出入库单据 -export const easOutInBillPage = (fuzzy, djlx, page, size) => request({ +export const easOutInBillPage = (fuzzy, djlx, djzt, page, size) => request({ url:'api/easOutInBill/page', data: { fuzzy: fuzzy, djlx: djlx, + djzt: djzt, page: page, size: size } diff --git a/utils/mork2.js b/utils/mork2.js index 05ccdfc..971740d 100644 --- a/utils/mork2.js +++ b/utils/mork2.js @@ -332,7 +332,7 @@ export const easOutInBillDetailPage = (djid, page, size) => { "fzjldw": null, "sl": 1050.00, "jbsl": "1050", - "kcsl": 0.00, + "kcsl": 2000.00, "tjkwbm": null, "tjkwmc": null, "fzsl": "0", @@ -376,7 +376,7 @@ export const easOutInBillDetailPage = (djid, page, size) => { "fzjldw": null, "sl": 1050.00, "jbsl": "1050", - "kcsl": 0.00, + "kcsl": 2000.00, "tjkwbm": null, "tjkwmc": null, "fzsl": "0", diff --git a/vuex/modules/user.js b/vuex/modules/user.js index 478b4fa..457dbf8 100644 --- a/vuex/modules/user.js +++ b/vuex/modules/user.js @@ -1,6 +1,6 @@ import * as types from '../types' -const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.171:8011' : 'http://192.168.81.252:8010' +const baseUrl = process.env.NODE_ENV === 'development' ? 'http://47.98.105.245:8011' : 'http://192.168.81.252:8010' const imgBaseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.252:8010' : 'http://192.168.81.252:8010' const state = { baseUrl: uni.getStorageSync('baseUrl') || baseUrl,