From af4e392e0b17f0a0714406f317a8af150e5b58ef Mon Sep 17 00:00:00 2001
From: xiaofajia <1665375861@qq.com>
Date: Wed, 4 Dec 2024 16:14:11 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E6=9F=A5=E7=9C=8B=E5=85=A5?=
=?UTF-8?q?=E5=BA=93=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../stockOperate/Components/SoIndex.vue | 88 +++++++++++++++++++
1 file changed, 88 insertions(+)
diff --git a/src/views/repair/stockOperate/Components/SoIndex.vue b/src/views/repair/stockOperate/Components/SoIndex.vue
index b300ad3..c493c62 100644
--- a/src/views/repair/stockOperate/Components/SoIndex.vue
+++ b/src/views/repair/stockOperate/Components/SoIndex.vue
@@ -109,6 +109,9 @@
查看
+ 查看入库单
+
入库
@@ -230,6 +233,40 @@
取消
+
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+ {{parseTime(scope.row.createTime)}}
+
+
+
+
+
+
@@ -245,6 +282,8 @@ import {getRepairSoiByIds, getMapBySoIdAndQuery} from "@/api/repair/stockOperate
import {createUniqueCodeByHead} from "@/utils/createUniqueCode";
import WarehouseChoose from "@/views/repair/Components/WarehouseChoose.vue";
import {getBaseTypeList} from "@/api/base/type";
+import {getUserProfile} from "@/api/system/user";
+import {parseTime} from "../../../../utils/ruoyi";
export default {
name: "SoIndex",
@@ -342,12 +381,61 @@ export default {
isRefresh: false,
// 导出遮罩层
exportLoading: false,
+ inQueryParams:{
+ pageNo: 1,
+ pageSize: 10,
+ userId: null,
+ mainId: null,
+ },
+ inDialog: false,
+ inData: [],
+ inTotal: 0,
+ inLoading2: false,
+ expands: [],
+ getRowKey:(row) => {
+ return row.id
+ },
+ inSoiList: [],
+ inLoading3: false
}
},
mounted() {
this.pageSo();
},
methods: {
+ parseTime,
+ async handleExpand(row, expandedRows){
+ let that = this
+ if (expandedRows.length){
+ that.expands = []
+ if (row){
+ that.expands.push(row.id)
+ try {
+ that.inLoading3 = true
+ const resSo = await getRepairSoById(row.id)
+ const ids = resSo.data.goodsList.map(item => item.id)
+ const resSoi = await getRepairSoiByIds(ids)
+ this.inSoiList = resSoi.data
+ that.inLoading3 = false
+ }catch{}
+ }
+ }else {
+ that.expands = []
+ }
+ },
+ async handleShowIn(row){
+ try {
+ this.inDialog = true
+ this.inLoading2 = true
+ this.inQueryParams.mainId = row.id
+ const user = await getUserProfile();
+ this.inQueryParams.userId = user.data.id
+ const res = await getRepairSoPage(this.inQueryParams)
+ this.inData = res.data.records
+ this.inTotal = res.data.total
+ this.inLoading2 = false
+ }catch{}
+ },
setSelectedRows() {
this.$nextTick(() => {
Object.keys(this.$refs).forEach(key => {