车牌号必填
This commit is contained in:
parent
60cee4697a
commit
286bc185ed
|
|
@ -363,10 +363,10 @@
|
||||||
ref="codeOutForm"
|
ref="codeOutForm"
|
||||||
size="small"
|
size="small"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="100px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<span style="margin-right: 50px">待出库数量:{{ outNum }}</span>
|
<span style="margin-right: 50px">待出库数量:{{ outNum }}</span>
|
||||||
<el-form-item label="请输入车牌号" prop="carCode">
|
<el-form-item label="请输入车牌号" prop="carCode" :rules="{ required: true, message: '请输入车牌号', trigger: 'blur' }">
|
||||||
<el-input v-model="codeOutForm.carCode" maxlength="20" />
|
<el-input v-model="codeOutForm.carCode" maxlength="20" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span style="margin-right: 50px; color: red"
|
<span style="margin-right: 50px; color: red"
|
||||||
|
|
@ -481,12 +481,12 @@
|
||||||
ref="numOutForm"
|
ref="numOutForm"
|
||||||
size="small"
|
size="small"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="100px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<!-- <span style="margin-right: 50px;">
|
<!-- <span style="margin-right: 50px;">
|
||||||
待出库数量:{{outNum}}
|
待出库数量:{{outNum}}
|
||||||
</span>-->
|
</span>-->
|
||||||
<el-form-item label="请输入车牌号" prop="carCode">
|
<el-form-item label="请输入车牌号" prop="carCode" :rules="{ required: true, message: '请输入车牌号', trigger: 'blur' }">
|
||||||
<el-input v-model="numOutForm.carCode" maxlength="20" />
|
<el-input v-model="numOutForm.carCode" maxlength="20" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span style="margin-right: 50px; color: red"
|
<span style="margin-right: 50px; color: red"
|
||||||
|
|
@ -991,6 +991,8 @@ export default {
|
||||||
},
|
},
|
||||||
//编码出库保存
|
//编码出库保存
|
||||||
saveCodeOut() {
|
saveCodeOut() {
|
||||||
|
this.$refs.codeOutForm.validate((valid) => {
|
||||||
|
if (!valid) return
|
||||||
if (this.maCodeList.length <= this.outObj.outNum) {
|
if (this.maCodeList.length <= this.outObj.outNum) {
|
||||||
let params = this.maCodeList.map((item) => {
|
let params = this.maCodeList.map((item) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|
@ -1017,9 +1019,12 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError('所选机具编码已超出出库数量!')
|
this.$modal.msgError('所选机具编码已超出出库数量!')
|
||||||
}
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//数量出库保存
|
//数量出库保存
|
||||||
saveNumOut() {
|
saveNumOut() {
|
||||||
|
this.$refs.numOutForm.validate((valid) => {
|
||||||
|
if (!valid) return
|
||||||
this.outNumList[0].carCode = this.numOutForm.carCode
|
this.outNumList[0].carCode = this.numOutForm.carCode
|
||||||
let param = this.outNumList
|
let param = this.outNumList
|
||||||
submitNumOut(param).then((res) => {
|
submitNumOut(param).then((res) => {
|
||||||
|
|
@ -1028,6 +1033,7 @@ export default {
|
||||||
this.handleDialogQuery()
|
this.handleDialogQuery()
|
||||||
this.handleQuery()
|
this.handleQuery()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 输入出库数量
|
// 输入出库数量
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue