Browse Source

2026-01-21

领料申请管理、收货入库任务通知、拣货出库任务通知三个页面,在新增后要自动查出并定位到这个新单据
master
fengyuan_yang 16 hours ago
parent
commit
84f8b7a487
  1. 19
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
  2. 36
      src/views/modules/qc/inboundNotification.vue
  3. 36
      src/views/modules/qc/outboundNotification.vue

19
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -3139,6 +3139,7 @@
} }
createNotify(inData).then(({data})=>{ createNotify(inData).then(({data})=>{
if (data.code === 0) { if (data.code === 0) {
const newNotifyNo = data.notifyNo //
this.$message({ this.$message({
message: '操作成功', message: '操作成功',
type: 'success', type: 'success',
@ -3146,8 +3147,22 @@
onClose: () => {} onClose: () => {}
}) })
this.createNotifyFlag = false this.createNotifyFlag = false
//
this.searchTable()
// 便
this.searchData.notifyNo = newNotifyNo
//
this.searchTable().then(() => {
const foundRow = this.dataList.find(item => item.notifyNo === newNotifyNo)
if (foundRow) {
this.currentRow = JSON.parse(JSON.stringify(foundRow))
this.$nextTick(() => {
this.$refs.mainTable.setCurrentRow(foundRow)
//
this.refreshCurrentTabTable()
})
}
//
this.searchData.notifyNo = ''
})
}else { }else {
this.$alert(data.msg, '错误', { this.$alert(data.msg, '错误', {
confirmButtonText: '确定' confirmButtonText: '确定'

36
src/views/modules/qc/inboundNotification.vue

@ -1388,9 +1388,43 @@
if (this.modalData.flag === '1') { // if (this.modalData.flag === '1') { //
saveInboundNotification(this.modalData).then(({data}) => { saveInboundNotification(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.getDataList()
const newOrderNo = data.orderNo //
this.modalFlag = false this.modalFlag = false
this.$message.success('操作成功') this.$message.success('操作成功')
// 便
this.searchData.orderNo = newOrderNo
this.searchData.orderStatusList = [] //
//
this.searchData.limit = this.pageSize
this.searchData.page = 1
this.pageIndex = 1
this.searchData.orderStatus = ''
this.searchLoading = true
searchInboundNotification(this.searchData).then(({data: listData}) => {
if (listData.code === 0) {
this.dataList = listData.page.list
this.pageIndex = listData.page.currPage
this.pageSize = listData.page.pageSize
this.totalPage = listData.page.totalCount
//
const foundRow = this.dataList.find(item => item.orderNo === newOrderNo)
if (foundRow) {
this.currentRow = JSON.parse(JSON.stringify(foundRow))
this.$nextTick(() => {
this.$refs.inboundTable.setCurrentRow(foundRow)
this.refreshCurrentTabTable()
})
} else if (this.dataList.length > 0) {
this.$refs.inboundTable.setCurrentRow(this.dataList[0])
this.inboundClickRow(this.dataList[0])
}
}
//
this.searchData.orderNo = ''
this.searchData.orderStatusList = ['草稿']
}).finally(() => {
this.searchLoading = false
})
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
} }

36
src/views/modules/qc/outboundNotification.vue

@ -1322,9 +1322,43 @@
if (this.modalData.flag === '1') { // if (this.modalData.flag === '1') { //
saveOutboundNotification(this.modalData).then(({data}) => { saveOutboundNotification(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.getDataList()
const newOrderNo = data.orderNo //
this.modalFlag = false this.modalFlag = false
this.$message.success('操作成功') this.$message.success('操作成功')
// 便
this.searchData.orderNo = newOrderNo
this.searchData.orderStatusList = [] //
//
this.searchData.limit = this.pageSize
this.searchData.page = 1
this.pageIndex = 1
this.searchData.orderStatus = ''
this.searchLoading = true
searchOutboundNotification(this.searchData).then(({data: listData}) => {
if (listData.code === 0) {
this.dataList = listData.page.list
this.pageIndex = listData.page.currPage
this.pageSize = listData.page.pageSize
this.totalPage = listData.page.totalCount
//
const foundRow = this.dataList.find(item => item.orderNo === newOrderNo)
if (foundRow) {
this.currentRow = JSON.parse(JSON.stringify(foundRow))
this.$nextTick(() => {
this.$refs.outboundTable.setCurrentRow(foundRow)
this.refreshCurrentTabTable()
})
} else if (this.dataList.length > 0) {
this.$refs.outboundTable.setCurrentRow(this.dataList[0])
this.inboundClickRow(this.dataList[0])
}
}
//
this.searchData.orderNo = ''
this.searchData.orderStatusList = ['草稿']
}).finally(() => {
this.searchLoading = false
})
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
} }

Loading…
Cancel
Save