diff --git a/src/views/modules/qc/inboundNotification.vue b/src/views/modules/qc/inboundNotification.vue index 817af75..fae69af 100644 --- a/src/views/modules/qc/inboundNotification.vue +++ b/src/views/modules/qc/inboundNotification.vue @@ -1177,8 +1177,8 @@ }, updateModal (row) { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') + if (this.currentRow.orderType === '采购入库' || '销售退货') { + this.$message.warning('该类型单据不能编辑!') return } this.modalData = { @@ -1241,10 +1241,6 @@ // 删除 deleteModal () { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') - return - } if (this.inboundSelection.length === 0) { this.$message.warning('请勾选要删除的单据!') return @@ -1276,8 +1272,8 @@ // 关闭 closeModal (row) { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') + if (this.currentRow.orderType === '采购入库' || '销售退货') { + this.$message.warning('该类型单据不能编辑!') return } closeInboundNotification(row).then(({data}) => { @@ -1292,8 +1288,8 @@ // 下达 issueModal (row) { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') + if (this.currentRow.orderType === '采购入库' || '销售退货') { + this.$message.warning('该类型单据不能编辑!') return } issueInboundNotification(row).then(({data}) => { @@ -1364,8 +1360,8 @@ // 新增明细 addInboundDetailModal () { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') + if (this.currentRow.orderType === '采购入库' || '销售退货') { + this.$message.warning('该类型单据不能编辑!') return } this.detailSearchData = { @@ -1481,10 +1477,10 @@ }) }, - // 删除物料缺陷跟踪 + // 删除入库明细 deleteInboundDetail () { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') + if (this.currentRow.orderType === '采购入库' || '销售退货') { + this.$message.warning('该类型单据不能编辑!') return } if (this.inboundDetailSelection.length === 0) { @@ -1513,8 +1509,8 @@ // 批量编辑模态框 editBatchModel() { - if (this.currentRow.orderType === '采购入库') { - this.$message.warning('采购入库单据不能编辑!') + if (this.currentRow.orderType === '采购入库' || '销售退货') { + this.$message.warning('该类型单据不能编辑!') return } if (this.editBatchVisible) { diff --git a/src/views/modules/schedule/order_schedule_expand.vue b/src/views/modules/schedule/order_schedule_expand.vue index a2607ee..0ec7940 100644 --- a/src/views/modules/schedule/order_schedule_expand.vue +++ b/src/views/modules/schedule/order_schedule_expand.vue @@ -4,18 +4,10 @@ - - + - - + @@ -26,18 +18,10 @@ - - + - - + {{ labels.resourceId }} @@ -66,17 +50,14 @@ - + - {{ buttons.refreshButton }} + {{ buttons.refreshButton }} - + {{ buttons.scheduleBatch ? buttons.scheduleBatch : '批量排产' }} @@ -95,13 +76,9 @@ {{ buttons.primaryMenu }} - {{ buttons.shopOrder }} - + {{ buttons.shopOrder }}
- {{ buttons.viewPartStock }} - + {{ buttons.viewPartStock }}
@@ -138,19 +115,32 @@ + + + @@ -274,6 +264,9 @@ export default { data() { return { height: 200, + pageIndex: 1, + pageSize: 20, + totalPage: 0, tagNo: '', authEdit: false, authAdd: false, @@ -440,7 +433,9 @@ export default { calendarId: '', calendarDesc: '', status: 1, - sortField: 'needDate' + sortField: 'needDate', + page: 1, + limit: 10, }, shopOrderList: [], dataListLoading: false, @@ -1265,7 +1260,7 @@ export default { mounted() { this.$nextTick(() => { - this.height = window.innerHeight - 205; + this.height = window.innerHeight - 235; }) }, methods: { @@ -1332,20 +1327,37 @@ export default { } this.scheduleVisible = true }, + // 选中记录 handleSelectionChange(val) { this.dataListSelections = val }, + /*刷新页面table*/ refreshPageTables() { this.getShopOrderList(); }, + // 每页数 + sizeChangeHandle (val) { + this.pageSize = val + this.pageIndex = 1 + this.getShopOrderList() + }, + + // 当前页 + currentChangeHandle (val) { + this.pageIndex = val + this.getShopOrderList() + }, + /*获取工单信息*/ getShopOrderList() { + this.pageData.limit = this.pageSize + this.pageData.page = this.pageIndex getShopOrderList(this.pageData).then(({data}) => { if (this.pageData.resourceId) { - this.shopOrderList = data.rows.map(item => { + this.shopOrderList = data.page.list.map(item => { item.resourceId = this.pageData.resourceId item.resourceList = item.resourceList.split(';').map(resItem => { let newItem = { @@ -1357,7 +1369,7 @@ export default { return item; }) } else { - this.shopOrderList = data.rows.map(item => { + this.shopOrderList = data.page.list.map(item => { item.resourceList = item.resourceList.split(';').map(resItem => { let newItem = { resourceId: resItem.split(':')[0], @@ -1368,6 +1380,9 @@ export default { return item; }) } + this.pageIndex = data.page.currPage + this.pageSize = data.page.pageSize + this.totalPage = data.page.totalCount //清空已经选好的行数据 this.currentRoutingRow = null; })