出库对接
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<view class="line title">
|
||||
<p> {{ typeName + '单号' }}:{{ detailInfo?.billNo }}</p>
|
||||
<span :style="getColor(detailInfo?.billType)">
|
||||
{{ getBillType(detailInfo?.billType,detailInfo?.status) }}
|
||||
{{ getBillType(detailInfo?.billType, detailInfo?.status, flag) }}
|
||||
</span>
|
||||
|
||||
</view>
|
||||
@@ -44,7 +44,7 @@
|
||||
import { getBillType, formatDate, getColor } from '../until'
|
||||
import { computed, toRefs } from 'vue';
|
||||
import MaterialList from './MaterialList.vue'
|
||||
|
||||
import { includes } from 'lodash';
|
||||
const props = defineProps({
|
||||
// 查询列表类型 stockIn:入库 stockOut:出库
|
||||
type: {
|
||||
@@ -60,10 +60,8 @@ const props = defineProps({
|
||||
|
||||
})
|
||||
const { type, detailInfo } = toRefs(props)
|
||||
const typeName = computed(() => type.value == 'stockIn' ? '入库单' : '出库单')
|
||||
|
||||
console.log(detailInfo, 'detailInfo');
|
||||
|
||||
const typeName = computed(() => includes(type.value, 'stockIn') ? '入库单' : '出库单')
|
||||
const flag = computed(() => includes(type.value, 'stockIn') ? 0 : 1)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user