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.

203 lines
5.0 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>
11 months ago
<text v-if="(item.type=='')||(item.type==undefined)" class="text_wrap">{{item.content}}</text>
<text v-else-if="item.type=='dateTime'" class="text_wrap">{{formatDate(item.content)}} </text>
12 months ago
</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'
11 months ago
import { dateFormat } from '@/common/basic.js';
12 months ago
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: '包装号',
content: this.dataContent.number
12 months ago
}, {
item_title: '物料代码',
content: this.dataContent.itemCode
12 months ago
}, {
item_title: '物品名称',
content: this.dataContent.itemName
12 months ago
}, {
item_title: '物品描述1',
11 months ago
content: this.dataContent.itemDesc1
12 months ago
}, {
item_title: '物品描述2',
11 months ago
content: this.dataContent.itemDesc2
12 months ago
}, {
item_title: '批次',
11 months ago
content: this.dataContent.batch
12 months ago
}, {
item_title: '替代批次',
11 months ago
content: this.dataContent.altBatch
12 months ago
}, {
item_title: '生产日期',
11 months ago
content: this.dataContent.produceDate,
type:"dateTime"
12 months ago
}, {
11 months ago
item_title: '有效日期',
content: this.dataContent.validityDays,
type:"dateTime"
12 months ago
}, {
item_title: '失效日期',
11 months ago
content: this.dataContent.expireDate,
type:"dateTime"
12 months ago
}, {
item_title: '计量单位',
11 months ago
content: this.dataContent.uom,
type:"uom"
12 months ago
}, {
item_title: '数量',
11 months ago
content: this.dataContent.qty
12 months ago
}, {
item_title: '替代计量单位',
11 months ago
content: this.dataContent.altUom
12 months ago
}, {
item_title: '替代数量',
11 months ago
content: this.dataContent.altQty
12 months ago
}, {
item_title: '转换率',
11 months ago
content: this.dataContent.convertRate
12 months ago
}, {
item_title: '标包数量',
11 months ago
content: this.dataContent.stdPackQty
12 months ago
}, {
item_title: '标包单位',
11 months ago
content: this.dataContent.stdPackUnit
12 months ago
}, {
item_title: '仓库代码',
11 months ago
content: this.dataContent.toWarehouseCode
12 months ago
}, {
item_title: '月台代码',
11 months ago
content: this.dataContent.toDockCode
12 months ago
}, {
item_title: '库位代码',
11 months ago
content: this.dataContent.toLocationCode
12 months ago
}, {
item_title: '供应商代码',
11 months ago
content: this.dataContent.supplierCode
12 months ago
}, {
item_title: '供应商物品代码',
11 months ago
content: this.dataContent.supplierItemCode
12 months ago
}, {
item_title: '采购订单号',
11 months ago
content: this.dataContent.poNumber
12 months ago
}, {
item_title: '采购订单行',
11 months ago
content: this.dataContent.poLine
12 months ago
}, {
item_title: '采购计划单号',
11 months ago
content: this.dataContent.rpNumber
12 months ago
}, {
item_title: '发货单号',
11 months ago
content: this.dataContent.asnNumber
12 months ago
}, {
item_title: '生产订单号',
11 months ago
content: this.dataContent.woNumber
12 months ago
}, {
item_title: '生产订单行',
11 months ago
content: this.dataContent.woLine
12 months ago
}, {
item_title: '生产线代码',
11 months ago
content: this.dataContent.productionLineCode
12 months ago
}, {
item_title: '班组代码',
11 months ago
content: this.dataContent.teamCode
12 months ago
}, {
item_title: '班次代码',
11 months ago
content: this.dataContent.shiftCode
12 months ago
}, {
item_title: '客户代码',
11 months ago
content: this.dataContent.customerCode
12 months ago
}, {
item_title: '客户月台代码',
11 months ago
content: this.dataContent.customerDockCode
12 months ago
}, {
item_title: '客户物品代码',
11 months ago
content: this.dataContent.customerItemCode
12 months ago
}, {
item_title: '销售订单号',
11 months ago
content: this.dataContent.soNumber
12 months ago
}, {
item_title: '销售订单行',
11 months ago
content: this.dataContent.soLine
12 months ago
}, {
item_title: '质量等级',
11 months ago
content: this.dataContent.eqLevel
12 months ago
}, {
item_title: '货主代码',
11 months ago
content: this.dataContent.ownerCode
12 months ago
}, {
item_title: '重量',
11 months ago
content: this.dataContent.weight
12 months ago
}, {
item_title: '面积',
11 months ago
content: this.dataContent.area
12 months ago
}, {
item_title: '体积',
11 months ago
content: this.dataContent.volume
12 months ago
}]);
11 months ago
},
formatDate(val) {
return dateFormat(val)
},
12 months ago
}
}
</script>
<style>
</style>