| | |
| | | <my-table-v2 ref="myTable" :filter="filterFrom" :table="table"/> |
| | | </el-col> |
| | | </el-row> |
| | | <!--添加/编辑弹窗--> |
| | | <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show = false" @search="search"/> |
| | | </el-card> |
| | | </el-container> |
| | | </el-container> |
| | | <!--添加/编辑弹窗--> |
| | | <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show = false" @search="search"/> |
| | | <!--规格--> |
| | | <specs v-if="specsSetting.show" :setting="specsSetting" @close="specsSetting.show = false" @search="search"></specs> |
| | | <my-import |
| | | :import-setting="importSetting" |
| | | :dialog-show="importSetting.dialogShow" |
| | |
| | | import MyButton from "@/components/myButton/myButton"; |
| | | import SettingIplatform from '@/utils/settingIplatform'; |
| | | import edit from './edit' |
| | | import * as finsystenant from '@/api/baseSetting/finsystenant' |
| | | import {updStatus,delGoods} from '@/api/foudation/material' |
| | | import myImport from '@/views/components/myImport' |
| | | import {getBaseUrl} from '@/utils/base'; |
| | | import Specs from "@/views/foundation/material/specs/list.vue"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | components: {MyButton, MyTableV2, edit, myTree, myImport}, |
| | | components: {Specs, MyButton, MyTableV2, edit, myTree, myImport}, |
| | | data() { |
| | | return { |
| | | // 搜索框 |
| | |
| | | orgId: '', |
| | | show: false, |
| | | }, |
| | | specsSetting: { |
| | | title: '', |
| | | id: '', |
| | | show: false, |
| | | }, |
| | | // 表格数据 |
| | | table: { |
| | | showIndex: true, // 是否显示序号 |
| | |
| | | // 操作信息 |
| | | operation: { |
| | | show: true, // 显示操作列 |
| | | width: 160, // 列宽 |
| | | width: 250, // 列宽 |
| | | attr: [ |
| | | { |
| | | title: '编辑', |
| | |
| | | this.del(row); |
| | | }, |
| | | }, |
| | | // { |
| | | // title: '规格型号', |
| | | // events: (row) => { |
| | | // this.showAudit(row); |
| | | // }, |
| | | // }, |
| | | { |
| | | title: '规格型号', |
| | | type: 'primary', |
| | | events: (row) => { |
| | | this.showSpecs(row); |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | paging: { |
| | |
| | | vm.$modal.confirm('确认要' + text + '"' + row.goodsName + '"吗?').then(function () { |
| | | let params = Object.assign({}, row) |
| | | params.states = row.states == 1 ? 0 : 1 |
| | | finsystenant.upcode(params).then(res => { |
| | | updStatus(params).then(res => { |
| | | if (res) { |
| | | row.states = row.states === 1 ? 0 : 1 |
| | | vm.$modal.msgSuccess(text + "成功"); |
| | |
| | | this.$modal |
| | | .confirm('是否确认删除名称为"' + row.goodsName + '"的机构吗?') |
| | | .then(function () { |
| | | finsystenant.delCode({id: row.id}).then((res) => { |
| | | delGoods({id: row.id}).then((res) => { |
| | | }); |
| | | }) |
| | | .then((res) => { |
| | |
| | | this.editSetting.show = true; |
| | | // } |
| | | }, |
| | | showAudit(row) { |
| | | this.editSetting.id = row.id; |
| | | this.editSetting.title = '编辑'; |
| | | this.editSetting.show = true; |
| | | showSpecs(row) { |
| | | this.specsSetting.id = row.id; |
| | | this.specsSetting.show = true; |
| | | }, |
| | | // 查询table列表 |
| | | search(pageNum) { |