增加单品备注
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
<view class="u-p-30">
|
||||
<view class="u-m-t-10">
|
||||
<my-button @tap="confirm" shape="circle" showShadow>确认</my-button>
|
||||
<my-button type="cancel" bgColor="#fff" @tap="confirm">取消</my-button>
|
||||
<view class="u-m-t-10">
|
||||
<my-button type="cancel" bgColor="#fff" @tap="confirm">取消</my-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -31,9 +33,6 @@
|
||||
nextTick,
|
||||
ref
|
||||
} from 'vue';
|
||||
import myModel from '@/components/my-components/my-model.vue'
|
||||
import myButton from '@/components/my-components/my-button.vue'
|
||||
import myTabs from '@/components/my-components/my-tabs.vue'
|
||||
const props = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
@@ -47,7 +46,7 @@
|
||||
|
||||
|
||||
function changeCauses(item) {
|
||||
let prve=form.remark.length?',':''
|
||||
let prve=form.remark?',':''
|
||||
form.remark +=prve+item.name
|
||||
}
|
||||
|
||||
@@ -88,7 +87,8 @@
|
||||
|
||||
const model = ref(null)
|
||||
|
||||
function open() {
|
||||
function open(data) {
|
||||
Object.assign(form,data)
|
||||
model.value.open()
|
||||
}
|
||||
|
||||
@@ -100,11 +100,12 @@
|
||||
function confirm() {
|
||||
const {remark
|
||||
} = form
|
||||
close()
|
||||
emits('confirm', {
|
||||
name,
|
||||
price
|
||||
remark
|
||||
})
|
||||
console.log(remark);
|
||||
close()
|
||||
|
||||
}
|
||||
defineExpose({
|
||||
open,
|
||||
|
||||
Reference in New Issue
Block a user