|
|
@@ -40,7 +40,7 @@
|
|
|
<!-- 发车时间区域 -->
|
|
|
<view class="box">
|
|
|
<view class="left">发车时间</view>
|
|
|
- <picker style="width: 40%;" @change="bindPickerChange($event, 1)" mode="time" :value="info.ci_time" :start="getCurrentTime()">
|
|
|
+ <picker style="width: 40%" @change="bindPickerChange($event, 1)" mode="time" :value="info.ci_time" :start="getCurrentTime()">
|
|
|
<view :class="['right', info.ci_time != 0 ? '' : 'unSelect']">
|
|
|
{{ info.ci_time != 0 ? info.ci_time : '请选择' }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -51,7 +51,7 @@
|
|
|
<!-- 扫码开始时间区域 -->
|
|
|
<view class="box">
|
|
|
<view class="left">扫码开始时间</view>
|
|
|
- <picker style="width: 40%;" @change="bindPickerChange($event, 4)" mode="time" :value="info.sm_start">
|
|
|
+ <picker style="width: 40%" @change="bindPickerChange($event, 4)" mode="time" :value="info.sm_start">
|
|
|
<view :class="['right', info.sm_start != 0 ? '' : 'unSelect']">
|
|
|
{{ info.sm_start != 0 ? info.sm_start : '请选择' }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -62,7 +62,7 @@
|
|
|
<!-- 扫码结束时间区域 -->
|
|
|
<view class="box">
|
|
|
<view class="left">扫码结束时间</view>
|
|
|
- <picker style="width: 40%;" @change="bindPickerChange($event, 5)" mode="time" :value="info.sm_end">
|
|
|
+ <picker style="width: 40%" @change="bindPickerChange($event, 5)" mode="time" :value="info.sm_end">
|
|
|
<view :class="['right', info.sm_end != 0 ? '' : 'unSelect']">
|
|
|
{{ info.sm_end != 0 ? info.sm_end : '请选择' }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -73,7 +73,7 @@
|
|
|
<!-- 预约截止时间区域 -->
|
|
|
<view class="box">
|
|
|
<view class="left">预约截止时间</view>
|
|
|
- <picker style="width: 40%;" @change="bindPickerChange($event, 7)" mode="time" :value="info.yy_end">
|
|
|
+ <picker style="width: 40%" @change="bindPickerChange($event, 7)" mode="time" :value="info.yy_end">
|
|
|
<view :class="['right', info.yy_end != 0 ? '' : 'unSelect']">
|
|
|
{{ info.yy_end != 0 ? info.yy_end : '请选择' }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -85,7 +85,7 @@
|
|
|
<view class="box">
|
|
|
<view class="left">路线</view>
|
|
|
|
|
|
- <picker style="width: 60%;" @change="bindPickerChange($event, 2)" :range="pathList" range-key="route">
|
|
|
+ <picker style="width: 60%" @change="bindPickerChange($event, 2)" :range="pathList" range-key="route">
|
|
|
<view :class="['right', info.route ? '' : 'unSelect']">
|
|
|
{{ info.route ? info.route : '请选择' }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -97,7 +97,7 @@
|
|
|
<view class="box">
|
|
|
<view class="left">站点</view>
|
|
|
|
|
|
- <picker style="width: 80%;" @change="bindPickerChange($event, 3)" :range="endList" range-key="route_end">
|
|
|
+ <picker style="width: 80%" @change="bindPickerChange($event, 3)" :range="endList" range-key="route_end">
|
|
|
<view :class="['right', info.route_end ? '' : 'unSelect']">
|
|
|
{{ info.route_end ? info.route_end : '请选择' }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -127,14 +127,14 @@
|
|
|
<!-- 筛选区域 -->
|
|
|
<view class="list-search" v-if="info.user_num !== '0'">
|
|
|
<!-- 身份筛选区域 -->
|
|
|
- <picker style="width: 50%;" :range="statusList" range-key="text" @change="bindPickerChange($event, 6)">
|
|
|
+ <picker style="width: 50%" :range="statusList" range-key="text" @change="bindPickerChange($event, 6)">
|
|
|
<view class="list-search-item">
|
|
|
{{ statusList[result_status].text }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
</view>
|
|
|
</picker>
|
|
|
<!-- 上车状态筛选区域 -->
|
|
|
- <picker style="width: 50%;" :range="typeList" range-key="text" @change="bindPickerChange($event, 8)">
|
|
|
+ <picker style="width: 50%" :range="typeList" range-key="text" @change="bindPickerChange($event, 8)">
|
|
|
<view class="list-search-item2">
|
|
|
{{ typeList[result_state].text }}
|
|
|
<view class="right-img"><img src="../../static/bottom.png" /></view>
|
|
|
@@ -177,7 +177,10 @@ import { filterIdentity } from '@/util/filterIdentity.js'
|
|
|
|
|
|
import { time_to_sec, time_change } from '@/util/formatTime.js'
|
|
|
|
|
|
-onLoad(options => {
|
|
|
+const BASE_URL = '/carstop/carbook'
|
|
|
+// const BASE_URL = '/testingServertomcat/carbook/'
|
|
|
+
|
|
|
+onLoad((options) => {
|
|
|
if (isWeixin()) {
|
|
|
filterIdentity()
|
|
|
info.value = JSON.parse(options.info)
|
|
|
@@ -198,7 +201,7 @@ onLoad(options => {
|
|
|
|
|
|
setTimeout(() => {
|
|
|
let temList = []
|
|
|
- selectMultiple.value.columns.forEach(item => {
|
|
|
+ selectMultiple.value.columns.forEach((item) => {
|
|
|
if (item.label == form.value.selectValue) {
|
|
|
temList.push(item.value)
|
|
|
}
|
|
|
@@ -437,7 +440,7 @@ const handleSave = () => {
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '确定保存吗?',
|
|
|
- success: res => {
|
|
|
+ success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
handleSaveRequest()
|
|
|
} else if (res.cancel) {
|
|
|
@@ -452,12 +455,16 @@ const handleSaveRequest = () => {
|
|
|
const { id, car_number, ci_time, route, route_end, contain, sm_start, sm_end, yy_end } = info.value
|
|
|
|
|
|
const { user_name } = JSON.parse(uni.getStorageSync('bus-userInfo'))
|
|
|
+ uni.showLoading({
|
|
|
+ title: '保存中',
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
|
|
|
uni.request({
|
|
|
- url: '/carstop/carbook/scheupdate.action',
|
|
|
+ url: `${BASE_URL}/scheupdate.action`,
|
|
|
method: 'post',
|
|
|
header: {
|
|
|
- admin_name: user_name
|
|
|
+ admin_name: encodeURIComponent(user_name)
|
|
|
},
|
|
|
data: {
|
|
|
id,
|
|
|
@@ -470,7 +477,7 @@ const handleSaveRequest = () => {
|
|
|
sm_end,
|
|
|
yy_end
|
|
|
},
|
|
|
- success: res => {
|
|
|
+ success: (res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
uni.showToast({
|
|
|
title: res.data.message
|
|
|
@@ -491,19 +498,19 @@ const handleSaveRequest = () => {
|
|
|
}
|
|
|
|
|
|
// 点击车牌号下拉框回调
|
|
|
-const handleMultiple = val => {
|
|
|
+const handleMultiple = (val) => {
|
|
|
// console.log(val);
|
|
|
selectMultiple.value.index = val || []
|
|
|
selectMultiple.value.show = true
|
|
|
}
|
|
|
|
|
|
// 车牌号下拉框确定按钮回调
|
|
|
-const confirmMultiple = e => {
|
|
|
+const confirmMultiple = (e) => {
|
|
|
// console.log(e);
|
|
|
// console.log(e.value);
|
|
|
if (selectMultiple.value.index != e.value) {
|
|
|
let temp = []
|
|
|
- e.selected.forEach(item => {
|
|
|
+ e.selected.forEach((item) => {
|
|
|
temp.push(item.label)
|
|
|
})
|
|
|
form.value.selectValue = temp.toString()
|
|
|
@@ -539,7 +546,7 @@ const getTimeConfig = async () => {
|
|
|
}
|
|
|
|
|
|
// 下拉框选择时的回调
|
|
|
-const changeMultiple = e => {
|
|
|
+const changeMultiple = (e) => {
|
|
|
// console.log(e);
|
|
|
}
|
|
|
|