| | |
| | | :uploadInfo="uploadInfo" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :bottomOffset="255" |
| | | :bottomOffset="150" |
| | | :ajaxFun="ajaxFun" |
| | | ref="routingTable" |
| | | :paramObj="queryParam" |
| | |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import { fetchList } from '@/api/technology/routing' |
| | | import { fetchList } from '@/api/technology/document' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import { remote } from '@/api/admin/dict' |
| | | export default { |
| | |
| | | border: true, // 是否有纵向边框 |
| | | lazy: false, // 是否需要懒加载 |
| | | fit: true, // 列的宽度是否自撑开 |
| | | multiSelect: false, // |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isRefresh: true, // 是否显示刷新按钮 |
| | | isShowHide: true, // 是否显示显影按钮 |
| | | isSearch: false, // 高级查询按钮 |
| | | defaultOrderBy: { column: 'updateTime', direction: 'desc' } |
| | | isShowHide: true, // 是否显示显影按钮H |
| | | isSearch: true, // 高级查询按钮 |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' } |
| | | }, |
| | | table: { |
| | | total: 0, |
| | |
| | | column: [ |
| | | { |
| | | minWidth: '100', |
| | | prop: 'routingNo', |
| | | label: '工艺编号', |
| | | prop: 'number', |
| | | label: '文件编号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | |
| | | { |
| | | minWidth: '100', |
| | | prop: 'name', |
| | | label: '工艺名称', |
| | | label: '文件名称', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // 工艺类型 |
| | | { |
| | | minWidth: '120', |
| | | prop: 'bomTypeDb', |
| | | label: '工艺类型', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: false, |
| | | searchInfoType: 'select', |
| | | formatter: this.formatBomTypeDbType, |
| | | optList: () => { |
| | | return this.bomTypeDbOptions |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'master', |
| | | label: '主工艺', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'select', |
| | | formatter: this.getMaster, |
| | | optList: () => { |
| | | return this.getMasterList() |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'state', |
| | | label: '状态', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'select', |
| | | formatter: this.getMasterState, |
| | | optList: () => { |
| | | return this.getMasterStateList() |
| | | } |
| | | }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'bomTypeDb', |
| | | // label: '工艺类型', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: false, |
| | | // searchInfoType: 'select', |
| | | // formatter: this.formatBomTypeDbType, |
| | | // optList: () => { |
| | | // return this.bomTypeDbOptions |
| | | // } |
| | | // }, |
| | | // { |
| | | // minWidth: '100', |
| | | // prop: 'master', |
| | | // label: '主工艺', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'select', |
| | | // formatter: this.getMaster, |
| | | // optList: () => { |
| | | // return this.getMasterList() |
| | | // } |
| | | // }, |
| | | // { |
| | | // minWidth: '100', |
| | | // prop: 'state', |
| | | // label: '状态', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'select', |
| | | // formatter: this.getMasterState, |
| | | // optList: () => { |
| | | // return this.getMasterStateList() |
| | | // } |
| | | // }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'description', |
| | |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'partName', |
| | | label: '零件名', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | noShowTip: false |
| | | }, |
| | | // { |
| | | // minWidth: '120', |
| | | // prop: 'partName', |
| | | // label: '零件名', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text', |
| | | // noShowTip: false |
| | | // }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'partNo', |
| | |
| | | label: '草稿' |
| | | }, |
| | | { |
| | | value: '02accepted', |
| | | value: '02pending', |
| | | label: '已接受' |
| | | }, |
| | | { |
| | |
| | | currshowlist() { |
| | | this.innerVisible = this.currshowlist |
| | | if (this.currshowlist) { |
| | | this.queryParam.state = '02accepted' |
| | | this.queryParam.state = '03accepted' |
| | | this.$nextTick(() => { |
| | | this.getData() |
| | | }) |