You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

114 lines
2.5 KiB

<template>
<view class="">
<uni-popup ref="popup">
<request-common-info :dataContent="dataContent" @onClose="closePopup">
<view class="">
<comListItem :dataList="dataList"></comListItem>
</view>
<u-line></u-line>
</request-common-info>
</uni-popup>
</view>
</template>
<script>
import requestCommonInfo from '@/mycomponents/request/requestCommonInfo.vue'
import comListItem from '@/mycomponents/common/comListItem.vue';
export default {
components: {
requestCommonInfo,
comListItem
},
data() {
return {
dataContent: {
type: Object,
default: {}
},
dataList:[]
}
},
watch:{
dataContent: {
handler(newName, oldName) {
this.dataList=[{
title: '采购收货记录单号',
content: this.dataContent.purchaseReceiptRecordNumber
}, {
title: '供应商代码',
content: this.dataContent.supplierCode
},{
title: '从仓库代码',
content: this.dataContent.fromWarehouseCode
},{
title: '从库位类型范围',
content: this.dataContent.fromLocationTypes,
type:"locationType"
},{
title: '从库区代码范围',
content: this.dataContent.fromAreaCodes
},{
title: '货主代码',
content: this.dataContent.ownerCode
},{
title: '订单号',
content: this.dataContent.poNumber
},{
title: '订单行',
content: this.dataContent.poLine
},{
title: '批次',
content: this.dataContent.batch
},{
title: '物品代码',
content: this.dataContent.itemCode,
},{
title: '计量单位',
content: this.dataContent.uom,
type:"uom"
},
{
title: '收货数量',
content: this.dataContent.receiveQty
},{
title: '检验类型',
content: this.dataContent.inspectType,
type:'inspectType'
},{
title: '下一步检验动作',
content: this.dataContent.nextAction
},
{
title: '抽检方式',
content: this.dataContent.sampleMethod,
type:'sampleMethod'
},
{
title: '样品数量',
content: this.dataContent.sampleQty
}];
},
immediate: true,
deep: true
}
},
mounted() {},
props: {},
methods: {
openPopup(val) {
this.dataContent = val;
this.$refs.popup.open('bottom')
},
closePopup() {
this.$refs.popup.close()
},
}
}
</script>
<style>
</style>