Browse Source

整理申请中的弹出详情页

wms3.0_pda
niexiting 11 months ago
parent
commit
92ae61d55d
  1. 5
      common/style/new_style.css
  2. 5
      mycomponents/balance/balance.vue
  3. 2
      mycomponents/balance/toLocation.vue
  4. 1
      mycomponents/detail/comRequestDetailCard.vue
  5. 58
      mycomponents/detail/requestDetailBasicInfo.vue
  6. 11
      mycomponents/detail/requestDetailCommonInfo.vue
  7. 9
      mycomponents/recommend/recommend.vue
  8. 6
      pages/purchaseReturn/coms/requestDetailInfoPopup.vue
  9. 7
      pages/purchaseReturn/record/returnRecord.vue
  10. 2
      pages/purchaseReturn/request/returnRequest.vue
  11. 10
      pages/purchaseReturn/request/returnRequestDetail.vue

5
common/style/new_style.css

@ -2104,6 +2104,11 @@ button::after {
padding: 5px;
}
.card_to_location {
color: #329362;
padding: 5px;
}
.card_location_content {
font-size: 32rpx;
padding: 5px;

5
mycomponents/balance/balance.vue

@ -5,7 +5,8 @@
<pack v-if="isShowPack && dataContent.packingNumber" :packingCode="dataContent.packingNumber"></pack>
<batch v-if="isShowBatch && dataContent.batch" :batch="dataContent.batch"></batch>
<location title="来源库位" v-if="isShowFromLocation" :locationCode="dataContent.locationCode"></location>
<location title="目标库位" v-if="isShowToLocation" :locationCode="dataContent.toLocationCode"></location>
<to-location title="目标库位" v-if="isShowToLocation" :locationCode="dataContent.toLocationCode">
</to-location>
</view>
<view>
<!-- <qty v-if="dataContent.record==null ||dataContent.record==undefined " :dataContent="dataContent"
@ -28,6 +29,7 @@
<script>
import pack from '@/mycomponents/balance/pack.vue'
import location from '@/mycomponents/balance/location.vue'
import toLocation from '@/mycomponents/balance/toLocation.vue'
import batch from '@/mycomponents/balance/batch.vue'
import qty from '@/mycomponents/qty/qty.vue'
import recommendQty from '@/mycomponents/qty/recommendQty.vue'
@ -37,6 +39,7 @@
components: {
pack,
location,
toLocation,
batch,
qty,
recommendQty,

2
mycomponents/balance/toLocation.vue

@ -1,6 +1,6 @@
<template>
<view class="card_view ">
<text class="card_location card_content ">{{title}}</text>
<text class="card_to_location card_content ">{{title}}</text>
<text class="card_content ">{{locationCode}}</text>
</view>
</template>

1
mycomponents/detail/comRequestDetailCard.vue

@ -20,7 +20,6 @@
:isShowBatch="isShowBatch" :isShowFromLocation="isShowLocation"></recommend>
</uni-swipe-action-item>
</uni-swipe-action>
<u-line />
</view>
</uni-collapse-item>
</uni-collapse>

58
mycomponents/detail/requestDetailBasicInfo.vue

@ -1,16 +1,17 @@
<template>
<view class="">
<comListItem :dataList="dataList"></comListItem>
</view>
<detail-basic-info :dataContent="dataContent"></detail-basic-info>
<!-- <comListItem :dataList="dataList"></comListItem> -->
</view>
</template>
<script>
import comListItem from '@/mycomponents/common/comListItem.vue';
import detailBasicInfo from '@/mycomponents/detail/detailBasicInfo.vue'
export default {
components: {
comListItem
detailBasicInfo
},
data() {
return {
@ -18,46 +19,7 @@
}
},
watch: {
dataContent: {
handler(newName, oldName) {
this.dataList = [ {
title: '物品描述1',
content: this.dataContent.itemDesc1,
}, {
title: '物品描述2',
content: this.dataContent.itemDesc2,
}, {
title: '数量',
content: this.dataContent.qty,
}, {
title: '计量单位',
content: this.dataContent.uom,
type:"uom"
},
{
title: '项目代码',
content: this.dataContent.projectCode,
},{
title: '最后更新时间',
content: this.dataContent.updateTime,
type:"dateTime"
},
{
title: '最后更新者Id',
content: this.dataContent.lastModifierId,
},
{
title: '最后更新者用户名',
content: this.dataContent.lastModiferName,
},
{
title: '并发乐观锁',
content: this.dataContent.concurrencyStamp,
}];
},
immediate: true,
deep: true
}
},
mounted() {},
@ -68,7 +30,11 @@
}
},
methods: {}
methods: {
getUnitInfo(value){
return getUnitInfo(value).label
}
}
}
</script>

11
mycomponents/detail/requestDetailCommonInfo.vue

