From b7c91de3aa752943f893e57aee6d340516e1006d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com>
Date: Mon, 28 Oct 2024 11:34:04 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/inWareCard.vue | 301 ++++++++++++++++++++++++
pages-order/inWare/inWare.vue | 43 ++--
pages-warehouse/inOutWarehouse/part.vue | 16 +-
3 files changed, 335 insertions(+), 25 deletions(-)
create mode 100644 components/inWareCard.vue
diff --git a/components/inWareCard.vue b/components/inWareCard.vue
new file mode 100644
index 0000000..ad9aa59
--- /dev/null
+++ b/components/inWareCard.vue
@@ -0,0 +1,301 @@
+
+
+
+
+ 入库单号:{{ order.id }}
+
+
+
+
+
+
+
+
+
+
+ 配件信息
+
+
+
+ 配件名称:{{ item.repairWares.name }}
+
+
+ 入库数量:{{ item.inCount }}
+
+
+
+
+
+
+ 入库时间:{{ soTime }}
+
+
+ 入库人:{{ order.userName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages-order/inWare/inWare.vue b/pages-order/inWare/inWare.vue
index f85b964..b5c29e8 100644
--- a/pages-order/inWare/inWare.vue
+++ b/pages-order/inWare/inWare.vue
@@ -9,22 +9,22 @@
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
@@ -47,13 +47,14 @@ import {
getTenantId
} from '@/utils/auth'
import RepairSoCard from "@/components/repairSoCard.vue";
+import InWareCard from "@/components/inWareCard.vue";
export default {
components: {
OrderCard,
tabBarVue,
VNavigationBar,
- RepairSoCard
+ InWareCard,
},
data() {
return {
@@ -69,7 +70,7 @@ export default {
imageUrl: '',
soId: "",
orderList: [],
- repairSoList: [],
+ inWareList: [],
}
},
onShow() {
@@ -136,14 +137,14 @@ export default {
}
},
/**
- * 获取采购单
+ * 获取入库单
*/
getRepairSoList() {
console.log('soId', this.soId)
const paramsObj = {
pageNo: this.pageNo,
pageSize: this.pageSize,
- // userId: this.userInfo.id,
+ userId: this.userInfo.id,
mainId: this.soId,
// soType: "01"
}
@@ -152,13 +153,13 @@ export default {
method: 'get',
params: paramsObj
}).then((res) => {
- console.log('获取的数据', res.data)
+ console.log('获取的数据', res.data.records)
//判断 如果获取的数据的页码不是第一页,就让之前赋值获取过的数组数据 concat连接 刚获取的第n页数据
if (this.pageNo != 1) {
- this.repairSoList = this.repairSoList.concat(res.data.records)
+ this.inWareList = this.inWareList.concat(res.data.records)
} else {
- this.repairSoList = res.data.records
+ this.inWareList = res.data.records
}
//将获取的总条数赋值
this.total = res.data.total
diff --git a/pages-warehouse/inOutWarehouse/part.vue b/pages-warehouse/inOutWarehouse/part.vue
index 8ca6291..6045acc 100644
--- a/pages-warehouse/inOutWarehouse/part.vue
+++ b/pages-warehouse/inOutWarehouse/part.vue
@@ -251,10 +251,18 @@ export default {
*/
inWare(){
console.log('partList',this.partList)
- this.partList.forEach(item => {
- item.inCount = item.count
- item.id = this.soiIds[0]
- })
+ // this.partList.forEach(item => {
+ // item.inCount = item.count
+ // item.goodsId = item.id
+ // // item.id = this.soiIds[0]
+ // })
+ const copiedPartList = JSON.parse(JSON.stringify(this.partList));
+ for (let i = 0; i < this.partList.length; i++) {
+ this.partList[i].inCount = this.partList[i].count
+ this.partList[i].goodsId = copiedPartList[i].id
+ this.partList[i].id = this.soiIds[i]
+ }
+ console.log('partList',this.partList)
request({
url: '/admin-api/repair/so/inWare',
method: 'post',