diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index b990af015..ea131373a 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -1482,4 +1482,85 @@ export const completeTransfer = (params) => request( devUrl + "/api/pda/store/transfer-note/", { // data: params, method: "post" - }); \ No newline at end of file + }); + +//库移任务列表 +export const getInventoryMoveList = (params) => request( + devUrl + "/api/pda/store/transferlib-job/list", { + method: 'get', + data: params + }); + +//库移任务详情 +export const getInventoryMoveDetail = (params) => request( + devUrl + "/api/pda/store/transferlib-job/" + params.id, { // + data: {}, + method: "get" + }); + +//承接库移任务 +export const takeInventoryMoveJob = (params) => request( + devUrl + "/api/pda/store/transferlib-job/accept/" + params.id, { // + data: {}, + method: "post" + }); + +//取消承接库移任务 +export const cancelTakeInventoryMoveJob = (id) => request( + devUrl + "/api/pda/store/transferlib-job/cancel-accept/" + id, { // + data: {}, + method: "post" + }); + +//提交库移任务 +export const finshInventoryMoveJob = (id, params) => request( + devUrl + "/api/pda/store/transferlib-job/complete/" + id, { // + data: params, + method: "post" + }) +//完工库移 +export const completeInvenTransfer = (params) => request( + devUrl + "/api/pda/store/transfer-note/", { // + data: params, + method: "post" + }); + +//注塑发料申请 +export const injectIssueRequest = (params) => request( + devUrl + "/api/pda/store/injection-request/", { // + data: params, + method: "post" + }) + +//注塑发料任务列表 +export const getInjectIssueJobList = (params) => request( + devUrl + "/api/pda/job/injection/list", { + method: 'get', + data: params + }) +//注塑发料任务详情 +export const getInjectIssueDetail = (params) => request( + devUrl + "/api/pda/job/injection/" + params.id, { // + data: {}, + method: "get" + }); + +//承接注塑发料任务 +export const takeInjectIssueJob = (params) => request( + devUrl + "/api/pda/job/injection/take/" + params.id, { // + data: {}, + method: "post" + }); + +//取消承接注塑发料任务 +export const cancelTakeInjectIssueJob = (id) => request( + devUrl + "/api/pda/job/injection/cancel-take/" + id, { // + data: {}, + method: "post" + }); +//提交注塑发料任务 +export const finshInjectIssueJob = (id, params) => request( + devUrl + "/api/pda/job/injection/finish/" + id, { // + data: params, + method: "post" + }) \ No newline at end of file diff --git a/fe/PDA/common/pdabasic.css b/fe/PDA/common/pdabasic.css index 69008152d..c82ae3785 100644 --- a/fe/PDA/common/pdabasic.css +++ b/fe/PDA/common/pdabasic.css @@ -733,3 +733,37 @@ export function getItemTypeStyle(val) { color: #FFFFFF; } +page { + width: 100%; + height: 100%; + /* background-color: #fff; */ +} + +.page-wraper { + display: flex; + flex-direction: column; + width: 100%; + height: 100%; + /* background-color: #fff; */ +} +.page-main { + flex: 1; + position: relative; + background: #fff; +} + +.page-main-scroll { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; +} + +.page-main-list { + /* height: 80rpx; + line-height: 80rpx; */ + text-align: center; + background: #e0e0e0; + +} \ No newline at end of file diff --git a/fe/PDA/components/uni-fab/uni-fab.vue b/fe/PDA/components/uni-fab/uni-fab.vue index e6a11d8f8..33c86a8e0 100644 --- a/fe/PDA/components/uni-fab/uni-fab.vue +++ b/fe/PDA/components/uni-fab/uni-fab.vue @@ -5,7 +5,9 @@ 'uni-fab--rightBottom': rightBottom, 'uni-fab--leftTop': leftTop, 'uni-fab--rightTop': rightTop - }" class="uni-fab"> + }" class="uni-fab" + :style="nvueBottom" + > + }" :style="{ width: boxWidth, height: boxHeight, backgroundColor: styles.backgroundColor }" + class="uni-fab__content" elevation="5"> - - - {{ item.text }} + + + {{ item.text }} @@ -28,9 +34,11 @@ 'uni-fab__circle--leftTop': leftTop, 'uni-fab__circle--rightTop': rightTop, 'uni-fab__content--other-platform': !isAndroidNvue - }" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor }" @click="_onClick"> - - + }" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor, 'bottom': nvueBottom }" @click="_onClick"> + + @@ -106,16 +114,18 @@ color: '#3c3e49', selectedColor: '#007AFF', backgroundColor: '#fff', - buttonColor: '#007AFF' + buttonColor: '#007AFF', + iconColor: '#fff', + icon: 'plusempty' } } }, computed: { contentWidth(e) { - return (this.content.length + 1) * 55 + 10 + 'px' + return (this.content.length + 1) * 55 + 15 + 'px' }, contentWidthMin() { - return 55 + 'px' + return '55px' }, // 动态计算宽度 boxWidth() { @@ -151,12 +161,24 @@ }, horizontalRight() { return this.getPosition(2, 'horizontal', 'right') + }, + // 计算 nvue bottom + nvueBottom() { + const safeBottom = uni.getSystemInfoSync().windowBottom; + // #ifdef APP-NVUE + return 30 + safeBottom + // #endif + // #ifndef APP-NVUE + return 30 + // #endif } }, watch: { - pattern(newValue, oldValue) { - //console.log(JSON.stringify(newValue)) - this.styles = Object.assign({}, this.styles, newValue) + pattern: { + handler(val, oldVal) { + this.styles = Object.assign({}, this.styles, val) + }, + deep: true } }, created() { @@ -185,6 +207,9 @@ * 按钮点击事件 */ _onItemClick(index, item) { + if (!this.isShow) { + return + } this.$emit('trigger', { index, item @@ -208,7 +233,9 @@ } - \ No newline at end of file + diff --git a/fe/PDA/mycomponents/coms/task/comInjectIssue.vue b/fe/PDA/mycomponents/coms/task/comInjectIssue.vue new file mode 100644 index 000000000..c96ddae6c --- /dev/null +++ b/fe/PDA/mycomponents/coms/task/comInjectIssue.vue @@ -0,0 +1,68 @@ + + + + + + diff --git a/fe/PDA/mycomponents/coms/task/comInventyMove.vue b/fe/PDA/mycomponents/coms/task/comInventyMove.vue new file mode 100644 index 000000000..c96ddae6c --- /dev/null +++ b/fe/PDA/mycomponents/coms/task/comInventyMove.vue @@ -0,0 +1,68 @@ + + + + + + diff --git a/fe/PDA/mycomponents/wincom/winScanLocationCode.vue b/fe/PDA/mycomponents/wincom/winScanLocationCode.vue index ad8330674..513e103fd 100644 --- a/fe/PDA/mycomponents/wincom/winScanLocationCode.vue +++ b/fe/PDA/mycomponents/wincom/winScanLocationCode.vue @@ -1,28 +1,34 @@ diff --git a/fe/PDA/pages.js b/fe/PDA/pages.js index 13ff314b2..38dad3ea4 100644 --- a/fe/PDA/pages.js +++ b/fe/PDA/pages.js @@ -666,6 +666,48 @@ module.exports = () => ({ "navigationBarTitleText": "完工转储(装配)", "enablePullDownRefresh": false } + }, + { + "path": "pages/task/inventoryMoveJob", + "style": { + "navigationBarTitleText": "库移任务", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/task/inventoryMoveJobDetail", + "style": { + "navigationBarTitleText": "库移任务详情", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/record/completeInventoryTransfer", + "style": { + "navigationBarTitleText": "完工库移", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/request/injectionIssueRequest", + "style": { + "navigationBarTitleText": "注塑发料申请", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/task/injectionIssueJob", + "style": { + "navigationBarTitleText": "注塑发料任务", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/task/injectionIssueJobDetail", + "style": { + "navigationBarTitleText": "注塑发料任务详情", + "enablePullDownRefresh": false + } } diff --git a/fe/PDA/pages.json b/fe/PDA/pages.json index baf9eb27e..da6685ef8 100644 --- a/fe/PDA/pages.json +++ b/fe/PDA/pages.json @@ -637,8 +637,57 @@ "navigationBarTitleText": "完工转储(装配)", "enablePullDownRefresh": false } + }, + + { + "path": "pages/task/inventoryMoveJob", + "style": { + "navigationBarTitleText": "库移任务", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/task/inventoryMoveJobDetail", + "style": { + "navigationBarTitleText": "库移任务详情", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/record/completeInventoryTransfer", + "style": { + "navigationBarTitleText": "完工库移", + "enablePullDownRefresh": false + } + }, + + { + "path": "pages/request/injectionIssueRequest", + "style": { + "navigationBarTitleText": "注塑发料申请", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/task/injectionIssueJob", + "style": { + "navigationBarTitleText": "注塑发料任务", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/task/injectionIssueJobDetail", + "style": { + "navigationBarTitleText": "注塑发料任务详情", + "enablePullDownRefresh": false + } } + + + + + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/fe/PDA/pages/index/index.vue b/fe/PDA/pages/index/index.vue index 2a2f6b0fb..768910831 100644 --- a/fe/PDA/pages/index/index.vue +++ b/fe/PDA/pages/index/index.vue @@ -83,7 +83,7 @@ - + + + + + + + + + + + ({{index+1}}). + + + + + + + + 单位 + {{item.uom}} + + + 标包数 + {{item.stdPackQty}} + + + 来源库位 + + + + {{item.fromLocationCode}} + + + + + + + + + + + + 数量 + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+ + + + + + +
+
+ + + + + \ No newline at end of file diff --git a/fe/PDA/pages/request/injectionIssueRequest.vue b/fe/PDA/pages/request/injectionIssueRequest.vue new file mode 100644 index 000000000..4ba2a76fb --- /dev/null +++ b/fe/PDA/pages/request/injectionIssueRequest.vue @@ -0,0 +1,156 @@ + + \ No newline at end of file diff --git a/fe/PDA/pages/request/thirdLocationRequest.vue b/fe/PDA/pages/request/thirdLocationRequest.vue index 9e053c867..c018db361 100644 --- a/fe/PDA/pages/request/thirdLocationRequest.vue +++ b/fe/PDA/pages/request/thirdLocationRequest.vue @@ -204,14 +204,18 @@ locations(code).then(res => { uni.hideLoading(); if(res){ - if(res.type == 3||res.type == 4){ - this.fromLocationCode = res.code; - this.fromLocationArea = res.areaCode; - this.openPackLabel(); - this.closeScanFromLocationPopup(); - }else { - this.showMessage('扫描的库位【' + code + '】不是【半成品库】或【成品库位】'); - } + this.fromLocationCode = res.code; + this.fromLocationArea = res.areaCode; + this.openPackLabel(); + this.closeScanFromLocationPopup(); + // if(res.type == 3||res.type == 4){ + // this.fromLocationCode = res.code; + // this.fromLocationArea = res.areaCode; + // this.openPackLabel(); + // this.closeScanFromLocationPopup(); + // }else { + // this.showMessage('扫描的库位【' + code + '】不是【半成品库】或【成品库位】'); + // } }else { this.showMessage('未查询到库位【' + code + '】'); } diff --git a/fe/PDA/pages/task/injectionIssueJob.vue b/fe/PDA/pages/task/injectionIssueJob.vue new file mode 100644 index 000000000..5db39b1ad --- /dev/null +++ b/fe/PDA/pages/task/injectionIssueJob.vue @@ -0,0 +1,167 @@ + + + + diff --git a/fe/PDA/pages/task/injectionIssueJobDetail.vue b/fe/PDA/pages/task/injectionIssueJobDetail.vue new file mode 100644 index 000000000..135648bea --- /dev/null +++ b/fe/PDA/pages/task/injectionIssueJobDetail.vue @@ -0,0 +1,405 @@ + + + + + \ No newline at end of file diff --git a/fe/PDA/pages/task/inventoryMoveJob.vue b/fe/PDA/pages/task/inventoryMoveJob.vue new file mode 100644 index 000000000..2d486a922 --- /dev/null +++ b/fe/PDA/pages/task/inventoryMoveJob.vue @@ -0,0 +1,168 @@ + + + + diff --git a/fe/PDA/pages/task/inventoryMoveJobDetail.vue b/fe/PDA/pages/task/inventoryMoveJobDetail.vue new file mode 100644 index 000000000..e16d61c16 --- /dev/null +++ b/fe/PDA/pages/task/inventoryMoveJobDetail.vue @@ -0,0 +1,607 @@ + + + + + \ No newline at end of file