弹框限制

This commit is contained in:
2023-12-12 17:04:41 +08:00
parent 4daf5f80a8
commit 68ff03d96d

View File

@@ -25,7 +25,7 @@
@toSure="toSureDialog" @toSure="toSureDialog"
@toCancle="toCancle" @toCancle="toCancle"
> >
<div v-if="type === '1' || type === '2'" class="form_wraper"> <div v-if="type === '1'" class="form_wraper">
<div class="form"> <div class="form">
<div class="form_item"> <div class="form_item">
<div class="form_item__label"><i>*</i>{{ $t('carrypoint.pointcode') }}</div> <div class="form_item__label"><i>*</i>{{ $t('carrypoint.pointcode') }}</div>
@@ -210,7 +210,6 @@ export default {
switch (type) { switch (type) {
case '1': case '1':
this.pointcode = '' this.pointcode = ''
this.remark = ''
this.unclick = true this.unclick = true
break break
} }
@@ -233,9 +232,9 @@ export default {
this.visible = false this.visible = false
}, },
inputChange1 (val) { inputChange1 (val) {
// this.pointcode = val this.pointcode = val
// 限制只能输入数字 // 限制只能输入数字,后端校验
this.pointcode = val.replace(/[^\d]/g, '') // this.pointcode = val.replace(/[^\d]/g, '')
}, },
// 这个接口需要放到agv上去才行 // 这个接口需要放到agv上去才行
async initData () { async initData () {
@@ -251,6 +250,8 @@ export default {
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
this.selectObj = {} this.selectObj = {}
this.$refs.child.active = false
this.$refs.child.disabled = false
} else { } else {
this.toast(res.desc) this.toast(res.desc)
} }