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 => {