forked from mfay/IOReportMgt
parent
1fc066b64a
commit
92d87c1133
@ -0,0 +1 @@ |
|||||||
|
oybSbwfJxjOnBTrL |
||||||
@ -1,11 +1,19 @@ |
|||||||
package edu.ncst.ioreport.mapper; |
package edu.ncst.ioreport.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||||
import edu.ncst.ioreport.model.IORecords; |
import edu.ncst.ioreport.model.IORecords; |
||||||
import edu.ncst.ioreport.model.Resource; |
import edu.ncst.ioreport.model.Resource; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
import org.springframework.stereotype.Repository; |
import org.springframework.stereotype.Repository; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
@Repository |
@Repository |
||||||
public interface IORecordsMapper extends BaseMapper<IORecords> { |
public interface IORecordsMapper extends BaseMapper<IORecords> { |
||||||
int insertAndGetId(IORecords record); |
int insertAndGetId(IORecords record); |
||||||
|
|
||||||
|
List<IORecords> selectAuditList(@Param(Constants.WRAPPER) QueryWrapper<IORecords> queryWrapper); |
||||||
|
IORecords selectDetail(@Param(Constants.WRAPPER) QueryWrapper<IORecords> queryWrapper); |
||||||
} |
} |
||||||
|
|||||||
@ -1,28 +1,49 @@ |
|||||||
.card-container { |
.card-container { |
||||||
margin: 20px; |
margin: 20rpx; |
||||||
background-color: var(--color-gray-0); |
background-color: var(--color-gray-0); |
||||||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); |
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); |
||||||
|
font-size: 17px; |
||||||
|
// font-weight: 550; |
||||||
|
|
||||||
.card-col-1 { |
.card-col-1 { |
||||||
|
padding: 24rpx 0; |
||||||
display: flex; |
display: flex; |
||||||
|
width: auto; |
||||||
|
|
||||||
|
& yinput:nth-child(1) { |
||||||
|
flex: 4 1 50px; |
||||||
|
margin: 0 5rpx; |
||||||
|
} |
||||||
|
|
||||||
|
& yinput:nth-child(2) { |
||||||
|
flex: 7 1 50px; |
||||||
|
margin:0 5rpx; |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
.input-container { |
.input-container { |
||||||
|
padding-bottom: 80rpx; |
||||||
|
|
||||||
.card-col-1 { |
.card-col-1 { |
||||||
display: flex; |
display: flex; |
||||||
margin: 0 2px; |
margin: 0 2px; |
||||||
:nth-child(n){ |
|
||||||
|
:nth-child(n) { |
||||||
flex: 1 1 0; |
flex: 1 1 0; |
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.submit-button { |
.submit-button { |
||||||
position: absolute; |
position: fixed; |
||||||
bottom: 0; |
bottom: 0; |
||||||
left: 0; |
left: 0; |
||||||
right: 0; |
background-color: var(--color-primary); |
||||||
display: flex; |
color: white; |
||||||
|
width: 100%; |
||||||
|
border-radius: 0; |
||||||
|
z-index: 99; |
||||||
} |
} |
||||||
@ -1,22 +1,63 @@ |
|||||||
<navigationBar title="出校报备"></navigationBar> |
<navigationBar title="出校报备"></navigationBar> |
||||||
<yform rules="{{rules}}" bindonSubmit="onSubmit"> |
<view class="card-container"> |
||||||
<view class="card-container"> |
|
||||||
<view class="card-col-1"> |
<view class="card-col-1"> |
||||||
<yinput onlyRead padding="16rpx" label="工号:" bindValue="ID" defaultValue="{{id}}"></yinput> |
<yinput onlyRead padding="16rpx" label="工号:" bindValue="teacherID" value="{{teacherID}}" wx:if=""></yinput> |
||||||
<yinput onlyRead padding="16rpx" label="姓名:" bindValue="name" defaultValue="{{name}}"></yinput> |
<yinput onlyRead padding="0" label="姓名:" bindValue="name" value="{{name}}"></yinput> |
||||||
|
<yinput onlyRead padding="0" label="类型:" bindValue="name" value="出校报备"></yinput> |
||||||
|
</view> |
||||||
|
<yinput onlyRead padding="16rpx" label="联系方式:" bindValue="mobile" value="{{mobile}}" wx:if="" ></yinput> |
||||||
|
<yinput onlyRead padding="16rpx" label="学院: " bindValue="dept" value="{{dept.department}}" wx:if=""></yinput> |
||||||
|
</view> |
||||||
|
|
||||||
|
<form bindsubmit="onSubmit" rules="{{rules}}"> |
||||||
|
|
||||||
|
<view class="weui-cells weui-cells_form"> |
||||||
|
<view class="weui-cell weui-cell_active"> |
||||||
|
<view class="weui-cell__hd"> |
||||||
|
<view class="weui-label" id="js_date" aria-hidden="true">出校日期</view> |
||||||
|
</view> |
||||||
|
<view class="weui-cell__bd"> |
||||||
|
<picker mode="date" aria-role="combobox" aria-labelledby="js_date" start="{{applyDate}}" bindchange="bindDateChange"> |
||||||
|
<view class="weui-input">{{applyDate}}</view> |
||||||
|
</picker> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="weui-cell weui-cell_active"> |
||||||
|
<view class="weui-cell__hd"> |
||||||
|
<view class="weui-label" aria-hidden="true" id="js_time">出校时间</view> |
||||||
|
</view> |
||||||
|
<view class="weui-cell__bd"> |
||||||
|
<picker aria-role="combobox" aria-labelledby="js_time" mode="time" bindchange="bindTimeChange"> |
||||||
|
<view class="weui-input">{{applyTime}}</view> |
||||||
|
</picker> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="weui-cell weui-cell_active"> |
||||||
|
<view class="weui-cell__hd"> |
||||||
|
<label class="weui-label" style="width: 5em;">校外住址</label> |
||||||
|
</view> |
||||||
|
<view class="weui-cell__bd weui-flex"> |
||||||
|
<input class="weui-input" required placeholder="请输入校外住址" placeholder-class="weui-input__placeholder" name="outerResidence" value="{{outerResidence}}"/> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="weui-cell weui-cell_active"> |
||||||
|
<view class="weui-cell__hd"> |
||||||
|
<label class="weui-label" style="width: 5em;">校内住址</label> |
||||||
|
</view> |
||||||
|
<view class="weui-cell__bd weui-flex"> |
||||||
|
<input class="weui-input" required placeholder="请输入校内住址" placeholder-class="weui-input__placeholder" name="innerResidence" value="{{innerResidence}}"/> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="weui-cell weui-cell_active"> |
||||||
|
<view class="weui-cell__bd"> |
||||||
|
<textarea class="weui-textarea" required placeholder="请填写出校事由" name="reason" bindinput="inputs" placeholder-class="weui-input__placeholder" rows="3"> |
||||||
|
</textarea> |
||||||
|
<view aria-role="option" class="weui-textarea-counter"> |
||||||
|
<span>已输入{{text_len?text_len:0}}字</span>/50 |
||||||
</view> |
</view> |
||||||
<yinput onlyRead padding="16rpx" label="联系方式:" bindValue="phone" defaultValue="{{phone}}"></yinput> |
|
||||||
<yinput onlyRead padding="16rpx" label="学院: " bindValue="depart" defaultValue="{{department}}"></yinput> |
|
||||||
</view> |
</view> |
||||||
<view class="input-container"> |
|
||||||
<sysInput label="报备类型: " bindValue="orderType" defaultValue="0" style="display: none;" /> |
|
||||||
<view class="card-col-1"> |
|
||||||
<ydatePicker label="出校日期" bindValue="enterDate" /> |
|
||||||
<ytimePicker label="出校时间" bindValue="enterTime" /> |
|
||||||
</view> |
</view> |
||||||
<sysInput label="校内居住地: " bindValue="innerLocation" /> |
|
||||||
<sysInput label="校外居住地: " bindValue="outerLocation" /> |
|
||||||
<sysTextarea label="事由: " bindValue="reason" /> |
|
||||||
</view> |
</view> |
||||||
<ybutton class="submit-button" title="申请" bgColor="var(--color-primary)" /> |
<button class="submit-button" style="width: 100%;" formType="submit">提交</button> |
||||||
</yform> |
</form> |
||||||
@ -1 +0,0 @@ |
|||||||
/* pages/report/out/outerReport.wxss */ |
|
||||||
@ -0,0 +1,21 @@ |
|||||||
|
"use strict"; |
||||||
|
Object.defineProperty(exports, "__esModule", { value: true }); |
||||||
|
exports.request = exports.URL = void 0; |
||||||
|
var util_1 = require("../../../utils/util"); |
||||||
|
exports.URL = '/api/records/audit-list'; |
||||||
|
/** |
||||||
|
* @desc 获取报备记录列表 |
||||||
|
*/ |
||||||
|
function request(bodyParams, options) { |
||||||
|
var url = '/api/records/audit-list'; |
||||||
|
var fetchOption = Object.assign({ |
||||||
|
url: url, |
||||||
|
method: 'POST', |
||||||
|
headers: { |
||||||
|
'Content-Type': 'application/json', |
||||||
|
}, |
||||||
|
data: bodyParams, |
||||||
|
}, options); |
||||||
|
return util_1.fetch(fetchOption); |
||||||
|
} |
||||||
|
exports.request = request; |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
import { fetch } from '../../../utils/util'; |
||||||
|
|
||||||
|
export type ResponseType = Promise<defs.ResultVO<Array<defs.IORecords>>>; |
||||||
|
|
||||||
|
export const URL = '/api/records/audit-list'; |
||||||
|
|
||||||
|
/** |
||||||
|
* @desc 获取报备记录列表 |
||||||
|
*/ |
||||||
|
export function request( |
||||||
|
bodyParams: defs.QRecord, |
||||||
|
options?: WechatMiniprogram.RequestOption, |
||||||
|
): ResponseType { |
||||||
|
let url = '/api/records/audit-list'; |
||||||
|
|
||||||
|
const fetchOption = Object.assign( |
||||||
|
{ |
||||||
|
url: url, |
||||||
|
method: 'POST', |
||||||
|
headers: { |
||||||
|
'Content-Type': 'application/json', |
||||||
|
}, |
||||||
|
|
||||||
|
data: bodyParams, |
||||||
|
}, |
||||||
|
options, |
||||||
|
); |
||||||
|
return fetch(fetchOption); |
||||||
|
} |
||||||
Loading…
Reference in new issue