From 64b432916af9c9218ab3f3eca614e26c542142ae Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 十一月 2023 15:47:13 +0800
Subject: [PATCH] bug

---
 minipro_standard/components/InOutInfo.vue |   82 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 82 insertions(+), 0 deletions(-)

diff --git a/minipro_standard/components/InOutInfo.vue b/minipro_standard/components/InOutInfo.vue
new file mode 100644
index 0000000..b177f1d
--- /dev/null
+++ b/minipro_standard/components/InOutInfo.vue
@@ -0,0 +1,82 @@
+<template>
+	<view class="p30 bg_w f26 info-style">
+		<view v-if="isOut" class="cm b f32">璁″垝鍑哄簱鏃ユ湡锛歿{ info.outPlandate }}</view>
+		<view v-else class="cm b f32">璁″垝鍏ュ簱鏃ユ湡锛歿{ info.inPlandate || info.planDate }}</view>
+		<view class="c2 mt25">
+			<text class="c6">鏉ユ簮绫诲瀷锛�</text>
+			{{ typeTstr(info.originType) }}
+		</view>
+		<view class="c2 mt25">
+			<text class="c6">鏉ユ簮鍗曞彿锛�</text>
+			{{ info.originCode || '-' }}
+		</view>
+		<view class="c2 mt25">
+			<text class="c6">鐢宠浜哄憳锛�</text>
+			{{ info.userName ? (info.userName + '/' + info.userDepartName) : (info.inUserName + '/' + info.inDepartName) }}
+		</view>
+		<view v-if="isOut" class="c2 mt25">
+			<text class="c6">鍏ュ簱鎺ユ敹浜猴細</text>
+			{{ info.originCode || '-' }}
+		</view>
+		<view class="c2 mt25">
+			<text class="c6">鐢宠鏃堕棿锛�</text>
+			{{ info.createTime || '-' }}
+		</view>
+		<view v-if="info.remark" class="rd15 ptb25 plr25 bg_f7 mt25">
+			<view class="f26 b c2">澶囨敞锛�</view>
+			<view class="mt20">
+				<u-read-more :showHeight="60" :toggle="true" textIndent="0" closeText="灞曞紑" :shadowStyle="shadowStyle">
+					<rich-text :nodes="info.remark"></rich-text>
+					<!-- {{ info.remark }} -->
+				</u-read-more>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name:"InOutInfo",
+		props: {
+			isOut: {
+				type: Boolean,
+				default: true
+			},
+			info: {
+				type: Object,
+				default: () => {}
+			}
+		},
+		data() {
+			return {
+				types: [
+					{ name: '鍏ㄩ儴', id: '' },
+					{ name: '閲囪喘璁㈠崟', id: '0' },
+					{ name: '鐢熶骇宸ュ崟', id: '1' },
+					{ name: '閿�鍞鍗�', id: '2' },
+					{ name: '杞簱鍗�', id: '3'  },
+					{ name: '鐩樼偣鍗�', id: '4'  },
+				],
+				shadowStyle: {
+					backgroundImage: "linear-gradient(to top, #f7f7f7, rgba(247, 247, 247, 0.5))",
+					paddingTop: "50rpx",
+					marginTop: "-50rpx",
+					justifyContent: 'flex-end',
+					colors: '#333',
+				}
+			};
+		},
+		methods: {
+			typeTstr(type) {
+				let temp = this.types.find(item => item.id == type)
+				return temp ? temp.name : '-'
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+.info-style {
+	border-bottom: 20rpx #f7f7f7 solid;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3