md
This commit is contained in:
parent
fb0d31340e
commit
b8b776fc64
@ -20,7 +20,7 @@
|
|||||||
<el-input v-model="form.nameEn" placeholder="请输入英文简称" />
|
<el-input v-model="form.nameEn" placeholder="请输入英文简称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="12">
|
||||||
<el-form-item label="结算类型" prop="settledType">
|
<el-form-item label="结算类型" prop="settledType">
|
||||||
<el-select v-model="form.settledType" :placeholder="$t('结算类型')" >
|
<el-select v-model="form.settledType" :placeholder="$t('结算类型')" >
|
||||||
<el-option key="1" label="现金" value="1" />
|
<el-option key="1" label="现金" value="1" />
|
||||||
@ -28,9 +28,9 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="12">
|
||||||
<el-form-item label="运输方式" prop="transType">
|
<el-form-item label="运输方式" prop="transType">
|
||||||
<el-select v-model="form.transType" placeholder="运输方式" clearable filterable>
|
<el-select multiple clearable v-model="form.transTypeIdArr" placeholder="运输方式" @change="onTransTypeChange" style="width:100%" >
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.type.emis_biz_shipping_method"
|
v-for="item in dict.type.emis_biz_shipping_method"
|
||||||
v-bind:key="item.value"
|
v-bind:key="item.value"
|
||||||
@ -132,6 +132,10 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
getEmisSupplier(this.id).then(response => {
|
getEmisSupplier(this.id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
if(this.form.transType){
|
||||||
|
this.$set(this.form,"transTypeIdArr",this.form.transType.split(","))
|
||||||
|
}
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
@ -139,6 +143,11 @@ export default {
|
|||||||
}
|
}
|
||||||
// this.getTreeselect();
|
// this.getTreeselect();
|
||||||
},
|
},
|
||||||
|
onTransTypeChange(){
|
||||||
|
if(this.form.transTypeIdArr){
|
||||||
|
this.form.transType=this.form.transTypeIdArr.join(",");
|
||||||
|
}
|
||||||
|
},
|
||||||
handleSelectSite(){
|
handleSelectSite(){
|
||||||
this.openSiteSelectTreeForm=true;
|
this.openSiteSelectTreeForm=true;
|
||||||
},
|
},
|
||||||
@ -163,6 +172,7 @@ export default {
|
|||||||
nameEn: null,
|
nameEn: null,
|
||||||
settledType: null,
|
settledType: null,
|
||||||
transType: null,
|
transType: null,
|
||||||
|
transTypeIdArr:[],
|
||||||
bizSite: null,
|
bizSite: null,
|
||||||
bizSiteName: null,
|
bizSiteName: null,
|
||||||
companyName: null,
|
companyName: null,
|
||||||
@ -186,6 +196,10 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
if(this.form.transTypeIdArr){
|
||||||
|
this.form.transType=this.form.transTypeIdArr.join(",");
|
||||||
|
}
|
||||||
|
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateEmisSupplier(this.form).then(response => {
|
updateEmisSupplier(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user