更新
This commit is contained in:
@@ -5,16 +5,10 @@
|
||||
<view class="header_seach">
|
||||
<view class="header_seach_seach">
|
||||
<view class="seach_input">
|
||||
<uni-easyinput
|
||||
:candidate='candidate'
|
||||
:ejectOpen='ejectOpen'
|
||||
@ejectFn='ejectFn'
|
||||
:letfText='letfText'
|
||||
confirmType='search'
|
||||
@confirm='seachFn'
|
||||
placeholder-style="color:#bbbbbb;font-weight: 100;"
|
||||
v-model="seachValue"
|
||||
:placeholder="letfText=='企业'?'企业名,企业ID':'司机姓名,司机手机号'" @iconClick="onClick">
|
||||
<uni-easyinput :candidate='candidate' :ejectOpen='ejectOpen' @ejectFn='ejectFn'
|
||||
:letfText='letfText' confirmType='search' @confirm='seachFn'
|
||||
placeholder-style="color:#bbbbbb;font-weight: 100;" v-model="seachValue"
|
||||
:placeholder="letfText=='企业'?'企业名,企业ID':'司机姓名,司机手机号'" @iconClick="onClick">
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
<button @tap='jump(2)' class="header_seach_butten">
|
||||
@@ -36,7 +30,7 @@
|
||||
</topBar>
|
||||
<view style="flex: 1;overflow: hidden;">
|
||||
<scroll-view v-if="listData.length!=0" style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'>
|
||||
<view v-for="(item,index) in listData" class="form_body">
|
||||
<view v-for="(item,index) in listData" class="form_body">
|
||||
<view @tap="jump(1,item)" class="form_body_item">
|
||||
<view v-if="item.auditMark==0" class="leftTip"></view>
|
||||
<view class="form_body_item_body">
|
||||
@@ -87,19 +81,21 @@
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view v-if="listData.length==0" style="width: 100vw; height: 100%; display: flex;align-items: center;justify-content: center;">
|
||||
<view v-if="listData.length==0"
|
||||
style="width: 100vw; height: 100%; display: flex;align-items: center;justify-content: center;">
|
||||
<image src="@/static/qx.png" style="width: 536rpx; height: 399rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<popup :show="showPopup" @confirmFn='confirmFn' @closeFn='closeFn' :butten='butten'
|
||||
v-model="iShow.examine">
|
||||
<view slot="coment">
|
||||
<popup :show="showPopup" @confirmFn='confirmFn' @closeFn='closeFn' :butten='butten' v-model="iShow.examine">
|
||||
<view slot="coment">
|
||||
<view class="examine_popup_body">
|
||||
<view class="examine_popup_header">
|
||||
<view class="examine_popup_header_top">
|
||||
<view class="examine_popup_header_title">分发详情</view>
|
||||
<view :style="{background:typeBackground(seledata.auditMark),color:typeColor(seledata.auditMark)}" class="listCard_header_Type">
|
||||
<view :style="{background:typeColor(seledata.auditMark)}" class="garden"></view>
|
||||
<view
|
||||
:style="{background:typeBackground(seledata.auditMark),color:typeColor(seledata.auditMark)}"
|
||||
class="listCard_header_Type">
|
||||
<view :style="{background:typeColor(seledata.auditMark)}" class="garden"></view>
|
||||
<text>{{seledata.auditMark|typeText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -115,8 +111,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="examine_popup_orderType">
|
||||
<image style="width: 60rpx;height: 50rpx;" class="form_body_item_img" src="@/static/fy.png"></image>
|
||||
<view class="examine_popup_orderType_text">{{ Number(seledata.disAmount).toFixed(2)||'--' }}</view>
|
||||
<image style="width: 60rpx;height: 50rpx;" class="form_body_item_img" src="@/static/fy.png">
|
||||
</image>
|
||||
<view class="examine_popup_orderType_text">{{ Number(seledata.disAmount).toFixed(2)||'--' }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="information_item">
|
||||
<view class="information_item_label">子公司</view>
|
||||
@@ -126,15 +124,21 @@
|
||||
</view>
|
||||
</view>
|
||||
<view style="margin-top: 20rpx;" class="information_item_other">
|
||||
<view class="information_item_other_value">{{seledata.createUserName||'暂无'}}({{seledata.createUser||'--'}}) <br/> {{seledata.createTime||'--'}}</view>
|
||||
<view class="information_item_other_value">
|
||||
{{seledata.createUserName||'暂无'}}({{seledata.createUser||'--'}}) <br />
|
||||
{{seledata.createTime||'--'}}
|
||||
</view>
|
||||
<view class="information_item_other_label">申请信息</view>
|
||||
</view>
|
||||
<view class="information_item_other">
|
||||
<view class="information_item_other_value">{{seledata.auditUserName||'暂无'}}({{seledata.auditUser||'暂无'}}) <br/> {{seledata.auditTime||'--'}}</view>
|
||||
<view class="information_item_other_value">
|
||||
{{seledata.auditUserName||'暂无'}}({{seledata.auditUser||'暂无'}}) <br />
|
||||
{{seledata.auditTime||'--'}}
|
||||
</view>
|
||||
<view class="information_item_other_label">审核信息</view>
|
||||
</view>
|
||||
|
||||
<!-- <view>
|
||||
|
||||
<!-- <view>
|
||||
<view class="company_msg">
|
||||
<text class="samll_txext">公司名</text>
|
||||
<text class="company_msg_content">{{seledata.disCompanyName}}</text>
|
||||
@@ -164,7 +168,7 @@
|
||||
</view>
|
||||
</view>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</popup>
|
||||
</view>
|
||||
</template>
|
||||
@@ -180,9 +184,9 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showPopup:{
|
||||
img:false,
|
||||
footer:false
|
||||
showPopup: {
|
||||
img: false,
|
||||
footer: false
|
||||
},
|
||||
animationData: null,
|
||||
seledata: {},
|
||||
@@ -269,44 +273,44 @@
|
||||
onShow() {
|
||||
this.getList();
|
||||
},
|
||||
filters:{
|
||||
typeText:function(e){
|
||||
switch(Number(e)){
|
||||
case 0:
|
||||
return '等待审核'
|
||||
case 1:
|
||||
return '审核通过'
|
||||
case -1:
|
||||
return '审核失败'
|
||||
filters: {
|
||||
typeText: function(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '等待审核'
|
||||
case 1:
|
||||
return '审核通过'
|
||||
case -1:
|
||||
return '审核失败'
|
||||
default:
|
||||
return '---'
|
||||
return '---'
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
typeColor:function(e){
|
||||
console.log(e,'-----')
|
||||
switch(Number(e)){
|
||||
case 0:
|
||||
return '#E8CD30'
|
||||
case 1:
|
||||
return '#17A00E'
|
||||
case -1:
|
||||
return '#EC4545'
|
||||
typeColor: function(e) {
|
||||
console.log(e, '-----')
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '#E8CD30'
|
||||
case 1:
|
||||
return '#17A00E'
|
||||
case -1:
|
||||
return '#EC4545'
|
||||
default:
|
||||
return ''
|
||||
return ''
|
||||
}
|
||||
},
|
||||
typeBackground:function(e){
|
||||
switch(Number(e)){
|
||||
case 0:
|
||||
return '#E8CD3026'
|
||||
case 1:
|
||||
return '#17A00E26'
|
||||
case -1:
|
||||
return '#EC454526'
|
||||
typeBackground: function(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '#E8CD3026'
|
||||
case 1:
|
||||
return '#17A00E26'
|
||||
case -1:
|
||||
return '#EC454526'
|
||||
default:
|
||||
return ''
|
||||
return ''
|
||||
}
|
||||
},
|
||||
animationFns() {
|
||||
@@ -388,10 +392,10 @@
|
||||
getList() {
|
||||
oilDistribution.getByPageOms(this.getData).then(res => {
|
||||
if (res.code !== 20000) return
|
||||
if(res.data.list.length==0){
|
||||
if (res.data.list.length == 0) {
|
||||
uni.showToast({
|
||||
title:'没有数据了哦',
|
||||
icon:'none'
|
||||
title: '没有数据了哦',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
if (this.getData.currentPage !== 1) {
|
||||
@@ -412,29 +416,29 @@
|
||||
})
|
||||
break;
|
||||
case 1:
|
||||
this.seledata = item
|
||||
this.iShow.examine = true
|
||||
this.seledata = item
|
||||
this.iShow.examine = true
|
||||
if (item.auditMark == 0) {
|
||||
this.showPopup.footer = true
|
||||
}else{
|
||||
} else {
|
||||
this.showPopup.footer = false
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if(uni.getStorageSync('user').authList.includes('distributeReverse:info:add')){
|
||||
uni.redirectTo({
|
||||
url: "../distribute/distribute",
|
||||
fail(E) {
|
||||
console.log(e)
|
||||
}
|
||||
})
|
||||
}else{
|
||||
uni.showToast({
|
||||
title:'暂无权限请联系管理员',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
|
||||
if (uni.getStorageSync('user').authList.includes('distributeReverse:info:add')) {
|
||||
uni.redirectTo({
|
||||
url: "../distribute/distribute",
|
||||
fail(E) {
|
||||
console.log(e)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '暂无权限请联系管理员',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
},
|
||||
@@ -482,6 +486,7 @@
|
||||
|
||||
<style>
|
||||
@import url("./popup.css");
|
||||
|
||||
.icoon :active {
|
||||
color: #007AFF;
|
||||
}
|
||||
@@ -747,14 +752,14 @@
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
/* .header {
|
||||
background-color: #007AFF;
|
||||
.header {
|
||||
/* background-color: #007AFF; */
|
||||
color: white;
|
||||
min-height: 403rpx;
|
||||
background-image: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png');
|
||||
background-size: 100% 100%;
|
||||
background: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png') 100%/100%;
|
||||
/* background-size: 100% 100%; */
|
||||
position: relative;
|
||||
} */
|
||||
}
|
||||
|
||||
.uni-navbar__header-btns-right {
|
||||
padding-right: 0 !important;
|
||||
|
||||
Reference in New Issue
Block a user