Browse Source

app2.0:增加学生请销假;修改学生消费记录,掌上评教;app:修改学生消费记录;

yanshi
dyy 2 years ago
parent
commit
c3a6df3ccb
8 changed files with 716 additions and 12 deletions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/StuConsumption.js
  2. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/form/form.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuConsumption/StuConsumptionEntity.cs
  4. +13
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
  5. +411
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/DtStuLeave/list.vue
  6. +262
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/DtStuLeave/single.vue
  7. +10
    -6
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/EvaluationTeach/list.vue
  8. +14
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuConsumption/list.vue

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/StuConsumption.js View File

@@ -74,7 +74,7 @@
if (param.begin && param.end) {
_postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end });
}
learun.httpget(config.webapi + 'learun/EducationalAdministration/StuConsumption/pagelist', _postParam, (data) => {
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuConsumption/pagelist', _postParam, (data) => {
$page.find('.lr-badge').text('0');
if (data) {
$page.find('.lr-badge').text(data.records);
@@ -123,7 +123,7 @@
learun.layer.confirm('确定要删除该笔数据吗?', function (_index) {
if (_index === '1') {
learun.layer.loading(true, '正在删除该笔数据');
learun.httppost(config.webapi + 'learun/EducationalAdministration/StuConsumption/delete', item.SID , (data) => {
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/StuConsumption/delete', item.SID , (data) => {
if (data) {// 删除数据成功
page.grid.reload();
}


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/form/form.js View File

@@ -61,7 +61,7 @@
learun.layer.confirm('确定要删除该笔数据吗?', function (_index) {
if (_index === '1') {
learun.layer.loading(true, '正在删除该笔数据');
learun.httppost(config.webapi + 'learun/EducationalAdministration/StuConsumption/delete', keyValue, (data) => {
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/StuConsumption/delete', keyValue, (data) => {
learun.layer.loading(false);
if (data) {// 删除数据成功
learun.nav.closeCurrent();
@@ -88,7 +88,7 @@
_postData.keyValue = keyValue;
_postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet());
learun.layer.loading(true, '正在提交数据');
learun.httppost(config.webapi + 'learun/EducationalAdministration/StuConsumption/save', _postData, (data) => {
learun.httppost(config.webapi + 'learun/adms/EducationalAdministration/StuConsumption/save', _postData, (data) => {
learun.layer.loading(false);
if (data) {// 表单数据保存成功
if (keyValue) {
@@ -115,7 +115,7 @@
$header.find('.lr-form-header-btnlist').show();
// 获取表单数据
learun.layer.loading(true, '获取表单数据');
learun.httpget(config.webapi + 'learun/EducationalAdministration/StuConsumption/form', keyValue, (data) => {
learun.httpget(config.webapi + 'learun/adms/EducationalAdministration/StuConsumption/form', keyValue, (data) => {
if (data) {
for (var id in data) {
if (data[id].length) {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuConsumption/StuConsumptionEntity.cs View File

@@ -28,7 +28,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 记录序号
/// </summary>
[Column("ID")]
public string ID { get; set; }
public Int64? ID { get; set; }
/// <summary>
/// 企业代码
/// </summary>


+ 13
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json View File

@@ -1118,6 +1118,19 @@
"style": {
"navigationBarTitleText": "详情"
}
},
//学生请销假
{
"path": "pages/EducationalAdministration/DtStuLeave/list",
"style": {
"navigationBarTitleText": "学生请销假"
}
},
{
"path": "pages/EducationalAdministration/DtStuLeave/single",
"style": {
"navigationBarTitleText": "详情"
}
}


+ 411
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/DtStuLeave/list.vue View File

@@ -0,0 +1,411 @@
<template>
<view class="page">
<!-- 主列表页 -->
<view :class="sideOpen ? 'show' : ''" class="mainpage" style="padding-top: 80rpx;">
<!-- 顶部条目/分页信息栏 -->
<l-customlist-banner @buttonClick="sideOpen = true">{{ tips }}</l-customlist-banner>
<!-- 滚动列表,跨端支持上拉/下拉 -->
<l-scroll-list v-if="ready" @pullDown="pullDown" @toBottom="fetchList()" ref="list">
<l-customlist :tips="loadState" showTips>
<!-- 单条记录 -->
<view class="customlist-item" v-for="item of list" :key="item.Id">
<view class="customlist-item-field">
<text class="customlist-item-field-title">所属系:</text>
{{ displayListItem(item, 'CreateUserDeptNo') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">班级:</text>
{{ displayListItem(item, 'CreateUserClassNo') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">申请用户:</text>
{{ displayListItem(item, 'CreateUserName') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">申请类型:</text>
{{ displayListItem(item, 'LeaveType') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">开始时间:</text>
{{ displayListItem(item, 'BeginDate') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">结束时间:</text>
{{ displayListItem(item, 'EndDate') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">申请理由:</text>
{{ displayListItem(item, 'LeaveReason') }}
</view>
<view class="customlist-item-field">
<text class="customlist-item-field-title">审核状态:</text>
{{ item.FlowNo==0?'草稿':item.FlowNo ==1?'审批中':item.FlowNo==2?'请假中':item.FlowNo==3?'已销假':'' }}
</view>
<view class="customlist-banner-action">
<!-- <view
@click="action('cancel',item.Id,item)"
class="customlist-banner-action-btn line-green text-sm"
style="border: currentColor 1px solid"
>
<l-icon type="close" />
销假
</view> -->
<view
@click="action('submit',item.Id,item)"
class="customlist-banner-action-btn line-yellow text-sm"
style="border: currentColor 1px solid"
>
<l-icon type="check" />
提交
</view>
<view
@click="action('delete',item.Id,item)"
class="customlist-banner-action-btn line-red text-sm"
style="border: currentColor 1px solid"
>
<l-icon type="delete" />
删除
</view>
<view
@click="action('edit', item.Id,item)"
class="customlist-banner-action-btn line-blue text-sm"
style="border: currentColor 1px solid"
>
<l-icon type="edit" />
编辑
</view>
<view
@click="action('view', item.Id,item)"
class="customlist-banner-action-btn line-blue text-sm"
style="border: currentColor 1px solid; min-width: 160rpx"
>
查看
<l-icon type="right" />
</view>
</view>
</view>
</l-customlist>
</l-scroll-list>
</view>
<!-- 关闭侧边抽屉按钮 -->
<view @click="sideOpen = false" :class="sideOpen ? 'show' : ''" class="sideclose">
<l-icon type="pullright" color="blue" />
</view>
<!-- 侧边栏,用于设置查询条件 -->
<scroll-view :class="sideOpen ? 'show' : ''" class="sidepage" scroll-y>
<view v-if="ready" class="padding">
<!-- <l-customlist-sidepage-datefilter
v-model="dateRange"
@change="searchChange"
title="按时间日期查询: "
ref="datefilter"
class="margin-bottom"
/> -->
<l-select v-model="queryData.CreateUserDeptNo" @change="searchChange" :range="dataSource.CreateUserDeptNo" title="所属系" placeholder="按所属系查询" />
<l-select v-model="queryData.CreateUserClassNo" @change="searchChange" :range="dataSource.CreateUserClassNo" title="班级" placeholder="按班级查询" />
<l-select v-model="queryData.LeaveType" @change="searchChange" :range="dataSource.LeaveType" title="申请类型" placeholder="按申请类型查询" />
<!-- 重置查询条件按钮 -->
<view class="padding-tb">
<l-button @click="reset" line="orange" class="block" block>重置查询条件</l-button>
</view>
</view>
</scroll-view>
<l-customlist-add v-if="!sideOpen" @click="action('add')" />
</view>
</template>
<script>
/*
* 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 上海力软信息技术有限公司
* 创建人:超级管理员
* 日 期:2020-10-14 12:15
* 描 述:学生请销假
*/
/**
* 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
* 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
* { "path": "pages/EducationalAdministration/DtStuLeave/list", "style": { "navigationBarTitleText": "表单列表页" } }
*
* (navigationBarTitleText 字段为本页面的标题文本,可以修改)
* (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
*/
import moment from 'moment'
import get from 'lodash/get'
import set from 'lodash/set'
import pickBy from 'lodash/pickBy'
import mapValues from 'lodash/mapValues'
export default {
data() {
return {
// 数据项的数据类型、结构
scheme: {
CreateUserDeptNo: { type: 'select', dataSource: '1', dataSourceId: 'CdDeptInfo,deptname,deptno' },
CreateUserClassNo: { type: 'select', dataSource: '1', dataSourceId: 'bjsj,classname,classno' },
CreateUserName: { type: 'organize',dataType:'user' },
LeaveType: { type: 'select', dataSource: '1', dataSourceId: 'StuLeaveType,typename,typeno' },
BeginDate: { type: 'datetime', dateformat: '1' },
EndDate: { type: 'datetime', dateformat: '1' },
LeaveReason: { type: 'text' },
FlowNo: { type: 'text' },
},
// 查询条件
searchData: {},
defaultQueryData: {},
queryData: {
CreateUserDeptNo:'',
CreateUserClassNo:'',
LeaveType:'',
},
// 数据源
dataSource: {
CreateUserDeptNo:[],
CreateUserClassNo:[],
// LeaveType:Object.values(this.GET_GLOBAL('dataDictionary').LeaveType).map(t => ({ value: t.value, text: t.text })),
LeaveType:[],
},
// 时间查询参数
dateRange: null,
// 页面相关参数
ready: false,
tips: '加载中...',
loadState: '向下翻以加载更多',
sideOpen: false,
// 列表与分页信息
page: 1,
total: 2,
list: []
}
},
async onLoad() {
await this.init()
},
onUnload() {
this.OFF('EducationalAdministrationDtStuLeave-list-change')
},
methods: {
// 页面初始化
async init() {
this.ON('EducationalAdministrationDtStuLeave-list-change', this.refreshList)
// 拉取加载列表和数据源
await Promise.all([
this.FETCH_DATASOURCE('CdDeptInfo').then(result => {
this.dataSource.CreateUserDeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno }));
}),
this.FETCH_DATASOURCE('bjsj').then(result => {
this.dataSource.CreateUserClassNo = result.data.map(t => ({ text: t.classname, value: t.classno }));
}),
this.FETCH_DATASOURCE('StuLeaveType').then(result => {
this.dataSource.LeaveType = result.data.map(t => ({ text: t.typename, value: t.typeno }));
}),
() => {}
])
await this.fetchList()
// 初始化查询条件
this.defaultQueryData = this.COPY(this.queryData)
this.ready = true
},
// 拉取列表
async fetchList() {
if (this.page > this.total) { return }
const result = await this.HTTP_GET(
'learun/EducationalAdministration/DtStuLeave/pagelist',
{
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序)
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序
pagination: { rows: 10, page: this.page, sidx: 'Id', sord: 'DESC' },
queryJson: JSON.stringify(this.searchData)
},
'加载数据时出错'
)
if (!result) { return }
this.total = result.total
this.page = result.page + 1
this.list = this.list.concat(result.rows)
this.tips = `已加载 ${Math.min(result.page, result.total)} / ${result.total} 页,共 ${result.records} 项`
this.loadState = result.page >= result.total ? '已加载所有项目' : '向下翻以加载更多'
},
// 刷新清空列表
async refreshList() {
this.page = 1
this.total = 2
this.list = []
await this.fetchList()
},
// 列表下拉
pullDown() {
this.refreshList().then(() => {
this.$refs.list.stopPullDown()
})
},
// 设置搜索条件
async searchChange() {
const result = {}
// 时间查询相关参数
if (this.dateRange) {
result.StartTime = this.dateRange.start
result.EndTime = this.dateRange.end
}
// 将其他查询项添加到查询 JSON 中
const queryObj = pickBy(this.queryData, t => (Array.isArray(t) ? t.length > 0 : t))
Object.assign(result, mapValues(queryObj, t => (Array.isArray(t) ? t.join(',') : t)))
this.searchData = result
await this.refreshList()
},
// 点击「清空查询条件」按钮
reset() {
// this.$refs.datefilter.changeDateRange('all')
this.queryData = this.COPY(this.defaultQueryData)
this.searchChange()
},
// 点击「编辑」、「查看」、「添加」、「删除」、「提交」、「销假」按钮
async action(type, id = '',item) {
switch (type) {
case 'view':
this.NAV_TO(`./single?type=view&id=${id}&FlowNo=${item.FlowNo}`)
return
case 'add':
this.NAV_TO('./single?type=create')
return
case 'edit':
if(item.FlowNo != 0){
this.TOAST("当前项已提交不可编辑!");
return;
}
this.NAV_TO(`./single?type=edit&id=${id}&FlowNo=${item.FlowNo}`)
return
case 'delete':
if(item.FlowNo != 2){
this.TOAST("当前项目暂不能销假!");
return;
}
if (!(await this.CONFIRM('删除项目', '确定要删除该笔数据吗?', true))) {
return
}
this.HTTP_POST('learun/EducationalAdministration/DtStuLeave/delete', id, '删除失败').then(success => {
if(!success) { return }
this.TOAST('删除成功', 'success')
this.refreshList()
})
return
case 'submit':
if(item.FlowNo != 0){
this.TOAST("当前项目已提交,请勿重复提交!");
return;
}
if (!(await this.CONFIRM('提交项目', '确定要提交该笔数据吗?', true))) {
return
}
this.HTTP_POST('learun/EducationalAdministration/DtStuLeave/submit', id, '提交失败').then(success => {
if(!success) { return }
this.TOAST('提交成功', 'success')
this.refreshList()
})
return
case 'cancel':
return
default:
return
}
},
// 显示列表中的标题项
displayListItem(item, field) {
const fieldItem = this.scheme[field]
const value = item[field]
switch (fieldItem.type) {
case 'currentInfo':
case 'organize':
return fieldItem.dataType === 'time' ? value : get(this.GET_GLOBAL(fieldItem.dataType), `${value}.name`, '')
case 'radio':
case 'select':
const selectItem = this.dataSource[field].find(t => t.value === String(value))
return get(selectItem, 'text', '')
case 'checkbox':
if (!value || value.split(',').length <= 0) { return '' }
const checkboxItems = value.split(',')
return this.dataSource[field].filter(t => checkboxItems.includes(t.value)).map(t => t.text).join(',')
case 'datetime':
if (!value) { return '' }
return moment(value).format(Number(fieldItem.dateformat) === 0 ? 'YYYY年 M月 D日' : 'YYYY-MM-DD HH:mm')
default: return value === null || value === undefined ? '' : value
}
}
}
}
</script>
<style lang="less" scoped>
@import '~@/common/css/sidepage.less';
@import '~@/common/css/customlist.less';

.customlist-banner-action {
margin-top: 20rpx;
text-align: right;

.customlist-banner-action-btn {
display: inline-block;
padding: 4px 6px;
margin: 0 3px;
border-radius: 3px;
text-align: center;
}
}
</style>

+ 262
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/DtStuLeave/single.vue View File

@@ -0,0 +1,262 @@
<template>
<view class="page">
<view v-if="ready">
<l-select
@input="setValue('DtStuLeave.CreateUserDeptNo', $event)"
:value="getValue('DtStuLeave.CreateUserDeptNo')"
:disabled="!edit"
:range="dataSource.DtStuLeave.CreateUserDeptNo"
title="所属系"
/>
<l-select
@input="setValue('DtStuLeave.CreateUserClassNo', $event)"
:value="getValue('DtStuLeave.CreateUserClassNo')"
:disabled="!edit"
:range="dataSource.DtStuLeave.CreateUserClassNo"
title="班级"
/>
<l-organize-picker
@input="setValue('DtStuLeave.CreateUserName', $event)"
:value="getValue('DtStuLeave.CreateUserName')"
:disabled="!edit"
type="user"
title="申请用户"
/>
<l-select
@input="setValue('DtStuLeave.LeaveType', $event)"
:value="getValue('DtStuLeave.LeaveType')"
:disabled="!edit"
:range="dataSource.DtStuLeave.LeaveType"
title="申请类型"
/>
<l-datetime-picker
@input="setValue('DtStuLeave.BeginDate', $event)"
:value="getValue('DtStuLeave.BeginDate')"
:disabled="!edit"
title="开始时间"
/>
<l-datetime-picker
@input="setValue('DtStuLeave.EndDate', $event)"
:value="getValue('DtStuLeave.EndDate')"
:disabled="!edit"
title="结束时间"
/>
<l-textarea
@input="setValue('DtStuLeave.LeaveReason', $event)"
:value="getValue('DtStuLeave.LeaveReason')"
:disabled="!edit"
title="申请理由"
/>
</view>
<view v-if="ready" class="bg-white margin-tb padding" style="padding-top: 0; overflow: hidden;">
<l-button v-if="edit" @click="action('save')" size="lg" color="green" class="block margin-top" block>
提交保存
</l-button>
<l-button v-if="!edit && mode !== 'create'" @click="action('edit')" size="lg" line="orange" class="block margin-top" block>
编辑本页
</l-button>
<l-button v-if="edit && mode !== 'create'" @click="action('reset')" size="lg" line="red" class="block margin-top" block>
取消编辑
</l-button>
<l-button v-if="!edit && mode !== 'create'" @click="action('delete')" size="lg" line="red" class="block margin-top" block>
删除
</l-button>
</view>
</view>
</template>
<script>
/*
* 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 上海力软信息技术有限公司
* 创建人:超级管理员
* 日 期:2020-10-14 12:15
* 描 述:学生请销假
*/
/**
* 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
* 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
* { "path": "pages/EducationalAdministration/DtStuLeave/single", "style": { "navigationBarTitleText": "表单详情页" } }
*
* (navigationBarTitleText 字段为本页面的标题文本,可以修改)
* (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
*/
import get from 'lodash/get'
import set from 'lodash/set'
import moment from 'moment'
import customPageMixins from '@/common/custompage.js'
export default {
mixins: [customPageMixins],
data() {
return {
// 页面相关参数
id: null,
FlowNo:null,
mode: null,
edit: null,
ready: false,
// 表单数据
current: {},
origin: {},
// 表单项数据结构
scheme: {
DtStuLeave: {
CreateUserDeptNo: { type: 'select', dataSource: '1', dataSourceId: 'CdDeptInfo,deptname,deptno',verify:'NotNull' },
CreateUserClassNo: { type: 'select', dataSource: '1', dataSourceId: 'bjsj,classname,classno',verify:'NotNull' },
CreateUserName: { type: 'organize',dataType:'user',verify:'NotNull' },
LeaveType: { type: 'select', dataSource: '1', dataSourceId: 'StuLeaveType,typename,typeno' ,verify:'NotNull'},
BeginDate: { type: 'datetime', dateformat: '1',verify:'NotNull' },
EndDate: { type: 'datetime', dateformat: '1',verify:'NotNull' },
LeaveReason: { type: 'text',verify:'NotNull' },
},
},
// 数据源
dataSource: {
DtStuLeave: {
CreateUserDeptNo:[],
CreateUserClassNo:[],
LeaveType:[],
},
}
}
},
async onLoad({ type, id,FlowNo }) {
await this.init(type, id,FlowNo)
},
methods: {
// 页面初始化
async init(type, id,FlowNo) {
this.LOADING('加载数据中...')

this.id = id
this.FlowNo=FlowNo
this.mode = type
this.edit = ['create', 'edit'].includes(this.mode)
// 拉取表单数据,同时拉取所有来自数据源的选单数据
await Promise.all([
this.FETCH_DATASOURCE('CdDeptInfo').then(result => {
this.dataSource.DtStuLeave.CreateUserDeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno }));
}),
this.FETCH_DATASOURCE('bjsj').then(result => {
this.dataSource.DtStuLeave.CreateUserClassNo = result.data.map(t => ({ text: t.classname, value: t.classno }));
}),
this.FETCH_DATASOURCE('StuLeaveType').then(result => {
this.dataSource.DtStuLeave.LeaveType = result.data.map(t => ({ text: t.typename, value: t.typeno }));
}),
() => {}
])
await this.fetchForm()
this.ready = true
this.HIDE_LOADING()
},
// 加载表单数据
async fetchForm() {
if (this.mode === 'create') {
this.origin = await this.getDefaultForm()
} else {
const result = await this.HTTP_GET('learun/EducationalAdministration/DtStuLeave/form', this.id)
this.origin = await this.formatFormData(result)
}
this.current = this.COPY(this.origin)
},
// 点击 「编辑」、「重置」、「保存」、「删除」 按钮
async action(type) {
switch (type) {
case 'edit':
if(this.FlowNo != '0'){
this.TOAST("当前项已提交不可编辑!");
return;
}
this.edit = true
break
case 'reset':
this.current = this.COPY(this.origin)
this.edit = false
break
case 'save':
const verifyResult = this.verifyForm()
if (verifyResult.length > 0) {
this.CONFIRM('表单验证失败', verifyResult.join('\n'))
return
}
if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) {
return
}
this.LOADING('正在提交...')
const postData = await this.getPostData(this.id)
this.HTTP_POST('learun/EducationalAdministration/DtStuLeave/save', postData, '表单提交保存失败').then(success => {
this.HIDE_LOADING()
if (!success) {
return
}
this.EMIT('EducationalAdministrationDtStuLeave-list-change')
this.NAV_BACK()
this.TOAST('提交保存成功')
})
break
case 'delete':
if(this.FlowNo != '0'){
this.TOAST("当前项已提交不能删除!");
return;
}
if (!(await this.CONFIRM('删除项目', '确定要删除本项吗?', true))) {
return
}
this.LOADING('提交删除中...')
this.HTTP_POST('learun/EducationalAdministration/DtStuLeave/delete', this.id, '删除失败').then(success => {
this.HIDE_LOADING()
if (!success) {
return
}
this.EMIT('EducationalAdministrationDtStuLeave-list-change')
this.NAV_BACK()
this.this.TOAST('删除成功', 'success')
})
break
default: break
}
},
// 获取表单值
getValue(path) {
return get(this.current, path)
},
// 设置表单值
setValue(path, val) {
set(this.current, path, val)
}
}
}
</script>

+ 10
- 6
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/EvaluationTeach/list.vue View File

@@ -70,13 +70,13 @@
* Copyright (c) 2013-2020 上海力软信息技术有限公司
* 创建人:超级管理员
* 日 期:2020-10-16 15:39
* 描 述:工作日志
* 描 述:掌上评教
*/
/**
* 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
* 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
* { "path": "pages/EducationalAdministration/Journal/list", "style": { "navigationBarTitleText": "表单列表页" } }
* { "path": "pages/EducationalAdministration/EvaluationTeach/list", "style": { "navigationBarTitleText": "表单列表页" } }
*
* (navigationBarTitleText 字段为本页面的标题文本,可以修改)
* (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
@@ -107,7 +107,7 @@ export default {
// 数据源
dataSource: {
JTypeId: [],
},
// 页面相关参数
@@ -127,13 +127,13 @@ export default {
await this.init()
},
onUnload() {
this.OFF('EducationalAdministrationJournalSend-list-change')
this.OFF('EducationalAdministrationEvaluationTeach-list-change')
},
methods: {
// 页面初始化
async init() {
this.ON('EducationalAdministrationJournalSend-list-change', this.refreshList)
this.ON('EducationalAdministrationEvaluationTeach-list-change', this.refreshList)
// 拉取加载列表和数据源
await Promise.all([
@@ -208,7 +208,11 @@ export default {
// 点击「编辑」、「查看」、「添加」、「删除」按钮
async action(type, item) {
this.NAV_TO(`./single?type=view&id=${item.VID}&EmpNo=${item.EmpNo}&LessonNo=${item.LessonNo}`)
if (item.UID != undefined && item.UID !== '') {
this.TOAST("当前项目已评教!");
return;
}
this.NAV_TO(`./single?type=view&id=${item.VID}&EmpNo=${item.EmpNo}&LessonNo=${item.LessonNo}`)
},
// 显示列表中的标题项


+ 14
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuConsumption/list.vue View File

@@ -132,12 +132,24 @@
<scroll-view :class="sideOpen ? 'show' : ''" class="sidepage" scroll-y>
<view v-if="ready" class="padding">
<l-input
v-model="queryData.ID"
@change="searchChange"
title ="记录序号"
placeholder="按记录序号查询"
/>
<l-input
v-model="queryData.OUTID"
@change="searchChange"
title ="学工号"
placeholder="按学工号查询"
/>
<l-input
v-model="queryData.CARDSN"
@change="searchChange"
title ="持卡序号"
placeholder="按持卡序号查询"
/>
<!-- 重置查询条件按钮 -->
<view class="padding-tb">
@@ -207,7 +219,9 @@ export default {
searchData: {},
defaultQueryData: {},
queryData: {
ID:'',
OUTID: '',
CARDSN: '',
},
// 数据源


Loading…
Cancel
Save