Browse Source

fix md0726

md0726
刘嘉炜 4 months ago
parent
commit
cfea3f2f39
  1. 5
      src/components/filter/header.vue
  2. 7
      src/components/filter/stadium_select.vue
  3. 6
      src/subpackage/device/pages/switch_manage/switch_manage.vue
  4. 5
      src/subpackage/order/pages/order_manage/order_manage.vue
  5. 2
      src/subpackage/shower/pages/card/detail.vue
  6. 7
      src/subpackage/shower/pages/device/use_record.vue

5
src/components/filter/header.vue

@ -52,9 +52,10 @@ export default {
}
},
methods: {
initStadiumSelect(brand_id){
initStadiumSelect({ brand_id, stadium_id }){
this.isStadium = !!brand_id;
return this.$refs.stadiumSelect.getStadiumList(brand_id);
if(!brand_id) return;
return this.$refs.stadiumSelect.initStadiums({ brand_id, stadium_id });
},
showPeriodModal(e){
this.$refs.periodModal.show(e);

7
src/components/filter/stadium_select.vue

@ -35,6 +35,13 @@ export default {
this.curStadium = stadiumList[value];
this.$emit('change:stadium', this.curStadium);
},
async initStadiums({ brand_id, stadium_id }){
if(!brand_id) return;
let _ls = await this.getStadiumList(brand_id);
console.log('initStadiums:', _ls);
let _curStadium = _ls.find(e=>e.id === stadium_id);
if(_curStadium)this.curStadium = _curStadium;
},
//
getStadiumList(brand_id){
return servers.get({

6
src/subpackage/device/pages/switch_manage/switch_manage.vue

@ -147,8 +147,10 @@ export default {
methods: {
// 使
toWaterRecord(){
let { curStoreInfo } = this;
routeTo(`/subpackage/shower/pages/device/use_record?brand_id=${curStoreInfo?.brand_id || ''}`, 'nT')
let { curStoreInfo, pageInfo } = this;
console.log(curStoreInfo)
let _qryStr = `brand_id=${curStoreInfo?.brand_id || ''}&stadium_id=${curStoreInfo?.id || ''}`;
routeTo(`/subpackage/shower/pages/device/use_record?${_qryStr}`, 'nT')
},
isDetailBtn(e){
if(e&&e.toString() === "[object Object]"){

5
src/subpackage/order/pages/order_manage/order_manage.vue

@ -33,6 +33,11 @@ export default {
tabClick(ele){
let { brandInfo } = this;
if(!this.isFinish(ele.key))return util.showNone('待开放中!');
// 20240910 md0726
if([16].includes(ele.key)){
let _qryStr = `brand_id=${brandInfo?.brand?.id || ''}`;
return util.routeTo(`/subpackage/shower/pages/device/use_record?${_qryStr}`, 'nT');
}
// 20240813 tid1553
if([22, 23].includes(ele.key)){
let _qryStr = `order_type=${ele.orderType}&brand_id=${brandInfo?.brand?.id || ''}`;

2
src/subpackage/shower/pages/card/detail.vue

@ -223,7 +223,7 @@ export default {
&::after{
content: '';
display: block;
padding-top: 26upx;
margin-top: 26upx;
height: 1px;
background: #D8D8D8;
}

7
src/subpackage/shower/pages/device/use_record.vue

@ -95,11 +95,14 @@ export default {
})
},
async onLoad(options){
this.$refs.orderFilter.initStadiumSelect(options?.brand_id);
this.$refs.orderFilter.initStadiumSelect({
brand_id: options?.brand_id || '',
stadium_id: options?.stadium_id || ''
});
this.brand_id = options?.brand_id || '';
this.condition.stadium_id = options?.stadium_id || '';
// this.getOrderList({ brand_id: options?.brand_id });
this.initDate();
console.log(this.condition)
},
methods: {
endTimekeeping(e){

Loading…
Cancel
Save