diff --git a/pages-home/service/todoDetail.vue b/pages-home/service/todoDetail.vue
index 0c443fa..c9bbdc5 100644
--- a/pages-home/service/todoDetail.vue
+++ b/pages-home/service/todoDetail.vue
@@ -60,9 +60,9 @@
@@ -71,43 +71,41 @@
配件信息
添加配件
-
-
-
- {{ item.waresName }}
- ×{{ item.waresCount }}
-
-
-
- 配件分类
- {{ item.typeName }}
+
+
+
+
+
+
+ {{ item.waresName }}×{{ item.waresCount }}{{ item.unitText }}
+
+
+
+ 当前库存
+ {{item.stock}}
+
+
+ 售价
+ {{item.salePrice}}
+
+
+ 状态
+ {{ getWaresStatus(item.waresStatus) }}
+
+
+ 审核人
+ {{ item.handleName }}
+
+
+ 审核时间
+ {{ item.approvalTime }}
+
+
+
-
- 当前库存
- {{ item.wares.stock }}
-
-
- 单位
- {{ item.wares.unit }}
-
-
-
-
-
-
- 售价
-
-
-
- 状态
- {{ getWaresStatus(item.waresStatus) }}
-
-
- 审核人
- {{ item.handleName }}
-
-
-
+
+
-
-
-
-
@@ -139,6 +133,7 @@ export default {
data() {
return {
viewType: "",
+ imgUrlPrex:config.baseImageUrl,
id: "",
title: "",
canOperate: false,
@@ -165,17 +160,13 @@ export default {
selectWares: [],
info: {},
imageUrls: [],
- showFullscreen: false,
- currentImage: ''
};
},
- onShow(){
- this.getTicketWares()
- this.getDetail()
- },
onLoad(data) {
this.canOperate = data.canOperate
this.id = data.id
+ },
+ onShow(){
this.getTicketWares()
this.getDetail()
},
@@ -186,12 +177,18 @@ export default {
url: '/pages-repair/apply/applyForm?twId=' + this.id
})
},
- showFullScreen(index) {
- this.currentImage = this.imageUrls[index];
- this.showFullscreen = true;
- },
- closeFullscreen() {
- this.showFullscreen = false;
+ /**
+ * 预览图片
+ */
+ prviewImage(imgList, index) {
+ let urls = []
+ imgList.forEach(i => {
+ urls.push(this.imgUrlPrex+i)
+ })
+ uni.previewImage({
+ urls: urls,
+ current: index
+ });
},
getDateFormat(val) {
return formatTimestampCustom(val);
@@ -222,7 +219,7 @@ export default {
},
getImageUrls(val) {
this.imageUrls = [...val.split(",").map(item => {
- return config.baseImageUrl + item
+ return item
})]
},
async getTicketById(id) {
@@ -274,7 +271,7 @@ export default {
let params = {};
this.title = "配件申请单详情"
//配件申请单
- url = "/admin-api/repair/twi/list"
+ url = "/admin-api/repair/twi/listApp"
params.twId = this.id
this.yesText = "通过全部"
this.backText = "驳回全部"
@@ -285,14 +282,7 @@ export default {
}).then((res) => {
if (res.code == 200) {
this.repairList = res.data
- if (this.canOperate && this.repairList && this.repairList.length > 0) {
- this.repairList = this.repairList.filter(item => item.waresStatus === '').map(item => {
- return {
- ...item,
- selected: false
- }
- })
- }
+
}
})
},
@@ -326,11 +316,12 @@ export default {
}
})]
} else {
- dataObj.items = [...this.repairList.map(item => {
- return {
- id: item.id
- }
- })]
+ dataObj.items = []
+ this.repairList.map((groupItem)=>{
+ groupItem.twItemList.map((item)=>{
+ dataObj.items.push({id:item.id})
+ })
+ })
}
request({
url: url,
@@ -454,7 +445,7 @@ export default {
'c d'
'e f';
grid-template-columns: 1fr 1fr;
- gap: 30rpx;
+ gap: 10rpx;
.girdItem {
display: flex;