|
@@ -101,13 +101,13 @@ const initClick = (result) => {
|
|
|
for (let i = 0; i < result.qxbm.length; i++) {
|
|
|
qxbmObj[result.qxbm[i].dictCut] = result.qxbm[i].dictVal
|
|
|
}
|
|
|
- $('.brume-main').on('click', '#addBtn', () => {
|
|
|
+ /*$('.brume-main').on('click', '#addBtn', () => {
|
|
|
$('#form-title').text('新增')
|
|
|
layui.form.val('form', {
|
|
|
id: '',
|
|
|
})
|
|
|
layui.customUtil.autoView('.brume-main', '.brume-form')
|
|
|
- })
|
|
|
+ })*/
|
|
|
$('.brume-form').on('click', '#back', () => {
|
|
|
layui.customUtil.autoView('.brume-main', '.brume-form')
|
|
|
})
|
|
@@ -157,20 +157,30 @@ const initClick = (result) => {
|
|
|
sqsj: new Date(obj.data.sqsj).format('yyyy-MM-dd hh:mm:ss'),
|
|
|
})
|
|
|
layui.customUtil.autoView('.brume-main', '.brume-form')
|
|
|
+ $("#saveBtn").hide();
|
|
|
+
|
|
|
} else if (obj.event == 'caseEvent') {
|
|
|
- layui.layer.confirm('确认要受理吗?', {
|
|
|
- btn: ['受理', '取消']
|
|
|
- }, (index) => {
|
|
|
- layui.api.case(obj.data.id,
|
|
|
- (json) => {
|
|
|
- if (json.code == layui.constants.SUCCESS_CODE) {
|
|
|
- layui.customUtil.refush(json.result, '受理成功', '受理失败')
|
|
|
- } else {
|
|
|
- layui.layer.msg(json.msg, {icon: 5})
|
|
|
- }
|
|
|
- }
|
|
|
- )
|
|
|
+ let sqrhh;
|
|
|
+ if (result.type == 1) {
|
|
|
+ sqrhh = obj.data.gshh
|
|
|
+ } else if (result.type == 2) {
|
|
|
+ sqrhh = obj.data.gdhh
|
|
|
+ } else {
|
|
|
+ sqrhh = obj.data.gqhh
|
|
|
+ }
|
|
|
+ layui.form.val('form', {
|
|
|
+ id: obj.data.id,
|
|
|
+ data_id: obj.data.data_id,
|
|
|
+ sqrxm: obj.data.sqrxm,
|
|
|
+ sqrzjhm: obj.data.sqrzjhm,
|
|
|
+ sqrlxdh: obj.data.sqrlxdh,
|
|
|
+ type: sortObj[result.type],
|
|
|
+ qxbm: qxbmObj[obj.data.qxbm],
|
|
|
+ sqrhh: sqrhh,
|
|
|
+ sqsj: new Date(obj.data.sqsj).format('yyyy-MM-dd hh:mm:ss'),
|
|
|
})
|
|
|
+ layui.customUtil.autoView('.brume-main', '.brume-form')
|
|
|
+ $("#saveBtn").show();
|
|
|
} else if (obj.event == 'download') {
|
|
|
console.log(obj.data)
|
|
|
layui.api.download(obj.data.id, obj.data.data_id)
|