| | |
| | | size="mini" |
| | | > |
| | | <el-option |
| | | v-for="item in supplierTypeOptions" |
| | | :key="item.id" |
| | | v-for="(item, index) in supplierTypeOptions" |
| | | :key="index" |
| | | :label="item.name" |
| | | :value="item.name" |
| | | > |
| | |
| | | class="common-select-sel" |
| | | size="mini" |
| | | > |
| | | <el-option v-for="item in industryOptions" :key="item.id" :label="item.name" :value="item.name"> |
| | | <el-option |
| | | v-for="(item, index) in industryOptions" |
| | | :key="index" |
| | | :label="item.name" |
| | | :value="item.name" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <div class="common-select-btn" @click="setIndustry"><i class="el-icon-setting"></i></div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { createSupplier, createContract, updateSupplier } from "@/api/supplierManage/supplier" |
| | | import { createSupplier, createContract, updateSupplier, getIndustryList } from "@/api/supplierManage/supplier" |
| | | import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog" |
| | | import { getSupplierTypeList } from "@/api/supplierManage/supplier" |
| | | export default { |
| | |
| | | }, |
| | | created() { |
| | | this.getSupplierTypeList() |
| | | this.getIndustryList() |
| | | }, |
| | | methods: { |
| | | // 供应商类型 |
| | |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | console.log("dsss") |
| | | console.log(res.data) |
| | | this.supplierTypeOptions = res.data.data.list |
| | | }) |
| | | }, |
| | | // 所属行业 |
| | | async getIndustryList() { |
| | | await getIndustryList({ |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | this.industryOptions = res.data.data.list |
| | | }) |
| | | }, |
| | | handleClose() { |
| | | this.editConfig.visible = false |
| | | }, |