毛坯扣除修改,添加一次合格,抛光的记录检查功能

This commit is contained in:
2025-03-25 16:34:47 +08:00
parent 8664e48c5a
commit 6e652aa9f3
4 changed files with 92 additions and 1 deletions

View File

@@ -130,3 +130,13 @@ export function generateWmOneTimeRecord(data) {
data: data,
})
}
/**
* 检查一次合格,抛光记录是否正常
*/
export function WmRecordErrorCheck() {
return request({
url: '/mes/wm/WmOneTimeInventory/ErrorCheck',
method: 'get',
})
}

View File

@@ -1356,8 +1356,10 @@ export default {
}
doOutboundByWorkOrderId(queryData)
.then((res) => {
if (res.code === 200) {
if (res.code === 200 && res.data > 0) {
this.$notify.success(`工单${saveWorkorderInfo.clientWorkorder},毛坯库存已扣除!`)
} else {
this.$notify.success(`工单${saveWorkorderInfo.clientWorkorder},毛坯库存未扣除!`)
}
})
.catch((err) => {})

View File

@@ -47,6 +47,9 @@
<el-col :span="1.5">
<el-button type="primary" icon="el-icon-refresh" size="mini" @click="handleRecordSync(1)">自动记录同步</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="danger" icon="el-icon-warning" size="mini" @click="errorDialogShow = true">异常检测</el-button>
</el-col>
<right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<!-- 仓库零件数 -->
@@ -233,6 +236,7 @@
<el-button @click="upload.open = false"> </el-button>
</div>
</el-dialog>
<TheErrorCheckDialog :visible.sync="errorDialogShow"></TheErrorCheckDialog>
</div>
</template>
<script>
@@ -251,11 +255,13 @@ import {
generateWmOneTimeRecord,
} from '@/api/wmsManagement/wmOneTimeInventory.js'
import ThePartNumberSelect from './ThePartNumberSelect.vue'
import TheErrorCheckDialog from '../components/TheErrorCheckDialog/index.vue'
import { getToken } from '@/utils/auth'
export default {
name: 'wmOneTimeinventory',
components: {
ThePartNumberSelect,
TheErrorCheckDialog,
},
data() {
return {
@@ -379,6 +385,7 @@ export default {
QuantitySum: 0,
RealQuantitySum: 0,
MinStocktakingTime: '',
errorDialogShow: false,
}
},
computed: {

View File

@@ -0,0 +1,72 @@
<template>
<div>
<el-dialog v-bind="$attrs" v-on="$listeners" @open="onOpen" @close="onClose" title="记录异常检查" width="80%" :close-on-click-modal="false">
<!-- 工具区域 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="danger" size="mini" @click="handelCheck">执行检查</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" icon="el-icon-download" size="mini" @click="handelExport">导出结果</el-button>
</el-col>
</el-row>
<vxe-table v-loading="loading" ref="xTable" height="300" :row-config="{ isHover: true }" :export-config="{}" :data="dataList">
<vxe-column type="seq" width="60"></vxe-column>
<vxe-column field="name" title="异常名称"></vxe-column>
<vxe-column field="partnumber" title="异常零件号"></vxe-column>
<vxe-column field="description" title="零件号描述"></vxe-column>
<vxe-column field="errorMessage" title="错误信息"></vxe-column>
<vxe-column field="checkTime" title="检查时间"></vxe-column>
</vxe-table>
<div slot="footer">
<el-button type="info" @click="close">关闭</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { WmRecordErrorCheck } from '@/api/wmsManagement/wmOneTimeInventory.js'
export default {
inheritAttrs: false,
components: {},
props: [],
data() {
return {
loading: false,
// 数据列表
dataList: [],
}
},
computed: {},
watch: {},
created() {},
mounted() {},
methods: {
onOpen() {},
onClose() {},
close() {
this.$emit('update:visible', false)
this.$emit('refresh')
this.dataList = []
},
handelCheck() {
this.getList()
},
// 查询数据
getList() {
this.loading = true
WmRecordErrorCheck().then((res) => {
if (res.code == 200) {
this.dataList = res.data
this.loading = false
}
})
},
// 执行导出
handelExport() {
this.$refs.xTable.openExport()
},
},
}
</script>
<style></style>