Browse Source

2026-04-03

增加【打开】功能
master
fengyuan_yang 2 weeks ago
parent
commit
f3469b6f8b
  1. 2
      src/api/qc/Inbound_notification.js
  2. 2
      src/api/qc/outbound_notification.js
  3. 25
      src/views/modules/qc/inboundNotification.vue
  4. 25
      src/views/modules/qc/outboundNotification.vue

2
src/api/qc/Inbound_notification.js

@ -7,6 +7,8 @@ export const searchInboundNotification = data => createAPI('/inbound/searchInbou
export const saveInboundNotification = data => createAPI('/inbound/saveInboundNotification','post',data) export const saveInboundNotification = data => createAPI('/inbound/saveInboundNotification','post',data)
// 编辑收获入库单 // 编辑收获入库单
export const updateInboundNotification = data => createAPI('/inbound/updateInboundNotification','post',data) export const updateInboundNotification = data => createAPI('/inbound/updateInboundNotification','post',data)
// 打开收获入库单
export const openInboundNotification = data => createAPI('/inbound/openInboundNotification','post',data)
// 删除收获入库单 // 删除收获入库单
export const deleteInboundNotification = data => createAPI('/inbound/deleteInboundNotification','post',data) export const deleteInboundNotification = data => createAPI('/inbound/deleteInboundNotification','post',data)
// 关闭收获入库单 // 关闭收获入库单

2
src/api/qc/outbound_notification.js

@ -6,6 +6,8 @@ export const searchOutboundNotification = data => createAPI('/outbound/searchOut
export const saveOutboundNotification = data => createAPI('/outbound/saveOutboundNotification','post',data) export const saveOutboundNotification = data => createAPI('/outbound/saveOutboundNotification','post',data)
// 编辑拣货出库单 // 编辑拣货出库单
export const updateOutboundNotification = data => createAPI('/outbound/updateOutboundNotification','post',data) export const updateOutboundNotification = data => createAPI('/outbound/updateOutboundNotification','post',data)
// 打开拣货出库单
export const openOutboundNotification = data => createAPI('/outbound/openOutboundNotification','post',data)
// 删除拣货出库单 // 删除拣货出库单
export const deleteOutboundNotification = data => createAPI('/outbound/deleteOutboundNotification','post',data) export const deleteOutboundNotification = data => createAPI('/outbound/deleteOutboundNotification','post',data)
// 关闭拣货出库单 // 关闭拣货出库单

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

@ -199,6 +199,7 @@
<template v-if="!authIssue"> <template v-if="!authIssue">
<el-link v-if="scope.row.orderStatus === '草稿' || scope.row.orderStatus === '编辑中'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link> <el-link v-if="scope.row.orderStatus === '草稿' || scope.row.orderStatus === '编辑中'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link>
</template> </template>
<el-link v-if="(scope.row.orderStatus === '已关闭' || scope.row.orderStatus === '已完成') && (scope.row.orderType === '生产入库' || scope.row.orderType === '其他入库')" style="cursor: pointer" @click="openModal(scope.row)">打开</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -806,6 +807,7 @@
searchInboundNotification, // searchInboundNotification, //
saveInboundNotification, // saveInboundNotification, //
updateInboundNotification, // updateInboundNotification, //
openInboundNotification, //
deleteInboundNotification, // deleteInboundNotification, //
closeInboundNotification, // closeInboundNotification, //
issueInboundNotification, // issueInboundNotification, //
@ -1738,6 +1740,29 @@
}) })
}, },
//
openModal (row) {
this.$confirm('确认打开?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let inData = {
site: row.site,
buNo: row.buNo,
orderNo: row.orderNo
}
openInboundNotification(inData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
})
});
},
// //
tabClick (tab, event) { tabClick (tab, event) {
// //

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

@ -200,6 +200,7 @@
<template v-if="!authIssue"> <template v-if="!authIssue">
<el-link v-if="scope.row.orderStatus === '草稿' || scope.row.orderStatus === '编辑中'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link> <el-link v-if="scope.row.orderStatus === '草稿' || scope.row.orderStatus === '编辑中'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link>
</template> </template>
<el-link v-if="(scope.row.orderStatus === '已关闭' || scope.row.orderStatus === '已完成') && (scope.row.orderType === '采购退货' || scope.row.orderType === '其他出库')" style="cursor: pointer" @click="openModal(scope.row)">打开</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -802,6 +803,7 @@
searchOutboundNotification, // searchOutboundNotification, //
saveOutboundNotification, // saveOutboundNotification, //
updateOutboundNotification, // updateOutboundNotification, //
openOutboundNotification, //
deleteOutboundNotification, // deleteOutboundNotification, //
closeOutboundNotification, // closeOutboundNotification, //
issueOutboundNotification, // issueOutboundNotification, //
@ -1793,6 +1795,29 @@
}) })
}, },
//
openModal (row) {
this.$confirm('确认打开?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let inData = {
site: row.site,
buNo: row.buNo,
orderNo: row.orderNo
}
openOutboundNotification(inData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.$message.success('操作成功')
} else {
this.$message.error(data.msg)
}
})
});
},
// //
tabClick (tab, event) { tabClick (tab, event) {
// //

Loading…
Cancel
Save