打印机第7次修改
This commit is contained in:
parent
2b85d19453
commit
02bef5d1ca
|
|
@ -16,7 +16,7 @@
|
||||||
"type" : "uniCloud"
|
"type" : "uniCloud"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page-gray color-333 u-font-28">
|
<view class="page-gray color-333 u-font-28">
|
||||||
<view class="block">
|
<view class="block">
|
||||||
|
<!-- <up-popup :show="show" @close="close" @open="open"> -->
|
||||||
<picker-item title="打印机品牌" required v-model="form.contentType" :modelValue="form.contentType"
|
<picker-item title="打印机品牌" required v-model="form.contentType" :modelValue="form.contentType"
|
||||||
:list="brandt.list"></picker-item>
|
:list="brandt.list"></picker-item>
|
||||||
<picker-item title="小票打印" required v-model="form.subType" :modelValue="form.subType"
|
<picker-item title="小票打印" required v-model="form.subType" :modelValue="form.subType"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="u-p-b-24 u-m-b-24 border-bottom">
|
<view class="u-p-b-24 u-m-b-24 border-bottom">
|
||||||
<view class="title font-bold"> <text v-if="required" style="color: red;">*</text>{{title}}</view>
|
<view class="title font-bold"> <text v-if="required" style="color: red;">*</text>{{title}}</view>
|
||||||
|
<!-- <up-popup customStyle="overflow: hidden;" @change="change" :value="value" :range="list" range-key="name" round="20" mode="bottom">
|
||||||
|
<view class="u-m-t-16 u-flex u-row-between ">
|
||||||
|
<view class="color-333" v-if="selText">{{selText}}</view>
|
||||||
|
<view class="color-999" v-else>请选择</view>
|
||||||
|
<uni-icons type="right" color="#999" size="16"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</up-popup> -->
|
||||||
<picker @change="change" range-key="name" :value="value" :range="list">
|
<picker @change="change" range-key="name" :value="value" :range="list">
|
||||||
<view class="u-m-t-16 u-flex u-row-between ">
|
<view class="u-m-t-16 u-flex u-row-between ">
|
||||||
<view class="color-333" v-if="selText">{{selText}}</view>
|
<view class="color-333" v-if="selText">{{selText}}</view>
|
||||||
|
|
@ -29,15 +36,19 @@
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
required:{
|
required: {
|
||||||
type:Boolean
|
type: Boolean
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const index = ref(props.modelValue)
|
const index = ref(props.modelValue)
|
||||||
const emits = defineEmits(['update:modelValue'], )
|
const emits = defineEmits(['update:modelValue'], )
|
||||||
const selText = computed(() => {
|
const selText = computed(() => {
|
||||||
const item = props.list.filter(ele => ele.value == props.modelValue)[0]
|
const item = props.list.filter(ele => ele.value == props.modelValue)[0]
|
||||||
return item.name
|
if (item) {
|
||||||
|
return item.name
|
||||||
|
} else {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(() => index.value, (newval) => {
|
watch(() => index.value, (newval) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue