Browse Source

修改申请明细的弹出页

wms3.0_pda
niexiting 11 months ago
parent
commit
7747fd7dc7
  1. 67
      mycomponents/detail/detailBalanceInfo.vue
  2. 6
      mycomponents/detail/detailCommonInfo.vue
  3. 0
      mycomponents/detail/detailItemInfo.vue
  4. 67
      mycomponents/detail/detailPackageInfo.vue
  5. 6
      mycomponents/detail/requestDetailBasicInfo.vue
  6. 10
      mycomponents/detail/requestDetailCommonInfo.vue
  7. 87
      pages/purchaseReturn/coms/requestDetailInfoPopup.vue

67
mycomponents/detail/detailBalanceInfo.vue

@ -0,0 +1,67 @@
<template>
<view>
<!-- <view class="item_big_title">
[明细]
</view> -->
<view class="item">
<text class="item_title">箱码 : </text>
<text class="text_wrap">{{dataContent.packingNumber}}</text>
</view>
<view class="item">
<text class="item_title">批次 : </text>
<text class="text_wrap">{{dataContent.batch}}</text>
</view>
<view class="item">
<text class="item_title">数量 : </text>
<view class="text_wrap">
<text class="text_wrap">{{Number(dataContent.qty)}}</text>
<text class="text_wrap">{{getUnitInfo(dataContent.uom)}}</text>
</view>
</view>
<view class="item">
<text class="item_title">库存状态 : </text>
<text class="text_wrap">{{getInventoryStatusInfo(dataContent.inventoryStatus)}}</text>
</view>
<view class="item">
<text class="item_title">来源库位 : </text>
<text class="text_wrap">{{dataContent.fromLocationCode}}</text>
</view>
</view>
</template>
<script>
import {
getInventoryStatusName,
getStdPackUnitInfo,
getUnitInfo
} from '@/common/directory.js';
export default {
components: {},
data() {
return {
}
},
mounted() {},
props: {
dataContent: {
type: Object,
default: {}
}
},
methods: {
getInventoryStatusInfo(value) {
return getInventoryStatusName(value)
},
getUnitInfo(value){
return getUnitInfo(value).label
}
}
}
</script>
<style>
</style>

6
mycomponents/detail/detailCommonInfo.vue

@ -3,7 +3,7 @@
<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 ">
<detail-basic-info :dataContent="dataContent"></detail-basic-info> <detail-item-info :dataContent="dataContent"></detail-item-info>
<u-line></u-line> <u-line></u-line>
<detail-recommend-info :dataContent="dataContent"></detail-recommend-info> <detail-recommend-info :dataContent="dataContent"></detail-recommend-info>
<u-line></u-line> <u-line></u-line>
@ -27,7 +27,7 @@
<script> <script>
import comItem from '@/mycomponents/item/item.vue' import comItem from '@/mycomponents/item/item.vue'
import detailBasicInfo from '@/mycomponents/detail/detailBasicInfo.vue' import detailItemInfo from '@/mycomponents/detail/detailItemInfo.vue'
import detailRecommendInfo from '@/mycomponents/detail/detailRecommendInfo.vue' import detailRecommendInfo from '@/mycomponents/detail/detailRecommendInfo.vue'
import detailHandleInfo from '@/mycomponents/detail/detailHandleInfo.vue' import detailHandleInfo from '@/mycomponents/detail/detailHandleInfo.vue'
@ -35,7 +35,7 @@
emits: ['onClose'], emits: ['onClose'],
components: { components: {
comItem, comItem,
detailBasicInfo, detailItemInfo,
detailRecommendInfo, detailRecommendInfo,
detailHandleInfo detailHandleInfo
}, },

0
mycomponents/detail/detailBasicInfo.vue → mycomponents/detail/detailItemInfo.vue

67
mycomponents/detail/detailPackageInfo.vue

@ -0,0 +1,67 @@
<template>
<view>
<!-- <view class="item_big_title">
[明细]
</view> -->
<view class="item">
<text class="item_title">箱码 : </text>
<text class="text_wrap">{{dataContent.packingNumber}}</text>
</view>
<view class="item">
<text class="item_title">批次 : </text>
<text class="text_wrap">{{dataContent.batch}}</text>
</view>
<view class="item">
<text class="item_title">数量 : </text>
<view class="text_wrap">
<text class="text_wrap">{{Number(dataContent.qty)}}</text>
<text class="text_wrap">{{getUnitInfo(dataContent.uom)}}</text>
</view>
</view>
<view class="item">
<text class="item_title">库存状态 : </text>
<text class="text_wrap">{{getInventoryStatusInfo(dataContent.inventoryStatus)}}</text>
</view>
<view class="item">
<text class="item_title">来源库位 : </text>
<text class="text_wrap">{{dataContent.fromLocationCode}}</text>
</view>
</view>
</template>
<script>
import {
getInventoryStatusName,
getStdPackUnitInfo,
getUnitInfo
} from '@/common/directory.js';
export default {
components: {},
data() {
return {
}
},
mounted() {},
props: {
dataContent: {
type: Object,
default: {}
}
},
methods: {
getInventoryStatusInfo(value) {
return getInventoryStatusName(value)
},
getUnitInfo(value){
return getUnitInfo(value).label
}
}
}
</script>
<style>
</style>

