|
|
@@ -46,7 +46,23 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="国家" prop="Country">
|
|
|
+ <el-select v-model="formData.Country"
|
|
|
+ :disabled="!canUpdateSupplier"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-option v-for="item in countryListOptions"
|
|
|
+ :key="item.key"
|
|
|
+ :label="item.value"
|
|
|
+ :value="item.value">
|
|
|
+ <span style="float: left">{{ item.value }}</span>
|
|
|
+ <span style="float: right; color: #8492a6; font-size: 13px">{{ item.label }}</span>
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="准入方式">
|
|
|
<el-select ref="SpecType" v-model="formData.InStyle" :disabled="this.formData.Status > '0'&&!appendStatus"
|
|
|
@@ -587,13 +603,18 @@
|
|
|
value: '0',
|
|
|
label: '否'
|
|
|
}],
|
|
|
-
|
|
|
+ countryListOptions: [],
|
|
|
rulesform: {
|
|
|
BusinessScope: [{
|
|
|
required: true,
|
|
|
message: '请输入营业范围',
|
|
|
trigger: 'change'
|
|
|
}],
|
|
|
+ Country: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入国家',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
SupplierName: [{
|
|
|
required: true,
|
|
|
validator: checkSupplierName,
|
|
|
@@ -728,6 +749,21 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCountryList (val) {
|
|
|
+ if (this.formData.Country == "") {
|
|
|
+ this.formData.Country = "中国"
|
|
|
+ }
|
|
|
+ let tmpJson = JSON.parse(val)
|
|
|
+ this.countryListOptions = []
|
|
|
+ for (let idx in tmpJson) {
|
|
|
+ this.countryListOptions.push({
|
|
|
+ label: tmpJson[idx].split('-')[0],
|
|
|
+ value: tmpJson[idx].split('-')[1],
|
|
|
+ code: tmpJson[idx].split('-')[2],
|
|
|
+ key: tmpJson[idx]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
showorhid (val) {
|
|
|
if (val == '1' || val == '2') {
|
|
|
this.showorhidflag = 'hid'
|
|
|
@@ -822,6 +858,7 @@
|
|
|
this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
|
this.CurrencyOptions = this.dictData['CurrencyType']
|
|
|
let suppliers = this.dictData['CompanyNames']
|
|
|
+ this.getCountryList(this.dictData['CountryList'])
|
|
|
// for (let idx in suppliers) {
|
|
|
// suppliers[idx]['value'] = suppliers[idx].SupplierName
|
|
|
// this.companynames.push(suppliers[idx])
|