解决入库流程 提交单验证失败后不能选择国家/地区
This commit is contained in:
@@ -93,7 +93,7 @@
|
|||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
|
|
||||||
|
|
||||||
<el-form-item v-if="form.standInData=='1'"label="国家/地区" prop="" label-width="150px" class="add-form-item">
|
<el-form-item label="国家/地区" prop="" label-width="150px" class="add-form-item">
|
||||||
<el-select v-model="form.country" multiple filterable clearable>
|
<el-select v-model="form.country" multiple filterable clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in countryOptions"
|
v-for="item in countryOptions"
|
||||||
@@ -1375,6 +1375,7 @@
|
|||||||
countryArr:'',
|
countryArr:'',
|
||||||
form: {
|
form: {
|
||||||
// 基础信息
|
// 基础信息
|
||||||
|
country:[],
|
||||||
textStatus: '', // 文本状态
|
textStatus: '', // 文本状态
|
||||||
standYear: '', // 标准年份
|
standYear: '', // 标准年份
|
||||||
standInData: '0', // 标准类型
|
standInData: '0', // 标准类型
|
||||||
@@ -1530,7 +1531,7 @@
|
|||||||
watch:{
|
watch:{
|
||||||
'form.country': {
|
'form.country': {
|
||||||
handler (val) {
|
handler (val) {
|
||||||
console.log("val")
|
console.log(val)
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(",");
|
||||||
@@ -2322,12 +2323,13 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.form.country=this.countryArr;
|
// this.form.country=this.countryArr;
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['userForm'].validate((valid) => {
|
this.$refs['userForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.form.country=this.countryArr;
|
||||||
var json = Object.assign(this.form, this.roleForm)
|
var json = Object.assign(this.form, this.roleForm)
|
||||||
json.zrUserId = this.form.zrUserId
|
json.zrUserId = this.form.zrUserId
|
||||||
json.jlUserId = this.form.jlUserId
|
json.jlUserId = this.form.jlUserId
|
||||||
@@ -2395,7 +2397,7 @@
|
|||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.countryOptions=res.data.COUNTRY//国家地区
|
this.countryOptions=res.data.COUNTRY//国家地区
|
||||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||||
|
|||||||
Reference in New Issue
Block a user