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.

196 lines
4.8 KiB

12 months ago
<template>
<uni-popup ref="popup">
<view class="pop_detail" style="height:80%">
<com-item :dataContent="dataContent"></com-item>
<u-line></u-line>
<scroll-view style="height:320px ">
<view v-for="(item, index) in dataList" style="width: 100%;">
<view class="item">
<text class="item_title">{{item.item_title}} </text>
<text class="text_wrap">{{item.text_wrap}}</text>
</view>
</view>
</scroll-view>
<view class="uni-flex u-row-center ">
<view class="close_button" @click="closePopup">
关闭</view>
<!-- button 滚动不好使 -->
</view>
</view>
</uni-popup>
</template>
<script>
import comItem from '@/mycomponents/item/item.vue'
export default {
emits: ['onClose'],
components: {
comItem
},
data() {
return {
dataContent: {
type: Object,
default: {}
},
dataList: []
}
},
mounted() {},
props: {
},
methods: {
openPopup(val) {
this.dataContent = val;
this.getDataList();
this.$refs.popup.open('bottom');
},
closePopup(val) {
this.$refs.popup.close('bottom')
// this.$emit('onClose')
},
getDataList() {
// console.log(JSON.stringify(this.dataContent));
this.dataList.length = 0;
this.dataList.push(...[{
item_title: '包装号',
text_wrap: this.dataContent.number
}, {
item_title: '物料代码',
text_wrap: this.dataContent.itemCode
}, {
item_title: '物品名称',
text_wrap: this.dataContent.itemName
}, {
item_title: '物品描述1',
text_wrap: this.dataContent.itemDesc1
}, {
item_title: '物品描述2',
text_wrap: this.dataContent.itemDesc2
}, {
item_title: '批次',
text_wrap: this.dataContent.batch
}, {
item_title: '替代批次',
text_wrap: this.dataContent.altBatch
}, {
item_title: '生产日期',
text_wrap: this.dataContent.produceDate
}, {
item_title: '有效期(日)',
text_wrap: this.dataContent.validityDays
}, {
item_title: '失效日期',
text_wrap: this.dataContent.expireDate
}, {
item_title: '计量单位',
text_wrap: this.dataContent.uom,
type:"uom"
12 months ago
}, {
item_title: '数量',
text_wrap: this.dataContent.qty
}, {
item_title: '替代计量单位',
text_wrap: this.dataContent.altUom
}, {
item_title: '替代数量',
text_wrap: this.dataContent.altQty
}, {
item_title: '转换率',
text_wrap: this.dataContent.convertRate
}, {
item_title: '标包数量',
text_wrap: this.dataContent.stdPackQty
}, {
item_title: '标包单位',
text_wrap: this.dataContent.stdPackUnit
}, {
item_title: '仓库代码',
text_wrap: this.dataContent.toWarehouseCode
}, {
item_title: '月台代码',
text_wrap: this.dataContent.toDockCode
}, {
item_title: '库位代码',
text_wrap: this.dataContent.toLocationCode
}, {
item_title: '供应商代码',
text_wrap: this.dataContent.supplierCode
}, {
item_title: '供应商物品代码',
text_wrap: this.dataContent.supplierItemCode
}, {
item_title: '采购订单号',
text_wrap: this.dataContent.poNumber
}, {
item_title: '采购订单行',
text_wrap: this.dataContent.poLine
}, {
item_title: '采购计划单号',
text_wrap: this.dataContent.rpNumber
}, {
item_title: '发货单号',
text_wrap: this.dataContent.asnNumber
}, {
item_title: '生产订单号',
text_wrap: this.dataContent.woNumber
}, {
item_title: '生产订单行',
text_wrap: this.dataContent.woLine
}, {
item_title: '生产线代码',
text_wrap: this.dataContent.productionLineCode
}, {
item_title: '班组代码',
text_wrap: this.dataContent.teamCode
}, {
item_title: '班次代码',
text_wrap: this.dataContent.shiftCode
}, {
item_title: '客户代码',
text_wrap: this.dataContent.customerCode
}, {
item_title: '客户月台代码',
text_wrap: this.dataContent.customerDockCode
}, {
item_title: '客户物品代码',
text_wrap: this.dataContent.customerItemCode
}, {
item_title: '销售订单号',
text_wrap: this.dataContent.soNumber
}, {
item_title: '销售订单行',
text_wrap: this.dataContent.soLine
}, {
item_title: '质量等级',
text_wrap: this.dataContent.eqLevel
}, {
item_title: '货主代码',
text_wrap: this.dataContent.ownerCode
}, {
item_title: '重量',
text_wrap: this.dataContent.weight
}, {
item_title: '面积',
text_wrap: this.dataContent.area
}, {
item_title: '体积',
text_wrap: this.dataContent.volume
}]);
// console.log(JSON.stringify(this.dataList));
}
}
}
</script>
<style>
</style>