文件名从 src/views/tms/modules/outBound/JSelectOutboundToolModal.vue 修改 |
| | |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'JSelectOutboundToolModal', |
| | | name: 'JSelectBorrowOutboundToolModal', |
| | | components: {}, |
| | | props: {}, |
| | | data() { |
| | |
| | | loading: false, |
| | | prepareKnifeDetailList:[], |
| | | url: { |
| | | list: '/tms/toolLedgerDetail/list' |
| | | list: '/tms/outboundOrder/selectBorrowOutboundToolPageList' |
| | | }, |
| | | } |
| | | }, |
copy from src/views/tms/modules/outBound/JSelectOutboundToolModal.vue
copy to src/views/tms/modules/outBound/JSelectSharpenOutboundToolModal.vue
文件从 src/views/tms/modules/outBound/JSelectOutboundToolModal.vue 复制 |
| | |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'JSelectOutboundToolModal', |
| | | name: 'JSelectSharpenOutboundToolModal', |
| | | components: {}, |
| | | props: {}, |
| | | data() { |
| | |
| | | loading: false, |
| | | prepareKnifeDetailList:[], |
| | | url: { |
| | | list: '/tms/toolLedgerDetail/list' |
| | | list: '/tms/outboundOrder/selectSharpenOutboundToolPageList' |
| | | }, |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | showModal(oldSelectRow, classifyId) { |
| | | this.oldSelectRow = oldSelectRow |
| | | this.visible = true |
| | | this.queryParam.quantity = 0 |
| | | this.queryParam.classifyId = classifyId |
| | |
| | | showOrderModal(oldSelectRow) { |
| | | this.oldSelectRow = oldSelectRow |
| | | this.visible = true |
| | | this.queryParam.quantity = 0 |
| | | this.queryParam.excludeIds = oldSelectRow |
| | | this.loadData(1) |
| | | }, |
| | |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | | <a-button v-show="selectBorrowTool" type="primary" :style="{ marginBottom: '8px' }" @click="selectOutBoundTool">閫夋嫨鍑哄簱宸ュ叿</a-button> |
| | | <a-button v-show="selectBorrowTool" type="primary" :style="{ marginBottom: '8px' }" @click="selectBorrowOutBoundTool">閫夋嫨鍑哄簱宸ュ叿</a-button> |
| | | <a-button v-show="selectSharpenTool" type="primary" :style="{ marginBottom: '8px' }" @click="selectSharpenOutBoundTool">閫夋嫨鍒冪(宸ュ叿</a-button> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | |
| | | <a-button @click="handleOk" :disabled="isDisabled" type="primary">鍑哄簱</a-button> |
| | | </template> |
| | | |
| | | <j-select-outbound-tool-modal ref="selectOutBoundToolModal"></j-select-outbound-tool-modal> |
| | | <j-select-borrow-outbound-tool-modal ref="selectBorrowOutBoundToolModal"></j-select-borrow-outbound-tool-modal> |
| | | <j-select-sharpen-outbound-tool-modal ref="selectSharpenOutBoundToolModal"></j-select-sharpen-outbound-tool-modal> |
| | | </j-modal> |
| | | |
| | | </template> |
| | |
| | | |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import OutboundDetailList from '../../OutboundDetailList.vue' |
| | | import JSelectOutboundToolModal from './JSelectOutboundToolModal.vue' |
| | | import JSelectBorrowOutboundToolModal from './JSelectBorrowOutboundToolModal.vue' |
| | | import JSelectSharpenOutboundToolModal from './JSelectSharpenOutboundToolModal.vue' |
| | | import { postAction } from '../../../../api/manage' |
| | | import title from 'ant-design-vue/lib/skeleton/Title' |
| | | |
| | |
| | | name: "OutboundOrderModal", |
| | | components: { |
| | | OutboundDetailList, |
| | | JSelectOutboundToolModal |
| | | JSelectBorrowOutboundToolModal, |
| | | JSelectSharpenOutboundToolModal |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | isDisabled: false, |
| | | addShow: true, |
| | | selectBorrowTool: false, |
| | | selectSharpenTool: false, |
| | | model:{ |
| | | }, |
| | | labelCol: { |
| | |
| | | for (let i = 0; i < data.length; i++) { |
| | | this.dataSource.push({ |
| | | id: data[i].id, |
| | | toolLedgerDetailId: data[i].toolLedgerDetailId, |
| | | toolCode:data[i].toolCode, |
| | | toolNum:data[i].toolNum, |
| | | toolId: data[i].toolId, |
| | |
| | | handleTypeChange(value) { |
| | | if (value === '1') { |
| | | this.selectBorrowTool = true |
| | | this.selectSharpenTool = false |
| | | this.dataSource = [] |
| | | } |
| | | if (value === '2') { |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = false |
| | | this.dataSource = [] |
| | | } |
| | | if (value === '3') { |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = false |
| | | this.dataSource = [] |
| | | } |
| | | if (value === '4') { |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = true |
| | | this.dataSource = [] |
| | | } |
| | | }, |
| | | handleDelete(record, index) { |
| | |
| | | this.dataSource = temp |
| | | } |
| | | }, |
| | | selectOutBoundTool() { |
| | | selectBorrowOutBoundTool() { |
| | | console.log(this.dataSource) |
| | | let ids = this.dataSource.map(item => item.id).join(',') |
| | | this.$refs.selectOutBoundToolModal.showModal(ids, this.classifyId) |
| | | this.$refs.selectBorrowOutBoundToolModal.showModal(ids, this.classifyId) |
| | | }, |
| | | selectSharpenOutBoundTool() { |
| | | console.log(this.dataSource) |
| | | let ids = this.dataSource.map(item => item.id).join(',') |
| | | this.$refs.selectSharpenOutBoundToolModal.showModal(ids, this.classifyId) |
| | | }, |
| | | add (nodeSelected) { |
| | | this.addShow = false |
| | |
| | | } |
| | | const params = this.dataSource.map(item => { |
| | | return { |
| | | toolLedgerDetailId: item.id, |
| | | toolLedgerDetailId: item.toolLedgerDetailId, |
| | | toolCode: item.toolCode, |
| | | toolId: item.toolId, |
| | | outboundQuantity: item.outboundQuantity, |
| | |
| | | storageLocation: item.storageLocation |
| | | } |
| | | }) |
| | | console.log(params) |
| | | this.confirmLoading = true; |
| | | postAction(this.url.outbound, params).then((res)=>{ |
| | | if(res.success){ |
| | |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | | <a-button v-show="selectBorrowTool" type="primary" :style="{ marginBottom: '8px' }" @click="selectOutBoundTool">閫夋嫨鍑哄簱宸ュ叿</a-button> |
| | | <a-button v-show="selectBorrowTool" type="primary" :style="{ marginBottom: '8px' }" @click="selectBorrowOutBoundTool">閫夋嫨鍑哄簱宸ュ叿</a-button> |
| | | <a-button v-show="selectSharpenTool" type="primary" :style="{ marginBottom: '8px' }" @click="selectSharpenOutBoundTool">閫夋嫨鍒冪(宸ュ叿</a-button> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | |
| | | <a-button @click="handleOk" :disabled="isDisabled" type="primary">纭畾</a-button> |
| | | </template> |
| | | |
| | | <j-select-outbound-tool-modal ref="selectOutBoundToolModal"></j-select-outbound-tool-modal> |
| | | <j-select-borrow-outbound-tool-modal ref="selectBorrowOutBoundToolModal"></j-select-borrow-outbound-tool-modal> |
| | | <j-select-sharpen-outbound-tool-modal ref="selectSharpenOutBoundToolModal"></j-select-sharpen-outbound-tool-modal> |
| | | </j-modal> |
| | | |
| | | </template> |
| | |
| | | import { httpAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import OutboundDetailList from '../../OutboundDetailList.vue' |
| | | import JSelectOutboundToolModal from './JSelectOutboundToolModal.vue' |
| | | import JSelectBorrowOutboundToolModal from './JSelectBorrowOutboundToolModal.vue' |
| | | import JSelectSharpenOutboundToolModal from './JSelectSharpenOutboundToolModal.vue' |
| | | import { getAction } from '../../../../api/manage' |
| | | import title from 'ant-design-vue/lib/skeleton/Title' |
| | | |
| | |
| | | name: "OutboundOrderModal", |
| | | components: { |
| | | OutboundDetailList, |
| | | JSelectOutboundToolModal |
| | | JSelectBorrowOutboundToolModal, |
| | | JSelectSharpenOutboundToolModal |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | isDisabled: false, |
| | | addShow: true, |
| | | selectBorrowTool: false, |
| | | selectSharpenTool: false, |
| | | model:{ |
| | | }, |
| | | labelCol: { |
| | |
| | | handleTypeChange(value) { |
| | | if (value === '1') { |
| | | this.selectBorrowTool = true |
| | | this.selectSharpenTool = false |
| | | this.dataSource = [] |
| | | } |
| | | if (value === '2') { |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = false |
| | | this.dataSource = [] |
| | | } |
| | | if (value === '3') { |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = false |
| | | this.dataSource = [] |
| | | } |
| | | if (value === '4') { |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = true |
| | | this.dataSource = [] |
| | | } |
| | | }, |
| | | handleDelete(record, index) { |
| | |
| | | this.dataSource = temp |
| | | } |
| | | }, |
| | | selectOutBoundTool() { |
| | | selectBorrowOutBoundTool() { |
| | | console.log(this.dataSource) |
| | | let ids = '' |
| | | if (this.title === '鏂板') { |
| | |
| | | if (this.title === '缂栬緫') { |
| | | ids = this.dataSource.map(item => item.toolLedgerDetailId).join(',') |
| | | } |
| | | this.$refs.selectOutBoundToolModal.showOrderModal(ids) |
| | | this.$refs.selectBorrowOutBoundToolModal.showOrderModal(ids) |
| | | }, |
| | | selectSharpenOutBoundTool() { |
| | | console.log(this.dataSource) |
| | | let ids = '' |
| | | if (this.title === '鏂板') { |
| | | ids = this.dataSource.map(item => item.id).join(',') |
| | | } |
| | | if (this.title === '缂栬緫') { |
| | | ids = this.dataSource.map(item => item.toolSharpeningId).join(',') |
| | | } |
| | | this.$refs.selectSharpenOutBoundToolModal.showOrderModal(ids) |
| | | }, |
| | | add () { |
| | | this.addShow = false |
| | |
| | | this.$emit('close'); |
| | | this.addShow = true |
| | | this.selectBorrowTool = false |
| | | this.selectSharpenTool = false |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |