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

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