|
|
|
@ -17,6 +17,7 @@ import {getTableDefaultListLanguage, getTableUserListLanguage} from '../../../ap |
|
|
|
import {Decimal} from 'decimal.js' |
|
|
|
import {getCategoryList} from '../../../api/category/category' |
|
|
|
import {countryList} from '../../../api/dict/country' |
|
|
|
import {getSiteDetail} from '../../../api/factory/site' |
|
|
|
|
|
|
|
let part = { |
|
|
|
site:'', |
|
|
|
@ -835,6 +836,7 @@ export default { |
|
|
|
serialNumberRequired: 'N', |
|
|
|
} |
|
|
|
this.getCountryList(); |
|
|
|
this.savePart.freeInfo2 = this.defaultCountry |
|
|
|
this.savePart.category = this.partCategoryList.length > 0 ? this.partCategoryList[0].categoryValue : '' |
|
|
|
this.savePartVisible = true; |
|
|
|
} |
|
|
|
@ -1051,6 +1053,20 @@ export default { |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
getUserSiteDefaultCountry(){ |
|
|
|
let params = this.$store.state.user.site |
|
|
|
getSiteDetail(params).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
if (data.row && data.row.defaultCountry){ |
|
|
|
this.defaultCountry = data.row.defaultCountry |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
@ -1061,6 +1077,7 @@ export default { |
|
|
|
this.getCategoryList(); |
|
|
|
// this.getCountryList(); |
|
|
|
this.selectExternalPartList(); |
|
|
|
this.getUserSiteDefaultCountry(); |
|
|
|
this.getTableUserColumn("10002Table", 1) |
|
|
|
this.getTableUserColumn("10002Table2", 2) |
|
|
|
this.getTableUserColumn("10002Table3", 3) |
|
|
|
@ -1199,28 +1216,30 @@ export default { |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="17"> |
|
|
|
<el-form-item label="Free Info1" :show-message="false"> |
|
|
|
<el-input v-model="savePart.freeInfo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="Free Info" :show-message="false">--> |
|
|
|
<!-- <el-form-item label="Free Info1" :show-message="false">--> |
|
|
|
<!-- <el-input v-model="savePart.freeInfo"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<el-form-item label="Free Info" :show-message="false"> |
|
|
|
<el-input v-model="savePart.freeInfo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item label=" " :show-message="false"> |
|
|
|
<el-checkbox v-model="savePart.active" true-label="Y" false-label="N">Active</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="17"> |
|
|
|
<el-form-item label="Free Info2" :show-message="false"> |
|
|
|
<el-input v-model="savePart.freeInfo2"></el-input> |
|
|
|
<!-- <el-col :span="17">--> |
|
|
|
<!-- <el-form-item label="Free Info2" :show-message="false">--> |
|
|
|
<!-- <el-input v-model="savePart.freeInfo2"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<el-col :span="7"> |
|
|
|
<el-form-item label="OOC" :show-message="false" prop="freeInfo2"> |
|
|
|
<el-select v-model="savePart.freeInfo2" placeholder="" style="width: 100%"> |
|
|
|
<el-option v-for="item in countryList" :label="item.countryNo" :value="item.countryNo" :key="item.countryNo"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- <el-form-item label="OOC" :show-message="false" prop="freeInfo2">--> |
|
|
|
<!-- <el-select v-model="savePart.freeInfo2" placeholder="" style="width: 100%">--> |
|
|
|
<!-- <el-option v-for="item in countryList" :label="item.countryNo" :value="item.countryNo" :key="item.countryNo"></el-option>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|