领料出库-增加手动出库结单

This commit is contained in:
binbin_pan 2024-06-05 15:41:36 +08:00
parent cd66690bd5
commit c316048317
3 changed files with 48 additions and 9 deletions

View File

@ -300,7 +300,14 @@ export function auditAll(params){
})
}
// 手动出库结单
export function outboundCompleted(params){
return request({
url: '/base/tm_task/outboundCompleted',
method: 'post',
data: params
})
}

View File

@ -286,7 +286,7 @@
@click="codeOut(scope.row)"
v-if="
scope.row.manageType == 0 &&
scope.row.outNum != 0
scope.row.status != 0
"
>
编码出库
@ -297,12 +297,20 @@
v-if="
(scope.row.manageType == 1 ||
scope.row.manageType == 2) &&
scope.row.outNum != 0
scope.row.status != 2
"
@click="numOut(scope.row)"
>
数量出库
</el-button>
<el-button
size="mini"
type="primary"
v-if="scope.row.status != 2"
@click="manualOperation(scope.row)"
>
出库结单
</el-button>
</template>
</el-table-column>
</el-table>
@ -520,6 +528,7 @@ import {
getDetailsByTypeId,
submitOut,
submitNumOut,
outboundCompleted,
} from '@/api/claimAndRefund/receive.js'
import { getTypeList } from '@/api/store/warehousing'
import { equipmentTypeTree } from '@/api/store/tools'
@ -740,6 +749,28 @@ export default {
this.$set(obj, 'num', row.num) //
this.outNumList = [obj]
},
//
manualOperation(row) {
//
this.$confirm('是否确认出库结单?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
outboundCompleted({ id: this.dialogQuery.id, typeId: row.typeId }).then((response) => {
this.$modal.msgSuccess('出库结单成功')
this.handleDialogQuery()
this.handleQuery()
})
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消出库结单',
})
})
},
handleOutQuery() {
this.outQuery.pageNum = 1
this.getCodeList()

View File

@ -507,13 +507,14 @@ export default {
this.$store
.dispatch('Login', this.loginForm)
.then(() => {
if (localStorage.getItem('isCode') == 1) {
this.$router.push({ path: '/resetPassword' }).catch(() => {})
} else {
this.$router.push({ path: '/' }).catch(() => {})
}
//
// if (localStorage.getItem('isCode') == 1) {
// this.$router.push({ path: '/resetPassword' }).catch(() => {})
// } else {
// this.$router.push({ path: '/' }).catch(() => {})
// }
this.$router.push({ path: '/' }).catch(() => {})
})
.catch(() => {
this.loading = false