diff --git a/components/inWareCard.vue b/components/inWareCard.vue index bad5067..3ec66bb 100644 --- a/components/inWareCard.vue +++ b/components/inWareCard.vue @@ -64,20 +64,12 @@ export default { } }, computed: { - projectName() { - if (this.order && this.order.projectList && this.order.projectList.length > 0) { - return this.order.projectList.map(m => m.name).join(',') - } - return '' - } }, data() { return { soStatusText:'', soiIds:[], - goodsNames:'', soTime:'', - soiCount:'', goodsList:[] } }, @@ -88,29 +80,6 @@ export default { onLoad() { }, methods: { - getDictTextByCodeAndValue(soStatus) { - getDictTextByCodeAndValue('repair_so_status', soStatus) - .then(value => { - this.soStatusText = value; // 存储到 data 中 - }) - .catch(error => { - this.soStatusText = "未知"; - console.error(error); - }); - }, - /** - * 查看详情 - */ - gotoDetail() { - uni.navigateTo({ - url: '/pages-warehouse/inOutWarehouse/part?soId=' + this.order.id - }) - }, - gotoInWare(){ - uni.navigateTo({ - url: '/pages-order/inWare/inWare?soId=' + this.order.id - }) - }, getSoiDetail(){ request({ url: '/admin-api/repair/so/get', @@ -119,8 +88,6 @@ export default { id: this.order.id } }).then(res => { - console.log('这是子表',res) - console.log(res) res.data.goodsList.forEach(item => { this.soiIds.push(item.id) }) @@ -134,12 +101,7 @@ export default { params: { ids: this.soiIds.join(',') } - }).then((res) => { // 同样这里也要移到外层括号后 - console.log('配件信息', res.data) - // const names = [] - const names = res.data.map(item => item.repairWares.name); - this.goodsNames = names.join(', '); - this.soiCount = res.data.reduce((sum, item) => sum + (item.inCount || 0), 0); + }).then((res) => { this.goodsList = res.data }) } diff --git a/pages-order/inWare/inWare.vue b/pages-order/inWare/inWare.vue index b5c29e8..2a8f338 100644 --- a/pages-order/inWare/inWare.vue +++ b/pages-order/inWare/inWare.vue @@ -2,23 +2,6 @@ - - - - - - - - - - - - - - - - - @@ -245,7 +228,7 @@ export default { .orderList { //padding: 30rpx 0; padding-top: 10rpx; - height: calc(100% - 90rpx); + height: calc(100% - 30rpx); display: flex; flex-direction: column; row-gap: 20rpx; diff --git a/pages-warehouse/home/home.vue b/pages-warehouse/home/home.vue index 01833b5..b40ad31 100644 --- a/pages-warehouse/home/home.vue +++ b/pages-warehouse/home/home.vue @@ -15,14 +15,15 @@ - {{noReadNum}} + {{ noReadNum }} - + - + 你有{{ noticeNum }}条来自平台的通知公告 @@ -30,12 +31,14 @@ - 搜索 - {{ item.name }} @@ -51,7 +54,7 @@ - {{ item.repairName}}{{'配件申请单'}} + {{ item.repairName }}{{ '配件申请单' }} {{ item.createTimeStr }} {{ item.statusStr }} @@ -66,11 +69,15 @@ -