From 2e96134f3d16c9d48901966972fece4b844e7a1b Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 30 Jun 2023 15:15:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8A=E6=88=90=E5=93=81=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData2.js | 31 ++++-- src/pages/homeset/HomePage.vue | 3 + .../semi-finished-instore-search.vue | 101 +++++++++++++----- .../semifinished/semi-finished-instore.vue | 4 +- 4 files changed, 98 insertions(+), 41 deletions(-) diff --git a/src/config/getData2.js b/src/config/getData2.js index e27fc01..98b7ba4 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -123,15 +123,15 @@ export const getBcpStor = () => post('api/pda/bcp/in/getBcpStor', {}) // 1.2单据类型下拉框 export const getBillType = () => post('api/pda/bcp/in/getBillType', {}) // 1.3物料选择页面 -// export const getMaterial = (code) => post('api/pda/bcp/in/getMaterial', { -// material_code: code -// }) -export const getMaterial = (code) => { - let res = { - data: [{material_code: '1', material_name: 'a', material_spec: '001', class_code: '1', net_weight: '100', unit_name: 'g'}] - } - return res -} +export const getMaterial = (code) => post('api/pda/bcp/in/getMaterial', { + material_code: code +}) +// export const getMaterial = (code) => { +// let res = { +// data: [{material_code: '1', material_name: 'a', material_spec: '001', class_code: '1', net_weight: '100', unit_name: 'g'}] +// } +// return res +// } // 1.4入库点下拉框 export const getPoint = () => post('api/pda/bcp/in/getPoint', {}) // 1.5呼叫空载具(按钮) @@ -145,6 +145,15 @@ export const createIn = (from) => post('api/pda/bcp/in/createIn', { * 半成品入库管理查询 */ // 2.1半成品入库查询 -export const getAll = () => post('api/pda/bcp/in/getAll', {}) +export const getAll = (id, btime, etime, code, scode, type) => post('api/pda/bcp/in/getAll', { + stor_id: id, + begin_time: btime, + end_time: etime, + material_code: code, + storagevehicle_code: scode, + bill_type: type +}) // 2.2强制确认(按钮) -export const bcpInConfirm = () => post('api/pda/bcp/in/confirm', {}) +export const bcpInConfirm = (row) => post('api/pda/bcp/in/confirm', { + row: row +}) diff --git a/src/pages/homeset/HomePage.vue b/src/pages/homeset/HomePage.vue index 950d14f..4f7813f 100644 --- a/src/pages/homeset/HomePage.vue +++ b/src/pages/homeset/HomePage.vue @@ -36,6 +36,9 @@ export default { }, created () { this.$store.dispatch('setMaterObj', '') + this.$store.dispatch('setKeepAlive', []) + localStorage.removeItem('materObj') + localStorage.removeItem('keepAlive') this._authority() }, methods: { diff --git a/src/pages/modules/semifinished/semi-finished-instore-search.vue b/src/pages/modules/semifinished/semi-finished-instore-search.vue index 7041fc2..dc47a70 100644 --- a/src/pages/modules/semifinished/semi-finished-instore-search.vue +++ b/src/pages/modules/semifinished/semi-finished-instore-search.vue @@ -6,11 +6,11 @@