6
mycomponents/detail/requestDetailBasicInfo.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<detail-basic-info :dataContent="dataContent"></detail-basic-info> <detail-item-info :dataContent="dataContent"></detail-item-info>
<!-- <comListItem :dataList="dataList"></comListItem> --> <!-- <comListItem :dataList="dataList"></comListItem> -->
</view> </view>
@ -8,10 +8,10 @@
<script> <script>
import detailBasicInfo from '@/mycomponents/detail/detailBasicInfo.vue' import detailItemInfo from '@/mycomponents/detail/detailItemInfo.vue'
export default { export default {
components: { components: {
detailBasicInfo detailItemInfo
}, },
data() { data() {
return { return {

10
mycomponents/detail/requestDetailCommonInfo.vue

@ -4,12 +4,13 @@
<u-line></u-line> <u-line></u-line>
<scroll-view style="height:320px "> <scroll-view style="height:320px ">
<!-- 物品 --> <!-- 物品 -->
<detail-basic-info :dataContent="dataContent"></detail-basic-info> <detail-item-info :dataContent="dataContent"></detail-item-info>
<!-- <request-detail-basic-info :dataContent="dataContent"></request-detail-basic-info> --> <!-- <request-detail-basic-info :dataContent="dataContent"></request-detail-basic-info> -->
<u-line></u-line> <u-line></u-line>
<!-- 包装 --> <!-- 包装 -->
<!-- 库存余额 --> <!-- 库存余额 -->
<detail-balance-info :dataContent="dataContent"></detail-balance-info>
<slot> <slot>
<!-- 每个任务的详情 --> <!-- 每个任务的详情 -->
</slot> </slot>
@ -27,15 +28,16 @@
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' import detailItemInfo from '@/mycomponents/detail/detailItemInfo.vue'
import detailBalanceInfo from '@/mycomponents/detail/detailBalanceInfo.vue'
export default { export default {
emits: ['onClose'], emits: ['onClose'],
components: { components: {
comItem, comItem,
requestDetailBasicInfo, requestDetailBasicInfo,
detailRecommendInfo, detailRecommendInfo,
detailBasicInfo detailItemInfo,
detailBalanceInfo
}, },
data() { data() {
return {} return {}

87
pages/purchaseReturn/coms/requestDetailInfoPopup.vue

@ -3,7 +3,17 @@
<uni-popup ref="popup"> <uni-popup ref="popup">
<request-detail-common-info :dataContent="dataContent" @onClose="closePopup"> <request-detail-common-info :dataContent="dataContent" @onClose="closePopup">
<view class=""> <view class="">
<!-- <comListItem :dataList="dataList"></comListItem> --> <u-line></u-line>
<view class="uni-flex uni-column">
<view class="item">
<text class="item_title">订单号 : </text>
<text class="text_wrap">{{dataContent.poNumber}} </text>
</view>
<view class="item">
<text class="item_title">订单行 : </text>
<text class="text_wrap">{{dataContent.poLine}} </text>
</view>
</view>
</view> </view>
</request-detail-common-info> </request-detail-common-info>
</uni-popup> </uni-popup>
@ -25,48 +35,47 @@
type: Object, type: Object,
default: {} default: {}
}, },
dataList:[] dataList: []
} }
}, },
watch:{ watch: {
dataContent: { dataContent: {
handler(newName, oldName) { handler(newName, oldName) {
this.dataList=[{ this.dataList = [{
title: '包装号', title: '包装号',
content: this.dataContent.packingNumber content: this.dataContent.packingNumber
}, { }, {
title: '器具号', title: '器具号',
content: this.dataContent.containerNumber content: this.dataContent.containerNumber
},{ }, {
title: '批次', title: '批次',
content: this.dataContent.batch content: this.dataContent.batch
},{ }, {
title: '替代批次', title: '替代批次',
content: this.dataContent.altBatch, content: this.dataContent.altBatch,
},{ }, {
title: '到库位代码', title: '到库位代码',
content: this.dataContent.toLocationCode content: this.dataContent.toLocationCode
},{ }, {
title: '库存状态', title: '库存状态',
content: this.dataContent.inventoryStatus, content: this.dataContent.inventoryStatus,
type:"inventoryStatus" type: "inventoryStatus"
},{ }, {
title: '订单号', title: '订单号',
content: this.dataContent.poNumber content: this.dataContent.poNumber
},{ }, {
title: '订单行', title: '订单行',
content: this.dataContent.poLine content: this.dataContent.poLine
},{ }, {
title: '原因', title: '原因',
content: this.dataContent.reason content: this.dataContent.reason
},{ }, {
title: '从货主代码', title: '从货主代码',
content: this.dataContent.fromOwnerCode, content: this.dataContent.fromOwnerCode,
},{ }, {
title: '到货主代码', title: '到货主代码',
content: this.dataContent.toOwnerCode, content: this.dataContent.toOwnerCode,
} }];
];
}, },
immediate: true, immediate: true,
deep: true deep: true

Loading…
Cancel
Save