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; padding: 5px;
} }
.card_to_location {
color: #329362;
padding: 5px;
}
.card_location_content { .card_location_content {
font-size: 32rpx; font-size: 32rpx;
padding: 5px; padding: 5px;

5
mycomponents/balance/balance.vue

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

2
mycomponents/balance/toLocation.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="card_view "> <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> <text class="card_content ">{{locationCode}}</text>
</view> </view>
</template> </template>

1
mycomponents/detail/comRequestDetailCard.vue

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

58
mycomponents/detail/requestDetailBasicInfo.vue

@ -1,16 +1,17 @@
<template> <template>
<view class=""> <view class="">
<comListItem :dataList="dataList"></comListItem> <detail-basic-info :dataContent="dataContent"></detail-basic-info>
</view> <!-- <comListItem :dataList="dataList"></comListItem> -->
</view>
</template> </template>
<script> <script>
import comListItem from '@/mycomponents/common/comListItem.vue';
import detailBasicInfo from '@/mycomponents/detail/detailBasicInfo.vue'
export default { export default {
components: { components: {
comListItem detailBasicInfo
}, },
data() { data() {
return { return {
@ -18,46 +19,7 @@
} }
}, },
watch: { 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() {}, mounted() {},
@ -68,7 +30,11 @@
} }
}, },
methods: {} methods: {
getUnitInfo(value){
return getUnitInfo(value).label
}
}
} }
</script> </script>

11
mycomponents/detail/requestDetailCommonInfo.vue

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

9
mycomponents/recommend/recommend.vue

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

6
pages/purchaseReturn/coms/requestDetailInfoPopup.vue

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

7
pages/purchaseReturn/record/returnRecord.vue

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

2
pages/purchaseReturn/request/returnRequest.vue

@ -268,7 +268,7 @@
getPurchaseReturnRequestList(params).then(res => { getPurchaseReturnRequestList(params).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.data.list.length == 0) { if (res.data.list.length == 0) {
that.showMessage('未查找到' + '【' + code + '】的货任务'); that.showMessage('未查找到' + '【' + code + '】的退货任务');
} else if (res.data.list.length == 1) { } else if (res.data.list.length == 1) {
that.openRequestDetail(res.data.list[0]); 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"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<comRequestDetailCard :dataContent="item" <com-request-detail-card :dataContent="item"
@openDetail="openDetail"> @openDetail="openDetail">
</comRequestDetailCard> </com-request-detail-card>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<request-detail-info-popup ref="jobDetailPopup"></request-detail-info-popup>
<requestDetailInfoPopup ref="jobDetailPopup"></requestDetailInfoPopup>
<com-message ref="comMessage"></com-message> <com-message ref="comMessage"></com-message>
</view> </view>
</template> </template>
@ -86,7 +85,8 @@
that.requestContent = res.data; that.requestContent = res.data;
that.subList = res.data.subList; that.subList = res.data.subList;
that.subList.forEach(res=>{ that.subList.forEach(res=>{
res.fromLocationCode = res.toLocationCode // res.fromLocationCode = res.toLocationCode
res.locationCode = res.fromLocationCode
}) })
that.detailSource = getDataSource(that.subList); that.detailSource = getDataSource(that.subList);
} else { } else {

Loading…
Cancel
Save