Merge branch 'main' of http://47.109.71.130:3000/attiya/ebike-ui
This commit is contained in:
commit
58c72872c1
@ -61,10 +61,13 @@
|
||||
</scroll-view>
|
||||
</div>
|
||||
|
||||
<div class="divBottom">
|
||||
<!-- <div class="divBottom">
|
||||
<text class="b-btn-white" style="margin-right: 15px;" @click="refresh">刷新</text>
|
||||
<text class="b-btn-blue" @click="completebatter">完成换电</text>
|
||||
</div>
|
||||
</div> -->
|
||||
<view class="nav-panel">
|
||||
<c-uni-goods-nav :fill="true" :options="[]" :buttonGroup="navButtonGroup" @buttonClick="navButtonClick" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@ -76,6 +79,7 @@
|
||||
import {
|
||||
ref,
|
||||
watch,
|
||||
reactive,
|
||||
onMounted
|
||||
} from "vue";
|
||||
import {
|
||||
@ -251,6 +255,28 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const navButtonGroup = reactive([{
|
||||
text: '刷新',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff',
|
||||
disable: false
|
||||
},{
|
||||
text: '完成换电',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff',
|
||||
disable: false
|
||||
}]);
|
||||
|
||||
const navButtonClick = (e) =>{
|
||||
const index = e.index;
|
||||
if(index == 0){
|
||||
refresh();
|
||||
}
|
||||
else if(index == 1){
|
||||
completebatter();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@ -280,4 +306,13 @@
|
||||
width: 100%;
|
||||
line-height: 55px;
|
||||
}
|
||||
|
||||
.nav-panel{
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
z-index: 999;
|
||||
background-color:#fff;
|
||||
}
|
||||
</style>
|
||||
@ -175,7 +175,7 @@
|
||||
});
|
||||
const navButtonGroup = [{
|
||||
text: '车辆详情',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: "#fff"
|
||||
}];
|
||||
|
||||
|
||||
@ -247,7 +247,7 @@
|
||||
]);
|
||||
const navButtonGroup = [{
|
||||
text: '确认提交',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
const bikeCodeScanChange = (bikeCode) => {
|
||||
|
||||
@ -340,11 +340,11 @@
|
||||
});
|
||||
const navButtonGroup = [{
|
||||
text: '取消工单',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: "#fff"
|
||||
}, {
|
||||
text: '处理完成',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: "#fff"
|
||||
}];
|
||||
|
||||
|
||||
@ -33,8 +33,8 @@
|
||||
<view class="classimg" :class="item.key + '-' + icon.key ==isSeleid?`classimgsm`:``">
|
||||
<!-- <image :src="icon.src" class="icon-image" /> -->
|
||||
<uni-icons v-if="icon.customsrc" custom-prefix="iconfont" color="#1488f5" :type="icon.customsrc"
|
||||
size="25"></uni-icons>
|
||||
<uni-icons v-else color="#1488f5" :type="icon.src ? icon.src:'image'" size="25"></uni-icons>
|
||||
size="28"></uni-icons>
|
||||
<uni-icons v-else color="#1488f5" :type="icon.src ? icon.src:'image'" size="28"></uni-icons>
|
||||
</view>
|
||||
<view class="classimgwz">
|
||||
{{ icon.name }}
|
||||
|
||||
@ -211,7 +211,7 @@
|
||||
]);
|
||||
const navButtonGroup = [{
|
||||
text: '确认提交',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
const bikeCodeScanChange = (bikeCode) => {
|
||||
|
||||
@ -271,7 +271,7 @@
|
||||
|
||||
const navButtonGroup = [{
|
||||
text: '提交',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
// 故障部件
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
};
|
||||
const navButtonGroup = [{
|
||||
text: '确定绑定',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
//刷新
|
||||
|
||||
@ -112,7 +112,7 @@
|
||||
const dataList = ref([]);
|
||||
const navButtonGroup = [{
|
||||
text: '新增入库',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
// 查询条件定义
|
||||
@ -407,7 +407,7 @@
|
||||
|
||||
.list-item{
|
||||
padding: 15px 15px;
|
||||
margin: 20px 10px;
|
||||
margin: 3px 5px;
|
||||
border: 1px solid #d6d4d4;
|
||||
border-radius: 2px;
|
||||
background-color: #fff;
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
const dataList = ref([]);
|
||||
const navButtonGroup = [{
|
||||
text: '新增出库',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
// 查询条件定义
|
||||
@ -338,7 +338,7 @@
|
||||
|
||||
.list-item{
|
||||
padding: 15px 15px;
|
||||
margin: 20px 10px;
|
||||
margin: 3px 5px;
|
||||
border: 1px solid #d6d4d4;
|
||||
border-radius: 2px;
|
||||
background-color: #fff;
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
const scroTop = ref(0);
|
||||
const navButtonGroup = [{
|
||||
text: '批量上架',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
//下拉刷新
|
||||
|
||||
@ -118,11 +118,11 @@
|
||||
const typepopup = ref("center");
|
||||
const navButtonGroup = [{
|
||||
text: '批量投放',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}, {
|
||||
text: '批量下架',
|
||||
backgroundColor: 'rgb(0,120,212)',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff'
|
||||
}];
|
||||
const searchValue = ref("")
|
||||
|
||||
@ -32,3 +32,12 @@
|
||||
font-size: 1rem;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.nav-panel{
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
z-index: 999;
|
||||
background-color:#fff;
|
||||
}
|
||||
@ -48,10 +48,12 @@
|
||||
|
||||
</uni-card>
|
||||
</view>
|
||||
<view style="position: absolute;bottom: 10px; width: 100%;padding:0px 15px;">
|
||||
<!-- <button type="primary" @click="unbind">确定解绑</button> -->
|
||||
<!-- <view style="position: absolute;bottom: 10px; width: 100%;padding:0px 15px;">
|
||||
<div class="b-btn-blue" style="text-align: center;" @click="unbind">确定解绑</div>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="nav-panel">
|
||||
<c-uni-goods-nav :fill="true" :options="[]" :buttonGroup="navButtonGroup" @buttonClick="navButtonClick" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -63,7 +65,13 @@
|
||||
return {
|
||||
colspan: [6, 17],
|
||||
scancode:"",
|
||||
arrData: []
|
||||
arrData: [],
|
||||
navButtonGroup:[{
|
||||
text: '确定解绑',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff',
|
||||
disable: false
|
||||
}]
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
@ -115,6 +123,12 @@
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
navButtonClick(e){
|
||||
const index = e.index;
|
||||
if(index == 0){
|
||||
this.unbind();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -39,15 +39,19 @@
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
</uni-section>
|
||||
<view style="position: absolute;bottom: 10rpx; width: 100%;">
|
||||
<!-- <view style="position: absolute;bottom: 10rpx; width: 100%;">
|
||||
<button type="primary" @click="unUpdate">确定更换</button>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="nav-panel">
|
||||
<c-uni-goods-nav :fill="true" :options="[]" :buttonGroup="navButtonGroup" @buttonClick="navButtonClick" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref
|
||||
ref,
|
||||
reactive
|
||||
} from 'vue';
|
||||
import * as api from '@/utils/api.js';
|
||||
import dayjs from 'dayjs';
|
||||
@ -95,12 +99,26 @@
|
||||
if (res.confirm) {
|
||||
api.callEbikeInfo("updateBikeQRCode", ebikeInfo.value).then((res) => {
|
||||
ebikeInfo.value.ecuCode = res.data.ecuCode;
|
||||
ebikeInfo.value.ecuCode = res.data.bikeId;
|
||||
ebikeInfo.value.bikeId = res.data.bikeId;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const navButtonGroup = reactive([{
|
||||
text: '确定更换',
|
||||
backgroundColor: '#0078D4',
|
||||
color: '#fff',
|
||||
disable: false
|
||||
}]);
|
||||
|
||||
const navButtonClick = (e) =>{
|
||||
const index = e.index;
|
||||
if(index == 0){
|
||||
unUpdate();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@ -114,4 +132,13 @@
|
||||
width: 100px !important;
|
||||
/* 或者使用其他单位 */
|
||||
}
|
||||
|
||||
.nav-panel{
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
z-index: 999;
|
||||
background-color:#fff;
|
||||
}
|
||||
</style>
|
||||
Loading…
x
Reference in New Issue
Block a user