feat: 接入下载桌台码接口,代客下单代码调整
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ElMessage } from "element-plus";
|
||||
const props = defineProps({
|
||||
isCanEmpty: {
|
||||
type: Boolean,
|
||||
@@ -108,6 +109,7 @@ function clearFunction() {
|
||||
if (props.isFloat) {
|
||||
return keyboradAdd(".");
|
||||
}
|
||||
number.value = "";
|
||||
}
|
||||
function keyboradAdd(n) {
|
||||
if (n == "." && `${number.value}`.includes(".")) {
|
||||
@@ -120,7 +122,7 @@ function keyboradAdd(n) {
|
||||
}
|
||||
const newval = number.value + n;
|
||||
if (newval * 1 > props.max * 1) {
|
||||
return ElMessage.error(this.maxTips);
|
||||
return ElMessage.error(props.maxTips);
|
||||
}
|
||||
console.log(number.value);
|
||||
number.value = newval;
|
||||
|
||||
Reference in New Issue
Block a user