parent
99620be5f3
commit
38df1c43bb
@ -1,67 +1,74 @@ |
|||||||
<!--pages/queryfrei/queryfrei.wxml--> |
|
||||||
<view style="background: -webkit-linear-gradient(top,#27adb0,#ebf7f7,#f1f1f1);min-height: 1300rpx;padding: 20rpx;"> |
<view style="background: -webkit-linear-gradient(top,#27adb0,#ebf7f7,#f1f1f1);min-height: 1300rpx;padding: 20rpx;"> |
||||||
|
|
||||||
<view class="form"> |
<view class="form"> |
||||||
<picker mode="date" value="date" start="start" end="end" bindchange="bindDateChange" class="from-con"> |
<picker mode="date" value="date" start="start" end="end" bindchange="bindDateChange" class="from-con"> |
||||||
<label>选择日期:</label> |
<label>选择日期:</label> |
||||||
<input type="text" disabled="true" placeholder="请选择开始日期" placeholder-class="place" value="{{date}}"/> |
<input type="text" disabled="true" placeholder="请选择开始日期" placeholder-class="place" value="{{date}}" /> |
||||||
</picker> |
</picker> |
||||||
<picker mode="date" value="date" start="start" end="end" bindchange="bindDateChangeend" class="from-con"> |
<picker mode="date" value="date" start="start" end="end" bindchange="bindDateChangeend" class="from-con"> |
||||||
<label> </label> |
<label> </label> |
||||||
<input type="text" disabled="true" placeholder="请选择结束日期" placeholder-class="place" value="{{endDate}}"/> |
<input type="text" disabled="true" placeholder="请选择结束日期" placeholder-class="place" value="{{endDate}}" /> |
||||||
</picker> |
</picker> |
||||||
<view class="from-con"> |
<view class="from-con"> |
||||||
<label>物流单号:</label> |
<label>物流单号:</label> |
||||||
<input type="text" placeholder="物流单号" placeholder-class="place"/> |
<input type="text" placeholder="物流单号" placeholder-class="place" bindinput="getLogisticsNo" value="{{logisticsNo}}"/> |
||||||
</view> |
</view> |
||||||
<picker class="from-con" bindchange="bindPickerChange" value="{{index}}" range="{{array}}"> |
<picker class="from-con" bindchange="bindPickerChange" value="{{insName}}" range="{{ins}}"> |
||||||
<label>送检机构:</label> |
<label>送检机构:</label> |
||||||
<input type="text" disabled="true" placeholder="请选择送检机构" placeholder-class="place" value="{{array[index]}}"/> |
<input type="text" disabled="true" placeholder="请选择送检机构" placeholder-class="place" value="{{insName}}" /> |
||||||
</picker> |
</picker> |
||||||
<view class="from-con"> |
<view class="from-con"> |
||||||
<label>物流员:</label> |
<label>物流员:</label> |
||||||
<input type="text" placeholder="物流员" placeholder-class="place"/> |
<input type="text" placeholder="物流员" placeholder-class="place" bindinput="bindLogisticsMen" value="{{logisticsMen}}" /> |
||||||
</view> |
</view> |
||||||
<view class="from-con"> |
<view class="from-con"> |
||||||
<label>转运箱号:</label> |
<label>转运箱号:</label> |
||||||
<input type="text" placeholder="转运箱号" placeholder-class="place"/> |
<input type="text" placeholder="转运箱号" placeholder-class="place" bindinput="bindBoxNum" value="{{boxNum}}" /> |
||||||
</view> |
|
||||||
<view class="from-button"> |
|
||||||
<button style="background-color: #ddd;">重 置</button> |
|
||||||
<button style="background-color: #54b4b6; color: #fff;">查 询</button> |
|
||||||
|
|
||||||
</view> |
|
||||||
</view> |
</view> |
||||||
|
<view class="from-button"> |
||||||
|
<button style="background-color: #ddd;" bindtap="resetting">重 置</button> |
||||||
|
<button style="background-color: #54b4b6; color: #fff;" bindtap="selSampleList">查 询</button> |
||||||
|
|
||||||
<view style="background-color: #fff;border-radius: 15rpx;margin-top: 15rpx; padding: 30rpx 10rpx 50rpx 10rpx;"> |
|
||||||
<scroll-view scroll-x style="width: 100%; border: 1rpx #ddd solid;"> |
|
||||||
<view class="tr top" > |
|
||||||
<view class="td td1">序号</view> |
|
||||||
<view class="td">物流单号</view> |
|
||||||
<view class="td">送检机构</view> |
|
||||||
<view class="td td2">日期</view> |
|
||||||
<view class="td">物流费用</view> |
|
||||||
<view class="td">转运方式</view> |
|
||||||
</view> |
|
||||||
<view class="tr" > |
|
||||||
<view class="td td1">1</view> |
|
||||||
<view class="td">JD56549856</view> |
|
||||||
<view class="td">XX卫生院</view> |
|
||||||
<view class="td td2">2023-5-12 14:32</view> |
|
||||||
<view class="td">10.00</view> |
|
||||||
<view class="td">私家车</view> |
|
||||||
</view> |
|
||||||
<view class="tr" > |
|
||||||
<view class="td td1">2</view> |
|
||||||
<view class="td">JD56549856</view> |
|
||||||
<view class="td">XX卫生院</view> |
|
||||||
<view class="td td2">2023-5-12 14:32</view> |
|
||||||
<view class="td">10.00</view> |
|
||||||
<view class="td">私家车</view> |
|
||||||
</view> |
|
||||||
</scroll-view> |
|
||||||
<!-- <view style="text-align: right; font-size: 26rpx;margin-top: 30rpx;padding: 0 20rpx;">共 2 条</view> --> |
|
||||||
</view> |
</view> |
||||||
|
</view> |
||||||
|
|
||||||
|
<view style="background-color: #fff;border-radius: 15rpx;margin-top: 15rpx; padding: 30rpx 10rpx 50rpx 10rpx;"> |
||||||
|
<scroll-view scroll-x style="width: 100%;"> |
||||||
|
<view class="tr top"> |
||||||
|
<view class="td td1">序号</view> |
||||||
|
<view class="td">物流单号</view> |
||||||
|
<view class="td">送检机构</view> |
||||||
|
<view class="td td_date">日期</view> |
||||||
|
<view class="td">样本管数</view> |
||||||
|
<view class="td">转运方式</view> |
||||||
|
<view class="td">转运箱号</view> |
||||||
|
<view class="td td_time">出发时间</view> |
||||||
|
<view class="td td_time">到达时间</view> |
||||||
|
<view class="td">车牌号</view> |
||||||
|
<view class="td">备注</view> |
||||||
|
</view> |
||||||
|
|
||||||
|
<block wx:for="{{sampleList}}" wx:key="index"> |
||||||
|
<view class="tr"> |
||||||
|
<view class="td td1">{{index + 1}}</view> |
||||||
|
<view class="td">{{item.logisticsNo}}</view> |
||||||
|
<view class="td">{{item.institutionName}}</view> |
||||||
|
<view class="td td_date">{{item.entryDate}}</view> |
||||||
|
<view class="td">{{item.number}}</view> |
||||||
|
<block> |
||||||
|
<view class="td" wx:if="{{item.tranType == 1}}">私家车</view> |
||||||
|
<view class="td" wx:else>其他</view> |
||||||
|
</block> |
||||||
|
<view class="td">{{item.boxNum}}</view> |
||||||
|
<view class="td td_time">{{item.startTime}}</view> |
||||||
|
<view class="td td_time">{{item.endTime}}</view> |
||||||
|
<view class="td">{{itme.numberplate}}</view> |
||||||
|
<view class="td">{{itme.notes}}</view> |
||||||
|
</view> |
||||||
|
</block> |
||||||
|
</scroll-view> |
||||||
|
<!-- <view style="text-align: right; font-size: 26rpx;margin-top: 30rpx;padding: 0 20rpx;">共 2 条</view> --> |
||||||
</view> |
</view> |
||||||
|
|
||||||
|
|
||||||
|
</view> |
@ -0,0 +1,37 @@ |
|||||||
|
const request = require('../utils/http') |
||||||
|
var app = getApp(); |
||||||
|
const openidLogin = function(){ |
||||||
|
wx.login({ |
||||||
|
success: (res) => { |
||||||
|
request.get('/wx/getOpenid?code='+res.code).then(res => { |
||||||
|
getTokenByOpenld({openid: res.data.openid}).then(res1 => { |
||||||
|
// console.log('=============',res1);
|
||||||
|
if(res1.data.code == 200){ |
||||||
|
app.globalData.token = res1.data.data.tokenHead + res1.data.data.token; |
||||||
|
// console.log(app.globalData.token);
|
||||||
|
wx.showToast({ |
||||||
|
title: '登陆成功' |
||||||
|
}); |
||||||
|
request.get('/sso/info').then(res2 => { |
||||||
|
// console.log(res2);
|
||||||
|
app.globalData.userInfo=res2.data.data |
||||||
|
// console.log(app.globalData.userInfo);
|
||||||
|
}) |
||||||
|
} |
||||||
|
}) |
||||||
|
}) |
||||||
|
|
||||||
|
} |
||||||
|
}) |
||||||
|
} |
||||||
|
const getTokenByOpenld = function(params){ |
||||||
|
return request.post('/sso/getTokenByOpenId', params, {'content-type':'application/x-www-form-urlencoded'}) |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
module.exports = { |
||||||
|
//绑定微信
|
||||||
|
bindWechat(params){ |
||||||
|
return request.post('/sso/bindWechat',params, {'content-type':'application/x-www-form-urlencoded'}) |
||||||
|
}, |
||||||
|
} |
Loading…
Reference in new issue