| | |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | | <zt-button type="add" @click="add()"/> |
| | | <zt-button v-if="productType==='3'" type="primary" @click="addCell()">新增虚单元</zt-button> |
| | | <zt-button type="delete" @click="table.deleteHandle()"/> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | <zt-table-column-handle :table="table"/> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update @refreshDataList="table.query"/> |
| | | <add-or-update @refreshDataList="table.query" ref="AddOrUpdate"/> |
| | | <select-ty-model @refreshDataList="table.query" ref="SelectTyModel"/> |
| | | </zt-table-wraper> |
| | | </div> |
| | |
| | | import SelectTyModel from './SelectTyModel' |
| | | import ProductModelTree from "./ProductModelTree"; |
| | | import Cookies from "js-cookie"; |
| | | import TyProductModel from "./TyProductModel-AddOrUpdate"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | TyProductModel, |
| | | ProductModelTree, |
| | | AddOrUpdate, |
| | | SelectTyModel |
| | |
| | | } |
| | | this.$refs.SelectTyModel.$refs.dialog.init(null,{type:this.dataForm.type,id:this.dataForm.pid}) |
| | | }, |
| | | addCell(){ |
| | | this.$refs.AddOrUpdate.$refs.dialog.init(null,{type:10,pid:this.dataForm.pid}) |
| | | }, |
| | | cellStyle({column}) { |
| | | if (column.label === '名称') { |
| | | return 'text-align: left !important;' |
| | | } |
| | | }, |
| | | getPath(id) { |
| | | console.log(id, 'path') |
| | | return `${window.SITE_CONFIG['apiURL']}/sys/oss/content2?fileId=${id}` |
| | | }, |
| | | onProductSelected(data) { |
| | | console.log(data) |