This commit is contained in:
BianLzhaoMin 2024-04-11 16:41:59 +08:00
commit 02d87beddb
10 changed files with 47 additions and 8 deletions

View File

@ -102,6 +102,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="houseId != null and houseId != ''"> <if test="houseId != null and houseId != ''">
AND mhs.house_id = #{houseId} AND mhs.house_id = #{houseId}
</if> </if>
<if test="houseName != null and houseName != ''">
AND (mt.type_name like concat('%', #{houseName}, '%') or
mt1.type_name like concat('%', #{houseName}, '%') or
mt2.type_name like concat('%', #{houseName}, '%'))
</if>
<if test="typeId != null and typeId != ''"> <if test="typeId != null and typeId != ''">
AND mhs.type_id = #{typeId} AND mhs.type_id = #{typeId}
</if> </if>

View File

@ -44,14 +44,16 @@ public class PurchaseCheckInfoController extends BaseController
@ApiOperation("查询新购入库任务列表") @ApiOperation("查询新购入库任务列表")
@GetMapping("/putInList") @GetMapping("/putInList")
public TableDataInfo putInList(PurchaseCheckInfo purchaseCheckInfo) { public TableDataInfo putInList(PurchaseCheckInfo purchaseCheckInfo) {
startPage();
List<PurchaseCheckInfo> list = new ArrayList<>(); List<PurchaseCheckInfo> list = new ArrayList<>();
//判断该组织是否开启综合服务中心审核 //判断该组织是否开启综合服务中心审核
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId(); Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
int re = purchaseCheckServiceCenterService.selectExamineType(companyId); int re = purchaseCheckServiceCenterService.selectExamineType(companyId);
if (re > 0) { if (re > 0) {
//若依框架多个查询会导致分页失效需分批处理
startPage();
list = purchaseCheckInfoService.selectPutInListExamine(purchaseCheckInfo); list = purchaseCheckInfoService.selectPutInListExamine(purchaseCheckInfo);
}else { }else {
startPage();
list = purchaseCheckInfoService.selectPutInListList(purchaseCheckInfo); list = purchaseCheckInfoService.selectPutInListList(purchaseCheckInfo);
} }
return getDataTable(list); return getDataTable(list);

View File

@ -25,6 +25,18 @@ public class PlanManagementDto {
@ApiModelProperty(value = "计划ID") @ApiModelProperty(value = "计划ID")
private Integer planId; private Integer planId;
/** 借调计划ID */
@ApiModelProperty(value = "借调计划ID")
private Long borrowId;
/** 需求单位ID */
@ApiModelProperty(value = "需求单位ID")
private Integer needUnitId;
/** 借出单位ID */
@ApiModelProperty(value = "借出单位ID")
private Integer borrowUnitId;
/** 备注 */ /** 备注 */
@ApiModelProperty(value = "备注") @ApiModelProperty(value = "备注")
private String remark; private String remark;

View File

@ -66,7 +66,8 @@
WHERE WHERE
1=1 1=1
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and (bu.unit_name like concat('%', #{name}, '%') or and (bu.unit_id = #{name} or
bu.unit_name like concat('%', #{name}, '%') or
mt2.type_name like concat('%',#{name},'%') or mt2.type_name like concat('%',#{name},'%') or
mt.type_name like concat('%',#{name},'%')) mt.type_name like concat('%',#{name},'%'))
</if> </if>

View File

@ -409,6 +409,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
pmi.fix_code fixCode, pmi.fix_code fixCode,
pcd.type_id typeId, pcd.type_id typeId,
pcd.task_id taskId, pcd.task_id taskId,
pcd.remark remark,
mt.CODE specsCode, mt.CODE specsCode,
mt.unit_name unitName, mt.unit_name unitName,
mt1.CODE typeCode, mt1.CODE typeCode,

View File

@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) b ) b
<where> <where>
<if test="deviceTypeId!=null and deviceTypeId!=''"> <if test="deviceTypeId!=null and deviceTypeId!=''">
INSTR(b.typeId2,#{deviceTypeId}) > 0 b.typeId2 = #{deviceTypeId}
</if> </if>
<if test="wxTime!=null and wxTime!=''"> <if test="wxTime!=null and wxTime!=''">
AND b.wxTime BETWEEN CONCAT(#{wxTime},' 00:00:00') AND CONCAT(#{wxTime},' 23:59:59') AND b.wxTime BETWEEN CONCAT(#{wxTime},' 00:00:00') AND CONCAT(#{wxTime},' 23:59:59')

View File

@ -282,6 +282,14 @@ export function submitNumOut(params){
}) })
} }
// 当前在用量
export function getUseNumByTypeId(params){
return request({
url: '/material/backApply/getUseNumByTypeId',
method: 'get',
params
})
}

View File

@ -169,7 +169,7 @@ export default {
// }, // },
{ {
id:31, id:31,
name:'机具分公司审核', name:'分管部门审核',
remarkKey:'deptAuditRemark', remarkKey:'deptAuditRemark',
authorKey:'deptAuditBy', authorKey:'deptAuditBy',
timeKey:'deptAuditTime' timeKey:'deptAuditTime'

View File

@ -233,7 +233,8 @@ import {
getDeviceTypeTree, getDeviceTypeTree,
getAgreementInfoById, getAgreementInfoById,
submitLeaseApply, submitLeaseApply,
getUseTypeTreee getUseTypeTreee,
getUseNumByTypeId
} from '@/api/claimAndRefund/receive' } from '@/api/claimAndRefund/receive'
import { ApiSubmitBackApply } from "@/api/claimAndRefund/return" import { ApiSubmitBackApply } from "@/api/claimAndRefund/return"
import { submitBackApplyApi,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js" import { submitBackApplyApi,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
@ -342,6 +343,7 @@ export default {
typeName: '', // typeName: '', //
typeCode: '', // typeCode: '', //
unitNames: '', // unitNames: '', //
useNum: '', //
remark: '', // remark: '', //
preNum: 1, // preNum: 1, //
}, },
@ -762,11 +764,13 @@ export default {
}, },
/////// ///////
deviceTypeChange(val) { async deviceTypeChange(val) {
let nodes = null; let nodes = null;
console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]) console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)] nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
console.log("nodes", nodes) console.log("nodes", nodes)
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
nodes[0].data.useNum = res.data
if (nodes[0].level != 4) { if (nodes[0].level != 4) {
return return
} }
@ -790,6 +794,7 @@ export default {
template.preNum = node.data.num template.preNum = node.data.num
template.typeName = node.pathLabels[2] template.typeName = node.pathLabels[2]
template.typeCode = node.pathLabels[3] template.typeCode = node.pathLabels[3]
template.useNum = node.data.useNum
return template return template
} }
} }

View File

@ -233,7 +233,8 @@ import {
getDeviceTypeTree, getDeviceTypeTree,
getAgreementInfoById, getAgreementInfoById,
submitLeaseApply, submitLeaseApply,
getUseTypeTreee getUseTypeTreee,
getUseNumByTypeId
} from '@/api/claimAndRefund/receive' } from '@/api/claimAndRefund/receive'
import { submitBackApplyApi } from "@/api/claimAndRefund/return" import { submitBackApplyApi } from "@/api/claimAndRefund/return"
import { submitBackApplyApiByCq,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js" import { submitBackApplyApiByCq,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
@ -342,6 +343,7 @@ export default {
typeName: '', // typeName: '', //
typeCode: '', // typeCode: '', //
unitNames: '', // unitNames: '', //
useNum: '', //
remark: '', // remark: '', //
preNum: 1, // preNum: 1, //
}, },
@ -762,11 +764,13 @@ export default {
}, },
/////// ///////
deviceTypeChange(val) { async deviceTypeChange(val) {
let nodes = null; let nodes = null;
console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]) console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)] nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
console.log("nodes", nodes) console.log("nodes", nodes)
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
nodes[0].data.useNum = res.data
if (nodes[0].level != 4) { if (nodes[0].level != 4) {
return return
} }
@ -790,6 +794,7 @@ export default {
template.preNum = node.data.num template.preNum = node.data.num
template.typeName = node.pathLabels[2] template.typeName = node.pathLabels[2]
template.typeCode = node.pathLabels[3] template.typeCode = node.pathLabels[3]
template.useNum = node.data.useNum
return template return template
} }
} }