Browse Source

2025-08-21 拣货出库通知

master
fengyuan_yang 5 months ago
parent
commit
1850d6e388
  1. 2
      src/api/qc/Inbound_notification.js
  2. 28
      src/api/qc/outbound_notification.js
  3. 60
      src/views/modules/qc/inboundNotification.vue
  4. 1707
      src/views/modules/qc/outboundNotification.vue

2
src/api/qc/Inbound_notification.js

@ -4,6 +4,8 @@ import { createAPI } from "@/utils/httpRequest.js";
export const searchInboundNotification = data => createAPI('/inbound/searchInboundNotification','post',data)
// 新增收获入库单
export const saveInboundNotification = data => createAPI('/inbound/saveInboundNotification','post',data)
// 编辑收获入库单
export const updateInboundNotification = data => createAPI('/inbound/updateInboundNotification','post',data)
// 删除收获入库单
export const deleteInboundNotification = data => createAPI('/inbound/deleteInboundNotification','post',data)
// 关闭收获入库单

28
src/api/qc/outbound_notification.js

@ -0,0 +1,28 @@
import { createAPI } from "@/utils/httpRequest.js";
// 查询拣货出库单
export const searchOutboundNotification = data => createAPI('/outbound/searchOutboundNotification','post',data)
// 新增拣货出库单
export const saveOutboundNotification = data => createAPI('/outbound/saveOutboundNotification','post',data)
// 编辑拣货出库单
export const updateOutboundNotification = data => createAPI('/outbound/updateOutboundNotification','post',data)
// 删除拣货出库单
export const deleteOutboundNotification = data => createAPI('/outbound/deleteOutboundNotification','post',data)
// 关闭拣货出库单
export const closeOutboundNotification = data => createAPI('/outbound/closeOutboundNotification','post',data)
// 下达拣货出库单
export const issueOutboundNotification = data => createAPI('/outbound/issueOutboundNotification','post',data)
// 查询拣货出库单明细
export const getOutboundDetail = data => createAPI('/outbound/getOutboundDetail','post',data)
// 新增拣货出库单明细
export const saveOutboundDetail = data => createAPI('/outbound/saveOutboundDetail','post',data)
// 查物料
export const getOutboundPartList = data => createAPI('/outbound/getOutboundPartList','post',data)
// 删除拣货出库单明细
export const deleteOutboundDetail = data => createAPI('/outbound/deleteOutboundDetail','post',data)
// 批量编辑明细
export const updateOutboundDetail = data => createAPI('/outbound/updateOutboundDetail','post',data)
// 获取出库明细
export const getOutboundDetail2 = data => createAPI('/outbound/getOutboundDetail2','post',data)

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

@ -13,7 +13,7 @@
</el-select>
</el-form-item>
<el-form-item :label="'单据状态'">
<el-select v-model="searchData.orderStatus" clearable style="width: 100px">
<el-select multiple collapse-tags v-model="searchData.orderStatusList" clearable style="width: 160px">
<el-option label="草稿" value="草稿"></el-option>
<el-option label="待检验" value="待检验"></el-option>
<el-option label="编辑中" value="编辑中"></el-option>
@ -589,6 +589,7 @@
import {
searchInboundNotification, //
saveInboundNotification, //
updateInboundNotification, //
deleteInboundNotification, //
closeInboundNotification, //
issueInboundNotification, //
@ -607,10 +608,8 @@
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import excel from "@/utils/excel-util.js"
import {verifyData} from "@/api/chooselist/chooselist.js"
import qcSOPUploadFile from "./qc_SOP_upload_file"
export default {
components: {
qcSOPUploadFile,
Chooselist,
},
data () {
@ -620,8 +619,8 @@
favorite: false,
// start
exportData: [],
exportName: "根据物料设置检验模板" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["根据物料设置检验模板"],
exportName: "收货入库" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["收货入库"],
exportFooter: [],
exportList: [],
// end
@ -632,7 +631,8 @@
userName: this.$store.state.user.name,
orderNo: '',
orderType: '',
orderStatus: '草稿',
orderStatus: '',
orderStatusList: ['草稿'],
startDate: '',
endDate: '',
page: 1,
@ -1054,7 +1054,8 @@
menuId: this.$route.meta.menuId,
tempWareHouseRow: {},
detailList2: [],
detailModal2: false
detailModal2: false,
currentRow: {}
}
},
@ -1099,6 +1100,7 @@
getDataList () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
this.searchData.orderStatus = this.searchData.orderStatusList.join(',')
this.searchLoading = true
searchInboundNotification(this.searchData).then(({data}) => {
if (data.code === 0) {
@ -1193,18 +1195,40 @@
this.$message.warning('请选择BU!')
return
}
if (this.modalData.orderType === '' || this.modalData.orderType == null) {
this.$message.warning('请选择单据类型!')
return
}
if (this.modalData.requiredInboundDate === '' || this.modalData.requiredInboundDate == null) {
this.$message.warning('请选择要求入库日期!')
return
}
this.saveLoading = true
saveInboundNotification(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
}).finally(()=>{
this.saveLoading = false
})
if (this.modalData.flag === '1') { //
saveInboundNotification(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
}).finally(()=>{
this.saveLoading = false
})
} else { //
updateInboundNotification(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.modalFlag = false
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
}).finally(()=>{
this.saveLoading = false
})
}
},
//

1707
src/views/modules/qc/outboundNotification.vue
File diff suppressed because it is too large
View File

Loading…
Cancel
Save