1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template>
- <view class="content">
- <u-cell-group>
- <u-cell-item title="显示价格">
- <u-switch slot="right-icon" v-model="showPrice"></u-switch>
- </u-cell-item>
- <u-cell-item title="显示价格类型" value="请选择" @click="showPriceType=true"></u-cell-item>
- <u-cell-item title="员工是否可见进货价">
- <u-switch slot="right-icon" v-model="showJhPrice"></u-switch>
- </u-cell-item>
- </u-cell-group>
- <u-action-sheet :list="priceTypeList" v-model="showPriceType"></u-action-sheet>
- </view>
- </template>
- <script>
- import { findPriceShow } from '@/api/shelf'
- export default {
- data() {
- return {
- showPrice: false,
- showJhPrice: false,
- showPriceType: false,
- priceTypeList:[]
- }
- },
- onLoad() {
- this.getPrice('PRICE_SHOW')
- },
- onReady() {
- this.priceTypeList = this.$store.state.vuex_priceTypeList
- this.priceTypeList.map(item => {
- item.text = item.dispName
- item.fontSize = 30
- })
- console.log(this.$store.state)
- },
- methods: {
- getPrice(data){
- findPriceShow({paramCode:data}).then(res => {
- console.log(res)
- })
- }
- }
- }
- </script>
- <style lang="less">
- .content{
- width: 100%;
- height: 100vh;
- }
- </style>
|