<template>
	<view class="uni-row uni-flex center" style="font-size: 30rpx;">
		<status :status='fromInventoryStatus' :showDesc="true"></status>
		<view class="uni-flex uni-row center" v-if='showToInventoryStatus  && toInventoryStatus!=fromInventoryStatus'>
			<text style="color:#909399 ; ">
				—>
			</text>
			<status :status='toInventoryStatus' :showDesc="true"></status>
		</view>
	</view>

</template>

<script>
	import {
		getInventoryStatusStyle,
		getInventoryStatusName
	} from '@/common/directory.js';
	import status from '@/mycomponents/status/status.vue'
	export default {
		components: {
			status
		},

		data() {
			return {

			}
		},

		props: {
			fromInventoryStatus: {
				type: String,
				default: ''
			},
			toInventoryStatus: {
				type: String,
				default: ''
			},
			showToInventoryStatus: {
				type: Boolean,
				default: false
			},
		},
		watch: {

		},
		methods: {
			statusStyle(value) {
				return getInventoryStatusStyle(value);
			},
			statusDesc(value) {
				return getInventoryStatusName(value)
			}

		}
	}
</script>

<style>
</style>
