lijuncheng
9 months ago
65 changed files with 235 additions and 235 deletions
@ -0,0 +1,37 @@ |
|||
<template> |
|||
<view class="std_pack" v-if="dataContent.packQty!=undefined"> |
|||
<text> |
|||
{{Number(dataContent.packQty)}}•{{getPackUnit(dataContent.packUnit)}} |
|||
</text> |
|||
</view> |
|||
</template> |
|||
<script> |
|||
import { |
|||
// getPackUnitInfo, |
|||
getPackUnitInfo |
|||
} from "@/common/directory.js" |
|||
export default { |
|||
data() { |
|||
return { |
|||
|
|||
}; |
|||
}, |
|||
// 此处定义传入的数据 |
|||
props: { |
|||
dataContent: { |
|||
packQty: 1000, |
|||
uom: "EA", |
|||
}, |
|||
}, |
|||
methods: { |
|||
getPackUnit(packUnit) { |
|||
let std = getPackUnitInfo(packUnit); |
|||
return std == "" ? packUnit : std.label; |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
|
|||
<style> |
|||
</style> |
@ -1,37 +0,0 @@ |
|||
<template> |
|||
<view class="std_pack" v-if="dataContent.stdPackQty!=undefined"> |
|||
<text> |
|||
{{Number(dataContent.stdPackQty)}}•{{getStdPackUnit(dataContent.stdPackUnit)}} |
|||
</text> |
|||
</view> |
|||
</template> |
|||
<script> |
|||
import { |
|||
// getStdPackUnitInfo, |
|||
getStdPackUnitInfo |
|||
} from "@/common/directory.js" |
|||
export default { |
|||
data() { |
|||
return { |
|||
|
|||
}; |
|||
}, |
|||
// 此处定义传入的数据 |
|||
props: { |
|||
dataContent: { |
|||
stdPackQty: 1000, |
|||
uom: "EA", |
|||
}, |
|||
}, |
|||
methods: { |
|||
getStdPackUnit(stdPackUnit) { |
|||
let std = getStdPackUnitInfo(stdPackUnit); |
|||
return std == "" ? stdPackUnit : std.label; |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
|
|||
<style> |
|||
</style> |
Loading…
Reference in new issue