Merge remote-tracking branch 'origin/dev-nx' into dev-nx
This commit is contained in:
commit
aa1ced6f7c
|
|
@ -265,7 +265,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
||||||
taskCode = purchaseCodeRule(TaskTypeConstants.YBF, TaskTypeEnum.REPAIR_TO_BE_SCRAPPED.getCode());
|
taskCode = purchaseCodeRule(TaskTypeConstants.YBF, TaskTypeEnum.REPAIR_TO_BE_SCRAPPED.getCode());
|
||||||
/*taskStatus = 58;
|
/*taskStatus = 58;
|
||||||
taskType = 57;*/
|
taskType = 57;*/
|
||||||
//创建报废任务
|
//创建待报废任务
|
||||||
long scrapTaskId = genTask(taskCode, TaskTypeEnum.REPAIR_TO_BE_SCRAPPED.getCode(), Integer.parseInt(TaskStatusEnum.PENDING_REVIEW.getCode()), tmTaskAgreement, companyId);
|
long scrapTaskId = genTask(taskCode, TaskTypeEnum.REPAIR_TO_BE_SCRAPPED.getCode(), Integer.parseInt(TaskStatusEnum.PENDING_REVIEW.getCode()), tmTaskAgreement, companyId);
|
||||||
for (RepairAuditDetails scrapDetails : scrapNumList) {
|
for (RepairAuditDetails scrapDetails : scrapNumList) {
|
||||||
RepairAuditDetails byRepairId = scrapApplyDetailsMapper.getByRepairId(String.valueOf(scrapDetails.getRepairId()));
|
RepairAuditDetails byRepairId = scrapApplyDetailsMapper.getByRepairId(String.valueOf(scrapDetails.getRepairId()));
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,14 @@ public class ScrapApplyDetailsVO {
|
||||||
*/
|
*/
|
||||||
@Excel(name = "维修单号",sort = 6)
|
@Excel(name = "维修单号",sort = 6)
|
||||||
private String repairNum;
|
private String repairNum;
|
||||||
|
/**
|
||||||
|
* 单位id
|
||||||
|
*/
|
||||||
|
private String unitId;
|
||||||
|
/**
|
||||||
|
* 工程id
|
||||||
|
*/
|
||||||
|
private String projectId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审核状态
|
* 审核状态
|
||||||
|
|
|
||||||
|
|
@ -428,7 +428,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
tk.CODE scrapNum,
|
tk.CODE scrapNum,
|
||||||
tk.task_status taskStatus,
|
tk.task_status taskStatus,
|
||||||
dic.NAME taskStatusName,
|
dic.NAME taskStatusName,
|
||||||
|
bui.unit_id unitId,
|
||||||
bui.unit_name unitName,
|
bui.unit_name unitName,
|
||||||
|
bpl.lot_id projectId,
|
||||||
bpl.lot_name projectName,
|
bpl.lot_name projectName,
|
||||||
su.nick_name createBy,
|
su.nick_name createBy,
|
||||||
tk.create_time createTime,
|
tk.create_time createTime,
|
||||||
|
|
@ -447,8 +449,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN scrap_apply_details sad ON tk.task_id = sad.task_id
|
LEFT JOIN scrap_apply_details sad ON tk.task_id = sad.task_id
|
||||||
LEFT JOIN repair_audit_details rad ON sad.parent_id = rad.id
|
LEFT JOIN repair_audit_details rad ON sad.parent_id = rad.id
|
||||||
LEFT JOIN back_apply_info rad3 ON sad.parent_id = rad3.id
|
LEFT JOIN back_apply_info rad3 ON sad.parent_id = rad3.id
|
||||||
LEFT JOIN repair_apply_details rad2 ON rad.repair_id = rad2.id
|
LEFT JOIN tm_task tk1 ON rad.task_id = tk1.task_id
|
||||||
LEFT JOIN tm_task tk1 ON rad2.task_id = tk1.task_id
|
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
|
|
@ -464,18 +465,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
sad.scrap_source IN ( '1', '2' )
|
sad.scrap_source IN ( '1', '2' )
|
||||||
AND tk.task_type IN ('20' , '21')
|
AND tk.task_type IN ('20' , '21')
|
||||||
<if test="keyword != null and keyword != ''">
|
<if test="keywords != null and keywords != ''">
|
||||||
AND (locate(#{keyword}, tk.create_by) > 0
|
AND (locate(#{keywords}, tk.create_by) > 0
|
||||||
or locate(#{keyword}, tk.CODE) > 0
|
or locate(#{keywords}, tk.CODE) > 0
|
||||||
or locate(#{keyword}, bui.unit_name) > 0
|
or locate(#{keywords}, bui.unit_name) > 0
|
||||||
or locate(#{keyword}, bpl.lot_name) > 0
|
or locate(#{keywords}, bpl.lot_name) > 0
|
||||||
or locate(#{keyword}, tk1.CODE) > 0)
|
or locate(#{keywords}, tk1.CODE) > 0)
|
||||||
</if>
|
</if>
|
||||||
<if test="backUnit != null and backUnit != ''">
|
<if test="backUnit != null and backUnit != ''">
|
||||||
and bui.unit_id = #{backUnit}
|
and bui.unit_id = #{backUnit}
|
||||||
</if>
|
</if>
|
||||||
<if test="repairStatus != null and repairStatus != ''">
|
<if test="taskStatus != null and taskStatus != ''">
|
||||||
and tk.task_status = #{repairStatus}
|
and tk.task_status = #{taskStatus}
|
||||||
</if>
|
</if>
|
||||||
<if test="taskIdList != null and taskIdList != ''">
|
<if test="taskIdList != null and taskIdList != ''">
|
||||||
and tk.task_id in #{taskIdList}
|
and tk.task_id in #{taskIdList}
|
||||||
|
|
@ -483,14 +484,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="backPro != null and backPro != ''">
|
<if test="backPro != null and backPro != ''">
|
||||||
and bpl.lot_id = #{backPro}
|
and bpl.lot_id = #{backPro}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="scrapSource != null and scrapSource != ''">
|
||||||
|
and sad.scrap_source = #{scrapSource}
|
||||||
|
</if>
|
||||||
<if test="type != null and type != ''">
|
<if test="type != null and type != ''">
|
||||||
and mt1.type_id = #{type}
|
and mt1.type_id = #{type}
|
||||||
</if>
|
</if>
|
||||||
<if test="backCode != null and backCode != ''">
|
<if test="backCode != null and backCode != ''">
|
||||||
and locate(#{backCode}, tk.code) > 0
|
and locate(#{backCode}, tk.code) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''">
|
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
||||||
and tk.create_time between #{params.beginTime} and #{params.endTime}
|
and DATE(tk.create_time) between #{beginTime} and #{endTime}
|
||||||
</if>
|
</if>
|
||||||
GROUP BY tk.CODE
|
GROUP BY tk.CODE
|
||||||
order by tk.create_time desc
|
order by tk.create_time desc
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<div class="box1-item_two">
|
<div class="box1-item_two">
|
||||||
<div>
|
<div>
|
||||||
<div class="box_header_div">
|
<div class="box_header_div">
|
||||||
<div class="box_list" v-for="(item, index) of newArr" :key="index" @click="handleClickItem">
|
<div class="box_list" v-for="(item, index) of newArr" :key="index" @click="handleClickItem(index)">
|
||||||
<div class="item-value">
|
<div class="item-value">
|
||||||
{{ item.value }}
|
{{ item.value }}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -48,7 +48,7 @@ export default {
|
||||||
isCollapse: false,
|
isCollapse: false,
|
||||||
newArrOne: [
|
newArrOne: [
|
||||||
{ name: '施工机具总保有量', value: 9999 },
|
{ name: '施工机具总保有量', value: 9999 },
|
||||||
// { url: GROUP, name: '工器具总保有量', value: 9999 },
|
{ url: GROUP, name: '工器具总保有量', value: 9999 },
|
||||||
],
|
],
|
||||||
newArr: [
|
newArr: [
|
||||||
{ url: GROUP, name: '在库机具', value: 999 },
|
{ url: GROUP, name: '在库机具', value: 999 },
|
||||||
|
|
@ -62,7 +62,6 @@ export default {
|
||||||
{ url: GROUP, name: '报废机具', value: 999 },
|
{ url: GROUP, name: '报废机具', value: 999 },
|
||||||
{ url: GROUP, name: '报废机具', value: 999 },
|
{ url: GROUP, name: '报废机具', value: 999 },
|
||||||
],
|
],
|
||||||
maType: 1
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -73,12 +72,6 @@ export default {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
this.getTotalOwnershipApiPage()
|
this.getTotalOwnershipApiPage()
|
||||||
}, 60 * 1000);
|
}, 60 * 1000);
|
||||||
this.$eventBus.$on('maType', (maType) => {
|
|
||||||
this.maType = maType
|
|
||||||
});
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
this.$eventBus.$off('maType');
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTotalOwnershipApiPage() {
|
getTotalOwnershipApiPage() {
|
||||||
|
|
@ -116,10 +109,13 @@ export default {
|
||||||
this.$refs['box1'].style.height = height
|
this.$refs['box1'].style.height = height
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleClickItem() {
|
handleClickItem(index) {
|
||||||
setTimeout(() => {
|
// console.log('🚀 ~ handleClickItem ~ index:', index);
|
||||||
this.$refs.inventoryDialog.setOpen({ open: true, maType: this.maType })
|
if (index < 5) {
|
||||||
}, 10)
|
this.$refs.inventoryDialog.setOpen({ open: true, maType: 1 })
|
||||||
|
} else {
|
||||||
|
this.$refs.inventoryDialog.setOpen({ open: true, maType: 2 })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="count-title">
|
<div class="count-title">
|
||||||
<p>{{ sonTitle }}</p>
|
<p>{{ sonTitle }}</p>
|
||||||
<div class="count-flop" :key="compKey" @click="handleClick">
|
<div class="count-flop" :key="compKey">
|
||||||
<div
|
<div
|
||||||
:class="item != ',' ? 'count-flop-box' : 'count-flop-point'"
|
:class="item != ',' ? 'count-flop-box' : 'count-flop-point'"
|
||||||
v-for="(item, index) in value"
|
v-for="(item, index) in value"
|
||||||
|
|
@ -41,7 +41,6 @@ export default {
|
||||||
value: [],
|
value: [],
|
||||||
numberList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
numberList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||||
compKey: 0,
|
compKey: 0,
|
||||||
maType: ''
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["val", "suffix", 'sonTitle'],
|
props: ["val", "suffix", 'sonTitle'],
|
||||||
|
|
@ -53,18 +52,13 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.value = this.val.toString().split("");
|
this.value = this.val.toString().split("");
|
||||||
this.$eventBus.$on('maType', (maType) => {
|
|
||||||
this.maType = maType
|
|
||||||
});
|
|
||||||
},
|
|
||||||
destroyed() {
|
|
||||||
this.$eventBus.$off('maType');
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick() {
|
handleClick(maType) {
|
||||||
|
console.log('🚀 ~ handleClick ~ maType:', maType);
|
||||||
const params = {
|
const params = {
|
||||||
open: true,
|
open: true,
|
||||||
maType: this.maType
|
maType
|
||||||
}
|
}
|
||||||
this.$refs.materialsDialog.setOpen(params);
|
this.$refs.materialsDialog.setOpen(params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="count-title">
|
<div class="count-title">
|
||||||
<p>{{ sonTitle }}</p>
|
<p>{{ sonTitle }}</p>
|
||||||
<div class="count-flop" :key="compKey" @click="handleClick">
|
<div class="count-flop" :key="compKey">
|
||||||
<div
|
<div
|
||||||
:class="item != ',' ? 'count-flop-box' : 'count-flop-point'"
|
:class="item != ',' ? 'count-flop-box' : 'count-flop-point'"
|
||||||
v-for="(item, index) in value"
|
v-for="(item, index) in value"
|
||||||
|
|
@ -62,10 +62,10 @@ export default {
|
||||||
this.$eventBus.$off('maType');
|
this.$eventBus.$off('maType');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick() {
|
handleClick(maType) {
|
||||||
const params = {
|
const params = {
|
||||||
open: true,
|
open: true,
|
||||||
maType: this.maType
|
maType
|
||||||
}
|
}
|
||||||
this.$refs.returnMaterialsDialog.setOpen(params);
|
this.$refs.returnMaterialsDialog.setOpen(params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,11 @@
|
||||||
<div class="access-rate-box-title-bg">
|
<div class="access-rate-box-title-bg">
|
||||||
<h5 class="access-rate-box-title">领料数据</h5>
|
<h5 class="access-rate-box-title">领料数据</h5>
|
||||||
</div>
|
</div>
|
||||||
<CountFlopOne :val="num" sonTitle="施工机具今日出库"></CountFlopOne>
|
<div @click="handleClick(1)">
|
||||||
<div class="access-rate-box-top">
|
<CountFlopOne :val="num" sonTitle="施工机具今日出库" ref="countFlop"></CountFlopOne>
|
||||||
<CountFlopOne :val="num2" sonTitle="工器具今日出库"></CountFlopOne>
|
</div>
|
||||||
|
<div class="access-rate-box-top" @click="handleClick(2)">
|
||||||
|
<CountFlopOne :val="num2" sonTitle="工器具今日出库" ref="countFlopTools"></CountFlopOne>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -54,7 +56,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleClick(maType) {
|
handleClick(maType) {
|
||||||
this.$refs.countFlopOne.handleClick(maType)
|
if (maType == 1) {
|
||||||
|
this.$refs.countFlop.handleClick(maType)
|
||||||
|
} else {
|
||||||
|
this.$refs.countFlopTools.handleClick(maType)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="access-rate-box-title-bg">
|
<div class="access-rate-box-title-bg">
|
||||||
<h5 class="access-rate-box-title">当月报废分析</h5>
|
<h5 class="access-rate-box-title">当月报废分析</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="accessRateEcharts" @click="handleClick">
|
<div id="accessRateEcharts">
|
||||||
<scrapAnalysisDialog ref="scrapAnalysisDialog" />
|
<scrapAnalysisDialog ref="scrapAnalysisDialog" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -234,11 +234,10 @@ export default {
|
||||||
}
|
}
|
||||||
let myCharts = echarts.init(document.querySelector('#accessRateEcharts'));
|
let myCharts = echarts.init(document.querySelector('#accessRateEcharts'));
|
||||||
myCharts.setOption(echartOption)
|
myCharts.setOption(echartOption)
|
||||||
},
|
myCharts.off('click').on('click', () => {
|
||||||
handleClick() {
|
|
||||||
console.log('handleClick--报废分析')
|
|
||||||
this.$refs.scrapAnalysisDialog.setOpen({ open: true, maType: this.maType})
|
this.$refs.scrapAnalysisDialog.setOpen({ open: true, maType: this.maType})
|
||||||
}
|
})
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,11 @@
|
||||||
<div class="access-rate-box-title-bg">
|
<div class="access-rate-box-title-bg">
|
||||||
<h5 class="access-rate-box-title">退料数据</h5>
|
<h5 class="access-rate-box-title">退料数据</h5>
|
||||||
</div>
|
</div>
|
||||||
<CountFlopTwo :val="num" sonTitle="施工机具今日入库"></CountFlopTwo>
|
<div @click="handleClick(1)">
|
||||||
<div class="access-rate-box-top">
|
<CountFlopTwo :val="num" sonTitle="施工机具今日入库" ref="countFlop"></CountFlopTwo>
|
||||||
<CountFlopTwo :val="num2" sonTitle="工器具今日退料"></CountFlopTwo>
|
</div>
|
||||||
|
<div class="access-rate-box-top" @click="handleClick(2)">
|
||||||
|
<CountFlopTwo :val="num2" sonTitle="工器具今日退料" ref="countFlopTools"></CountFlopTwo>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -53,7 +55,11 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleClick(maType) {
|
handleClick(maType) {
|
||||||
this.$refs.countFlopOne.handleClick(maType)
|
if (maType == 1) {
|
||||||
|
this.$refs.countFlop.handleClick(maType)
|
||||||
|
} else {
|
||||||
|
this.$refs.countFlopTools.handleClick(maType)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -127,12 +127,18 @@ export default {
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
gridIndex: 0,
|
gridIndex: 0,
|
||||||
data: this.carNoList
|
// data: this.carNoList
|
||||||
|
axisLabel: {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
gridIndex: 1,
|
gridIndex: 1,
|
||||||
type: "category",
|
type: "category",
|
||||||
data: this.carNoList
|
// data: this.carNoList
|
||||||
|
axisLabel: {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "y",
|
"name": "y",
|
||||||
|
|
@ -147,7 +153,8 @@ export default {
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#c1c1c1',
|
color: '#c1c1c1',
|
||||||
fontSize: 14,
|
fontSize: 12,
|
||||||
|
margin: 5,
|
||||||
},
|
},
|
||||||
data: this.carNoList
|
data: this.carNoList
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,10 @@ module.exports = {
|
||||||
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
||||||
// target: `https://z.csgmall.com.cn`,
|
// target: `https://z.csgmall.com.cn`,
|
||||||
|
|
||||||
target: `http://10.40.92.13:38080`, //超
|
// target: `http://10.40.92.13:38080`, //超
|
||||||
// target: `http://10.40.92.81:8080`, //韩/
|
// target: `http://10.40.92.81:8080`, //韩/
|
||||||
// target: `http://10.40.92.74:8080`,//旭/
|
// target: `http://10.40.92.74:8080`,//旭/
|
||||||
// target: `http://10.40.92.140:28080`, //帅
|
target: `http://10.40.92.138:28080`, //帅
|
||||||
// target: `http://10.40.92.14:28080`, //福
|
// target: `http://10.40.92.14:28080`, //福
|
||||||
|
|
||||||
//******** 注意事项 ********* */
|
//******** 注意事项 ********* */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue