@@ -477,7 +477,7 @@ Page({ | |||||
icon:"success" | icon:"success" | ||||
}) | }) | ||||
setTimeout(function(){ | setTimeout(function(){ | ||||
wx.switchTab({ | |||||
wx.reLaunch({ | |||||
url: '/pages/index/index' | url: '/pages/index/index' | ||||
}) | }) | ||||
},2000) | },2000) | ||||
@@ -21,7 +21,7 @@ | |||||
<text class="title">事项{{item.num}}</text> | <text class="title">事项{{item.num}}</text> | ||||
<view class="top-box"> | <view class="top-box"> | ||||
<text>支出金额</text> | <text>支出金额</text> | ||||
<view class="money_box">¥<input class="input_money" readonly placeholder="金额" placeholder-style="color:#E90000;" value="{{item.expenditureAmount}}"/></view> | |||||
<view class="money_box">¥<input class="input_money" disabled placeholder="金额" placeholder-style="color:#E90000;" value="{{item.expenditureAmount}}"/></view> | |||||
<van-cell-group border="{{ false }}"> | <van-cell-group border="{{ false }}"> | ||||
<van-cell title="{{item.remark}}" border="{{ false }}" > | <van-cell title="{{item.remark}}" border="{{ false }}" > | ||||
<view slot="icon" style="width: 15%;">事由:</view> | <view slot="icon" style="width: 15%;">事由:</view> | ||||
@@ -61,22 +61,19 @@ text{display: block;} | |||||
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16); | box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16); | ||||
} | } | ||||
.van-collapse-item .van-cell{ | |||||
width: 94%; | |||||
margin: 0 auto; | |||||
} | |||||
.van-collapse-item .van-cell .tit_box{ | |||||
.van-collapse-item { | |||||
background: #ffffff; | background: #ffffff; | ||||
padding: 20px; | padding: 20px; | ||||
/* width: 94%; */ | /* width: 94%; */ | ||||
margin: 0 auto; | margin: 0 auto; | ||||
border-radius: 10px; | border-radius: 10px; | ||||
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16); | box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16); | ||||
} | |||||
.van-collapse-item__content{ | |||||
width: 94%; | width: 94%; | ||||
margin: 0 auto; | margin: 0 auto; | ||||
} | } | ||||
.van-collapse-item__content{ | |||||
padding: 0!important; | |||||
} | |||||
.top-box text{ | .top-box text{ | ||||
margin-bottom: 15px; | margin-bottom: 15px; | ||||
} | } | ||||
@@ -248,8 +248,9 @@ Page({ | |||||
that.setData({instanceId:res.data.instanceId}) | that.setData({instanceId:res.data.instanceId}) | ||||
} | } | ||||
}) | }) | ||||
console.log(that.data.instanceId) | |||||
// 查询现金审批事项流转进度 | // 查询现金审批事项流转进度 | ||||
UTIL.httpRequest(API.URL_GET_REVIEWPROCESS+options.id , {method:'GET'}, { | |||||
UTIL.httpRequest(API.URL_GET_REVIEWPROCESS+that.data.instanceId , {method:'GET'}, { | |||||
success: (res) => { | success: (res) => { | ||||
console.log(res); | console.log(res); | ||||
if(res.data.processSchedule.spsx){ | if(res.data.processSchedule.spsx){ | ||||
@@ -19,6 +19,7 @@ Page({ | |||||
*/ | */ | ||||
onLoad(options) { | onLoad(options) { | ||||
console.log(options) | console.log(options) | ||||
// 可优化:数据请求放到 onload中 新增后在子页面修改父页面数据 | |||||
var that = this; | var that = this; | ||||
that.setData({ | that.setData({ | ||||
isPeers:options.isPeers,//是否同行 | isPeers:options.isPeers,//是否同行 | ||||
@@ -82,7 +82,7 @@ const URL_GET_TEMPLATEDETAIL = `${URL_PREFIX}/service/templateDetail/list`; | |||||
//根据系统组织机构id查询所在乡镇 | //根据系统组织机构id查询所在乡镇 | ||||
const URL_GET_TOWNINFOBYDEPTID = `${URL_PREFIX}/system/dept/getTownInfoByDeptId/`; | const URL_GET_TOWNINFOBYDEPTID = `${URL_PREFIX}/system/dept/getTownInfoByDeptId/`; | ||||
//根据条件查询用户信息 | //根据条件查询用户信息 | ||||
const URL_GET_USERLIST = `${URL_PREFIX}/system/user/list`; | |||||
const URL_GET_USERLIST = `${URL_PREFIX}/system/user/query`; | |||||
//新增模板 | //新增模板 | ||||
const URL_POST_MOBILEADD = `${URL_PREFIX}/service/template/mobileAdd`; | const URL_POST_MOBILEADD = `${URL_PREFIX}/service/template/mobileAdd`; | ||||
//删除模板 | //删除模板 | ||||