| | |
| | | export default { |
| | | name: 'JSelectToolingModal', |
| | | components: {}, |
| | | props: {}, |
| | | props: { |
| | | classifyId:{ |
| | | type:String |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | queryParam: {}, |
| | |
| | | { |
| | | title: '工具编号', |
| | | align: 'center', |
| | | dataIndex: 'toolNum', |
| | | dataIndex: 'onlyCode', |
| | | sorter: true, |
| | | }, |
| | | { |
| | | title: '工具名称', |
| | | align: 'center', |
| | | dataIndex: 'toolName', |
| | | dataIndex: 'chineseName', |
| | | sorter: true, |
| | | }, |
| | | { |
| | | { |
| | | title: '工具类型', |
| | | align: 'center', |
| | | dataIndex: 'applicationTypeName', |
| | |
| | | loading: false, |
| | | url: { |
| | | // list: '/base/tooling/list', |
| | | list: '/tms/toolLedgerDetail/list', |
| | | list: '/tms/toolLedgerDetail/queryLendTool', |
| | | queryKnifeBom:'/toolingStorage/mesToolingOutbounds/queryKnifeBom' |
| | | }, |
| | | classifyId:'' |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | let that = this |
| | | this.loading = true |
| | | let params = this.getQueryParams() //查询条件 |
| | | params["status"] = "2" |
| | | params.status = "2" |
| | | params.classifyId = this.classifyId |
| | | await getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | for (let i = 0; i < res.result.records.length; i++) { |
| | | if (that.oldSlelectRows.indexOf(res.result.records[i].toolingId) > -1) { |
| | | if (that.oldSlelectRows.indexOf(res.result.records[i].id) > -1) { |
| | | res.result.records[i].distable = true |
| | | } else { |
| | | res.result.records[i].distable = false |