Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx
This commit is contained in:
commit
a538a5eb84
|
|
@ -535,7 +535,7 @@
|
||||||
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
||||||
bpl.lot_id as proId,bpl.lot_name as proName,
|
bpl.lot_id as proId,bpl.lot_name as proName,
|
||||||
bui.unit_id as unitId,bui.unit_name as unitName,
|
bui.unit_id as unitId,bui.unit_name as unitName,
|
||||||
lai.lease_person as leasePerson, lai.phone as leasePhone,lai.lease_type as leaseType, lai.estimate_lease_time as estimateLeaseTime,su.user_name as applyFor,d.`name` as taskName,
|
lai.lease_person as leasePerson, lai.phone as leasePhone,lai.lease_type as leaseType, lai.estimate_lease_time as estimateLeaseTime,su.nick_name as applyFor,d.`name` as taskName,
|
||||||
case when d.id = '31' then lai.company_audit_remark
|
case when d.id = '31' then lai.company_audit_remark
|
||||||
when d.id = '32' then lai.dept_audit_remark
|
when d.id = '32' then lai.dept_audit_remark
|
||||||
when d.id = '33' then lai.direct_audit_remark
|
when d.id = '33' then lai.direct_audit_remark
|
||||||
|
|
@ -1041,22 +1041,23 @@
|
||||||
d.id AS examineStatusId,
|
d.id AS examineStatusId,
|
||||||
bai.agreement_code AS agreementCode,
|
bai.agreement_code AS agreementCode,
|
||||||
tt.create_time AS createTimes,
|
tt.create_time AS createTimes,
|
||||||
IFNULL(sum(lad.pre_num),0) as preCountNum,
|
IFNULL( sum( lad.pre_num ), 0 ) AS preCountNum,
|
||||||
IFNULL(sum(lad.al_num),0) as alNum,
|
IFNULL( sum( lad.al_num ), 0 ) AS alNum,
|
||||||
tt.update_time AS updateTimes
|
tt.update_time AS updateTimes
|
||||||
from
|
FROM
|
||||||
lease_apply_info lai
|
lease_apply_info lai
|
||||||
LEFT JOIN tm_task tt on lai.task_id = tt.task_id
|
LEFT JOIN tm_task tt ON lai.task_id = tt.task_id
|
||||||
LEFT JOIN sys_dic d ON d.id = tt.task_status
|
LEFT JOIN sys_dic d ON d.id = tt.task_status
|
||||||
LEFT JOIN tm_task_agreement tta ON lai.task_id = tta.task_id
|
LEFT JOIN tm_task_agreement tta ON lai.task_id = tta.task_id
|
||||||
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
||||||
LEFT JOIN bm_project_lot bpl ON bpl.lot_id = bai.project_id
|
LEFT JOIN bm_project_lot bpl ON bpl.lot_id = bai.project_id
|
||||||
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
||||||
LEFT JOIN lease_apply_details lad on lai.id = lad.parennt_id
|
LEFT JOIN lease_apply_details lad ON lai.id = lad.parennt_id
|
||||||
LEFT JOIN ma_type_keeper mtk on lad.type_id = mtk.type_id
|
LEFT JOIN ( SELECT mtk.type_id, mtk.user_id FROM ma_type_keeper mtk LEFT JOIN lease_apply_details lad1 ON lad1.type_id = mtk.type_id LIMIT 1 ) aa ON lad.type_id = aa.type_id
|
||||||
WHERE tt.task_status in(33,34,35)
|
WHERE
|
||||||
|
tt.task_status IN ( 33, 34, 35 )
|
||||||
<if test="userId != 1">
|
<if test="userId != 1">
|
||||||
and mtk.user_id = #{userId}
|
and aa.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
<if test="code != null and code != ''">
|
<if test="code != null and code != ''">
|
||||||
and tt.code like concat('%', #{code}, '%')
|
and tt.code like concat('%', #{code}, '%')
|
||||||
|
|
@ -1070,8 +1071,11 @@
|
||||||
<if test="taskStatus != null">
|
<if test="taskStatus != null">
|
||||||
and tt.task_status = #{taskStatus}
|
and tt.task_status = #{taskStatus}
|
||||||
</if>
|
</if>
|
||||||
GROUP BY lai.id
|
GROUP BY
|
||||||
ORDER BY tt.task_status,tt.create_time desc
|
lai.id
|
||||||
|
ORDER BY
|
||||||
|
tt.task_status,
|
||||||
|
tt.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="getLeaseDetailByParentId" resultType="com.bonus.sgzb.app.domain.TmTask">
|
<select id="getLeaseDetailByParentId" resultType="com.bonus.sgzb.app.domain.TmTask">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
|
||||||
|
|
@ -294,6 +294,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
||||||
scrapApplyDetails.setCompanyId((long) companyId);
|
scrapApplyDetails.setCompanyId((long) companyId);
|
||||||
scrapApplyDetails.setAuditRemark(bean.getScrapReason());
|
scrapApplyDetails.setAuditRemark(bean.getScrapReason());
|
||||||
//根据fileIds获取所有的图片地址
|
//根据fileIds获取所有的图片地址
|
||||||
|
if (bean.getFileIds()!=null){
|
||||||
String[] fileIsList = bean.getFileIds().split(",");
|
String[] fileIsList = bean.getFileIds().split(",");
|
||||||
StringBuffer fileUrl = new StringBuffer();
|
StringBuffer fileUrl = new StringBuffer();
|
||||||
for (int i = 0; i < fileIsList.length; i++) {
|
for (int i = 0; i < fileIsList.length; i++) {
|
||||||
|
|
@ -306,6 +307,7 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scrapApplyDetails.setFileUrl(fileUrl.toString());
|
scrapApplyDetails.setFileUrl(fileUrl.toString());
|
||||||
|
}
|
||||||
scrapApplyDetailsMapper.insertScrapApplyDetails(scrapApplyDetails);
|
scrapApplyDetailsMapper.insertScrapApplyDetails(scrapApplyDetails);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -335,6 +335,14 @@ import {
|
||||||
export default {
|
export default {
|
||||||
// name: "ReceiveApply",
|
// name: "ReceiveApply",
|
||||||
dicts: ['sys_normal_disable'],
|
dicts: ['sys_normal_disable'],
|
||||||
|
props: {
|
||||||
|
routerParams: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
|
@ -363,7 +371,7 @@ export default {
|
||||||
|
|
||||||
time: null, //申请时间
|
time: null, //申请时间
|
||||||
unitId: null, //来往单位id
|
unitId: null, //来往单位id
|
||||||
proId: null, //工程id
|
proId: undefined, //工程id
|
||||||
|
|
||||||
types: 1, // 1申请列表 2审核列表
|
types: 1, // 1申请列表 2审核列表
|
||||||
keyWord: '',
|
keyWord: '',
|
||||||
|
|
@ -374,6 +382,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if (this.routerParams.pageNum) {
|
||||||
|
this.queryParams = this.routerParams
|
||||||
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
|
|
@ -407,8 +418,8 @@ export default {
|
||||||
id: this.queryParams.proId,
|
id: this.queryParams.proId,
|
||||||
}
|
}
|
||||||
const res = await getUnitData(params)
|
const res = await getUnitData(params)
|
||||||
|
res.data = res.data.filter(item => item != null)
|
||||||
this.unitList = res.data
|
this.unitList = res.data
|
||||||
console.log('GetUnitData ======================', res)
|
|
||||||
},
|
},
|
||||||
// 获取 工程名称 列表数据
|
// 获取 工程名称 列表数据
|
||||||
async GetProData() {
|
async GetProData() {
|
||||||
|
|
@ -416,8 +427,8 @@ export default {
|
||||||
id: this.queryParams.unitId,
|
id: this.queryParams.unitId,
|
||||||
}
|
}
|
||||||
const res = await getProData(params)
|
const res = await getProData(params)
|
||||||
|
res.data = res.data.filter(item => item != null)
|
||||||
this.proList = res.data
|
this.proList = res.data
|
||||||
console.log('GetProData ======================', res)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表单重置
|
// 表单重置
|
||||||
|
|
@ -438,9 +449,18 @@ export default {
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.queryParams.time = []
|
this.queryParams = {
|
||||||
this.queryParams.unitId = ''
|
pageNum: 1,
|
||||||
this.queryParams.proId = ''
|
pageSize: 10,
|
||||||
|
dictName: undefined,
|
||||||
|
dictType: undefined,
|
||||||
|
status: undefined,
|
||||||
|
time: null, //申请时间
|
||||||
|
unitId: null, //来往单位id
|
||||||
|
proId: undefined, //工程id
|
||||||
|
types: 1, // 1申请列表 2审核列表
|
||||||
|
keyWord: '',
|
||||||
|
}
|
||||||
this.resetForm('queryForm')
|
this.resetForm('queryForm')
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
|
|
@ -477,7 +497,7 @@ export default {
|
||||||
// this.$tab.refreshPage()
|
// this.$tab.refreshPage()
|
||||||
// })
|
// })
|
||||||
|
|
||||||
this.$emit('viewPicking', row.taskId)
|
this.$emit('viewPicking', row.taskId, this.queryParams)
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
|
@ -488,7 +508,7 @@ export default {
|
||||||
// isEdit: true,
|
// isEdit: true,
|
||||||
// },
|
// },
|
||||||
// })
|
// })
|
||||||
this.$emit('editPicking', row.taskId)
|
this.$emit('editPicking', row.taskId, this.queryParams)
|
||||||
},
|
},
|
||||||
/** 驳回按钮操作 */
|
/** 驳回按钮操作 */
|
||||||
handleUpdate2(row) {
|
handleUpdate2(row) {
|
||||||
|
|
@ -500,7 +520,7 @@ export default {
|
||||||
// isBack: true,
|
// isBack: true,
|
||||||
// },
|
// },
|
||||||
// })
|
// })
|
||||||
this.$emit('editPicking', row.taskId, row.taskStatus)
|
this.$emit('editPicking', row.taskId, this.queryParams, row.taskStatus)
|
||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
async handleDelete(row) {
|
async handleDelete(row) {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
:isView="isView"
|
:isView="isView"
|
||||||
:isEdit="isEdit"
|
:isEdit="isEdit"
|
||||||
:rejectTaskStatus="rejectTaskStatus"
|
:rejectTaskStatus="rejectTaskStatus"
|
||||||
|
:routerParams="routerParams"
|
||||||
@addPicking="addPicking"
|
@addPicking="addPicking"
|
||||||
@viewPicking="viewPicking"
|
@viewPicking="viewPicking"
|
||||||
@editPicking="editPicking"
|
@editPicking="editPicking"
|
||||||
|
|
@ -38,6 +39,7 @@ export default {
|
||||||
rejectTaskStatus: '',
|
rejectTaskStatus: '',
|
||||||
isView: false,
|
isView: false,
|
||||||
isEdit: false,
|
isEdit: false,
|
||||||
|
routerParams: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -48,23 +50,26 @@ export default {
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
this.pageContent = '新增领料任务'
|
this.pageContent = '新增领料任务'
|
||||||
this.isShowComponent = 'AddPicking'
|
this.isShowComponent = 'AddPicking'
|
||||||
|
this.routerParams = {}
|
||||||
},
|
},
|
||||||
/* 查看领料任务 */
|
/* 查看领料任务 */
|
||||||
viewPicking(taskId) {
|
viewPicking(taskId, routerParams) {
|
||||||
this.viewTaskId = taskId
|
this.viewTaskId = taskId
|
||||||
this.pageContent = '领料任务详情'
|
this.pageContent = '领料任务详情'
|
||||||
this.isView = false
|
this.isView = false
|
||||||
this.isEdit = true
|
this.isEdit = true
|
||||||
this.isShowComponent = 'AddPicking'
|
this.isShowComponent = 'AddPicking'
|
||||||
|
this.routerParams = routerParams
|
||||||
},
|
},
|
||||||
/* 编辑和驳回提交 */
|
/* 编辑和驳回提交 */
|
||||||
editPicking(taskId, taskStatus) {
|
editPicking(taskId, routerParams, taskStatus) {
|
||||||
this.viewTaskId = taskId
|
this.viewTaskId = taskId
|
||||||
this.rejectTaskStatus = taskStatus || null
|
this.rejectTaskStatus = taskStatus || null
|
||||||
this.isView = true
|
this.isView = true
|
||||||
this.isEdit = true
|
this.isEdit = true
|
||||||
this.pageContent = '领料任务编辑'
|
this.pageContent = '领料任务编辑'
|
||||||
this.isShowComponent = 'AddPicking'
|
this.isShowComponent = 'AddPicking'
|
||||||
|
this.routerParams = routerParams
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
this.isShowComponent = 'Home'
|
this.isShowComponent = 'Home'
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,7 @@ export default {
|
||||||
{ name: '待内部审核', id: 32 },
|
{ name: '待内部审核', id: 32 },
|
||||||
{ name: '待出库', id: 33 },
|
{ name: '待出库', id: 33 },
|
||||||
{ name: '出库进行中', id: 34 },
|
{ name: '出库进行中', id: 34 },
|
||||||
{ name: '已完成', id: 35 },
|
{ name: '完成', id: 35 },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
v-model="queryParams.unitId"
|
v-model="queryParams.unitId"
|
||||||
placeholder="请选择单位名称"
|
placeholder="请选择单位名称"
|
||||||
clearable
|
clearable
|
||||||
|
filterable
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in unitList"
|
v-for="item in unitList"
|
||||||
|
|
@ -720,6 +721,8 @@ export default {
|
||||||
//编码出库
|
//编码出库
|
||||||
codeOut(row) {
|
codeOut(row) {
|
||||||
// this.title = '编码出库'
|
// this.title = '编码出库'
|
||||||
|
this.resetForm('codeOutForm')
|
||||||
|
this.resetForm('outQuery')
|
||||||
this.openCode = true
|
this.openCode = true
|
||||||
this.outNum = row.outNum
|
this.outNum = row.outNum
|
||||||
this.outQuery.typeId = row.typeId
|
this.outQuery.typeId = row.typeId
|
||||||
|
|
@ -732,6 +735,7 @@ export default {
|
||||||
// this.title = '数量出库'
|
// this.title = '数量出库'
|
||||||
this.openNum = true
|
this.openNum = true
|
||||||
this.resetForm('numOutForm')
|
this.resetForm('numOutForm')
|
||||||
|
this.resetForm('outQuery')
|
||||||
// console.log(row)
|
// console.log(row)
|
||||||
let obj = {}
|
let obj = {}
|
||||||
this.$set(obj, 'taskId', row.taskId)
|
this.$set(obj, 'taskId', row.taskId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue