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 @@
+
+
+
+
+
+
+
+
+
+ 类型名称:
+
+ {{ queryParams.maTypeName }}
+
+
+
+
+
+
+
+
+ 规格型号:
+
+ {{ queryParams.typeName }}
+
+
+
+ 设备编码:
+
+ {{ item.maCode }}
+
+
+
+
+
+
+ 入库
+
+
+
+
+
+
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 @@
-
+
@@ -17,7 +17,7 @@
v-for="(item, index) in detailsList"
:key="index"
class="table-list-item"
- @tap="onCodingItem(item)"
+
>
@@ -36,30 +36,23 @@
{{ index + 1 }}
- 预领数量:
+ 到货数量:
- {{ item.preNum }}
+ {{ }}
{{ index + 1 }}
- 已领数量:
+ 已入库数量:
- {{ item.alNum }}
+ {{ }}
-
+
{{ index + 1 }}
- 待领数量:
+ 待入库数量:
- {{ item.preNum - item.alNum }}
-
-
-
- {{ index + 1 }}
- 单位:
-
- {{ item.unitName }}
+ {{ }}
@@ -88,13 +81,13 @@
text="未完成"
type="warning"
size="small"
- v-if="item.status == 0 || item.status == 1"
+ v-if="item.status == 4"
/>
@@ -106,86 +99,38 @@
+
+
diff --git a/src/pages/new-purchase/entry/index.vue b/src/pages/new-purchase/entry/index.vue
index 45a0ce2..4888661 100644
--- a/src/pages/new-purchase/entry/index.vue
+++ b/src/pages/new-purchase/entry/index.vue
@@ -59,9 +59,13 @@
采购数量:
{{ item.purchaseMaNumber }}
-
- 物资厂家:
- {{ item.supplier }}
+
+ 已入库数量:
+ {{ }}
+
+
+ 待入库数量:
+ {{ }}
@@ -105,15 +109,21 @@ const onChangeDate = (val) => {
//点击事件
const onClick=(e,item)=> {
if(item.taskStatus==22){
- console.log(e.index)
if(e.index==0){
- uni.navigateTo({ url: `/pages/new-purchase/entry/details?id=${item.id}` })
+ uni.navigateTo({ url: `/pages/new-purchase/entry/details?id=${item.id}&taskId=${item.taskId}` })
}
// console.log(e,'item',item);
// console.log(e.index);
+ }else{
+ if(e.index==0){
+ uni.navigateTo({ url: `/pages/new-purchase/entry/details?id=${item.id}&taskId=${item.taskId}` })
+ }else{
+ uni.navigateTo({ url: `/pages/new-purchase/entry/inEntry?id=${item.id}&taskId=${item.taskId}` })
}
}
+ }
+
//左滑选择项1
const swipeOptions = ref([
{
@@ -121,11 +131,11 @@ const swipeOptions = ref([
style: { backgroundColor: '#34C759' },
onClick: () => { handleAction('查看'); }
},
- {
- text: '驳回',
- style: { backgroundColor: '#dd524d' },
- onClick: () => { handleAction('驳回'); }
- }
+ // {
+ // text: '驳回',
+ // style: { backgroundColor: '#dd524d' },
+ // onClick: () => { handleAction('驳回'); }
+ // }
])
//左滑选择项2
@@ -138,10 +148,10 @@ const swipeOptions = ref([
text: '入库',
style: { backgroundColor: '#007AFF' },
},
- {
- text: '驳回',
- style: { backgroundColor: '#dd524d' },
- }
+ // {
+ // text: '驳回',
+ // style: { backgroundColor: '#dd524d' },
+ // }
])
//左滑改变
@@ -153,10 +163,9 @@ const swipeOptions = ref([
// 获取列表数据
const getTableList = async (isTap = false) => {
- // console.log('queryParams.value查询参数', queryParams.value)
const res = await getPurchaseList(queryParams.value)
console.log('res列表数据', res)
- total.value = res.total
+ total.value = res.data.total
if (isTap) {
tableList.value = res.data.rows
} else {
@@ -182,10 +191,10 @@ const changeTab = (index) => {
}
const maskClick = () => {}
-// 页面加载完毕
-onLoad(() => {
- getTableList()
-})
+// // 页面加载完毕
+// onLoad(() => {
+// getTableList()
+// })
onShow(() => {
tableList.value = []
@@ -198,10 +207,12 @@ const onScrollTolower = debounce(() => {
queryParams.value.pageNum++
getTableList()
}
-})
+},500)
// 判断数据是否加载完毕
const finish = computed(() => {
+ console.log('total.value',total.value)
+ console.log('tableList.value.length',tableList.value.length)
if (total.value === tableList.value.length) return true
})
diff --git a/src/services/purchase.js b/src/services/purchase.js
index 6ff1acb..1da3978 100644
--- a/src/services/purchase.js
+++ b/src/services/purchase.js
@@ -18,6 +18,34 @@ export const getPurchaseInfo = (data) => {
})
}
+// 查询新购验收任务详细列表
+export const getPurchaseDetailsList = (data)=> {
+ return http({
+ url: '/material/purchase_check_info/getInfo',
+ method: 'GET',
+ data: data,
+ })
+}
+
+// 查询入库编码列表
+export const getMachineById = (data)=> {
+ return http({
+ url: '/material/purchase/storage/getMachineById',
+ method: 'POST',
+ data: data,
+ })
+ }
+
+// 查询入库编码列表 || 数量入库
+export const setInboundCodeAPI = (data)=> {
+ return http({
+ url: '/material/purchase/storage/warehouse',
+ method: 'POST',
+ data: data
+ })
+ }
+
+
// 验收接口
export const innerVerify = (data) => {
return http({
From 765f7bc70b5d1932f8cf929d4b89a0403552fbbe Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Thu, 21 Nov 2024 10:47:48 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=88=9D=E6=AD=A5?=
=?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.json | 17 ++
src/pages/repair/details.vue | 258 +++++++++++++++++++++++++++
src/pages/repair/index.vue | 324 ++++++++++++++++++++++++++++++++++
src/pages/work/index.vue | 21 +++
src/services/repair/repair.js | 22 +++
src/static/workbench/fix.png | Bin 0 -> 2539 bytes
6 files changed, 642 insertions(+)
create mode 100644 src/pages/repair/details.vue
create mode 100644 src/pages/repair/index.vue
create mode 100644 src/services/repair/repair.js
create mode 100644 src/static/workbench/fix.png
diff --git a/src/pages.json b/src/pages.json
index 1be53f3..f95046e 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -138,6 +138,23 @@
"style": {
"navigationBarTitleText": "退料数量"
}
+ },
+
+ /* 维修及其页面 */
+
+ // 1. 维修列表
+ {
+ "path": "pages/repair/index",
+ "style": {
+ "navigationBarTitleText": "维修任务"
+ }
+ },
+ // 2. 维修详情
+ {
+ "path": "pages/repair/details",
+ "style": {
+ "navigationBarTitleText": "维修任务"
+ }
}
],
"tabBar": {
diff --git a/src/pages/repair/details.vue b/src/pages/repair/details.vue
new file mode 100644
index 0000000..ea61211
--- /dev/null
+++ b/src/pages/repair/details.vue
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 合格
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 物资名称:
+
+ {{ item.typeName }}
+
+
+
+ {{ index + 1 }}
+ 规格型号:
+
+ {{ item.type }}
+
+
+
+ {{ index + 1 }}
+ 已退数量:
+
+ {{ item.repairNum }}
+
+
+
+ {{ index + 1 }}
+ 单位:
+
+ {{ item.unitName }}
+
+
+
+ {{ index + 1 }}
+ 管理模式:
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/repair/index.vue b/src/pages/repair/index.vue
new file mode 100644
index 0000000..0661dd5
--- /dev/null
+++ b/src/pages/repair/index.vue
@@ -0,0 +1,324 @@
+
+
+
+
+
+ 已完成
+
+
+
+ 未完成
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+ 退料人:
+
+ {{ item.createBy }}
+
+
+
+ 任务时间:
+ {{ item.createTime }}
+
+
+
+ 维修单号:
+
+ {{ item.repairCode }}
+
+
+
+ 退料物资:
+
+ {{ item.type }}
+
+
+
+ 退料单位:
+
+ {{ item.backUnit }}
+
+
+
+ 工程名称:
+
+ {{ item.backPro }}
+
+
+
+ 任务创建人:
+
+ {{ item.createBy }}
+
+
+
+
+ 状态:
+
+
+
+
+
+
+
+
+
+
+
+ {{ finish ? '没有更多数据了~' : '正在加载...' }}
+
+
+
+
+
+
+
+
diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 816bbfa..df62993 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -27,6 +27,19 @@
+
+
+
+
+ {{ item.title }}
+
+
+
@@ -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<$8bC={yogHY40t#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DV?_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 @@
+
+
+
+
+
+ 维修完成
+
+
+
+
+ 物资名称:
+ {{ queryParams.typeName }}
+
+
+
+ 物资类型:
+ {{ queryParams.type }}
+
+
+
+ 待修数量:
+ {{ queryParams.repairNum }}
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+ 维修完成
+
+
+
+
+ 物资名称:
+ {{ queryParams.typeName }}
+
+
+
+ 物资类型:
+ {{ queryParams.type }}
+
+
+
+ 待修数量:
+ {{ queryParams.repairNum }}
+
+
+
+
+
+
+
+
+ 维修信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 内部维修
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 返厂维修
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 维修报废
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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)