| | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { brand } from '@/api/system/common.js' |
| | | import { findListForGoodsId, create, updateById, companyCreate, companyUpdateById } from '@/api/business/goods.js' |
| | | import { baseCategory,brand } from '@/api/system/common.js' |
| | | import { create, updateById, companyCreate, companyUpdateById } from '@/api/business/goods.js' |
| | | export default { |
| | | name: 'OperaGoodsWindow', |
| | | extends: BaseOpera, |
| | |
| | | this.form.imgurl = '' |
| | | }, |
| | | getbrand() { |
| | | brand({}) |
| | | brand({status:0}) |
| | | .then(res => { |
| | | this.brandList = res |
| | | }) |
| | | }, |
| | | getcategory(type) { |
| | | findListForGoodsId(this.form.id || '') |
| | | baseCategory({status:0 , type:1}) |
| | | .then(res => { |
| | | this.categoryList = res |
| | | if (type === 1) { |