Compare commits
6 Commits
9068007759
...
KongDuo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6e6a74f82 | ||
|
|
9b5e019423 | ||
|
|
9f0278bc5f | ||
|
|
0b96f27a99 | ||
| 736b352f8d | |||
|
|
953f687615 |
@@ -82,6 +82,9 @@
|
|||||||
<view>
|
<view>
|
||||||
{{detail.billTypeName + ' '}}{{ detail.occurAmount|moneyFormat}}元
|
{{detail.billTypeName + ' '}}{{ detail.occurAmount|moneyFormat}}元
|
||||||
</view>
|
</view>
|
||||||
|
<view class="text-gray text-sm">
|
||||||
|
{{'备注:' + detail.distributeOilRemark + ' '}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="action">
|
<view class="action">
|
||||||
<text class="text-black">{{detail.occurAmount|moneyFormat}}</text>
|
<text class="text-black">{{detail.occurAmount|moneyFormat}}</text>
|
||||||
|
|||||||
@@ -122,7 +122,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
油站:
|
油站:
|
||||||
<view class="fr">{{order.siteName?order.siteName:''}} <text v-if="order.siteLevel" class="cu-tag text-xs tag-red" style="margin-left: 20px;">{{order.siteLevel}}级</text> </view>
|
<view class="fr">{{order.siteName?order.siteName:''}}
|
||||||
|
<!-- <text v-if="order.siteLevel" class="cu-tag text-xs tag-red" style="margin-left: 20px;">{{order.siteLevel}}级</text> -->
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
油品油枪:
|
油品油枪:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<view class="content" >
|
<view class="content" >
|
||||||
<view class="strong padding-bottom-xs" style="width: 263px;">
|
<view class="strong padding-bottom-xs" style="width: 263px;">
|
||||||
{{siteInfo.siteName}}
|
{{siteInfo.siteName}}
|
||||||
<text v-if="siteInfo.siteLevel" class="cu-tag round bg-self-yellow yu-tag text-xs tag-red" style="margin-left: 20px;">{{siteInfo.siteLevel}}级</text>
|
<!-- <text v-if="siteInfo.siteLevel" class="cu-tag round bg-self-yellow yu-tag text-xs tag-red" style="margin-left: 20px;">{{siteInfo.siteLevel}}级</text> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="font-12 color-999 site-label text-cut">
|
<view class="font-12 color-999 site-label text-cut">
|
||||||
{{siteInfo.address}}
|
{{siteInfo.address}}
|
||||||
|
|||||||
@@ -150,7 +150,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
油站:
|
油站:
|
||||||
<view class="fr">{{order.siteName?order.siteName:''}} <text v-if="order.siteLevel" class="cu-tag text-xs tag-red" style="margin-left: 20px;">{{order.siteLevel}}级</text> </view>
|
<view class="fr">{{order.siteName?order.siteName:''}}
|
||||||
|
<!-- <text v-if="order.siteLevel" class="cu-tag text-xs tag-red" style="margin-left: 20px;">{{order.siteLevel}}级</text> -->
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
油品油枪:
|
油品油枪:
|
||||||
@@ -196,7 +198,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
油站:
|
油站:
|
||||||
<view class="fr">{{order.siteName?order.siteName:''}} <text v-if="order.siteLevel" class="cu-tag text-xs tag-red" style="margin-left: 20px;">{{order.siteLevel}}级</text> </view>
|
<view class="fr">{{order.siteName?order.siteName:''}}
|
||||||
|
<!-- <text v-if="order.siteLevel" class="cu-tag text-xs tag-red" style="margin-left: 20px;">{{order.siteLevel}}级</text> -->
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding-tb-xs text-left">
|
<view class="padding-tb-xs text-left">
|
||||||
加注类型:
|
加注类型:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<view class="content" style="overflow: hidden;" >
|
<view class="content" style="overflow: hidden;" >
|
||||||
<view style="width: 100%; display: flex;" class="strong padding-bottom-xs" >
|
<view style="width: 100%; display: flex;" class="strong padding-bottom-xs" >
|
||||||
<text style="width: 100%;flex: 1;" class="text-cut">{{siteInfo.siteName}}</text>
|
<text style="width: 100%;flex: 1;" class="text-cut">{{siteInfo.siteName}}</text>
|
||||||
<text v-if="siteInfo.siteLevel" class="cu-tag round bg-self-yellow yu-tag text-xs tag-red" style="margin-left: 20px;">{{siteInfo.siteLevel}}级</text>
|
<!-- <text v-if="siteInfo.siteLevel" class="cu-tag round bg-self-yellow yu-tag text-xs tag-red" style="margin-left: 20px;">{{siteInfo.siteLevel}}级</text> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="font-12 color-999 site-label text-cut">
|
<view class="font-12 color-999 site-label text-cut">
|
||||||
{{siteInfo.address}}
|
{{siteInfo.address}}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<view style="display: flex;" class="listTages">
|
<view style="display: flex;" class="listTages">
|
||||||
<view :style="{background:siteItem.siteType==1?'#FF6700':'#00c15e'}" class=" cu-tag round bg-self--dark-yellow yu-tag text-xs">{{siteItem.siteType==1?'加油站':'加气站'}}</view>
|
<view :style="{background:siteItem.siteType==1?'#FF6700':'#00c15e'}" class=" cu-tag round bg-self--dark-yellow yu-tag text-xs">{{siteItem.siteType==1?'加油站':'加气站'}}</view>
|
||||||
<view class="cu-tag round bg-self--dark-blue yu-tag text-xs" v-show="siteItem.ureaNumber>0">尿素</view>
|
<view class="cu-tag round bg-self--dark-blue yu-tag text-xs" v-show="siteItem.ureaNumber>0">尿素</view>
|
||||||
<view v-if="siteItem.siteLevel" class=" cu-tag round bg-self--dark-yellow yu-tag text-xs">{{siteItem.siteLevel}}级</view>
|
<!-- <view v-if="siteItem.siteLevel" class=" cu-tag round bg-self--dark-yellow yu-tag text-xs">{{siteItem.siteLevel}}级</view> -->
|
||||||
<view class="cu-tag round bg-self-yellow yu-tag text-xs" :class="siteItem.channelCode=='XOIL'?'tag-red':''">{{siteItem.listTag|channelCodeFamt}}</view>
|
<view class="cu-tag round bg-self-yellow yu-tag text-xs" :class="siteItem.channelCode=='XOIL'?'tag-red':''">{{siteItem.listTag|channelCodeFamt}}</view>
|
||||||
<view class="cu-tag round bg-self--dark-yellow yu-tag text-xs" v-show="first">距离最近</view>
|
<view class="cu-tag round bg-self--dark-yellow yu-tag text-xs" v-show="first">距离最近</view>
|
||||||
<view v-if="siteItem.highSpeedMark||siteItem.roadTpye" class="cu-tag round bg-self--dark-blue yu-tag text-xs" :style="{background:speedMarkColor(siteItem.highSpeedMark,siteItem.roadTpye)}">{{speedMark(siteItem.highSpeedMark,siteItem.roadTpye)}}{{siteItem.roadName?':'+siteItem.roadName:''}}</view>
|
<view v-if="siteItem.highSpeedMark||siteItem.roadTpye" class="cu-tag round bg-self--dark-blue yu-tag text-xs" :style="{background:speedMarkColor(siteItem.highSpeedMark,siteItem.roadTpye)}">{{speedMark(siteItem.highSpeedMark,siteItem.roadTpye)}}{{siteItem.roadName?':'+siteItem.roadName:''}}</view>
|
||||||
|
|||||||
@@ -20,22 +20,32 @@
|
|||||||
<view class="">
|
<view class="">
|
||||||
<span class="zdyTitle" v-if="( productCodeLable? index==3 : false ) ">渠道</span>
|
<span class="zdyTitle" v-if="( productCodeLable? index==3 : false ) ">渠道</span>
|
||||||
<view class="filter-content-detail show_min_height">
|
<view class="filter-content-detail show_min_height">
|
||||||
<text v-if="( productCodeLable? index==3 : false ) " v-for="( detailItem,idx) in selectDetailLists" :key="idx" class='filter-content-detail-item-default' :style="{'background-color':detailItem.isSelected?themeColor:'#FFFFFF','color':detailItem.isSelected?'#FFFFFF':'#666666'}"
|
<text v-if="( productCodeLable? index==3 : false ) "
|
||||||
|
v-for="( detailItem,idx) in selectDetailLists" :key="idx"
|
||||||
|
class='filter-content-detail-item-default'
|
||||||
|
:style="{'background-color':detailItem.isSelected?themeColor:'#FFFFFF','color':detailItem.isSelected?'#FFFFFF':'#666666'}"
|
||||||
@tap="itemTaps(idx,selectDetailLists,item.isMutiple,'channelCode',detailItem)">
|
@tap="itemTaps(idx,selectDetailLists,item.isMutiple,'channelCode',detailItem)">
|
||||||
{{detailItem.title}}
|
{{detailItem.title}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<span class="zdyTitle" v-if="( productCodeLable? index==3 : false ) ">品牌</span>
|
<span class="zdyTitle" v-if="( productCodeLable? index==3 : false ) ">品牌</span>
|
||||||
<view class="filter-content-detail show_min_height">
|
<view class="filter-content-detail show_min_height">
|
||||||
<text v-if="( productCodeLable? index!==2 : true ) " v-for="( detailItem,idx) in selectDetailList" :key="idx" class='filter-content-detail-item-default' :style="{'background-color':detailItem.isSelected?themeColor:'#FFFFFF','color':detailItem.isSelected?'#FFFFFF':'#666666'}"
|
<text v-if="( productCodeLable? index!==2 : true ) "
|
||||||
|
v-for="( detailItem,idx) in selectDetailList" :key="idx"
|
||||||
|
class='filter-content-detail-item-default'
|
||||||
|
:style="{'background-color':detailItem.isSelected?themeColor:'#FFFFFF','color':detailItem.isSelected?'#FFFFFF':'#666666'}"
|
||||||
@tap="itemTap(idx,selectDetailList,item.isMutiple,item.key,detailItem,index)">
|
@tap="itemTap(idx,selectDetailList,item.isMutiple,item.key,detailItem,index)">
|
||||||
{{detailItem.title}}
|
{{detailItem.title}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-bottom: 10rpx;" v-for="(p,pIndex) in productCodeLable" v-if="(productCodeLable? index==2:false) ">
|
<view style="margin-bottom: 10rpx;" v-for="(p,pIndex) in productCodeLable"
|
||||||
|
v-if="(productCodeLable? index==2:false) ">
|
||||||
<view class="newselsetitle">{{p}}</view>
|
<view class="newselsetitle">{{p}}</view>
|
||||||
<view class="newselse">
|
<view class="newselse">
|
||||||
<text :style="{background:seleIdex == zIndex +'/'+ p + '/' + index?'#FF6700':'',color:seleIdex == zIndex +'/'+ p + '/' + index?'#FFFFFF':'',border:seleIdex == zIndex +'/'+ p + '/' + index?'0px':''}" @click="pseleFn(zIndex,p,index)" v-for="(z,zIndex) in productCodeList[p]" class="newselseitem" >{{z}}</text>
|
<text
|
||||||
|
:style="{background:seleIdex == zIndex +'/'+ p + '/' + index?'#FF6700':'',color:seleIdex == zIndex +'/'+ p + '/' + index?'#FFFFFF':'',border:seleIdex == zIndex +'/'+ p + '/' + index?'0px':''}"
|
||||||
|
@click="pseleFn(zIndex,p,index)" v-for="(z,zIndex) in productCodeList[p]"
|
||||||
|
class="newselseitem">{{z}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -54,14 +64,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</picker-view-column>
|
</picker-view-column>
|
||||||
<picker-view-column v-if="areaCodeList[areaIndex[0]]">
|
<picker-view-column v-if="areaCodeList[areaIndex[0]]">
|
||||||
<view class="center" v-for="(item, index) in areaCodeList[areaIndex[0]].childList" :key="index">
|
<view class="center" v-for="(item, index) in areaCodeList[areaIndex[0]].childList"
|
||||||
|
:key="index">
|
||||||
<view v-show="false">{{ JSON.stringify(item.areaName) }}</view>
|
<view v-show="false">{{ JSON.stringify(item.areaName) }}</view>
|
||||||
{{ item.areaName }}
|
{{ item.areaName }}
|
||||||
</view>
|
</view>
|
||||||
</picker-view-column>
|
</picker-view-column>
|
||||||
<picker-view-column v-if="areaCodeList[areaIndex[0]]">
|
<picker-view-column v-if="areaCodeList[areaIndex[0]]">
|
||||||
<view class="center"
|
<view class="center"
|
||||||
v-for="(item, index) in areaCodeList[areaIndex[0]].childList[areaIndex[1]].childList" :key="index">
|
v-for="(item, index) in areaCodeList[areaIndex[0]].childList[areaIndex[1]].childList"
|
||||||
|
:key="index">
|
||||||
<view v-show="false">{{ JSON.stringify(item.areaName) }}</view>
|
<view v-show="false">{{ JSON.stringify(item.areaName) }}</view>
|
||||||
{{ item.areaName }}
|
{{ item.areaName }}
|
||||||
</view>
|
</view>
|
||||||
@@ -70,10 +82,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter-content-footer">
|
<view class="filter-content-footer">
|
||||||
<view class="filter-content-footer-item" style="color: #777777; background-color: #FFFFFF;" @tap="resetClick(selectDetailList,item.key,selectDetailLists,'channelCode',index)">
|
<view class="filter-content-footer-item" style="color: #777777; background-color: #FFFFFF;"
|
||||||
|
@tap="resetClick(selectDetailList,item.key,selectDetailLists,'channelCode',index)">
|
||||||
<text>重置</text>
|
<text>重置</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter-content-footer-item" :style="{'color': '#FFFFFF', 'background-color': themeColor}" @tap="sureClick(selectDetailList,item.key,index)">
|
<view class="filter-content-footer-item"
|
||||||
|
:style="{'color': '#FFFFFF', 'background-color': themeColor}"
|
||||||
|
@tap="sureClick(selectDetailList,item.key,index)">
|
||||||
<text>确定</text>
|
<text>确定</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -143,13 +158,13 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
productCodeList: function(n, o) {
|
productCodeList: function(n, o) {
|
||||||
console.log('%c 打印的新的列表格式箭头↓zxxxx','color:red;font-size:32px')
|
// console.log('%c 打印的新的列表格式箭头↓zxxxx','color:red;font-size:32px')
|
||||||
this.setingFn()
|
this.setingFn()
|
||||||
console.log(this.productCodeList,this.menuList,'9999999999999')
|
// console.log(this.productCodeList,this.menuList,'9999999999999')
|
||||||
},
|
},
|
||||||
selectDetailList: function(n, o) {
|
selectDetailList: function(n, o) {
|
||||||
console.log('%c 元数组切换↓1','font-size:50px;color:blue')
|
// console.log('%c 元数组切换↓1','font-size:50px;color:blue')
|
||||||
console.log(this.menuIndex)
|
// console.log(this.menuIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -161,8 +176,29 @@
|
|||||||
*/
|
*/
|
||||||
// console.log(this.menuList,'打印列表列表')
|
// console.log(this.menuList,'打印列表列表')
|
||||||
this.setingFn()
|
this.setingFn()
|
||||||
this.areaCodeList = uni.getStorageSync('areaCodeList')
|
this.areaCodeList = uni.getStorageSync('areaCodeList') || []
|
||||||
this.areaCodeList.unshift({areaName:'全部',childList:[{areaName:'',childList:[{areaName:''}]}]})
|
this.areaCodeList.unshift({
|
||||||
|
areaName: '全部',
|
||||||
|
childList: [{
|
||||||
|
areaName: '',
|
||||||
|
childList: [{
|
||||||
|
areaName: ''
|
||||||
|
}]
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
if (this.areaCodeList.length === 1) {
|
||||||
|
let instance = setInterval(() => {
|
||||||
|
// console.log('执行一次')
|
||||||
|
if (this.areaCodeList1.length) {
|
||||||
|
clearInterval(instance)
|
||||||
|
this.areaCodeList = [...this.areaCodeList, ...this.areaCodeList1]
|
||||||
|
}
|
||||||
|
}, 2000)
|
||||||
|
}
|
||||||
|
// setTimeout(() => {
|
||||||
|
|
||||||
|
// },3000)
|
||||||
|
|
||||||
// setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
// if(this.areaCodeList1.length<1){
|
// if(this.areaCodeList1.length<1){
|
||||||
// this.areaCodeList = uni.getStorageSync('areaCodeList')
|
// this.areaCodeList = uni.getStorageSync('areaCodeList')
|
||||||
@@ -221,16 +257,21 @@
|
|||||||
// 数组push‘全部’
|
// 数组push‘全部’
|
||||||
if (val[0] != 0) {
|
if (val[0] != 0) {
|
||||||
if (this.areaCodeList[val[0]].childList[0].areaName != '全部') {
|
if (this.areaCodeList[val[0]].childList[0].areaName != '全部') {
|
||||||
this.areaCodeList[val[0]].childList.unshift({areaName:'全部'})
|
this.areaCodeList[val[0]].childList.unshift({
|
||||||
|
areaName: '全部'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (this.areaIndex[1] != 0) {
|
if (this.areaIndex[1] != 0) {
|
||||||
if (this.areaCodeList[val[0]].childList[val[1]].childList[0].areaName != '全部') {
|
if (this.areaCodeList[val[0]].childList[val[1]].childList[0].areaName != '全部') {
|
||||||
this.areaCodeList[val[0]].childList[val[1]].childList.unshift({areaName:'全部'})
|
this.areaCodeList[val[0]].childList[val[1]].childList.unshift({
|
||||||
|
areaName: '全部'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.provinceCode = this.areaCodeList[this.areaIndex[0]].id
|
this.provinceCode = this.areaCodeList[this.areaIndex[0]].id
|
||||||
this.cityCode = this.areaCodeList[this.areaIndex[0]].childList[this.areaIndex[1]].id
|
this.cityCode = this.areaCodeList[this.areaIndex[0]].childList[this.areaIndex[1]].id
|
||||||
this.areaCode = this.areaCodeList[this.areaIndex[0]].childList[this.areaIndex[1]].childList[this.areaIndex[2]].id
|
this.areaCode = this.areaCodeList[this.areaIndex[0]].childList[this.areaIndex[1]].childList[this
|
||||||
|
.areaIndex[2]].id
|
||||||
} else {
|
} else {
|
||||||
this.provinceCode = this.cityCode = this.areaCode = ''
|
this.provinceCode = this.cityCode = this.areaCode = ''
|
||||||
this.areaIndex = [0, 0, 0]
|
this.areaIndex = [0, 0, 0]
|
||||||
@@ -260,7 +301,8 @@
|
|||||||
let obj = {}
|
let obj = {}
|
||||||
for (let i = 0; i < this.menuList.length; i++) {
|
for (let i = 0; i < this.menuList.length; i++) {
|
||||||
let item = this.menuList[i];
|
let item = this.menuList[i];
|
||||||
if (!this.independence && item.defaultSelectedIndex != null && item.defaultSelectedIndex.toString().length > 0) { // 处理并列菜单默认值
|
if (!this.independence && item.defaultSelectedIndex != null && item.defaultSelectedIndex.toString()
|
||||||
|
.length > 0) { // 处理并列菜单默认值
|
||||||
|
|
||||||
if (item.isMutiple) {
|
if (item.isMutiple) {
|
||||||
obj[item.key] = [];
|
obj[item.key] = [];
|
||||||
@@ -324,16 +366,20 @@
|
|||||||
if (Array.isArray(this.menuList[i].defaultSelectedIndex)) { // 把所有默认的为false的点为true
|
if (Array.isArray(this.menuList[i].defaultSelectedIndex)) { // 把所有默认的为false的点为true
|
||||||
for (let j = 0; j < this.menuList[i].defaultSelectedIndex.length; j++) {
|
for (let j = 0; j < this.menuList[i].defaultSelectedIndex.length; j++) {
|
||||||
if (this.selectDetailList[this.menuList[i].defaultSelectedIndex[j]].isSelected == false) {
|
if (this.selectDetailList[this.menuList[i].defaultSelectedIndex[j]].isSelected == false) {
|
||||||
this.itemTap(this.menuList[i].defaultSelectedIndex[j], this.selectDetailList, this.menuList[i].isMutiple, this
|
this.itemTap(this.menuList[i].defaultSelectedIndex[j], this.selectDetailList, this
|
||||||
|
.menuList[i].isMutiple, this
|
||||||
.menuList[i].key)
|
.menuList[i].key)
|
||||||
this.itemTaps(this.menuList[i].defaultSelectedIndex[j], this.selectDetailList, this.menuList[i].isMutiple, this
|
this.itemTaps(this.menuList[i].defaultSelectedIndex[j], this.selectDetailList, this
|
||||||
|
.menuList[i].isMutiple, this
|
||||||
.menuList[i].key)
|
.menuList[i].key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.itemTap(this.menuList[i].defaultSelectedIndex, this.selectDetailList, this.menuList[i].isMutiple, this.menuList[
|
this.itemTap(this.menuList[i].defaultSelectedIndex, this.selectDetailList, this.menuList[i]
|
||||||
|
.isMutiple, this.menuList[
|
||||||
i].key)
|
i].key)
|
||||||
this.itemTaps(this.menuList[i].defaultSelectedIndex, this.selectDetailList, this.menuList[i].isMutiple, this.menuList[
|
this.itemTaps(this.menuList[i].defaultSelectedIndex, this.selectDetailList, this.menuList[i]
|
||||||
|
.isMutiple, this.menuList[
|
||||||
i].key)
|
i].key)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -342,9 +388,11 @@
|
|||||||
// 把所有不是默认的为true的点为false
|
// 把所有不是默认的为true的点为false
|
||||||
for (let j = 0; j < unDefaultSelectedIndexArr.length; j++) {
|
for (let j = 0; j < unDefaultSelectedIndexArr.length; j++) {
|
||||||
if (this.selectDetailList[unDefaultSelectedIndexArr[j]].isSelected == true) {
|
if (this.selectDetailList[unDefaultSelectedIndexArr[j]].isSelected == true) {
|
||||||
this.itemTap(unDefaultSelectedIndexArr[j], this.selectDetailList, this.menuList[i].isMutiple, this
|
this.itemTap(unDefaultSelectedIndexArr[j], this.selectDetailList, this.menuList[i]
|
||||||
|
.isMutiple, this
|
||||||
.menuList[i].key)
|
.menuList[i].key)
|
||||||
this.itemTaps(unDefaultSelectedIndexArr[j], this.selectDetailList, this.menuList[i].isMutiple, this
|
this.itemTaps(unDefaultSelectedIndexArr[j], this.selectDetailList, this.menuList[i]
|
||||||
|
.isMutiple, this
|
||||||
.menuList[i].key)
|
.menuList[i].key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -716,7 +764,8 @@
|
|||||||
// console.log(this.seleIdex.split('/'),this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[0]],this.seleIdex.split('/')[2],'dddddddddddddddddd')
|
// console.log(this.seleIdex.split('/'),this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[0]],this.seleIdex.split('/')[2],'dddddddddddddddddd')
|
||||||
if (this.seleIdex !== null && this.seleIdex.split('/')[2] == 2) {
|
if (this.seleIdex !== null && this.seleIdex.split('/')[2] == 2) {
|
||||||
|
|
||||||
obj.result.oilProductCode = this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[0]]?this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[0]]:''
|
obj.result.oilProductCode = this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[
|
||||||
|
0]] ? this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[0]] : ''
|
||||||
obj.titles.oilProductCode = obj.result.oilProductCode ? obj.result.oilProductCode : '全部'
|
obj.titles.oilProductCode = obj.result.oilProductCode ? obj.result.oilProductCode : '全部'
|
||||||
this.oilCode = obj.result.oilProductCode
|
this.oilCode = obj.result.oilProductCode
|
||||||
console.log(obj, 'look me!2')
|
console.log(obj, 'look me!2')
|
||||||
@@ -729,7 +778,9 @@
|
|||||||
console.log('%c 重置方法第一步resetClick函数参数↓', 'color:red;font-size:30px')
|
console.log('%c 重置方法第一步resetClick函数参数↓', 'color:red;font-size:30px')
|
||||||
console.log(list, key)
|
console.log(list, key)
|
||||||
if (this.seleIdex !== null && this.seleIdex.split('/')[2] == 2) {
|
if (this.seleIdex !== null && this.seleIdex.split('/')[2] == 2) {
|
||||||
console.log(this.seleIdex.split('/'),this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex.split('/')[0]])
|
console.log(this.seleIdex.split('/'), this.productCodeList[this.seleIdex.split('/')[1]][this.seleIdex
|
||||||
|
.split('/')[0]
|
||||||
|
])
|
||||||
this.pseleFn()
|
this.pseleFn()
|
||||||
// console.log(obj,'look me!2')
|
// console.log(obj,'look me!2')
|
||||||
// this.$emit("confirm", obj);
|
// this.$emit("confirm", obj);
|
||||||
@@ -778,16 +829,19 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newselsetitle {
|
.newselsetitle {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 15rpx;
|
margin-bottom: 15rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newselse {
|
.newselse {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 15rpx;
|
gap: 15rpx;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newselseitem {
|
.newselseitem {
|
||||||
padding: 5rpx 10rpx;
|
padding: 5rpx 10rpx;
|
||||||
/* background-color: #000000; */
|
/* background-color: #000000; */
|
||||||
@@ -797,6 +851,7 @@
|
|||||||
border: 1rpx solid #bbbbbb;
|
border: 1rpx solid #bbbbbb;
|
||||||
min-width: 90rpx;
|
min-width: 90rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-content {
|
.filter-content {
|
||||||
background-color: #F6F7F8;
|
background-color: #F6F7F8;
|
||||||
}
|
}
|
||||||
@@ -926,6 +981,7 @@
|
|||||||
height: 600upx;
|
height: 600upx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.zdyTitle {
|
.zdyTitle {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 10px 10px 0;
|
margin: 10px 10px 0;
|
||||||
|
|||||||
@@ -80,6 +80,16 @@
|
|||||||
watch:{
|
watch:{
|
||||||
isTransNav:function(n,o){
|
isTransNav:function(n,o){
|
||||||
console.log(n,'*****')
|
console.log(n,'*****')
|
||||||
|
},
|
||||||
|
'areaCodeList':{
|
||||||
|
handler(n,o) {
|
||||||
|
// console.log('触发watch',n,o)
|
||||||
|
if(n.length) {
|
||||||
|
this.areaCodeList1 = n
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep:true,
|
||||||
|
immediate:true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<!-- 筛选开始 -->
|
<!-- 筛选开始 -->
|
||||||
<scroll-view style="flex: 1;" class="screentop bg-white">
|
<scroll-view style="flex: 1;" class="screentop bg-white">
|
||||||
<view @click="reunrnFn" class="">
|
<view @click="reunrnFn" class="">
|
||||||
<sl-filter reflexTitle ref="slFilter" :productCodeList="productCodeList" :areaCodeList="areaCodeList" @result="filterRes" :menuList="menuList" v-if="TabHead == 0"></sl-filter>
|
<sl-filter reflexTitle ref="slFilter" v-if="TabHead == 0" :productCodeList="productCodeList" :areaCodeList="areaCodeList" @result="filterRes" :menuList="menuList" ></sl-filter>
|
||||||
<sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="ureaMenuList" v-if="TabHead == 1 && changeHs == true"></sl-filter>
|
<sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="ureaMenuList" v-if="TabHead == 1 && changeHs == true"></sl-filter>
|
||||||
<sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="productTypes" v-if="changeHs == false && TabHead == 1 "></sl-filter>
|
<sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="productTypes" v-if="changeHs == false && TabHead == 1 "></sl-filter>
|
||||||
</view>
|
</view>
|
||||||
@@ -243,6 +243,7 @@
|
|||||||
// console.log(storykey)
|
// console.log(storykey)
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
console.log("111111111111111",uni.getStorageSync('filterDatas'))
|
||||||
if (!uni.getStorageSync('filterDatas')) {
|
if (!uni.getStorageSync('filterDatas')) {
|
||||||
this.getFilterData()
|
this.getFilterData()
|
||||||
// console.log('dhgiuhihqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq')
|
// console.log('dhgiuhihqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq')
|
||||||
@@ -393,6 +394,7 @@
|
|||||||
},
|
},
|
||||||
getFilterData() {
|
getFilterData() {
|
||||||
oilSiteApi.getCheckInfo().then(res => {
|
oilSiteApi.getCheckInfo().then(res => {
|
||||||
|
console.log('resresresresres',res)
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
uni.setStorageSync('productCodeList', res.data.productCodeList)
|
uni.setStorageSync('productCodeList', res.data.productCodeList)
|
||||||
uni.setStorageSync('areaCodeList', res.data.areaCodeList)
|
uni.setStorageSync('areaCodeList', res.data.areaCodeList)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import utils from '@/utils/encode'
|
|||||||
// const env = 'test'
|
// const env = 'test'
|
||||||
const env = 'production'
|
const env = 'production'
|
||||||
// 45
|
// 45
|
||||||
const testUrl = 'http://192.168.1.85:38080'
|
const testUrl = 'http://192.168.1.83:38080'
|
||||||
// const productUrl = 'https://www.xingoil.com/adminapi'
|
// const productUrl = 'https://www.xingoil.com/adminapi'
|
||||||
|
|
||||||
const productUrl = 'http://uat.xingoil.com/adminapi'
|
const productUrl = 'http://uat.xingoil.com/adminapi'
|
||||||
|
|||||||
Reference in New Issue
Block a user