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