This commit is contained in:
ChuShiZ 2024-08-31 01:22:19 +08:00
parent 8a515698ff
commit 5866ab9c00
4 changed files with 32 additions and 20 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "蓝安救援-司机端", "name" : "蓝安救援-司机端",
// "appid" : "__UNI__D743A11", "appid" : "__UNI__D743A11",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "1.0.1",
"versionCode" : 101, "versionCode" : 101,
@ -21,7 +21,8 @@
"Maps" : {}, "Maps" : {},
"Geolocation" : {}, "Geolocation" : {},
"Camera" : {}, "Camera" : {},
"Barcode" : {} "Barcode" : {},
"Push" : {}
}, },
/* */ /* */
"distribute" : { "distribute" : {
@ -200,8 +201,7 @@
} }
} }
} }
}, }
"appid" : "__UNI__DA2C94E"
} }
// "push" : { // "push" : {
// "unipush" : { // "unipush" : {

View File

@ -203,7 +203,7 @@
</view> </view>
</view> </view>
</u-popup> </u-popup>
<u-picker :show="show3" :columns="columns" keyName="dictLabel" @cancel="cancels()" <u-picker :show="show3" :columns="columns" keyName="label" @cancel="cancels()"
@confirm="confirms"></u-picker> @confirm="confirms"></u-picker>
<tabBar :msg="msg "></tabBar> <tabBar :msg="msg "></tabBar>
@ -434,8 +434,8 @@
this.show3 = true this.show3 = true
}, },
confirms(e) { confirms(e) {
this.dictValue = e.value[0].dictValue this.dictValue = e.value[0].value
this.dictLabel = e.value[0].dictLabel this.dictLabel = e.value[0].label
// console.log(zhi); // console.log(zhi);
this.show3 = false this.show3 = false
@ -696,6 +696,7 @@
console.log(res); console.log(res);
this.getList() this.getList()
this.$refs.inputDialog.close() this.$refs.inputDialog.close()
this.getthreelist()
}) })
@ -760,7 +761,7 @@
}, },
uploadFilePromise(url) { uploadFilePromise(url) {
upload({ upload({
url: '/common/upload', url: '/infra/file/upload',
filePath: url, filePath: url,
}).then((res) => { }).then((res) => {
console.log('images', res.fileName); console.log('images', res.fileName);

View File

@ -19,7 +19,7 @@
<view class="you"> <view class="you">
<view class="box-top"> <view class="box-top">
<text class="numone">{{item.title || ''}}</text> <text class="numone">{{item.title || ''}}</text>
<text class="numthree">{{item.createTime ? (item.createTime.slice(0, -3) || '') : ''}}</text> <text class="numthree">{{item.createTime}}</text>
</view> </view>
<view class="numtwo">{{item.content || ''}}</view> <view class="numtwo">{{item.content || ''}}</view>
</view> </view>
@ -34,6 +34,7 @@
<script> <script>
import request from '../../utils/request'; import request from '../../utils/request';
import tabBar from '../../components/tabBar/tabBar.vue' import tabBar from '../../components/tabBar/tabBar.vue'
import dayjs from '../../uni_modules/uview-ui/libs/util/dayjs';
const innerAudioContext = uni.createInnerAudioContext(); const innerAudioContext = uni.createInnerAudioContext();
export default { export default {
@ -88,6 +89,13 @@
params: data params: data
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (res.rows && res.rows.length > 0) {
res.rows.forEach(item => {
if (item.createTime) {
item.createTime = dayjs(item.createTime).format('MM-DD HH:mm')
}
})
}
if (this.pageNum != 1) { if (this.pageNum != 1) {
this.listArr = this.listArr.concat(res.rows) this.listArr = this.listArr.concat(res.rows)
} else { } else {

View File

@ -105,11 +105,6 @@
<view style="width: 158px;display: flex;align-items: center;"><u--input type="number" <view style="width: 158px;display: flex;align-items: center;"><u--input type="number"
style="height: 15px; " placeholder="请输入公里数" border="surround" style="height: 15px; " placeholder="请输入公里数" border="surround"
v-model="detailsData.emptyNum" clearable></u--input> <text>KM</text></view> v-model="detailsData.emptyNum" clearable></u--input> <text>KM</text></view>
</view> </view>
<view class="dix"> <view class="dix">
<text class="huiy">过关费:</text> <text class="huiy">过关费:</text>
@ -137,16 +132,16 @@
<text class="huiy">车辆类型:</text> <text class="huiy">车辆类型:</text>
<text v-if="detailsData.rescueStatus != '救援中'">{{detailsData.carTypeStr || ''}}</text> <text v-if="detailsData.rescueStatus != '救援中'">{{detailsData.carTypeStr || ''}}</text>
<view class="ribox" v-if="detailsData.rescueStatus == '救援中'" <view class="ribox" v-if="detailsData.rescueStatus == '救援中'"
:class="{'actbox' : carindex == item.dictValue}" v-for="(item,index) in carList" :class="{'actbox' : carindex == item.value}" v-for="(item,index) in carList"
:key="index" @click="getcarindex(item.dictValue)">{{item.dictLabel}}</view> :key="index" @click="getcarindex(item.value)">{{item.label}}</view>
</view> </view>
<view class="dix"> <view class="dix">
<text class="huiy">收款类型:</text> <text class="huiy">收款类型:</text>
<text v-if="detailsData.rescueStatus != '救援中'">{{detailsData.feeTypeStr || ''}}</text> <text v-if="detailsData.rescueStatus != '救援中'">{{detailsData.feeTypeStr || ''}}</text>
<view class="ribox" v-if="detailsData.rescueStatus == '救援中'" <view class="ribox" v-if="detailsData.rescueStatus == '救援中'"
:class="{'actbox' : skindex == item.dictValue}" v-for="(item,index) in qdList" :key="index" :class="{'actbox' : skindex == item.value}" v-for="(item,index) in qdList" :key="index"
@click="getskindex(item.dictValue)">{{item.dictLabel}}</view> @click="getskindex(item.value)">{{item.label}}</view>
</view> </view>
<view class="dix" v-if="detailsData.kcPosition" @click="getmap1"> <view class="dix" v-if="detailsData.kcPosition" @click="getmap1">
<text class="huiy">扣车地点:</text> <text class="huiy">扣车地点:</text>
@ -236,7 +231,7 @@
</u-popup> </u-popup>
<u-picker :show="roadShow" @cancel="roadShow = false" @close="roadShow = false" @confirm="chooseRoad" <u-picker :show="roadShow" @cancel="roadShow = false" @close="roadShow = false" @confirm="chooseRoad"
:columns="[roadList]" keyName="dictValue"></u-picker> :columns="[roadList]" keyName="label"></u-picker>
</view> </view>
</template> </template>
@ -244,6 +239,7 @@
import request from '../../utils/request'; import request from '../../utils/request';
import tabBar from '../../components/tabBar/tabBar.vue' import tabBar from '../../components/tabBar/tabBar.vue'
import drawQrcode from 'weapp-qrcode'; import drawQrcode from 'weapp-qrcode';
import dayjs from '../../uni_modules/uview-ui/libs/util/dayjs';
export default { export default {
data() { data() {
return { return {
@ -293,7 +289,7 @@
methods: { methods: {
chooseRoad(data) { chooseRoad(data) {
console.log(data); console.log(data);
this.detailsData.sectionRoad = data.value[0].dictValue this.detailsData.sectionRoad = data.value[0].id
this.roadShow = false this.roadShow = false
}, },
chooseCar(data) { chooseCar(data) {
@ -518,6 +514,13 @@
this.carindex = res.data.rescueInfo.carType // this.carindex = res.data.rescueInfo.carType //
this.skindex = res.data.rescueInfo.feeType this.skindex = res.data.rescueInfo.feeType
this.detailList = res.data.detailList this.detailList = res.data.detailList
if (this.detailList && this.detailList.length > 0) {
this.detailList.forEach(item => {
if (item.createTime) {
item.createTime = dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss')
}
})
}
uni.hideLoading(); uni.hideLoading();
}) })
}, },