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