入库流程 国家/地区多选
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
<el-form-item v-if="form.standInData=='1'" label="国家/地区" prop="country" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.country" placeholder="国家/地区" disabled>
|
||||
<el-select :popper-append-to-body="false" v-model="form.country" placeholder="国家/地区" multiple disabled>
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
@@ -680,6 +680,7 @@
|
||||
<loading :loading="loading">流程列表加载中</loading>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交-->
|
||||
<ProcessFooter
|
||||
:show-save="false"
|
||||
show-submit
|
||||
@@ -1006,6 +1007,9 @@
|
||||
this.defaultCheckedKeys3 = [this.form.dybxh]
|
||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : ''
|
||||
if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){
|
||||
this.form.country=this.form.country.split(",");
|
||||
}
|
||||
this.form.prcNum = this.prcNum
|
||||
this.form.prcName = this.prcName
|
||||
this.form['id'] = item.id
|
||||
@@ -1030,6 +1034,16 @@
|
||||
},
|
||||
handleSave() {},
|
||||
handleSubmit() {
|
||||
const val= this.form.country;
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
if (val instanceof Array) {
|
||||
this.form.country = val.join(",");
|
||||
} else {
|
||||
this.form.country = val
|
||||
}
|
||||
} else if (val === '') {
|
||||
this.form.country = []
|
||||
}
|
||||
this.$refs['formTongGuo'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
|
||||
Reference in New Issue
Block a user