投诉编号:
').dataFormatter({ value: _item.ComplaintCode })); + _$item.append($('主题:
').dataFormatter({ value: _item.Title })); + _$item.append($('指派人:
').dataFormatter({ value: _item.Sender })); + _$item.append($('指派时间:
').dataFormatter({ + value: _item.SendTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('回复状态:
').dataFormatter({ value: _item.ReplyFlag == 1 ? "已回复" : "未回复" })); + _$item.append($('回复时间:
').dataFormatter({ + value: _item.ReplyTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Sys_ReceiveComplaint/form', title: '详情', type: 'right', param: { keyValue: item.RComplaintId, ReplyFlag: item.ReplyFlag } }); + }, + btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.ReplyFlag !== 1) { + learun.layer.warning("当前投诉意见未回复,无法删除!"); + return false; + } + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_ReceiveComplaint/delete', item.RComplaintId, (data) => { + if (data) {// 删除数据成功 + page.grid.reload(); + } + learun.layer.loading(false); + }); + } + }, '智慧校园提示', ['取消', '确定']); + }, + rowBtns: ['删除'] // 列表行左滑按钮 + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.html new file mode 100644 index 000000000..b821b2cf9 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveComplaint/form/form.html @@ -0,0 +1,17 @@ +投诉编号:
').dataFormatter({ value: _item.ComplaintCode })); + _$item.append($('主题:
').dataFormatter({ value: _item.Title })); + _$item.append($('投诉人:
').dataFormatter({ value: _item.CreateUserName })); + _$item.append($('指派状态:
').dataFormatter({ value: _item.AssignFlag == 1 ? "已指派" : "未指派" })); + _$item.append($('指派时间:
').dataFormatter({ + value: _item.AssignTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('接收人:
').dataFormatter({ value: _item.Receiver })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/Assign/form', title: '详情', type: 'right', param: { keyValue: item.SComplaintId, AssignFlag: item.AssignFlag } }); + }, + //btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + // learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + // if (_index === '1') { + // learun.layer.loading(true, '正在删除该笔数据'); + // learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', item.SComplaintId, (data) => { + // if (data) {// 删除数据成功 + // page.grid.reload(); + // } + // learun.layer.loading(false); + // }); + // } + // }, '智慧校园提示', ['取消', '确定']); + //}, + rowBtns: [] // 列表行左滑按钮 + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.html new file mode 100644 index 000000000..f1d467e3c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/Assign/form/form.html @@ -0,0 +1,22 @@ +投诉编号:
').dataFormatter({ value: _item.ComplaintCode })); + _$item.append($('主题:
').dataFormatter({ value: _item.Title })); + _$item.append($('提交状态:
').dataFormatter({ value: _item.SendFlag == 1 ? "已提交" : "草稿" })); + _$item.append($('提交时间:
').dataFormatter({ + value: _item.SendTime, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('回复状态:
').dataFormatter({ value: _item.ReplyFlag == 1 ? "已回复" : "未回复" })); + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/form', title: '详情', type: 'right', param: { keyValue: item.SComplaintId, SendFlag: item.SendFlag } }); + }, + btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.SendFlag !== 0) { + learun.layer.warning("当前投诉意见已提交,无法删除!"); + return false; + } + learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在删除该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/delete', item.SComplaintId, (data) => { + if (data) {// 删除数据成功 + page.grid.reload(); + } + learun.layer.loading(false); + }); + } + }, '智慧校园提示', ['取消', '确定']); + }, + btnClickOfSubmit: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.SendFlag !== 0) { + learun.layer.warning("当前投诉意见已提交!"); + return false; + } + learun.layer.confirm('确定要提交该笔数据吗?', function (_index) { + if (_index === '1') { + learun.layer.loading(true, '正在提交该笔数据'); + learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/Sys_SendComplaint/submit', item.SComplaintId, (data) => { + if (data) {// 提交数据成功 + page.grid.reload(); + } + learun.layer.loading(false); + }); + } + }, '智慧校园提示', ['取消', '确定']); + }, + btnClickOfReply: function (item, $item, $page) {// 左滑按钮点击事件 + if (item.SendFlag !== 1) { + learun.layer.warning("当前投诉意见未提交,请先提交!"); + return false; + } + if (item.ReplyFlag !== 1) { + learun.layer.warning("当前投诉意见未回复!"); + return false; + } + learun.nav.go({ path: 'EducationalAdministration/Sys_SendComplaint/reply', title: '回复情况', type: 'right', param: { keyValue: item.SComplaintId } }); + }, + rowBtns: [ + '删除', + '提交', + '回复情况' + ] // 列表行左滑按钮 + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.html new file mode 100644 index 000000000..6302b4f9b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_SendComplaint/form/form.html @@ -0,0 +1,17 @@ +