From e7ccbebba6e36237107c05cc911774cae58c4d52 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Thu, 21 Nov 2024 10:12:45 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=96=B0=E8=B4=AD=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 25 ++ src/pages/new-purchase/entry/code-inbound.vue | 213 ++++++++++++++ src/pages/new-purchase/entry/details.vue | 113 ++------ src/pages/new-purchase/entry/inEntry.vue | 261 ++++++++++++++++++ src/pages/new-purchase/entry/index.vue | 53 ++-- src/services/purchase.js | 28 ++ 6 files changed, 588 insertions(+), 105 deletions(-) create mode 100644 src/pages/new-purchase/entry/code-inbound.vue create mode 100644 src/pages/new-purchase/entry/inEntry.vue diff --git a/src/pages.json b/src/pages.json index e760154..f6cbec1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -51,6 +51,31 @@ "navigationBarTitleText": "新购入库" } }, + + //新购入库详情 + { + "path": "pages/new-purchase/entry/details", + "style": { + "navigationBarTitleText": "新购入库详情" + } + }, + + //新购入库未完成入库 + { + "path": "pages/new-purchase/entry/inEntry", + "style": { + "navigationBarTitleText": "入库" + } + }, + + //新购入库未完成编码入库 + { + "path": "pages/new-purchase/entry/code-inbound", + "style": { + "navigationBarTitleText": "编码入库" + } + }, + { "path": "pages/new-purchase/accept/acceptDetails", "style": { diff --git a/src/pages/new-purchase/entry/code-inbound.vue b/src/pages/new-purchase/entry/code-inbound.vue new file mode 100644 index 0000000..88d386e --- /dev/null +++ b/src/pages/new-purchase/entry/code-inbound.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/src/pages/new-purchase/entry/details.vue b/src/pages/new-purchase/entry/details.vue index 8428422..fba32aa 100644 --- a/src/pages/new-purchase/entry/details.vue +++ b/src/pages/new-purchase/entry/details.vue @@ -1,5 +1,5 @@ @@ -60,6 +73,14 @@ const pickingList = ref([ iconSrc: '../../static/workbench/fetchMaterialOutStore.png', }, ]) +// 领料 +const repairList = ref([ + { + title: '维修', + url: '/pages/repair/index', + iconSrc: '../../static/workbench/fix.png', + }, +]) const onNavigateTo = (url) => { uni.navigateTo({ url }) diff --git a/src/services/repair/repair.js b/src/services/repair/repair.js new file mode 100644 index 0000000..078e6ff --- /dev/null +++ b/src/services/repair/repair.js @@ -0,0 +1,22 @@ +import { http } from '@/utils/http' + +/** + * 维修 ---- 列表查询 + */ +export const getRepairListAPI = (data) => { + return http({ + method: 'GET', + url: '/material/repair/getRepairTaskList', + data, + }) +} +/** + * 维修 ---- 列表详情 + */ +export const getRepairDetailsAPI = (data) => { + return http({ + method: 'GET', + url: '/material/repair/getAppRepairMaTypeList', + data, + }) +} diff --git a/src/static/workbench/fix.png b/src/static/workbench/fix.png new file mode 100644 index 0000000000000000000000000000000000000000..e76ffcc5766c0ac3d8a66671c2ca3b5387b344b1 GIT binary patch literal 2539 zcmV#Ld?fWN9 z+K&``eedzX=X-wV_vhSe29NpC{OLBIjtDfq0~~D(XaiUa2XD)7$G~C$k8>c#!7jnz zmoq+g>DA!#F?a}r2fR3YI>J=GpK$ln=I;bN;B9 zy_dw>7I=XW!(`|+z{cFN495bj$iPd9i{&(=tL&IlAsh+Noj4U0JsiQx4ZM)7MVttB zyaAio5+EuZo53*%&Ldb22qARF_S&%q1$9ERZkT+0)eN2x(Zy$)etEJfS%-V@7gi@ax#0oT%MqnYi@FW4jvBvfPWVv+LsH?jq2AiqJIc) zU@bm_lRwy7e5J$(bSH+pIH!`;JHD!JDm|xdhNmz@$|Xt#0+8u5g&o0X6~>N4X9f!_ zyFdWbFr!XqKgfL8ralU{*{rmnm4)C8){^lz6lAhF0ciF`n(HX!(HDHVVIR5!Ph+3& z3An{R-*)_1^xGr)bt(db8O^tXoB)PlM&Q8l(HHA!So(tWrOSyx*UJqe2%of`V)FZG zRYER^P-q1?0i3M;;=x-Ki$F``hkO^a(NeTP4@>2eVt-B2E913f4k{KbyG<$8b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?_YJdl`irQVwaqU_c6 z)ZTKJ%6gAJGLu!h6zsqiUSj$d72RicDcH^pRtp@w_jqIHu}asg+EP#AcZtNntf!IkJ&FHB^l|tQe zIQ!Y$!{IKbvLm0G5H#z`@?owT&VM*5ticEbUV@1((c8*AUcYGWeOfwwOx7 Date: Thu, 21 Nov 2024 14:30:20 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/repair/details.vue | 72 ++++++++++++++++++++++++----------- src/services/repair/repair.js | 10 +++++ 2 files changed, 59 insertions(+), 23 deletions(-) diff --git a/src/pages/repair/details.vue b/src/pages/repair/details.vue index ea61211..4da593b 100644 --- a/src/pages/repair/details.vue +++ b/src/pages/repair/details.vue @@ -11,7 +11,9 @@ 查询 - 合格 + 合格 @@ -41,14 +43,13 @@ - + @@ -104,27 +105,11 @@ + + diff --git a/src/pages/repair/code-view.vue b/src/pages/repair/code-view.vue new file mode 100644 index 0000000..6a54b19 --- /dev/null +++ b/src/pages/repair/code-view.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/pages/repair/details.vue b/src/pages/repair/details.vue index 4da593b..4af004b 100644 --- a/src/pages/repair/details.vue +++ b/src/pages/repair/details.vue @@ -38,7 +38,7 @@ v-for="(item, index) in detailsList" :key="index" class="table-list-item" - @tap="onCodingItem(item)" + @tap="onRepairItem(item)" > @@ -159,7 +159,6 @@ const onQualified = async () => { ids.push(e.id) } }) - console.log('合格参数', ids) const res = await setQualifiedAPI(ids) if (res.code === 200) { uni.showToast({ @@ -170,46 +169,24 @@ const onQualified = async () => { } } -// 点击跳转出库页面 -const onCodingItem = (item) => { +// 点击跳转维修页面 +const onRepairItem = (item) => { // 解构所需要的数据 - const { - status, - manageType, - maTypeName, - typeName, - storageNum, - preNum, - alNum, - unitName, - id, - typeId, - } = item - - leaseApplyInfo.value.maTypeName = maTypeName - leaseApplyInfo.value.typeName = typeName - leaseApplyInfo.value.unitName = unitName - leaseApplyInfo.value.storageNum = storageNum - leaseApplyInfo.value.preNum = preNum - leaseApplyInfo.value.alNum = alNum - leaseApplyInfo.value.id = id - leaseApplyInfo.value.typeId = typeId - leaseApplyInfo.value.manageType = manageType - - if (status == 2) { - uni.showToast({ title: '该物资已完成出库!', icon: 'none' }) - return - } + const { manageType, repairNum, typeName, type } = item + let queryParams = null let codingUrl = '' if (manageType === 0) { - codingUrl = '/pages/picking/outbound/code-outbound' // 编码出库 + codingUrl = '/pages/repair/code-view' // 编码维修 } if (manageType == 1) { - codingUrl = '/pages/picking/outbound/num-outbound' // 数量出库 + codingUrl = '/pages/repair/num-operate' // 数量维修 + queryParams = { + repairNum, + typeName, + type, + } } - - // 把 leaseApplyInfo 领料信息转成 json 传递到下个页面 - uni.navigateTo({ url: `${codingUrl}?queryParams=${JSON.stringify(leaseApplyInfo.value)}` }) + uni.navigateTo({ url: `${codingUrl}?queryParams=${JSON.stringify(queryParams)}` }) } // 页面加载完毕 diff --git a/src/pages/repair/num-operate.vue b/src/pages/repair/num-operate.vue new file mode 100644 index 0000000..368b3cb --- /dev/null +++ b/src/pages/repair/num-operate.vue @@ -0,0 +1,210 @@ + + + + + From 1513352f406622370372970eac171aa474124162 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 21 Nov 2024 18:17:36 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E6=A8=A1=E5=9D=97=20?= =?UTF-8?q?=E9=A9=B3=E5=9B=9E=E6=8F=90=E4=BA=A4=E7=AD=89=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/repair/code-view.vue | 90 +++++++++++++++++++++++++--------- src/pages/repair/details.vue | 10 ++-- src/pages/repair/index.vue | 38 +++++++++++--- src/services/repair/repair.js | 20 ++++++++ src/utils/http.js | 1 + 5 files changed, 124 insertions(+), 35 deletions(-) diff --git a/src/pages/repair/code-view.vue b/src/pages/repair/code-view.vue index 6a54b19..fe751d6 100644 --- a/src/pages/repair/code-view.vue +++ b/src/pages/repair/code-view.vue @@ -2,8 +2,16 @@ - - 维修完成 + + + + + + + 查询 + + + 合格 @@ -26,6 +34,43 @@ + + + + + + + + + + + + + + 1 + 物资名称: + + 66 + + + @@ -34,6 +79,7 @@ import { computed, ref } from 'vue' import { setOutboundNumAPI } from '@/services/picking/outbound.js' const query = defineProps() // 获取上级页面传递的路由参数 const queryParams = JSON.parse(query.queryParams) +const allChecked = ref(false)