@ -3,10 +3,13 @@
<com-item :dataContent="dataContent"></com-item>
<u-line></u-line>
<scroll-view style="height:320px ">
<requestDetailBasicInfo :dataContent="dataContent"></requestDetailBasicInfo>
<!-- 物品 -->
<detail-basic-info :dataContent="dataContent"></detail-basic-info>
<!-- <request-detail-basic-info :dataContent="dataContent"></request-detail-basic-info> -->
<u-line></u-line>
<!-- <detail-recommend-info :dataContent="dataContent"></detail-recommend-info>
<u-line></u-line> -->
<!-- 包装 -->
<!-- 库存余额 -->
<slot>
<!-- 每个任务的详情 -->
</slot>
@ -24,6 +27,7 @@
import comItem from '@/mycomponents/item/item.vue'
import requestDetailBasicInfo from '@/mycomponents/detail/requestDetailBasicInfo.vue'
import detailRecommendInfo from '@/mycomponents/detail/detailRecommendInfo.vue'
import detailBasicInfo from '@/mycomponents/detail/detailBasicInfo.vue'
export default {
emits: ['onClose'],
@ -31,6 +35,7 @@
comItem,
requestDetailBasicInfo,
detailRecommendInfo,
detailBasicInfo
},
data() {
return {}

9
mycomponents/recommend/recommend.vue

@ -1,14 +1,15 @@
<template>
<view :class="detail.scaned?'scan_view':''" style="background-color: #ffffff; border-bottom: 1upx solid #EEEEEE;">
<view class="uni-flex uni-row space-between" style="align-items: center">
<view class="uni-flex uni-row space-between" style="align-items: center">
<!-- uni-inline-item 暂时拿掉-->
<view>
<pack v-if="isShowPack" :packingCode="detail.packingNumber"></pack>
<batch v-if="isShowBatch" :batch="detail.batch"></batch>
<location v-if="isShowFromLocation" title="来源库位" :locationCode="detail.fromLocationCode">
</location>
<location v-if="isShowToLocation" title="目标库位" :locationCode="detail.toLocationCode">
</location>
<!-- <to-location></to-location> -->
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="detail.toLocationCode">
</to-location>
</view>
<view>
<!-- ||detail.handleQty==0 可能会有扫描到0的情况-->
@ -30,6 +31,7 @@
<script>
import pack from '@/mycomponents/balance/pack.vue'
import location from '@/mycomponents/balance/location.vue'
import toLocation from '@/mycomponents/balance/toLocation.vue'
import batch from '@/mycomponents/balance/batch.vue'
import recommendQty from '@/mycomponents/qty/recommendQty.vue'
import compareQty from '@/mycomponents/qty/compareQty.vue'
@ -38,6 +40,7 @@
components: {
pack,
location,
toLocation,
batch,
recommendQty,
compareQty

6
pages/purchaseReturn/coms/requestDetailInfoPopup.vue

@ -1,11 +1,11 @@
<template>
<view class="">
<uni-popup ref="popup">
<requestDetailCommonInfo :dataContent="dataContent" @onClose="closePopup">
<request-detail-common-info :dataContent="dataContent" @onClose="closePopup">
<view class="">
<comListItem :dataList="dataList"></comListItem>
<!-- <comListItem :dataList="dataList"></comListItem> -->
</view>
</requestDetailCommonInfo>
</request-detail-common-info>
</uni-popup>
</view>
</template>

7
pages/purchaseReturn/record/returnRecord.vue

@ -4,24 +4,19 @@
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
</view>
<view class="page-wraper" v-if="detailSource.length>0">
<view class="page-header">
<!-- <view class="header_job_top">
<job-top :dataContent="jobContent"></job-top>
</view> -->
<view class="header_item">
采购订单{{poNumber}}
</view>
<u-line color="#D8D8D8"></u-line>
</view>
<view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<record-com-detail-card :dataContent="item" @removeItem="removeItem(index,item)"
@updateData="updateData" @removePack="removePack">
@updateData="updateData" @removePack="removePack" :isShowToLocation="false">
</record-com-detail-card>
</view>
</view>

2
pages/purchaseReturn/request/returnRequest.vue

@ -268,7 +268,7 @@
getPurchaseReturnRequestList(params).then(res => {
uni.hideLoading();
if (res.data.list.length == 0) {
that.showMessage('未查找到' + '【' + code + '】的货任务');
that.showMessage('未查找到' + '【' + code + '】的退货任务');
} else if (res.data.list.length == 1) {
that.openRequestDetail(res.data.list[0]);
}

10
pages/purchaseReturn/request/returnRequestDetail.vue

@ -4,15 +4,14 @@
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<comRequestDetailCard :dataContent="item"
<com-request-detail-card :dataContent="item"
@openDetail="openDetail">
</comRequestDetailCard>
</com-request-detail-card>
</view>
</view>
</scroll-view>
</view>
<requestDetailInfoPopup ref="jobDetailPopup"></requestDetailInfoPopup>
<request-detail-info-popup ref="jobDetailPopup"></request-detail-info-popup>
<com-message ref="comMessage"></com-message>
</view>
</template>
@ -86,7 +85,8 @@
that.requestContent = res.data;
that.subList = res.data.subList;
that.subList.forEach(res=>{
res.fromLocationCode = res.toLocationCode
// res.fromLocationCode = res.toLocationCode
res.locationCode = res.fromLocationCode
})
that.detailSource = getDataSource(that.subList);
} else {

Loading…
Cancel
Save