| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |