bug修复

This commit is contained in:
hongchao 2025-03-21 14:08:55 +08:00
parent 13e3f0768c
commit 153e4790b2
8 changed files with 24 additions and 15 deletions

View File

@ -271,8 +271,8 @@ public class ScrapApplyDetailsController extends BaseController {
* 查询预报废任务列表 * 查询预报废任务列表
*/ */
@ApiOperation("查询预报废任务列表") @ApiOperation("查询预报废任务列表")
@PostMapping("/getScrapApplyList") @GetMapping("/getScrapApplyList")
public TableDataInfo getScrapApplyList(@RequestBody ScrapApplyDetails scrapApplyDetails) { public TableDataInfo getScrapApplyList( ScrapApplyDetails scrapApplyDetails) {
Map<String, Object> params = scrapApplyDetails.getParams(); Map<String, Object> params = scrapApplyDetails.getParams();
if (!params.isEmpty()) { if (!params.isEmpty()) {
String beginTime = (String) params.get("beginTime"); String beginTime = (String) params.get("beginTime");

View File

@ -199,7 +199,9 @@
su.nick_name AS modelName, su.nick_name AS modelName,
pisi.CREATE_DATE AS createDate, pisi.CREATE_DATE AS createDate,
pisi.REMARKS AS remark, pisi.REMARKS AS remark,
ROW_NUMBER() OVER (PARTITION BY pisi.`CODE` ORDER BY pisi.CREATE_DATE DESC) AS row_num -- ROW_NUMBER() OVER (PARTITION BY pisi.`CODE` ORDER BY pisi.CREATE_DATE DESC) AS row_num
@row_num := IF(@prev_code = pisi.`CODE`, @row_num + 1, 1) AS row_num,
@prev_code := pisi.`CODE`
FROM FROM
ma_type_put_in_storage_info pisi ma_type_put_in_storage_info pisi
LEFT JOIN ma_type_put_in_storage_details pisd ON pisi.id = pisd.INFO LEFT JOIN ma_type_put_in_storage_details pisd ON pisi.id = pisd.INFO

View File

@ -650,12 +650,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
or locate(#{keyword}, mt.type_name) > 0 or locate(#{keyword}, mt.type_name) > 0
or locate(#{keyword}, mt1.type_name) > 0) or locate(#{keyword}, mt1.type_name) > 0)
</if> </if>
<if test="type != null and type != ''"> <if test="type != null">
AND mt.type_id = #{type} AND mt1.type_id = #{type}
</if>
<if test="typeName != null and typeName != ''">
AND mt1.type_id = #{typeName}
</if> </if>
<!-- <if test="typeName != null and typeName != ''">-->
<!-- AND mt1.type_id = #{typeName}-->
<!-- </if>-->
<if test="status != null and status != ''"> <if test="status != null and status != ''">
AND sad.status = #{status} AND sad.status = #{status}
</if> </if>
@ -826,7 +826,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT SELECT
tk.CODE scrapNum, tk.CODE scrapNum,
tk.task_status taskStatus, tk.task_status taskStatus,
dic.NAME taskStatusName, case tk.task_status
when '120' then
'待审核'
when '121' then
'审核中'
when '122' or '123' then
'已完成'
end taskStatusName,
bui.unit_id unitId, bui.unit_id unitId,
bui.unit_name unitName, bui.unit_name unitName,
bpl.lot_id projectId, bpl.lot_id projectId,

View File

@ -270,7 +270,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sltStatus != null and sltStatus != ''"> <if test="sltStatus != null and sltStatus != ''">
and saa.status = #{sltStatus} and saa.status = #{sltStatus}
</if> </if>
GROUP BY saa.id GROUP BY saa.create_time desc
</select> </select>
<select id="getRelations" resultType="com.bonus.sgzb.base.api.domain.SltAgreementRelation"> <select id="getRelations" resultType="com.bonus.sgzb.base.api.domain.SltAgreementRelation">
select sar.id, select sar.id,

View File

@ -2,7 +2,7 @@ import request from '@/utils/request'
/* 预报废审核列表 */ /* 预报废审核列表 */
export const getForecastWasteListApi = (data) => { export const getForecastWasteListApi = (data) => {
return request.post('/material/scrap/getScrapApplyList', data) return request.get('/material/scrap/getScrapApplyList', { params: data })
} }
/* 预报废审核页面 弹框数据查询 */ /* 预报废审核页面 弹框数据查询 */

View File

@ -134,7 +134,6 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
:loading="submitLoading"
>保存</el-button >保存</el-button
> >
</el-col> </el-col>

View File

@ -302,7 +302,7 @@
label-width="100px" label-width="100px"
> >
<el-form-item label="设备编码" prop="maCode"> <el-form-item label="设备编码" prop="maCode">
<el-input v-model="codeQuery.maCode" maxlength="20" /> <el-input v-model="codeQuery.maCode" maxlength="25" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
@ -633,13 +633,14 @@
</el-table-column> </el-table-column>
<!-- 6.17新增 报废原因等填写 --> <!-- 6.17新增 报废原因等填写 -->
<el-table-column label="报废信息" align="center"> <el-table-column label="报废信息" align="center" v-if="!dialogIsView">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
@click="editScrapInfo" @click="editScrapInfo"
:disabled="row.scrapNum <= 0" :disabled="row.scrapNum <= 0"
> </el-button > </el-button
> >
</template> </template>

View File

@ -75,7 +75,7 @@ export const dialogConfig = {
isSelShow: false,// 表格是否需要复选框 isSelShow: false,// 表格是否需要复选框
isFormShow: true, // 是否显示表单查询组件 isFormShow: true, // 是否显示表单查询组件
formLabel: [ formLabel: [
{ f_label: '类型名称', f_model: 'keywords', f_type: 'sel', f_selList: [], selLabel: 'typeName', selValue: 'typeId' }, { f_label: '类型名称', f_model: 'type', f_type: 'sel', f_selList: [], selLabel: 'typeName', selValue: 'typeId' },
], ],
columnsList: [ columnsList: [