Jelajahi Sumber

加气优惠

chenlei 1 tahun lalu
induk
melakukan
8948bdb575

+ 2 - 1
README.md

@@ -62,7 +62,7 @@
 - 18.开发环境,通过generateBundle钩子函数实现增量修改微信小程序的js文件,以便提高小程序ide工具的编译速度。
 - 19.全局sass变量自动引入,全局sass变量、样式表定义。
 - 20.公共请求框架,根据swagger导入接口信息支持增量导入。
-- 21.页面方法公共初始化,对页面方法进行集中拦截、公共管控,已支持自动为对象内所有方法增加防重提功能(同步方法、异步方法执行中再次触发不执行)。
+- 21.页面方法公共初始化,对页面方法进行集中拦截、公共管控,已支持自动为对象内所有方法增加防重提功能(同步方法、异步方法执行中再次触发不执行)。
 - 22.微信小程序环境支持websocket-stomp协议,收银员扫描驾驶员二维码创建订单后,驾驶员端自动跳转待支付页面。√
 - 23.构建项目时自动化上传体验版至小程序后台。√
 - 24.构建项目时可区分开发、测试、生成环境,编写对应的命令。√
@@ -72,3 +72,4 @@
 - 28.编写业务组件:车牌号输入、拨打电话、加气站模块。
 - 29.本地调试时,通过编写unocss插件去掉unicss默认无用样式变量,提高浏览器环境样式调试性能。
 - 30.公共请求框架支持mock机制,支持划分mock场景。√
+- 31.公共请求框架兼容axios请求,为了与与mock插件适配,调试方便。√

+ 84 - 36
src/components/business/station/index.vue

@@ -1,45 +1,68 @@
+<!-- eslint-disable no-irregular-whitespace -->
 <template>
-  <div class="center justify-between chunk station" @click="methods.goDetail('1')">
-    <div>
-      <image class="mr-spac sta-img" :src="props.stationInfo.url" mode="scaleToFill" />
-    </div>
-    <div class="flex-1 mr-spac">
-      <div class="mb-spacd2 center justify-between">
-        <div class="ellipsis mr-spacd2">
-          {{ func.convert.nullView(props.stationInfo.nickName) }}
+  <div class="chunk p-spacd2">
+    <div class="center justify-between items-stretch mb-spacd2" @click="methods.goDetail('1')">
+      <div class="mr-spac">
+        <image
+          class="sta-img"
+          :class="['sta-img-type' + props.type]"
+          :src="props.stationInfo.url"
+          mode="scaleToFill"
+        />
+        <!-- <div class="h-0 auto-width">
+        <div class="p-fz"> </div>
+        <div class="s-fz"> </div>
+        <div class="s-fz" v-if="props.type === '1'"> </div>
+      </div> -->
+      </div>
+      <div class="flex-1 childs-fc-mbd2">
+        <div class="center justify-between">
+          <div class="ellipsis mr-spacd2 p-fz">
+            {{ func.convert.nullView(props.stationInfo.nickName) }}
+          </div>
+          <div class="whitespace-nowrap s-fz" v-if="props.type === '2'">
+            {{ func.convert.nullView(props.stationInfo.distance) }} km
+          </div>
         </div>
-        <div class="whitespace-nowrap s-fz">
-          {{ func.convert.nullView(props.stationInfo.distance) }} km
+        <div class="block mr-12 s-fz ellipsis gray-color">
+          {{
+            props.type === '1' ? func.convert.nullView(props.stationInfo.distance) + 'km | ' : ''
+          }}
+          {{ func.convert.nullView(props.stationInfo.address) }}
+        </div>
+        <div class="flex items-end" v-if="props.type === '1'">
+          <span class="font-bold mr-spacd2 price-color p-fz price">
+            {{ props.stationInfo.platformPrice }}
+          </span>
+          <span class="s-fz price">元/公斤</span>
         </div>
       </div>
-      <div class="mb-spacd2 s-fz ellipsis gray-color sta-addr">
-        {{ func.convert.nullView(props.stationInfo.address) }}
-      </div>
-      <div class="flex items-end">
-        <span class="font-bold mr-spacd2 price-color price">
-          {{ props.stationInfo.actualPrice }}
-        </span>
-        <span class="s-fz price">元/公斤</span>
+      <div>
+        <!-- <div class="s-fz distance">{{ props.stationInfo.distance }} km</div> -->
+        <div class="p-color s-fz detail" v-if="props.type === '2'" @click="methods.goDetail('2')">
+          详情
+          <uni-icons type="right" color="" size="12" />
+        </div>
+        <div
+          class="center s-fz location p-color"
+          :class="{ 'gray-color': !props.stationInfo.longitude }"
+          @click.stop="methods.openLocation"
+          v-if="props.type === '1'"
+        >
+          导航
+          <uni-icons type="paperplane" color="" size="12" />
+        </div>
       </div>
     </div>
-    <div>
-      <!-- <div class="s-fz distance">{{ props.stationInfo.distance }} km</div> -->
-      <div class="p-color s-fz detail" v-if="props.type === '2'" @click="methods.goDetail('2')">
-        详情
-        <uni-icons type="right" color="" size="12" />
-      </div>
-      <div
-        class="center s-fz location p-color"
-        :class="{ 'gray-color': !props.stationInfo.longitude }"
-        @click.stop="methods.openLocation"
-        v-if="props.type === '1'"
-      >
-        导航
-        <uni-icons type="paperplane" color="" size="12" />
-      </div>
+    <div class="s-fz" v-if="props.type === '2'">
+      平台价 {{ props.stationInfo.platformPrice }} 元/公斤
+    </div>
+    <div class="flex mr-12 ss-fz mt-spacd2">
+      <div class="flex-wrap tag" v-for="(t, i) in props.stationInfo.tags" :key="i">{{ t }}</div>
     </div>
   </div>
 </template>
+<script></script>
 <script lang="ts" setup>
 defineOptions({
   name: 'station',
@@ -52,7 +75,6 @@ type PropTypes = {
 const props = withDefaults(defineProps<PropTypes>(), {
   type: '1',
 })
-const data = {}
 const methods = {
   goDetail(type) {
     if (type === props.type) {
@@ -70,6 +92,17 @@ const methods = {
 }
 </script>
 <style lang="scss" scoped>
+.auto-width {
+  overflow: hidden;
+  writing-mode: vertical-lr;
+  div,
+  view {
+    margin-right: $p-spacd2;
+    &:last-child {
+      margin: 0;
+    }
+  }
+}
 .price {
   line-height: $p-fz;
 }
@@ -78,8 +111,17 @@ const methods = {
   padding: 0;
 }
 .sta-img {
-  width: 160rpx;
-  height: 160rpx;
+  width: 120rpx;
+  // height: 120rpx;
+  // width: 100%;
+  height: 100%;
+  border-radius: $p-spacd2;
+  &.sta-img-type1 {
+    width: 120rpx;
+  }
+  &.sta-img-type2 {
+    width: 80rpx;
+  }
 }
 
 .distance {
@@ -101,4 +143,10 @@ const methods = {
   background-color: rgba($p-color, 0.2);
   border-top-left-radius: $p-spacd2;
 }
+.tag {
+  padding: $p-spacd4;
+  margin-right: $p-spacd2;
+  border: 1rpx solid $border-color;
+  border-radius: $p-spacd4;
+}
 </style>

+ 37 - 16
src/components/container/index.vue

@@ -1,21 +1,25 @@
 <template>
   <!-- 小程序环境 会把$attrs 解析到最外层标签(虚拟标签,导致无效),只能使用自定义参数 -->
-  <div class="container" :class="props.cusClass" :style="props.cusStyle">
-    <ay-sticky top="0px" v-if="data.isCustom">
-      <div class="page-top" :style="{ height: props.topHeight, ...props.pageTopStyle }">
-        <div class="center page-title" :class="{ 'justify-start': data.titleAlginStart }">
-          <uni-icons
-            class="mr-spacd4"
-            v-if="data.showBackIcon"
-            type="left"
-            color=""
-            size="24"
-            @click="ay.navigateBack()"
-          />
-          <div class="font-bold bs-fz">{{ title }}</div>
-        </div>
+  <div class="container" :class="props.cusClass" :style="cusStyle" id="container">
+    <!-- <ay-sticky top="0px" v-if="data.isCustom">
+    </ay-sticky> -->
+    <div
+      class="page-top"
+      :style="{ height: props.topHeight, ...props.pageTopStyle }"
+      v-if="data.isCustom"
+    >
+      <div class="center page-title" :class="{ 'justify-start': data.titleAlginStart }">
+        <uni-icons
+          class="mr-spacd4"
+          v-if="data.showBackIcon"
+          type="left"
+          color=""
+          size="24"
+          @click="ay.navigateBack()"
+        />
+        <div class="font-bold bs-fz">{{ title }}</div>
       </div>
-    </ay-sticky>
+    </div>
     <div class="pt-spac" v-if="props.showSpac" />
     <!-- 小程序内只能用v-if移除组件,如果用v-show条件false时,整个页面不显示。。 -->
     <ay-pull v-if="store.curPage.pageConfig?.isPager">
@@ -50,6 +54,16 @@ const data = reactive({
   isCustom: false,
 })
 const title = computed(() => props.title || data.title)
+const cusStyle = computed(() => {
+  const rv = {}
+  if (data.isCustom) {
+    rv['padding-top'] = props.topHeight
+  }
+  return {
+    ...rv,
+    ...props.cusStyle,
+  }
+})
 onMounted(() => {
   data.title = store.curPage.pageConfig.title
   data.showBackIcon = ![config.pages.index_index._url, config.pages.login_index._url].includes(
@@ -58,6 +72,8 @@ onMounted(() => {
   data.titleAlginStart = store.curPage.pageConfig._url !== config.pages.login_index._url
   data.isCustom = store.curPage.pageConfig.style?.navigationStyle === 'custom'
 })
+
+const methods = {}
 </script>
 <style lang="scss" scoped>
 .container {
@@ -69,8 +85,13 @@ onMounted(() => {
 }
 
 .page-top {
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: 100;
+  width: 100%;
   padding: 0 $p-spac;
-  margin: 0 calc($p-spac / -1);
+  // margin: 0 calc($p-spac / -1);
   // margin-bottom: $p-spac;
   background-color: #f8f8f8;
   @apply flex;

+ 12 - 6
src/components/numer/index.vue

@@ -2,16 +2,15 @@
   <div>
     <template v-if="props.isSimple">
       <div v-if="props.pre">{{ props.pre }}</div>
-      <div v-if="func.isnull(props.value)">
-        {{ props.value }}
+      <div class="font-bold mr-spacd4" :class="props.valueClass">
+        {{ func.convert.nullView(props.value) }}
       </div>
-      <div class="font-bold mr-spacd4" v-else>{{ props.value }}</div>
-      <div v-if="numer.unit">{{ numer.unit }}</div>
+      <div v-if="props.unit">{{ props.unit }}</div>
     </template>
     <template v-else>
       <div v-if="props.pre">{{ props.pre }}</div>
       <div v-if="func.isnull(props.value)">
-        {{ props.value }}
+        {{ func.convert.nullView(props.value) }}
       </div>
       <div class="mr-spacd4" v-else>
         <div class="font-bold b-fz" v-if="numer.integer">{{ numer.integer }}</div>
@@ -24,13 +23,20 @@
 <script lang="ts" setup>
 type Numer = { integer?: string; decimal?: string; unit: string }
 const props = withDefaults(
-  defineProps<{ isSimple?: boolean; value?: number | string; pre?: string; unit?: string }>(),
+  defineProps<{
+    isSimple?: boolean
+    value?: number | string
+    pre?: string
+    unit?: string
+    valueClass: string[]
+  }>(),
   {
     value: '',
     unit: '',
   },
 )
 const numer = computed(() => {
+  if (props.isSimple) return
   const arr = props.value.toString().split('.')
   return {
     integer: arr[0],

+ 17 - 2
src/components/pull/index.vue

@@ -8,6 +8,14 @@
       <slot />
     </van-list>
     <!-- #endif -->
+    <!-- <z-paging
+      ref="paging"
+      refresher-only
+      @onRefresh="methods.onRefresh"
+      :paging-style="{ top: '98px' }"
+    >
+      <slot />
+    </z-paging> -->
     <!-- <uni-load-more :status="status" :content-text="contentText" /> -->
     <div class="center s-fz">
       <uni-load-more :status="status" :content-text="contentText" />
@@ -21,10 +29,17 @@
   </div>
 </template>
 <script lang="ts" setup>
+const paging = ref()
 defineOptions({
   name: 'pull',
 })
-let methods: AyContainerPullMethods = {}
+const props = defineProps<{ pagingStyle?: object }>()
+const methods: AyContainerPullMethods = {
+  // onRefresh() {
+  //   console.log(arguments)
+  //   paging.value.complete()
+  // },
+}
 // 小程序环境内,多次创建本组件时data不会被清理,computed始终监听是第一页本组件的data,造成后续列表页面无uni-load-more状态的问题,改为将在store内computed
 const status = computed(() => store.curPage.loadMoreStatus)
 const contentText = computed(() => store.curPage.loadMoreContentText)
@@ -62,6 +77,6 @@ const contentText = computed(() => store.curPage.loadMoreContentText)
 //     contentnomore: data.finishedText,
 //   }
 // })
-methods = store.curPage.pagerMethods
+// methods = store.curPage.pagerMethods
 </script>
 <style lang="scss" scoped></style>

+ 0 - 6
src/pages/index/index.vue

@@ -1,8 +1,5 @@
 <template>
   <ay-container v-show="store.user.isLogined">
-    <van-pull-refresh v-model="data.loading" @refresh="methods.onRefresh">
-      <p>刷新次数:</p>
-    </van-pull-refresh>
     <div class="chunk">
       <div class="center justify-between top">
         <div class="center" @click="methods.goPerson">
@@ -272,9 +269,6 @@ const showcm = computed(() => {
 })
 const methods = ay.initMethods(
   {
-    onRefresh() {
-      console.log(arguments)
-    },
     hiddenDoorb() {
       data.hiddenDoor[data.hiddenDoor.length - 1]++
     },

+ 68 - 0
src/pages/order/components/payType.vue

@@ -0,0 +1,68 @@
+<template>
+  <div class="flex chunk s-fz" v-if="props.payselData" :class="{ checked: props.checked }">
+    <span
+      class="mr-spacd2 radio"
+      :class="{ checked: props.checked }"
+      @click="methods.choose()"
+    ></span>
+    <div class="flex-1">
+      <div class="font-bold inline" @click="methods.choose()">
+        {{ props.type === 0 ? '个人支付' : '所属物流支付' }}
+      </div>
+      <div class="childs-fc-mbd2 ml-spacd2 mt-spacd2">
+        <div>
+          结算金额
+          <ay-numer class="ml-spacd4" :value="props.payselData?.amount" pre="" unit="元" />
+          (结算价
+          {{ props.payselData.actualPrice }} 元/公斤)
+        </div>
+        <rebateDetail
+          :allAmount="props.payselData.allAmount"
+          :carrierRebate="props.payselData.carrierRebate"
+          :rebateDetail="props.payselData.rebateDetail"
+        />
+        <template v-if="props.type === 1">
+          <div class="pt-spacd2 top-line">{{ props.payselData.carrierOrgName }}</div>
+          <div>[{{ props.payselData.carNumber }}]</div>
+          <div class="justify-start" v-if="props.payselData.balanceEnable">
+            <div>
+              可用余额
+              <span class="font-bold">{{ props.payselData.balanceStr }}</span>
+              元
+            </div>
+            <ay-refresh
+              :loading="store.webapi.strategy.paysel.ing"
+              @refresh="emits('reData')"
+            ></ay-refresh>
+          </div>
+        </template>
+      </div>
+    </div>
+  </div>
+</template>
+<script lang="ts" setup>
+import rebateDetail from './rebateDetail.vue'
+defineOptions({
+  name: '',
+})
+const props = withDefaults(
+  defineProps<{
+    type: 0 | 1
+    payselData: 待支付订单_可选支付方式物流支付实体类
+    checked: boolean
+  }>(),
+  {
+    checked: false,
+  },
+)
+const emits = defineEmits(['reData', 'choose'])
+const data = reactive({
+  showRebateDetail: false,
+})
+const methods = {
+  choose() {
+    emits('choose', props.type)
+  },
+}
+</script>
+<style lang="scss" scoped></style>

+ 52 - 0
src/pages/order/components/rebateDetail.vue

@@ -0,0 +1,52 @@
+<template>
+  <div class="inline-block" v-if="props.carrierRebate">
+    <div :class="{ 'text-right': props.type === 1 }">
+      <div class="inline" @click="data.showRebateDetail = !data.showRebateDetail">
+        优惠金额
+        <span class="price-color font-bold">{{ props.carrierRebate }}</span>
+        元
+        <uni-icons
+          :type="data.showRebateDetail ? 'up' : 'down'"
+          color=""
+          class="p-color p-fz"
+          v-if="props.rebateDetail?.length"
+        />
+      </div>
+    </div>
+    <div
+      v-if="props.rebateDetail?.length && data.showRebateDetail"
+      class="chunk m-b-0 mt-spacd2 childs-fcjb-mbd2 rebate-detail money-bg"
+    >
+      <div class="mb-spac">
+        <div>订单总金额</div>
+        <ay-numer :isSimple="true" :value="props.allAmount" pre="" unit="元" />
+      </div>
+      <div v-for="(rd, i) in props.rebateDetail" :key="i">
+        <div>{{ config.common.interestType[rd.rebateType] }}</div>
+        <ay-numer :isSimple="true" :value="rd.rebate" pre="" unit="元" valueClass="price-color" />
+        <div class="w100% ss-fz gray-color ml-spacd2">"{{ rd.rebateString }}"</div>
+      </div>
+    </div>
+  </div>
+</template>
+<script lang="ts" setup>
+defineOptions({
+  name: '',
+})
+const props = withDefaults(
+  defineProps<{
+    /** 0:待支付页面 1:订单详情页面 */
+    type: 0 | 1
+    carrierRebate: number
+    allAmount: number
+    rebateDetail: 待支付订单_可选支付方式优惠明细实体类[]
+  }>(),
+  {
+    type: 0,
+  },
+)
+const data = reactive({
+  showRebateDetail: false,
+})
+</script>
+<style lang="scss" scoped></style>

+ 18 - 18
src/pages/order/orderDetail.vue

@@ -30,19 +30,12 @@
         </div>
         <div v-if="data.orderDetail.carrierRebate">
           <div></div>
-          <div @click="data.switchPriceDet = !data.switchPriceDet">
-            优惠金额¥{{ data.orderDetail.carrierRebate }}元
-            <uni-icons :type="data.switchPriceDet ? 'up' : 'down'" color="" class="p-color p-fz" />
-          </div>
-        </div>
-        <div v-if="data.switchPriceDet">
-          <div></div>
-          <div class="chunk childs-fcjb-mbd2 rebate-detail money-bg">
-            <div v-for="(rd, i) in data.orderDetail.rebateDetail" :key="i">
-              <div>{{ config.common.interestType[rd.interestType] }}</div>
-              <div>¥{{ rd.rebateAmount }}元</div>
-            </div>
-          </div>
+          <rebateDetail
+            :type="1"
+            :allAmount="data.orderDetail.allAmount"
+            :carrierRebate="data.orderDetail.carrierRebate"
+            :rebateDetail="data.orderDetail.rebateDetailV2"
+          />
         </div>
       </div>
       <div>
@@ -54,7 +47,7 @@
 </template>
 
 <script lang="ts" setup>
-const staticData = {}
+import rebateDetail from './components/rebateDetail.vue'
 const data = ay.initData({
   title: '',
   rowList: [
@@ -93,7 +86,6 @@ const data = ay.initData({
         {
           title: '订单编号',
           key: 'orderId',
-          status: 'settleStatus',
         },
       ],
     },
@@ -166,7 +158,6 @@ const data = ay.initData({
         {
           title: '订单编号',
           key: 'orderId',
-          status: 'settleStatus',
         },
       ],
     },
@@ -364,9 +355,18 @@ const curFieldGroups = computed(() =>
 const methods = {}
 ay.entrance((args) => {
   webapi.strategy
-    .get_order_detail({ orderId: store.curPage.pageConfig.params.orderId, orderType: 1 })
+    .get_order_detail({
+      orderId: store.curPage.pageConfig.params.orderId,
+      orderType: 1,
+      // orderId: '-100636820576534528',
+    })
     .then((res) => {
-      data.title = '加气订单 · ' + func.convert.getOrderStatusStr(res.settleStatus)
+      // data.title = '加气订单 · ' + func.convert.getOrderStatusStr(res.settleStatus)
+      const title = '加气订单'
+      const settleStatusStr = func.convert.getOrderStatusStr(res.settleStatus)
+      if (func.convert.unNull(settleStatusStr)) {
+        data.title = title + ' · ' + settleStatusStr
+      }
       // store.curPage.pageConfig.title = '加气订单 · ' + config.common.settleStatus[res.settleStatus]
       // uni.setNavigationBarTitle({ title: store.curPage.pageConfig.title })
 

+ 27 - 74
src/pages/order/prePay.vue

@@ -1,9 +1,7 @@
 <template>
-  <ay-container>
+  <ay-container :cusStyle="{ 'padding-bottom': '200rpx' }">
     <ay-skeletons :rowList="data.rowList" :loading="data.firstUnload">
-      <div class="station">
-        <ayb-station type="2" :stationInfo="data.stationInfo" />
-      </div>
+      <ayb-station type="2" :stationInfo="data.stationInfo" />
       <div class="chunk1">
         <div>
           <span class="mr-spacd4">加气量</span>
@@ -11,71 +9,19 @@
         </div>
       </div>
       <div class="section s-fz">选择支付方式</div>
-      <div class="flex chunk s-fz" :class="{ checked: data.fpayType === 0 }">
-        <span
-          class="mr-spacd2 radio"
-          :class="{ checked: data.fpayType === 0 }"
-          @click="methods.choose(0)"
-        ></span>
-        <div>
-          <div class="font-bold inline" @click="methods.choose(0)">个人支付</div>
-          <div class="ml-spacd2 mt-spacd2">
-            结算金额
-            <ay-numer :value="personPay?.amount" pre="¥" unit="元" />
-            (结算价 ¥ {{ personPay?.actualPrice }} 元/公斤)
-          </div>
-        </div>
-      </div>
-      <div class="flex chunk s-fz" v-if="carrierPay" :class="{ checked: data.fpayType === 1 }">
-        <span
-          class="mr-spacd2 radio"
-          :class="{ checked: data.fpayType === 1 }"
-          @click="methods.choose(1)"
-        ></span>
-        <div class="flex-1">
-          <div class="font-bold inline" @click="methods.choose(1)">所属物流支付</div>
-          <div class="childs-fc-mbd2 ml-spacd2 mt-spacd2">
-            <div @click="methods.switchRebateDetail">
-              结算金额
-              <ay-numer :value="carrierPay?.amount" pre="¥" unit="元" />
-              (结算价 ¥
-              {{ carrierPay.actualPrice }} 元/公斤)
-            </div>
-            <span v-if="carrierPay.carrierRebate">
-              优惠金额{{ carrierPay.carrierRebate }}元
-              <uni-icons
-                :type="data.showRebateDetail ? 'up' : 'down'"
-                color=""
-                class="p-color p-fz"
-                v-if="carrierPay.rebateNum"
-                @click="methods.switchRebateDetail"
-              />
-            </span>
-            <span
-              v-if="carrierPay.rebateNum && data.showRebateDetail"
-              class="chunk childs-fcjb-mbd2 rebate-detail money-bg"
-            >
-              <div v-for="(rd, i) in carrierPay.rebateDetail" :key="i">
-                <div>{{ config.common.interestType[rd.interestType] }}</div>
-                <div>¥{{ rd.rebateAmount }}元</div>
-              </div>
-            </span>
-            <div class="pt-spacd2 top-line">{{ carrierPay.carrierOrgName }}</div>
-            <div>[{{ carrierPay.carNumber }}]</div>
-            <div class="justify-start" v-if="carrierPay.balanceEnable">
-              <div>
-                可用余额
-                <span class="font-bold">{{ carrierPay.balanceStr }}</span>
-                元
-              </div>
-              <ay-refresh
-                :loading="store.webapi.strategy.paysel.ing"
-                @refresh="methods.paysel"
-              ></ay-refresh>
-            </div>
-          </div>
-        </div>
-      </div>
+      <pay-type
+        :type="0"
+        :paysel-data="personPay"
+        :checked="data.fpayType === 0"
+        @choose="methods.choose"
+      />
+      <pay-type
+        :type="1"
+        :paysel-data="carrierPay"
+        :checked="data.fpayType === 1"
+        @choose="methods.choose"
+        @re-data="methods.paysel"
+      />
       <div class="chunk2">
         <div>
           <span>创建订单</span>
@@ -110,6 +56,7 @@
 </template>
 
 <script lang="ts" setup>
+import payType from './components/payType.vue'
 const data = ay.initData({
   /** 数据未加载完毕 */
   firstUnload: true,
@@ -118,8 +65,10 @@ const data = ay.initData({
   orderDetail: {} as 订单详情,
   stationInfo: {} as GasstationVO对象,
   paysel: {} as 待支付订单_可选支付方式获取实体类,
-  /** 展示优惠详情 */
-  showRebateDetail: false,
+  /** 展示个人优惠详情 */
+  showPerRebateDetail: false,
+  /** 展示物流优惠详情 */
+  showCarRebateDetail: false,
   /** 原生支付状态 */
   nativePayState: enums.ReqState.unasked,
 
@@ -207,8 +156,12 @@ const curPay = computed<待支付订单_可选支付方式物流支付实体类>
 })
 
 const methods = {
-  switchRebateDetail() {
-    data.showRebateDetail = !data.showRebateDetail
+  switchRebateDetail(type = 0) {
+    if (type === 1) {
+      data.showCarRebateDetail = !data.showCarRebateDetail
+    } else {
+      data.showPerRebateDetail = !data.showPerRebateDetail
+    }
   },
   choose(fpayType) {
     data.fpayType = fpayType
@@ -315,7 +268,7 @@ onUnload(() => {
 
 <style lang="scss" scoped>
 .rebate-detail {
-  width: 50%;
+  // width: 50%;
   padding: $p-spacd2;
 }
 .carrier-rebate {

+ 9 - 0
src/pages/station/detail.vue

@@ -47,6 +47,9 @@
             <span class="s-fz price">元/公斤</span>
           </div>
         </div>
+        <div class="flex ss-fz mr-12 justify-start">
+          <div class="flex-wrap tag" v-for="(t, i) in data.detail.tags" :key="i">{{ t }}</div>
+        </div>
       </div>
       <div class="chunk">
         <div class="font-bold bs-fz mb-spacd2">简介</div>
@@ -130,4 +133,10 @@ ay.entrance(async (args) => {
   background-color: #00c48c;
   border-radius: $p-spacd4;
 }
+.tag {
+  padding: $p-spacd4;
+  margin-right: $p-spacd2;
+  border: 1rpx solid $border-color;
+  border-radius: $p-spacd4;
+}
 </style>

+ 1 - 0
src/style/_variables.scss

@@ -1,3 +1,4 @@
+$container: 'container';
 // 主题色
 // $p-color: #f40018;
 $p-color: #0084f4;

+ 35 - 12
src/style/index.scss

@@ -69,6 +69,10 @@
   border: 1rpx solid $border-color;
   border-radius: $p-spacd2;
 
+  // &:last-child {
+  //   margin-bottom: 0;
+  // }
+
   &.checked {
     border-color: $p-color;
   }
@@ -119,7 +123,7 @@
 
   >span,
   >label {
-    display: block;
+    display: inline-block;
   }
 }
 
@@ -134,6 +138,7 @@
   >div,
   >view {
     @apply center justify-between;
+    flex-wrap: wrap;
   }
 }
 
@@ -189,22 +194,22 @@ $spac-map: (
   $suffixm: if($j ==1, '', 'm' + $j);
 
   // margin $p-spac除数
-  .m-spac#{$suffix} {
+  .#{$container} .m-spac#{$suffix} {
     margin:calc($p-spac / #{$j});
   }
 
   // margin $p-spac除数 负值
-  .nm-spac#{$suffix} {
+  .#{$container} .nm-spac#{$suffix} {
     margin:calc($p-spac / -#{$j});
   }
 
   // padding $p-spac除数
-  .p-spac#{$suffix} {
+  .#{$container} .p-spac#{$suffix} {
     padding:calc($p-spac / #{$j});
   }
 
   // padding $p-spac倍数
-  .p-spac#{$suffixm} {
+  .#{$container} .p-spac#{$suffixm} {
     padding:calc($p-spac * #{$j});
   }
 
@@ -213,27 +218,29 @@ $spac-map: (
     $t: map-get($spac-map, $i);
 
     // 4方向 $p-spac除数
-    .#{map-get($t,0)}-spac#{ $suffix} {
+    .#{$container} .#{map-get($t,0)}-spac#{ $suffix} {
       #{map-get($t,1)}: calc($p-spac / #{$j});
     }
 
     // margin 4方向 $p-spac倍数
-    .m#{map-get($t,0)}-spac#{ $suffixm} {
+    .#{$container} .m#{map-get($t,0)}-spac#{ $suffixm} {
       margin-#{map-get($t,1)}: calc($p-spac * #{$j});
     }
 
     // margin 4方向 $p-spac除数 
-    .m#{map-get($t,0)}-spac#{ $suffix} {
-      margin-#{map-get($t,1)}: calc($p-spac / #{$j});
+    @if($j>1) {
+      .#{$container} .m#{map-get($t,0)}-spac#{ $suffix} {
+        margin-#{map-get($t,1)}: calc($p-spac / #{$j});
+      }
     }
 
     // margin 4方向 $p-spac除数 负值
-    .nm#{map-get($t,0)}-spac#{ $suffix} {
+    .#{$container} .nm#{map-get($t,0)}-spac#{ $suffix} {
       margin-#{map-get($t,1)}: calc($p-spac / -#{$j});
     }
 
     // padding 4方向 $p-spac除数
-    .p#{map-get($t,0)}-spac#{ $suffix} {
+    .#{$container} .p#{map-get($t,0)}-spac#{ $suffix} {
       padding-#{map-get($t,1)}: calc($p-spac / #{$j});
     }
   }
@@ -423,7 +430,7 @@ image {
 
 .radio {
   display: inline-block;
-  width: $p-fz;
+  min-width: $p-fz;
   height: $p-fz;
   border: solid $p-color 2rpx;
   border-radius: $p-fz;
@@ -438,6 +445,22 @@ image {
   }
 }
 
+.#{$container} .justify-between {
+  @apply justify-between;
+}
+
+.#{$container} .justify-start {
+  @apply justify-start;
+}
+
+.#{$container} .inline-block {
+  @apply inline-block;
+}
+
+.#{$container} .m-b-0 {
+  @apply m-b-0;
+}
+
 // #region 穿透到组件内样式,以pass-com 开头
 .pass-com-rotater {
   display: inline-block;

+ 1 - 1
src/types/api.d.ts

@@ -129,7 +129,7 @@ type IRequestOption = {
 }
 
 /** UniApp请求入参合集 */
-interface UUR extends UniApp.UploadFileOption, UniApp.RequestOptions {
+interface UUR extends UniApp.RequestOptions, UniApp.UploadFileOption {
   url?: string
 }
 

File diff ditekan karena terlalu besar
+ 4 - 4
src/types/schemas/account.d.ts


+ 22 - 2
src/types/schemas/allinpay.d.ts

@@ -190,12 +190,14 @@ interface GasOrder对象 {
   gasQty?: number
   /** 加气站采购金额=长城奥扬销售金额 */
   gasamount?: number
-  /** 加气站服务费(加气站利润价)=strategy.gasstation.profit */
+  /** 加气站服务费结算清分单价(元/公斤)=service_fee/gas_qty */
   gasstationFee?: number
   /** 加气站id */
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站标准服务费金额(元) */
+  gasstationSettleValue?: number
   /** 长城奥扬付大象平台服务费=大象加气平台服务费 */
   gwayamount?: number
   /** 长城奥扬付大象平台服务价=大象加气平台服务价 */
@@ -216,9 +218,21 @@ interface GasOrder对象 {
   payType?: number
   /** 平台挂牌价 */
   platformPrice?: number
+  /** 优惠叠加 */
+  rebateconfig?: string
+  /** 满减阈值(公斤) */
+  reduceFullQty?: number
+  /** 站满减(元/公斤),3位小数 */
+  reduceGasstationRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  reduceGwayRebate?: number
+  /** 满减优惠参与标识:0-未参加 1-参加 */
+  reduceRebateEnable?: number
+  /** 满减关联id(man_price_reduce_rebate_log.id) */
+  reduceRebateId?: number
   /** 退款日期时间 */
   refundDate?: string
-  /** 加气站服务费金额(元)=gas_qty * gasstation_fee */
+  /** 加气站服务费结算清分金额(元)=gasstation_settle_value-special_gasstation_rebate*gas_qty-reduce_gway_rebate*gas_qty */
   serviceFee?: number
   /** 订单结算状态(1.待支付 2.已支付 3.取消 4.支付中 5.退款中 6.退款完成) */
   settleStatus?: number
@@ -226,6 +240,12 @@ interface GasOrder对象 {
   snpCostPrice?: number
   /** 中石化零售价 */
   snpPrice?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  specialGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  specialGwayRebate?: number
+  /** 物流特价关联id(man_price_carrier_rebate_log.id) */
+  specialRebateId?: number
   /** 站服务费清分方式(1线上实时,2 线下月度) */
   splitType?: number
   /** 长城标准价 */

+ 2 - 0
src/types/schemas/message.d.ts

@@ -447,6 +447,8 @@ interface ocr识别参数 {
   fileUrl?: string
 }
 interface 发送短信_图形验证码辅助验证 {
+  /** 用户注册的角色 */
+  baseRole?: string
   /** 验证码位数,默认6位(例:四位验证码则传参4) */
   digit?: number
   /** 图形验证码文本值 */

+ 26 - 4
src/types/schemas/pay.d.ts

@@ -92,6 +92,8 @@ interface GasOrderRebate对象 {
   benefitedType?: number
   /** 操作时间 */
   createDate?: string
+  /** 满减值(公斤) */
+  fullQty?: number
   /** id主键 */
   id?: number
   /** 让利方id */
@@ -106,13 +108,13 @@ interface GasOrderRebate对象 {
   multiple?: string
   /** 订单编号(调用API生成) */
   orderId?: string
-  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  /** 物流公司专项优惠,按公斤配置(元/公斤),3位小数 */
   rebate?: number
   /** 优惠额 */
   rebateAmount?: number
   /** 车辆经营类型:0=自营车辆 1=其他[挂靠车辆] 2=全部 */
   truckType?: number
-  /** 优惠类型:1 物流专享优惠 */
+  /** 优惠类型:1-物流专享优惠 2-满减优惠 */
   type?: number
 }
 interface GasOrderRes {
@@ -180,12 +182,14 @@ interface GasOrder对象 {
   gasQty?: number
   /** 长城奥扬销售金额=订单总额-加气站服务费 */
   gasamount?: number
-  /** 加气站服务费(加气站利润价)=strategy.gasstation.profit */
+  /** 加气站服务费结算清分单价(元/公斤)=gasstation_settle_value/gas_qty */
   gasstationFee?: number
   /** 加气站id */
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站标准服务费金额(元) */
+  gasstationSettleValue?: number
   /** 大象加气平台服务费总额 */
   gwayamount?: number
   /** 大象加气平台服务费单价 */
@@ -216,9 +220,21 @@ interface GasOrder对象 {
   rebateNum?: number
   /** 优惠共多少项(站、司机、收银员、物流显示的,处理了加价的) */
   rebateNumHand?: number
+  /** 优惠叠加 */
+  rebateconfig?: string
+  /** 满减阈值(公斤) */
+  reduceFullQty?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  reduceGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  reduceGwayRebate?: number
+  /** 满减优惠参与标识:0-未参加 1-参加 */
+  reduceRebateEnable?: number
+  /** 物流特价关联id(man_price_reduce_rebate_log.id) */
+  reduceRebateId?: number
   /** 退款日期时间 */
   refundDate?: string
-  /** 服务费(加气站利润)=gas_qty * gasstation_fee */
+  /** 加气站服务费结算清分金额(元)=service_fee-special_gasstation_rebate*gas_qty-reduce_gway_rebate*gas_qty */
   serviceFee?: number
   /** 订单结算状态(1.待支付 2.已支付 3.取消 4.支付中 5.退款中 6.退款完成 7.支付异常) */
   settleStatus?: number
@@ -228,6 +244,12 @@ interface GasOrder对象 {
   snpCostPrice?: number
   /** 中石化零售价 */
   snpPrice?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  specialGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  specialGwayRebate?: number
+  /** 物流特价关联id(man_price_carrier_rebate_log.id) */
+  specialRebateId?: number
   /** 站服务费清分方式(1线上实时,2 线下月度) */
   splitType?: number
   /** 长城标准价 */

+ 127 - 15
src/types/schemas/settle.d.ts

@@ -47,6 +47,18 @@ interface CarrierGasstation对象 {
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
   tradeType?: number
 }
+interface CarrierListTotal {
+  /** 立减金额 */
+  comAmountTotal?: string
+  /** 优惠总金额 */
+  discountTotal?: number
+  /** 加气总金额 */
+  gasAmountTotal?: number
+  /** 加气量总额 */
+  gasQtyTotal?: number
+  /** 充值总金额 */
+  rechargeTotal?: number
+}
 interface CarrierOrderParam {
   /** undefined */
   carrierOrder?: RechargeOrder对象
@@ -54,10 +66,14 @@ interface CarrierOrderParam {
   dateParam?: DateParam
 }
 interface CarrierParam {
-  /** undefined */
+  /** 查询参数 */
   carrier?: Carrier对象
-  /** undefined */
+  /** 时间筛选条件 */
   dataParam?: DateParam
+  /** 排序字段:对应字段值如:specialGwayRebate 长城奥扬特价优惠额、reduceGwayRebate 长城奥扬满减优惠额 */
+  orderBy?: string
+  /** 排序方式:0-升序(默认) 1-降序 */
+  sort?: number
 }
 interface CarrierTruckParam {
   /** undefined */
@@ -120,6 +136,14 @@ interface Carrier对象 {
   periodYear?: number
   /** 充值金额汇总 */
   rechargeTotal?: string
+  /** 站满减优惠额(元) */
+  reduceGasstationRebate?: number
+  /** 长城奥扬满减优惠额(元) */
+  reduceGwayRebate?: number
+  /** 站特价优惠额(元) */
+  specialGasstationRebate?: number
+  /** 长城奥扬特价优惠额(元) */
+  specialGwayRebate?: number
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
   tradeType?: number
 }
@@ -464,8 +488,6 @@ interface GasOrder对象 {
   actualPrice?: number
   /** 实际加气金额(物流公司实付金额=加气站销售金额)=gas_qty * actual_price */
   amount?: string
-  /** 区域优惠(单价公斤/元) */
-  benefit?: number
   /** 取消日期时间 */
   cancelDate?: string
   /** 取消人id */
@@ -484,8 +506,6 @@ interface GasOrder对象 {
   cashierId?: string
   /** 收银员名称(user.user.user_name) */
   cashierName?: string
-  /** 组合支付-立减金额 */
-  comAmount?: number
   /** 创建日期时间 */
   createDate?: string
   /** 创建订单角色  4 收银员 6 司机 */
@@ -504,8 +524,6 @@ interface GasOrder对象 {
   driverId?: string
   /** 司机名称(user.user.user_name) */
   driverName?: string
-  /** 运费(单价公斤/元) */
-  freight?: number
   /** 加气量 */
   gasQty?: string
   /** 加气站采购金额=长城奥扬销售金额 */
@@ -518,12 +536,12 @@ interface GasOrder对象 {
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站标准服务费金额(元) */
+  gasstationSettleValue?: number
   /** 长城奥扬付大象平台服务费=大象加气平台服务费 */
   gwayamount?: number
   /** 长城奥扬付大象平台服务价=大象加气平台服务价 */
   gwayprice?: number
-  /** 出港价(公斤/元) */
-  harbourPrice?: number
   /** 开票状态(0未开票;1开票申请中;2已开票,默认未开票0) */
   kaipiaoStatus?: number
   /** 关键字 */
@@ -538,24 +556,42 @@ interface GasOrder对象 {
   orderStatus?: number
   /** 支付渠道 */
   payChannelId?: string
-  /** 支付方式(0:余额 1:微信 2:微信+余额 11:组合支付 ) */
+  /** 支付方式(0:所属物流/大象余额 1:所属物流/微信 2:所属物流/大象余额+微信 3:个人支付/微信 11:组合支付 ) */
   payType?: number
-  /** 平台服务费(加气站利润价限额)=strategy.gasstation.profit_quota */
-  platformFee?: number
   /** 平台挂牌价 */
   platformPrice?: number
   /** 定价模式(0-默认策略 1-长城奥扬调价 2-LNG新营销) */
   priceType?: number
-  /** 专项优惠=carrier.gas_total>15000 ? 0.35 : 0.3 */
-  rebate?: number
+  /** 满减阈值(公斤) */
+  reduceFullQty?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  reduceGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  reduceGwayRebate?: number
+  /** 物流特价关联id(man_price_reduce_rebate_log.id) */
+  reduceRebateId?: number
   /** 退款日期时间 */
   refundDate?: string
   /** 服务费(加气站利润)=gas_qty * gasstation_fee */
   serviceFee?: number
   /** 结算状态(1.待支付 2.已支付 3.取消 4.支付中 5.退款中 6.退款完成) */
   settleStatus?: number
+  /** 中石化零售价 */
+  snpCostPrice?: number
+  /** 中石化零售价 */
+  snpPrice?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  specialGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  specialGwayRebate?: number
+  /** 物流特价关联id(man_price_carrier_rebate_log.id) */
+  specialRebateId?: number
   /** 站服务费清分方式(1线上实时,2 线下月度) */
   splitType?: number
+  /** 长城标准价 */
+  standardPrice?: number
+  /** 交易结构(1 散户;2 自营车直销,3 自营车经销,4 挂靠车经销,默认1散户) */
+  tradeStruct?: number
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
   tradeType?: number
   /** 卡车id */
@@ -563,6 +599,18 @@ interface GasOrder对象 {
   /** 支付日期时间 */
   updateDate?: string
 }
+interface GasStationListTotal {
+  /** 加气量总额 */
+  gasQtyTotal?: number
+  /** 平台结算总金额 */
+  profitTotal?: number
+  /** 站优惠总额 */
+  rebateTotal?: number
+  /** 站结算清分总额 */
+  serviceFeeTotal?: number
+  /** 站标准清分总额 */
+  settleValueTotal?: number
+}
 interface GasstationCarrierParam {
   /** undefined */
   dataParam?: DateParam
@@ -626,6 +674,10 @@ interface GasstationGway对象 {
   periodYear?: number
   /** 本期加气站利润总金额(账期利润总额,账期内加气站服务费) */
   profitTotal?: string
+  /** 站优惠总额 */
+  rebateTotal?: string
+  /** 站标准清分总额 */
+  settleValueTotal?: string
   /** 账期内入库总量 */
   storeTotal?: string
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
@@ -643,6 +695,60 @@ interface GasstationMonitorParam {
   /** 查询时刻 yyyy-MM-dd HH:mm:ss 或者查询日期yyyy-MM-dd */
   queryDateTime?: string
 }
+interface GasstationRebateOrder {
+  /** 实际加气金额(物流公司实付金额=加气站销售金额)=gas_qty * actual_price */
+  amount?: string
+  /** 车牌号 */
+  carNumber?: string
+  /** 物流公司名称(user.org.org_name) */
+  carrierOrgName?: string
+  /** 物流公司专享优惠总金额(元) */
+  carrierRebate?: number
+  /** 加气量 */
+  gasQty?: string
+  /** 加气站采购金额=长城奥扬销售金额 */
+  gasamount?: number
+  /** 加气站服务费(加气站利润价)=strategy.gasstation.profit */
+  gasstationFee?: number
+  /** 加气站名称 */
+  gasstationName?: string
+  /** 站优惠金额(元) */
+  gasstationRebate?: number
+  /** 加气站标准服务费金额(元) */
+  gasstationSettleValue?: number
+  /** 加气站简称 */
+  nickName?: string
+  /** 订单编号(调用API生成) */
+  orderId?: string
+  /** 支付方式(0:所属物流/大象余额 1:所属物流/微信 2:所属物流/大象余额+微信 3:个人支付/微信 11:组合支付 ) */
+  payType?: number
+  /** 满减阈值(公斤) */
+  reduceFullQty?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  reduceGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  reduceGwayRebate?: number
+  /** 物流特价关联id(man_price_reduce_rebate_log.id) */
+  reduceRebateId?: number
+  /** 服务费(加气站利润)=gas_qty * gasstation_fee */
+  serviceFee?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  specialGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  specialGwayRebate?: number
+  /** 物流特价关联id(man_price_carrier_rebate_log.id) */
+  specialRebateId?: number
+  /** 站服务费清分方式(1线上实时,2 线下月度) */
+  splitType?: number
+  /** 应收加气站金额(元) */
+  toReceiveFee?: number
+  /** 交易结构(1 散户;2 自营车直销,3 自营车经销,4 挂靠车经销,默认1散户) */
+  tradeStruct?: number
+  /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
+  tradeType?: number
+  /** 支付日期时间 */
+  updateDate?: string
+}
 interface GasstationWeekAverageQty对象 {
   /** 年月日,格式如yyyy-mm-dd */
   curDate?: string
@@ -974,6 +1080,12 @@ interface NeweastGasOrderParam {
   /** 最近多少秒数据 */
   seconds?: number
 }
+interface OrderItem {
+  /** undefined */
+  asc?: boolean
+  /** undefined */
+  column?: string
+}
 interface RechargeOrderListParam {
   /** undefined */
   dateParam?: DateParam

+ 343 - 13
src/types/schemas/strategy.d.ts

@@ -274,6 +274,10 @@ interface CarrierLog对象 {
 interface CarrierRebateAdjust对象 {
   /** 物流公司id */
   carrierOrgId?: number
+  /** 站优惠,按公斤配置(元/公斤) */
+  gasstationRebatePlan?: number
+  /** 长城优惠,按公斤配置(元/公斤) */
+  gwayRebatePlan?: number
   /** 物流公司专项优惠,按公斤配置(元/公斤) */
   rebatePlan?: number
   /** 车辆经营类型:0=自营车辆 1=其他[挂靠车辆] 2=全部 */
@@ -356,6 +360,10 @@ interface Carrier对象 {
   orgName?: string
   /** 组织简称 */
   orgShortName?: string
+  /** 优惠叠加 */
+  rebateconfig?: string
+  /** 满减优惠参与标识:0-未参加 1-参加 */
+  reduceRebateEnable?: number
   /** 状态(0:启用 1:停用) */
   status?: number
   /** 月累计加气量 */
@@ -816,12 +824,14 @@ interface GasLimitConfigLog对象 {
 interface GasOrderRebate对象 {
   /** 受益方id */
   benefited?: number
-  /** 让利方名 */
+  /** 受益方名 */
   benefitedName?: string
   /** 受益方类型:1 物流,2 车辆,3 人员 */
   benefitedType?: number
   /** 操作时间 */
   createDate?: string
+  /** 满减值(公斤) */
+  fullQty?: number
   /** id主键 */
   id?: number
   /** 让利方id */
@@ -836,13 +846,15 @@ interface GasOrderRebate对象 {
   multiple?: string
   /** 订单编号(调用API生成) */
   orderId?: string
-  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  /** 优惠单价,按公斤配置(元/公斤) */
   rebate?: number
   /** 优惠额 */
   rebateAmount?: number
+  /** 优惠展示的说明字符串 */
+  rebateStr?: string
   /** 车辆经营类型:0=自营车辆 1=其他[挂靠车辆] 2=全部 */
   truckType?: number
-  /** 优惠类型:1 物流专享优惠 */
+  /** 优惠类型:1 物流特价优惠,2 满减优惠 */
   type?: number
 }
 interface GasOrderVo {
@@ -1008,6 +1020,8 @@ interface GasOrder对象 {
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站标准服务费金额(元) */
+  gasstationSettleValue?: number
   /** 长城奥扬付大象平台服务费=大象加气平台服务费 */
   gwayamount?: number
   /** 长城奥扬付大象平台服务价=大象加气平台服务价 */
@@ -1036,6 +1050,18 @@ interface GasOrder对象 {
   rebateNum?: number
   /** 优惠共多少项(站、司机、收银员、物流显示的,处理了加价的) */
   rebateNumHand?: number
+  /** 优惠叠加 */
+  rebateconfig?: string
+  /** 满减阈值(公斤) */
+  reduceFullQty?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  reduceGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  reduceGwayRebate?: number
+  /** 满减优惠参与标识:0-未参加 1-参加 */
+  reduceRebateEnable?: number
+  /** 物流特价关联id(man_price_reduce_rebate_log.id) */
+  reduceRebateId?: number
   /** 退款日期时间 */
   refundDate?: string
   /** 加气站服务费(站清分额) */
@@ -1048,6 +1074,12 @@ interface GasOrder对象 {
   snpCostPrice?: number
   /** 中石化零售价 */
   snpPrice?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  specialGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  specialGwayRebate?: number
+  /** 物流特价关联id(man_price_carrier_rebate_log.id) */
+  specialRebateId?: number
   /** 站服务费清分方式(1线上实时,2 线下月度) */
   splitType?: number
   /** 长城标准价 */
@@ -1061,6 +1093,16 @@ interface GasOrder对象 {
   /** 支付日期时间 */
   updateDate?: string
 }
+interface GassDetailParam对象 {
+  /** 加气站id */
+  gasstationId?: number
+  /** 纬度 */
+  latitude?: string
+  /** 经度 */
+  longitude?: string
+  /** 卡车id */
+  truckId?: number
+}
 interface GasstaionLngfrom对象 {
   /** 加气站id */
   gasstationId?: string
@@ -1280,6 +1322,8 @@ interface GasstationVO对象 {
   actualPrice?: number
   /** 地址 */
   address?: string
+  /** 审核类型(0-平台审核 1-站点自主) */
+  auditType?: number
   /** 收银员数量 */
   cashierNum?: number
   /** 城市 */
@@ -1306,10 +1350,14 @@ interface GasstationVO对象 {
   listPrice?: number
   /** 经度 */
   longitude?: string
+  /** 定价模式(0一体化 1-新营销) */
+  marketType?: number
   /** 手机号 */
   mobile?: string
   /** 加气站名称 */
   nickName?: string
+  /** 营业状态(0-在营 1-停业) */
+  openStatus?: number
   /** 加气站形象图列表 */
   orgPics?: array
   /** 平台挂牌价 */
@@ -1322,10 +1370,16 @@ interface GasstationVO对象 {
   region?: string
   /** 库存量 */
   stock?: number
+  /** 优惠标签 */
+  tags?: array
+  /** 成丰对接状态:0可以查询对接,1禁止查询对接 */
+  thirdStatus?: number
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
   tradeType?: string
   /** 头像 */
   url?: string
+  /** 提现到账时间设置D+n */
+  withdrawDays?: number
 }
 interface GasstationVO查询对象 {
   /** 地址 */
@@ -1864,6 +1918,10 @@ interface ManPriceCarrierRebateLogVO对象 {
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
   /** undefined */
   id?: string
   /** 加气站简称 */
@@ -1904,6 +1962,14 @@ interface ManPriceCarrierRebateVO对象 {
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebatePlan?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebatePlan?: number
   /** id主键 */
   id?: number
   /** 加气站简称 */
@@ -1950,6 +2016,14 @@ interface ManPriceCarrierRebate对象 {
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebatePlan?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebatePlan?: number
   /** id主键 */
   id?: number
   /** 加气站简称 */
@@ -1973,6 +2047,194 @@ interface ManPriceCarrierRebate对象 {
   /** 类型(1-定时生效 2-立即生效) */
   type?: number
 }
+interface ManPriceReduceRebateAdjust对象 {
+  /** 定价凭证 */
+  certiUrlPlan?: string
+  /** 满减值(公斤) */
+  fullQty?: number
+  /** 加气站id,多个逗号分隔 */
+  gasstationIds?: string
+  /** 站优惠,按公斤配置(元/公斤) */
+  gasstationRebatePlan?: number
+  /** 长城优惠,按公斤配置(元/公斤) */
+  gwayRebatePlan?: number
+  /** (预约时间)计划生效时间 */
+  planDate?: string
+  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  rebatePlan?: number
+  /** 类型(1-定时生效 2-立即生效) */
+  type?: number
+}
+interface ManPriceReduceRebateLogVO对象 {
+  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  allRebate?: number
+  /** 审批状态:0待审核,1已通过 */
+  auditStatus?: number
+  /** 作废时间 */
+  cancelDate?: string
+  /** 定价凭证 */
+  certiUrl?: string
+  /** 操作时间 */
+  createDate?: string
+  /** 实际执行时间 */
+  effectDate?: string
+  /** 状态(0-初始 2-生效) */
+  flag?: number
+  /** 满减值(公斤) */
+  fullQty?: number
+  /** 加气站id */
+  gasstationId?: string
+  /** 加气站名称 */
+  gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
+  /** id主键 */
+  id?: string
+  /** 加气站简称 */
+  nickName?: string
+  /** 操作人 */
+  operator?: number
+  /** 操作人姓名 */
+  operatorName?: string
+  /** (预约时间)计划生效时间 */
+  planDate?: string
+  /** 平台价集合 */
+  platformPriceList?: DatePriceVO对象[]
+  /** 状态(0-待执行 1-限制执行 2-执行中 3-已作废) */
+  status?: number
+  /** 类型(1-定时生效 2-立即生效) */
+  type?: number
+}
+interface ManPriceReduceRebateLog对象 {
+  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  allRebate?: number
+  /** 审批状态:0待审核,1已通过 */
+  auditStatus?: number
+  /** 作废时间 */
+  cancelDate?: string
+  /** 定价凭证 */
+  certiUrl?: string
+  /** 操作时间 */
+  createDate?: string
+  /** 实际执行时间 */
+  effectDate?: string
+  /** 状态(0-初始 2-生效) */
+  flag?: number
+  /** 满减值(公斤) */
+  fullQty?: number
+  /** 加气站id */
+  gasstationId?: string
+  /** 加气站名称 */
+  gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
+  /** id主键 */
+  id?: string
+  /** 加气站简称 */
+  nickName?: string
+  /** 操作人 */
+  operator?: number
+  /** 操作人姓名 */
+  operatorName?: string
+  /** (预约时间)计划生效时间 */
+  planDate?: string
+  /** 状态(0-待执行 1-限制执行 2-执行中 3-已作废) */
+  status?: number
+  /** 类型(1-定时生效 2-立即生效) */
+  type?: number
+}
+interface ManPriceReduceRebateVO对象 {
+  /** 整单共减(元/公斤) */
+  allRebate?: number
+  /** 整单共减(元/公斤) */
+  allRebatePlan?: number
+  /** 定价凭证 */
+  certiUrl?: string
+  /** 定价凭证 */
+  certiUrlPlan?: string
+  /** 操作时间 */
+  createDate?: string
+  /** 实际执行时间 */
+  effectDate?: string
+  /** 满减值(公斤) */
+  fullQty?: number
+  /** 满减值(公斤) */
+  fullQtyPlan?: number
+  /** 加气站id */
+  gasstationId?: string
+  /** 加气站名称 */
+  gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebatePlan?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebatePlan?: number
+  /** 加气站简称 */
+  nickName?: string
+  /** 操作人 */
+  operator?: number
+  /** 操作人姓名 */
+  operatorName?: string
+  /** (预约时间)计划生效时间 */
+  planDate?: string
+  /** 平台价(元/公斤) */
+  platformPrice?: number
+  /** 待执行 平台价(元/公斤) */
+  platformPricePlan?: number
+  /** 平台价(预约时间)计划生效时间 */
+  platformPricePlanDate?: string
+  /** 状态(0-初始 1-待执行 2-已执行 3-已作废) */
+  status?: number
+  /** 价格执行状态:1-定时生效 2-立即生效(默认) */
+  type?: number
+}
+interface ManPriceReduceRebate对象 {
+  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  allRebate?: number
+  /** 物流公司专项优惠,按公斤配置(元/公斤) */
+  allRebatePlan?: number
+  /** 定价凭证 */
+  certiUrl?: string
+  /** 定价凭证 */
+  certiUrlPlan?: string
+  /** 操作时间 */
+  createDate?: string
+  /** 实际执行时间 */
+  effectDate?: string
+  /** 满减值(公斤) */
+  fullQty?: number
+  /** 满减值(公斤) */
+  fullQtyPlan?: number
+  /** 加气站id */
+  gasstationId?: string
+  /** 加气站名称 */
+  gasstationName?: string
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebate?: number
+  /** 加气站满减(元/公斤),3位小数 */
+  gasstationRebatePlan?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebate?: number
+  /** 长城满减(元/公斤),3位小数 */
+  gwayRebatePlan?: number
+  /** 加气站简称 */
+  nickName?: string
+  /** 操作人 */
+  operator?: number
+  /** 操作人姓名 */
+  operatorName?: string
+  /** (预约时间)计划生效时间 */
+  planDate?: string
+  /** 状态(0-待执行 1-限制执行 2-已执行 3-已作废) */
+  status?: number
+}
 interface ManPriceSnpAdjust对象 {
   /** 预约采购价(元/公斤) */
   buyPricePlan?: number
@@ -2995,6 +3257,14 @@ interface Purchase对象 {
   lngFromCode?: string
   /** 液源地 */
   lngFromName?: string
+  /** 订单生成时间 */
+  mockDate?: string
+  /** 测试标识:0-非模拟 1-模拟测试 导入 2-模拟测试 导出 */
+  mockFlag?: number
+  /** 订单生成散列小时时间 */
+  mockHour?: number
+  /** 模拟计划计划id集合 */
+  mockTrace?: string
   /** 变更申请标识,1修改申请,2取消申请;3异常申请 */
   modifyApplyType?: number
   /** 加气站名称 */
@@ -3807,6 +4077,12 @@ interface 个人车主管理员绑定的车辆 {
   /** 个人车主管理员绑定的车辆 */
   truck?: Truck对象
 }
+interface 优惠差价详情实体类 {
+  /** 优惠差价类型:1贸易商(长城奥扬优惠差价)2 站优惠差价 */
+  interestType?: number
+  /** 优惠单价(元/公斤) */
+  rebate?: number
+}
 interface 修改_有限字段_车辆信息参数 {
   /** 0=账户消费[手动圈存] 1=自动圈存 */
   autoAccount?: number
@@ -4160,12 +4436,14 @@ interface 大象线上订单数据表实体类 {
   gasQty?: number
   /** 加气站采购金额=长城奥扬销售金额 */
   gasamount?: number
-  /** 加气站服务费单价(站清分单价) */
+  /** 加气站服务费结算清分单价(元/公斤)=gasstation_settle_value/gas_qty */
   gasstationFee?: number
   /** 加气站id */
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站标准服务费金额(元) */
+  gasstationSettleValue?: number
   /** 长城奥扬付大象平台服务费=大象加气平台服务费 */
   gwayamount?: number
   /** 长城奥扬付大象平台服务价=大象加气平台服务价 */
@@ -4194,9 +4472,21 @@ interface 大象线上订单数据表实体类 {
   rebateNum?: number
   /** 优惠共多少项(站、司机、收银员、物流显示的,处理了加价的) */
   rebateNumHand?: number
+  /** 优惠叠加 */
+  rebateconfig?: string
+  /** 满减阈值(公斤) */
+  reduceFullQty?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  reduceGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  reduceGwayRebate?: number
+  /** 满减优惠参与标识:0-未参加 1-参加 */
+  reduceRebateEnable?: number
+  /** 物流特价关联id(man_price_reduce_rebate_log.id) */
+  reduceRebateId?: number
   /** 退款日期时间 */
   refundDate?: string
-  /** 加气站服务费(站清分额) */
+  /** 加气站服务费结算清分金额(元)=service_fee-special_gasstation_rebate*gas_qty-reduce_gway_rebate*gas_qty */
   serviceFee?: number
   /** 订单结算状态数组,用于前端同时查询多个状态订单时使用(旗舰站) */
   settleStatusList?: array
@@ -4204,6 +4494,12 @@ interface 大象线上订单数据表实体类 {
   snpCostPrice?: number
   /** 中石化零售价 */
   snpPrice?: number
+  /** 物流特价-站(元/公斤),3位小数 */
+  specialGasstationRebate?: number
+  /** 物流特价-长城(元/公斤),3位小数 */
+  specialGwayRebate?: number
+  /** 物流特价关联id(man_price_carrier_rebate_log.id) */
+  specialRebateId?: number
   /** 站服务费清分方式(1线上实时,2 线下月度) */
   splitType?: number
   /** 长城标准价 */
@@ -4220,14 +4516,28 @@ interface 大象线上订单数据表实体类 {
 interface 待支付订单_可选支付方式个人支付实体类 {
   /** 结算价 */
   actualPrice?: number
+  /** 订单总金额 */
+  allAmount?: number
   /** 结算金额 */
   amount?: number
   /** 按钮状态 */
   buttonEnable?: boolean
   /** 按钮提示文字 */
   buttonMsg?: string
+  /** 总优惠额 */
+  carrierRebate?: number
   /** 支付方式(0:所属物流/大象余额 1:所属物流/微信 2:所属物流/大象余额+微信 3:个人支付/微信 11:组合支付 ) */
   payType?: number
+  /** 优惠明细 */
+  rebateDetail?: 待支付订单_可选支付方式优惠明细实体类[]
+}
+interface 待支付订单_可选支付方式优惠明细实体类 {
+  /** 优惠金额 */
+  rebate?: number
+  /** 优惠明细文字提示 */
+  rebateString?: string
+  /** 优惠类型:1-大象特价优惠 2-大象满减优惠 3-长城奥扬特价优惠 4-长城奥扬满减优惠 5-站特价优惠 6-站满减优惠 */
+  rebateType?: number
 }
 interface 待支付订单_可选支付方式物流支付实体类 {
   /** 结算价 */
@@ -4254,16 +4564,14 @@ interface 待支付订单_可选支付方式物流支付实体类 {
   carrierOrgId?: string
   /** 所属物流公司名称 */
   carrierOrgName?: string
-  /** 总优惠额(目前只有物流专享优惠)(优惠差额) */
+  /** 总优惠额 */
   carrierRebate?: number
   /** 所属物流车辆类型:0=自营车辆 1=挂靠车辆 */
   linked?: number
   /** 支付方式(0:所属物流/大象余额 1:所属物流/微信 2:所属物流/大象余额+微信 3:个人支付/微信 11:组合支付 ) */
   payType?: number
   /** 优惠明细 */
-  rebateDetail?: GasOrderRebate对象[]
-  /** 优惠共多少项 */
-  rebateNum?: number
+  rebateDetail?: 待支付订单_可选支付方式优惠明细实体类[]
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */
   tradeType?: number
   /** 卡车id */
@@ -4968,7 +5276,7 @@ interface 订单中石化查询参数实体类 {
 interface 订单列表返回实体类 {
   /** 总返利积分 */
   allPoint?: number
-  /** 加气总优惠(元) */
+  /** 大象线上优惠总额(元) */
   allPrefer?: number
   /** 加气总量(公斤) */
   allQty?: number
@@ -4980,6 +5288,16 @@ interface 订单列表返回实体类 {
   allValue?: number
   /** 加气总额(万元) */
   allValueWan?: number
+  /** 订单总数 */
+  count?: number
+  /** 加气站满减(元) */
+  gasstationReduce?: number
+  /** 加气站特价(元) */
+  gasstationSpecial?: number
+  /** 长城奥扬满减(元) */
+  gwayReduce?: number
+  /** 长城奥扬特价(元) */
+  gwaySpecial?: number
   /** 分页信息 */
   page?: IPage<订单详情>
 }
@@ -5052,7 +5370,7 @@ interface 订单详情 {
   carrierOrgId?: string
   /** 物流公司名称(user.org.org_name) */
   carrierOrgName?: string
-  /** 总优惠额(目前只有物流专享优惠)(优惠差额) */
+  /** 总优惠额(优惠金额) */
   carrierRebate?: number
   /** 总优惠金额(站、司机、收银员、物流显示的,处理了加价的) */
   carrierRebateHand?: number
@@ -5082,12 +5400,14 @@ interface 订单详情 {
   gasQty?: number
   /** 加气站采购金额=长城奥扬销售金额 */
   gasamount?: number
-  /** 加气站服务费单价(站清分价) */
+  /** 加气站结算服务费单价(站结算清分价) */
   gasstationFee?: number
   /** 加气站id */
   gasstationId?: string
   /** 加气站名称 */
   gasstationName?: string
+  /** 加气站标准服务费金额(标准清分额)(元) */
+  gasstationSettleValue?: number
   /** 长城奥扬付大象平台服务费=大象加气平台服务费 */
   gwayamount?: number
   /** 长城奥扬付大象平台服务价=大象加气平台服务价 */
@@ -5118,13 +5438,21 @@ interface 订单详情 {
   rebateDetail?: GasOrderRebate对象[]
   /** 优惠明细(站、司机、收银员、物流显示的,处理了加价的) */
   rebateDetailHand?: GasOrderRebate对象[]
+  /** 优惠明细 */
+  rebateDetailV2?: 待支付订单_可选支付方式优惠明细实体类[]
   /** 优惠共多少项 */
   rebateNum?: number
   /** 优惠共多少项(站、司机、收银员、物流显示的,处理了加价的) */
   rebateNumHand?: number
+  /** 优惠共多少项 */
+  rebateNumV2?: number
+  /** 优惠差价明细 */
+  rebatePriceDetail?: 优惠差价详情实体类[]
+  /** 优惠差价共多少项 */
+  rebatePriceNum?: number
   /** 退款日期时间 */
   refundDate?: string
-  /** 加气站服务费(站清分额) */
+  /** 加气站结算服务费(站结算清分额) */
   serviceFee?: number
   /** 订单结算状态(1.待支付 2.已支付 3.取消 4.支付中 5.退款中 6.退款完成) */
   settleStatus?: number
@@ -5136,6 +5464,8 @@ interface 订单详情 {
   splitType?: number
   /** 长城标准价 */
   standardPrice?: number
+  /** 站优惠差价 */
+  stationDiffPrice?: number
   /** 站联系方式 */
   stationMobile?: string
   /** 交易模式(1经销模式;2直销模式,默认经销模式1) */

+ 12 - 2
src/types/schemas/user.d.ts

@@ -1362,6 +1362,10 @@ interface TokenReq {
   /** undefined */
   userId?: string
 }
+interface TokenUpdateParam参数 {
+  /** userId参数 */
+  userid?: string
+}
 interface Token认证用户实体 {
   /** authorities */
   authorities?: AuthUserRole对象[]
@@ -1694,7 +1698,7 @@ interface User对象 {
   keyWord?: string
   /** 最后登录时间 */
   lastLoginDate?: string
-  /** 用户登录类型(0 账号/手机号  1 微信快捷加气 */
+  /** 用户注册类型(0-账号/手机号注册 ,1微信授权,2小程序授权 */
   loginType?: number
   /** 手机号 */
   mobile?: string
@@ -2107,7 +2111,7 @@ interface 注册信息 {
   headUrl?: string
   /** 邀请人id */
   inviterId?: number
-  /** 登录方式 */
+  /** 用户注册类型(0-账号/手机号注册 ,1微信授权,2小程序授权 */
   loginType?: number
   /** 用户注册用的手机号 */
   mobile?: string
@@ -2370,6 +2374,8 @@ interface 预添加司机详情 {
 interface 驾驶员管理信息VO {
   /** 所属物流车 */
   carNumber?: string
+  /** 物流驾驶员 标识:0-否 1-是 */
+  carrierFlag?: number
   /** 最后登录时间 */
   lastLoginDate?: string
   /** 手机号 */
@@ -2378,8 +2384,12 @@ interface 驾驶员管理信息VO {
   orgId?: string
   /** 所属物流name */
   orgName?: string
+  /** 个人(散户)标识:0-否 1-是 */
+  personFlag?: number
   /** 状态(0:启用 1:停用) */
   status?: number
+  /** 协作驾驶员 标识:0-否 1-是 */
+  tempFlag?: number
   /** 用户id */
   userId?: string
   /** 用户名 */

+ 0 - 1
src/utils/api/web/request/afterReturning.ts

@@ -1,4 +1,3 @@
-import common from '@/utils/store/common'
 import com from './com'
 export default {
   /**

+ 7 - 0
src/utils/api/web/request/afterThrowing.ts

@@ -60,6 +60,13 @@ export default {
         options: args.options,
         res: args.res,
       }
+      if (config.common.isH5) {
+        console.log('%c失败', 'color:red', {
+          url: args.options.uur.url,
+          req: args.options.uur.data,
+          res: args.errInfo.data,
+        })
+      }
       rv = Promise.reject(pcr)
       // 分页接口自动通知容器,数据加载失败
       if (store.curPage?.pageConfig?.isPager) {

+ 22 - 0
src/utils/api/web/request/index.ts

@@ -1,6 +1,14 @@
 import before from '@/utils/api/web/request/before'
 import afterReturning from './afterReturning'
 import afterThrowing from './afterThrowing'
+// #ifdef H5
+import axios, { AxiosStatic, AxiosRequestConfig, AxiosResponse } from 'axios'
+// #endif
+// let axios: AxiosStatic = null
+// if (config.common.isH5) {
+//   const Axios = await import('axios')
+//   axios = Axios.default
+// }
 const setRequestResult = ({ options, resolve, reject }) => {
   const rv = {
     // 响应成功
@@ -43,7 +51,21 @@ const http = async <T>(options: IRequestOption) => {
     if (options.urlObj.isUpload) {
       uni.uploadFile(options.uur as UniApp.UploadFileOption)
     } else {
+      // #ifdef H5
+      axios<any, UniApp.RequestSuccessCallbackResult & AxiosResponse>({
+        ...options.uur,
+        headers: options.uur.header,
+      } as AxiosRequestConfig<any>)
+        .then((res) => {
+          res.statusCode = res.status
+          options.uur.success(res)
+        })
+        .catch(options.uur.fail)
+      // #endif
+      // #ifndef H5
+
       uni.request(options.uur as UniApp.RequestOptions)
+      // #endif
     }
   }).then((res) => {
     // 接口请求正常

+ 11 - 7
src/utils/config/index.ts

@@ -26,13 +26,13 @@ const common = {
       ],
     },
   ],
-  /** 驾驶员申请状态
-   * 1.无任何信息 2.显示物流公司信息 3.显示退出申请 4.显示加入申请 5.显示预添加信息
-   */
   get safeAreaTopHeight() {
     return (config.common.SystemInfo?.statusBarHeight || 40) + 44
     // return config.common.SystemInfo.safeArea.top + 44
   },
+  /** 驾驶员申请状态
+   * 1.无任何信息 2.显示物流公司信息 3.显示退出申请 4.显示加入申请 5.显示预添加信息
+   */
   get orgDetailType() {
     return { 3: '申请退出', 4: '申请加入' }
   },
@@ -59,11 +59,15 @@ const common = {
   /** 让利方类型 */
   get interestType() {
     return {
-      1: '长城奥扬优惠',
-      2: '加气站优惠',
-      3: '大象服务费优惠',
-      4: '大象优惠',
+      1: '大象特价优惠',
+      2: '大象满减优惠',
     }
+    // return {
+    //   1: '长城奥扬优惠',
+    //   2: '加气站优惠',
+    //   3: '大象服务费优惠',
+    //   4: '大象优惠',
+    // }
   },
   /** 结算状态 */
   get settleStatus() {

+ 6 - 0
src/utils/config/interFaces/allinpay.ts

@@ -527,6 +527,12 @@ export default {
     reqType: {} as 订单退款参数,
     resType: {} as any,
   },
+  /** 加气退款 */
+  execute_yw: {
+    realUrl: '/allinpay/refund/execute_yw' as const,
+    reqType: {} as 订单退款参数,
+    resType: {} as any,
+  },
   /** 操作记录 */
   log: {
     realUrl: '/allinpay/refund/log' as const,

+ 12 - 15
src/utils/config/interFaces/index.ts

@@ -1,33 +1,30 @@
 import websocket from './websocket'
-import allinpay from './allinpay'
 import tms from './tms'
-import account from './account'
 import message from './message'
-import gasdata from './gasdata'
-import settle from './settle'
 import user from './user'
-import strategy from './strategy'
+import allinpay from './allinpay'
+import account from './account'
+import settle from './settle'
 import pay from './pay'
+import strategy from './strategy'
 
 export default {
   /** websocket打印中心 */
   websocket,
-  /** 通联支付 */
-  allinpay,
   /** 运力中心 */
   tms,
-  /** 账户中心 */
-  account,
   /** 消息中心 */
   message,
-  /** 加气站数据采集 */
-  gasdata,
-  /** 结算中心 */
-  settle,
   /** 用户中心 */
   user,
-  /** 运营策略中心 */
-  strategy,
+  /** 通联支付 */
+  allinpay,
+  /** 账户中心 */
+  account,
+  /** 结算中心 */
+  settle,
   /** 支付中心 */
   pay,
+  /** 运营策略中心 */
+  strategy,
 }

+ 13 - 7
src/utils/config/interFaces/settle.ts

@@ -9,19 +9,19 @@ export default {
   find: {
     realUrl: '/settle/carrier/find' as const,
     reqType: {} as Carrier对象,
-    resType: {} as any,
+    resType: {} as Carrier对象,
   },
   /** 获取物流公司订单结算分页列表 */
   list: {
     realUrl: '/settle/carrier/list' as const,
     reqType: {} as IPageParams<CarrierParam>,
-    resType: {} as any,
+    resType: {} as IPage<Carrier对象>,
   },
   /** 获取某个账期下物流公司订单结算汇总 */
   total: {
     realUrl: '/settle/carrier/total' as const,
     reqType: {} as CarrierParam,
-    resType: {} as any,
+    resType: {} as CarrierListTotal,
   },
   /** 获取物流公司与加气站订单结算 */
   find_1: {
@@ -239,6 +239,12 @@ export default {
 
     resType: {} as boolean,
   },
+  /** 满减优惠优惠省钱金额 */
+  driver_rebate_total: {
+    realUrl: '/settle/gas_order/driver_rebate_total' as const,
+
+    resType: {} as number,
+  },
   /** 查找订单gas_order */
   find_2: {
     realUrl: '/settle/gas_order/find' as const,
@@ -309,7 +315,7 @@ export default {
   page_list: {
     realUrl: '/settle/gas_order/page_list' as const,
     reqType: {} as IPageParams<SettleGasOrderPageListParam>,
-    resType: {} as any,
+    resType: {} as IPage<GasstationRebateOrder>,
   },
   /** 物流公司加气费汇总 */
   sum_cost: {
@@ -393,19 +399,19 @@ export default {
   find_3: {
     realUrl: '/settle/gasstation_gway/find' as const,
     reqType: {} as GasstationGwayParam,
-    resType: {} as any,
+    resType: {} as GasstationGway对象,
   },
   /** 获取加气站订单结算分页列表 */
   list_9: {
     realUrl: '/settle/gasstation_gway/list' as const,
     reqType: {} as IPageParams<GasstationGwayParam>,
-    resType: {} as any,
+    resType: {} as GasstationGway对象,
   },
   /** 获取某个账期下加气站订单结算汇总 */
   total_3: {
     realUrl: '/settle/gasstation_gway/total' as const,
     reqType: {} as GasstationGwayParam,
-    resType: {} as any,
+    resType: {} as GasStationListTotal,
   },
   /** 实时导出 */
   current_export: {

+ 154 - 76
src/utils/config/interFaces/strategy.ts

@@ -626,6 +626,12 @@ export default {
     reqType: {} as IPageParams<GasLimitConfigLog对象>,
     resType: {} as any,
   },
+  /** 设置订单的协作车信息(个人支付) */
+  get_person_trucks: {
+    realUrl: '/strategy/gas_order/get_person_trucks' as const,
+    reqType: {} as GasOrder对象,
+    resType: {} as any,
+  },
   /** 获取待支付订单的可选支付方式 */
   paysel: {
     realUrl: '/strategy/gas_order/paysel' as const,
@@ -699,7 +705,7 @@ export default {
   find_1: {
     realUrl: '/strategy/gasstation/find' as const,
     reqType: {} as GasstationCarrierParam对象,
-    resType: {} as any,
+    resType: {} as GasstationVO对象,
   },
   /** 根据gasstationId或加气站简称查询加气站信息 */
   find_by_name: {
@@ -710,7 +716,7 @@ export default {
   /** 根据gasstationId查询加气站距离、气价、位置等信息(散户加气3.1) */
   find_for_mini: {
     realUrl: '/strategy/gasstation/find_for_mini' as const,
-    reqType: {} as Gasstation对象,
+    reqType: {} as GassDetailParam对象,
     resType: {} as GasstationVO对象,
   },
   /** 根据gasstationId查询加气站信息,APP */
@@ -1337,14 +1343,56 @@ export default {
     reqType: {} as IPageParams<GasstationDateParam>,
     resType: {} as 站收益结算规则信息表实体VO类,
   },
-  /** 新增中石化零售价 */
+  /** 新增加气订单满减 */
   add_16: {
+    realUrl: '/strategy/man/reduce_rebate/add' as const,
+    reqType: {} as ManPriceReduceRebate对象,
+    resType: {} as any,
+  },
+  /** 调价加气订单满减 */
+  adjust_1: {
+    realUrl: '/strategy/man/reduce_rebate/adjust' as const,
+    reqType: {} as ManPriceReduceRebateAdjust对象,
+    resType: {} as any,
+  },
+  /** 获取加气订单满减列表 */
+  list_32: {
+    realUrl: '/strategy/man/reduce_rebate/list' as const,
+    reqType: {} as IPageParams<ManPriceReduceRebate对象>,
+    resType: {} as ManPriceReduceRebateVO对象,
+  },
+  /** 获取调价记录列表 */
+  list_log_1: {
+    realUrl: '/strategy/man/reduce_rebate/list_log' as const,
+    reqType: {} as IPageParams<气价管理查询参数>,
+    resType: {} as ManPriceReduceRebateLogVO对象,
+  },
+  /** 添加名单查询加气站org列表 */
+  list_org_1: {
+    realUrl: '/strategy/man/reduce_rebate/list_org' as const,
+    reqType: {} as IPageParams<OrgUnSelectedListParam>,
+    resType: {} as IPage<Org对象>,
+  },
+  /** 移除名单 */
+  remove_1: {
+    realUrl: '/strategy/man/reduce_rebate/remove' as const,
+    reqType: {} as ManPriceReduceRebate对象,
+    resType: {} as any,
+  },
+  /** 上传更新加气订单满减调整凭证 */
+  update_cert: {
+    realUrl: '/strategy/man/reduce_rebate/update_cert' as const,
+    reqType: {} as ManPriceReduceRebateLog对象,
+    resType: {} as any,
+  },
+  /** 新增中石化零售价 */
+  add_17: {
     realUrl: '/strategy/man/snp/add' as const,
     reqType: {} as Gasstation对象,
     resType: {} as any,
   },
   /** 调价中石化零售价 */
-  adjust_1: {
+  adjust_2: {
     realUrl: '/strategy/man/snp/adjust' as const,
     reqType: {} as ManPriceSnpAdjust对象,
     resType: {} as any,
@@ -1362,25 +1410,25 @@ export default {
     resType: {} as number,
   },
   /** 获取中石化限价列表 */
-  list_32: {
+  list_33: {
     realUrl: '/strategy/man/snp/list' as const,
     reqType: {} as IPageParams<manPriceSnp对象>,
     resType: {} as manPriceSnp对象,
   },
   /** 获取调价记录列表 */
-  list_log_1: {
+  list_log_2: {
     realUrl: '/strategy/man/snp/list_log' as const,
     reqType: {} as IPageParams<气价管理查询参数>,
     resType: {} as manPriceSnpLog对象,
   },
   /** 新增查询org列表 */
-  list_org_1: {
+  list_org_2: {
     realUrl: '/strategy/man/snp/list_org' as const,
     reqType: {} as IPageParams<OrgUnSelectedListParam>,
     resType: {} as IPage<Org对象>,
   },
   /** 移除名单 */
-  remove_1: {
+  remove_2: {
     realUrl: '/strategy/man/snp/remove' as const,
     reqType: {} as manPriceSnp对象,
     resType: {} as any,
@@ -1392,19 +1440,19 @@ export default {
     resType: {} as any,
   },
   /** 更新中石化零售价定价凭证 */
-  update_cert: {
+  update_cert_1: {
     realUrl: '/strategy/man/snp/update_cert' as const,
     reqType: {} as manPriceSnpLog对象,
     resType: {} as any,
   },
   /** 新增长城奥扬标准价 */
-  add_17: {
+  add_18: {
     realUrl: '/strategy/man/standard/add' as const,
     reqType: {} as Gasstation对象,
     resType: {} as any,
   },
   /** 调价长城奥扬标准价 */
-  adjust_2: {
+  adjust_3: {
     realUrl: '/strategy/man/standard/adjust' as const,
     reqType: {} as manPriceStandard对象,
     resType: {} as any,
@@ -1434,25 +1482,25 @@ export default {
     resType: {} as ManStationCalLog对象,
   },
   /** 获取长城奥扬标准价列表 */
-  list_33: {
+  list_34: {
     realUrl: '/strategy/man/standard/list' as const,
     reqType: {} as IPageParams<manPriceStandard对象>,
     resType: {} as ManPriceStandardVO对象,
   },
   /** 获取调价记录列表 */
-  list_log_2: {
+  list_log_3: {
     realUrl: '/strategy/man/standard/list_log' as const,
     reqType: {} as IPageParams<气价管理查询参数>,
     resType: {} as ManPriceStandardVO对象,
   },
   /** 新增查询org列表 */
-  list_org_2: {
+  list_org_3: {
     realUrl: '/strategy/man/standard/list_org' as const,
     reqType: {} as IPageParams<OrgUnSelectedListParam>,
     resType: {} as IPage<Org对象>,
   },
   /** 移除名单 */
-  remove_2: {
+  remove_3: {
     realUrl: '/strategy/man/standard/remove' as const,
     reqType: {} as manPriceStandard对象,
     resType: {} as any,
@@ -1464,13 +1512,13 @@ export default {
     resType: {} as any,
   },
   /** 更新长城奥扬标准价定价凭证 */
-  update_cert_1: {
+  update_cert_2: {
     realUrl: '/strategy/man/standard/update_cert' as const,
     reqType: {} as manPriceStandardLog对象,
     resType: {} as any,
   },
   /** 添加newstation */
-  add_18: {
+  add_19: {
     realUrl: '/strategy/newstation/add' as const,
     reqType: {} as Newstation对象,
     resType: {} as any,
@@ -1482,7 +1530,7 @@ export default {
     resType: {} as boolean,
   },
   /** 获取newstation列表 */
-  list_34: {
+  list_35: {
     realUrl: '/strategy/newstation/list' as const,
     reqType: {} as IPageParams<Newstation对象>,
     resType: {} as any,
@@ -1494,7 +1542,7 @@ export default {
     resType: {} as any,
   },
   /** 添加platform_price */
-  add_19: {
+  add_20: {
     realUrl: '/strategy/platform_price/add' as const,
     reqType: {} as PlatformPrice对象,
     resType: {} as boolean,
@@ -1512,19 +1560,19 @@ export default {
     resType: {} as PlatformPrice对象,
   },
   /** 获取platform_price列表 */
-  list_35: {
+  list_36: {
     realUrl: '/strategy/platform_price/list' as const,
     reqType: {} as IPageParams<PlatformPrice对象>,
     resType: {} as IPage<PlatformPrice对象>,
   },
   /** 添加platform_price_log */
-  add_20: {
+  add_21: {
     realUrl: '/strategy/platform_price_log/add' as const,
     reqType: {} as PlatformPriceLog对象,
     resType: {} as boolean,
   },
   /** 获取platform_price_log列表 */
-  list_36: {
+  list_37: {
     realUrl: '/strategy/platform_price_log/list' as const,
     reqType: {} as IPageParams<PlatformPriceLog对象>,
     resType: {} as IPage<PlatformPriceLog对象>,
@@ -1554,13 +1602,13 @@ export default {
     resType: {} as GctOrder对象,
   },
   /** 平台挂牌价计算 */
-  add_21: {
+  add_22: {
     realUrl: '/strategy/price_config/add' as const,
 
     resType: {} as any,
   },
   /** 获取平台挂牌价列表 */
-  list_37: {
+  list_38: {
     realUrl: '/strategy/price_config/list' as const,
     reqType: {} as IPageParams<PriceConfig对象>,
     resType: {} as any,
@@ -1572,19 +1620,19 @@ export default {
     resType: {} as any,
   },
   /** 获取price_config_gway 当前价列表 */
-  list_38: {
+  list_39: {
     realUrl: '/strategy/price_config_gway/list' as const,
     reqType: {} as IPageParams<PriceConfigGway对象>,
     resType: {} as any,
   },
   /** 获取调价记录列表 */
-  list_39: {
+  list_40: {
     realUrl: '/strategy/price_config_gway_log/list' as const,
     reqType: {} as IPageParams<组合支付分页查询参数>,
     resType: {} as any,
   },
   /** 添加长城奥扬调价管理 */
-  add_22: {
+  add_23: {
     realUrl: '/strategy/price_config_gway_plan/add' as const,
     reqType: {} as PriceConfigGwayPlan对象,
     resType: {} as any,
@@ -1596,13 +1644,13 @@ export default {
     resType: {} as any,
   },
   /** 获取调价管理列表 */
-  list_40: {
+  list_41: {
     realUrl: '/strategy/price_config_gway_plan/list' as const,
     reqType: {} as IPageParams<PriceConfigGwayPlan对象>,
     resType: {} as any,
   },
   /** 移除名单 */
-  remove_3: {
+  remove_4: {
     realUrl: '/strategy/price_config_gway_plan/remove' as const,
     reqType: {} as PriceConfigGwayPlan对象,
     resType: {} as any,
@@ -1614,13 +1662,13 @@ export default {
     resType: {} as any,
   },
   /** 添加price_config_log */
-  add_23: {
+  add_24: {
     realUrl: '/strategy/price_config_log/add' as const,
     reqType: {} as PriceConfigLog对象,
     resType: {} as any,
   },
   /** 获取price_config_log列表 */
-  list_41: {
+  list_42: {
     realUrl: '/strategy/price_config_log/list' as const,
     reqType: {} as IPageParams<PriceConfigLog对象>,
     resType: {} as any,
@@ -1632,7 +1680,7 @@ export default {
     resType: {} as any,
   },
   /** 调价/新增加气站售卖价 */
-  add_24: {
+  add_25: {
     realUrl: '/strategy/price_config_market/add' as const,
     reqType: {} as PriceConfigMarket对象,
     resType: {} as any,
@@ -1662,7 +1710,7 @@ export default {
     resType: {} as any,
   },
   /** 获取加气站售卖价列表 */
-  list_42: {
+  list_43: {
     realUrl: '/strategy/price_config_market/list' as const,
     reqType: {} as IPageParams<PriceConfigMarket对象>,
     resType: {} as any,
@@ -1674,13 +1722,13 @@ export default {
     resType: {} as any,
   },
   /** 获取调价记录列表 */
-  list_log_3: {
+  list_log_4: {
     realUrl: '/strategy/price_config_market/list_log' as const,
     reqType: {} as IPageParams<组合支付分页查询参数>,
     resType: {} as any,
   },
   /** 作废 */
-  remove_4: {
+  remove_5: {
     realUrl: '/strategy/price_config_market/remove' as const,
     reqType: {} as PriceConfigMarket对象,
     resType: {} as any,
@@ -1692,25 +1740,25 @@ export default {
     resType: {} as any,
   },
   /** 新增标准差价 */
-  add_25: {
+  add_26: {
     realUrl: '/strategy/price_config_market_diff/add' as const,
     reqType: {} as PriceConfigMarketDiff对象,
     resType: {} as any,
   },
   /** 获取标准差价列表 */
-  list_43: {
+  list_44: {
     realUrl: '/strategy/price_config_market_diff/list' as const,
     reqType: {} as IPageParams<PriceConfigMarketDiff对象>,
     resType: {} as any,
   },
   /** 获取调价记录列表 */
-  list_log_4: {
+  list_log_5: {
     realUrl: '/strategy/price_config_market_diff/list_log' as const,
     reqType: {} as IPageParams<组合支付分页查询参数>,
     resType: {} as any,
   },
   /** 作废 */
-  remove_5: {
+  remove_6: {
     realUrl: '/strategy/price_config_market_diff/remove' as const,
     reqType: {} as PriceConfigMarketDiff对象,
     resType: {} as any,
@@ -1722,25 +1770,25 @@ export default {
     resType: {} as any,
   },
   /** 新增非标差价 */
-  add_26: {
+  add_27: {
     realUrl: '/strategy/price_config_market_undiff/add' as const,
     reqType: {} as PriceConfigMarketDiffUnstd对象,
     resType: {} as any,
   },
   /** 获取非标差价列表 */
-  list_44: {
+  list_45: {
     realUrl: '/strategy/price_config_market_undiff/list' as const,
     reqType: {} as IPageParams<PriceConfigMarketDiffUnstd对象>,
     resType: {} as any,
   },
   /** 获取调价记录列表 */
-  list_log_5: {
+  list_log_6: {
     realUrl: '/strategy/price_config_market_undiff/list_log' as const,
     reqType: {} as IPageParams<组合支付分页查询参数>,
     resType: {} as any,
   },
   /** 作废 */
-  remove_6: {
+  remove_7: {
     realUrl: '/strategy/price_config_market_undiff/remove' as const,
     reqType: {} as PriceConfigMarketDiffUnstd对象,
     resType: {} as any,
@@ -1764,25 +1812,25 @@ export default {
     resType: {} as any,
   },
   /** 获取中石化调价记录列表 */
-  list_45: {
+  list_46: {
     realUrl: '/strategy/price_config_snp_log/list' as const,
     reqType: {} as IPageParams<组合支付分页查询参数>,
     resType: {} as any,
   },
   /** 添加中石化调价管理 */
-  add_27: {
+  add_28: {
     realUrl: '/strategy/price_config_snp_plan/add' as const,
     reqType: {} as PriceConfigSnpPlan对象,
     resType: {} as any,
   },
   /** 获取调价管理列表 */
-  list_46: {
+  list_47: {
     realUrl: '/strategy/price_config_snp_plan/list' as const,
     reqType: {} as IPageParams<PriceConfigSnpPlan对象>,
     resType: {} as any,
   },
   /** 移除名单 */
-  remove_7: {
+  remove_8: {
     realUrl: '/strategy/price_config_snp_plan/remove' as const,
     reqType: {} as PriceConfigSnpPlan对象,
     resType: {} as any,
@@ -1794,13 +1842,13 @@ export default {
     resType: {} as any,
   },
   /** 添加profit_quota_log */
-  add_28: {
+  add_29: {
     realUrl: '/strategy/profit_quota_log/add' as const,
     reqType: {} as ProfitQuotaLog对象,
     resType: {} as any,
   },
   /** 获取profit_quota_log列表 */
-  list_47: {
+  list_48: {
     realUrl: '/strategy/profit_quota_log/list' as const,
     reqType: {} as IPageParams<ProfitQuotaLogParam>,
     resType: {} as any,
@@ -1812,7 +1860,7 @@ export default {
     resType: {} as any,
   },
   /** 提报计划 */
-  add_29: {
+  add_30: {
     realUrl: '/strategy/purchase/add' as const,
     reqType: {} as Purchase对象,
     resType: {} as any,
@@ -1920,7 +1968,7 @@ export default {
     resType: {} as any,
   },
   /** 获取计划列表(运营端) */
-  list_48: {
+  list_49: {
     realUrl: '/strategy/purchase/list' as const,
     reqType: {} as IPageParams<PurchasePageParam>,
     resType: {} as any,
@@ -1937,6 +1985,12 @@ export default {
     reqType: {} as PurchaseModifyHandleParam,
     resType: {} as any,
   },
+  /** SNP维护计划 */
+  operate: {
+    realUrl: '/strategy/purchase/operate' as const,
+    reqType: {} as Purchase对象,
+    resType: {} as any,
+  },
   /** 计划签收,签收后入库 */
   reach: {
     realUrl: '/strategy/purchase/reach' as const,
@@ -1986,7 +2040,7 @@ export default {
     resType: {} as any,
   },
   /** 获取计划提报限制详列表 */
-  list_49: {
+  list_50: {
     realUrl: '/strategy/purchase_limit_config/list' as const,
     reqType: {} as PurchaseLimitConfig对象,
     resType: {} as any,
@@ -2004,7 +2058,7 @@ export default {
     resType: {} as any,
   },
   /** 获取计划提报限制详细配置分页列表 */
-  list_50: {
+  list_51: {
     realUrl: '/strategy/purchase_limit_config_log/list' as const,
     reqType: {} as IPageParams<PurchaseLimitConfigLog对象>,
     resType: {} as any,
@@ -2016,13 +2070,13 @@ export default {
     resType: {} as any,
   },
   /** 添加操作 */
-  add_30: {
+  add_31: {
     realUrl: '/strategy/purchase_operate/add' as const,
     reqType: {} as PurchaseOperate对象,
     resType: {} as any,
   },
   /** 获取订单变更记录 */
-  list_51: {
+  list_52: {
     realUrl: '/strategy/purchase_operate/list' as const,
     reqType: {} as IPageParams<PurchaseOperate对象>,
     resType: {} as any,
@@ -2052,7 +2106,7 @@ export default {
     resType: {} as any,
   },
   /** 获取返利优惠列表 */
-  list_52: {
+  list_53: {
     realUrl: '/strategy/rebate_config/list' as const,
     reqType: {} as IPageParams<RebateConfig对象>,
     resType: {} as any,
@@ -2064,13 +2118,13 @@ export default {
     resType: {} as any,
   },
   /** 获取返利优惠变更记录列表 */
-  list_53: {
+  list_54: {
     realUrl: '/strategy/rebate_log/list' as const,
     reqType: {} as IPageParams<RebateLog对象>,
     resType: {} as any,
   },
   /** 返利优惠变更记录详细日志 */
-  list_54: {
+  list_55: {
     realUrl: '/strategy/rebate_log_detail/list' as const,
     reqType: {} as IPageParams<RebateLogDetail对象>,
     resType: {} as any,
@@ -2085,7 +2139,7 @@ export default {
 
   },
   /** 获取申请变更记录列表 */
-  list_55: {
+  list_56: {
     realUrl: '/strategy/release_detail/list' as const,
     reqType: {} as IPageParams<ReleaseDetail对象>,
     resType: {} as any,
@@ -2109,13 +2163,13 @@ export default {
     resType: {} as any,
   },
   /** 申请发布 */
-  add_31: {
+  add_32: {
     realUrl: '/strategy/release_manage/add' as const,
     reqType: {} as ReleaseManage对象,
     resType: {} as any,
   },
   /** 获取发布申请列表 */
-  list_56: {
+  list_57: {
     realUrl: '/strategy/release_manage/list' as const,
     reqType: {} as IPageParams<ReleaseManage对象>,
     resType: {} as any,
@@ -2133,7 +2187,7 @@ export default {
     resType: {} as any,
   },
   /** 添加库存变动日志 */
-  add_32: {
+  add_33: {
     realUrl: '/strategy/stock_log/add' as const,
     reqType: {} as StockLog对象,
     resType: {} as any,
@@ -2199,7 +2253,7 @@ export default {
     resType: {} as any,
   },
   /** 获取库存变动日志列表 */
-  list_57: {
+  list_58: {
     realUrl: '/strategy/stock_log/list' as const,
     reqType: {} as IPageParams<StockLog对象>,
     resType: {} as any,
@@ -2247,13 +2301,13 @@ export default {
     resType: {} as any,
   },
   /** 添加system_config_log */
-  add_33: {
+  add_34: {
     realUrl: '/strategy/system_config_log/add' as const,
     reqType: {} as SystemConfigLog对象,
     resType: {} as any,
   },
   /** 获取system_config_log列表 */
-  list_58: {
+  list_59: {
     realUrl: '/strategy/system_config_log/list' as const,
     reqType: {} as IPageParams<SystemConfigLog对象>,
     resType: {} as any,
@@ -2265,7 +2319,7 @@ export default {
     resType: {} as any,
   },
   /** 添加tag */
-  add_34: {
+  add_35: {
     realUrl: '/strategy/tag/add' as const,
     reqType: {} as Tag对象,
     resType: {} as any,
@@ -2283,7 +2337,7 @@ export default {
     resType: {} as any,
   },
   /** 获取tag列表 */
-  list_59: {
+  list_60: {
     realUrl: '/strategy/tag/list' as const,
     reqType: {} as Tag对象,
     resType: {} as any,
@@ -2360,8 +2414,26 @@ export default {
     reqType: {} as 成丰对接_站全量查询参数,
     resType: {} as any,
   },
+  /** 数据中心加气站消费趋势(物流,carrierOrgId必传) */
+  consume_trend_1: {
+    realUrl: '/strategy/trend_data/consume_trend' as const,
+    reqType: {} as 旗舰站智慧数据经营趋势查询参数,
+    resType: {} as 站消费趋势VO实体类,
+  },
+  /** 数据中心加气站消费总趋势(物流+散户) */
+  consume_trend_all_1: {
+    realUrl: '/strategy/trend_data/consume_trend_all' as const,
+    reqType: {} as 旗舰站智慧数据经营趋势查询参数,
+    resType: {} as 站物流和散户消费趋势VO实体类,
+  },
+  /** 数据中心加气站消费趋势物流选择 */
+  select_carriers_1: {
+    realUrl: '/strategy/trend_data/select_carriers' as const,
+    reqType: {} as 旗舰站智慧数据经营趋势查询参数,
+    resType: {} as CarrierVO,
+  },
   /** 新增卡车 */
-  add_35: {
+  add_36: {
     realUrl: '/strategy/truck/add' as const,
     reqType: {} as Truck对象,
     resType: {} as any,
@@ -2378,6 +2450,12 @@ export default {
     reqType: {} as Truck对象,
     resType: {} as 车辆新增返回提示,
   },
+  /** 物流公司输入车牌号新增车辆 */
+  add_carnumber_carrier: {
+    realUrl: '/strategy/truck/add_carnumber_carrier' as const,
+    reqType: {} as Truck对象,
+    resType: {} as 车辆新增返回提示,
+  },
   /** 添加直销模式卡车 */
   add_direct_truck: {
     realUrl: '/strategy/truck/add_direct_truck' as const,
@@ -2628,7 +2706,7 @@ export default {
     resType: {} as any,
   },
   /** 卡车列表 */
-  list_60: {
+  list_61: {
     realUrl: '/strategy/truck/list' as const,
     reqType: {} as IPageParams<Truck对象>,
     resType: {} as AnyObject,
@@ -2742,7 +2820,7 @@ export default {
     resType: {} as string,
   },
   /** 添加truck_com_contract */
-  add_36: {
+  add_37: {
     realUrl: '/strategy/truck_com_contract/add' as const,
     reqType: {} as TruckComContract对象,
     resType: {} as any,
@@ -2754,7 +2832,7 @@ export default {
     resType: {} as Array<TruckComContract对象>,
   },
   /** 获取truck_com_contract列表 */
-  list_61: {
+  list_62: {
     realUrl: '/strategy/truck_com_contract/list' as const,
     reqType: {} as IPageParams<TruckComContract对象>,
     resType: {} as any,
@@ -2766,7 +2844,7 @@ export default {
     resType: {} as any,
   },
   /** 新增卡车-司机分配 */
-  add_37: {
+  add_38: {
     realUrl: '/strategy/truck_driver/add' as const,
     reqType: {} as TruckDriver对象,
     resType: {} as any,
@@ -2820,7 +2898,7 @@ export default {
     resType: {} as any,
   },
   /** 添加truck_driver_log */
-  add_38: {
+  add_39: {
     realUrl: '/strategy/truck_driver_log/add' as const,
     reqType: {} as TruckDriverLog对象,
     resType: {} as any,
@@ -2850,7 +2928,7 @@ export default {
     resType: {} as any,
   },
   /** 获取truck_driver_log列表 */
-  list_62: {
+  list_63: {
     realUrl: '/strategy/truck_driver_log/list' as const,
     reqType: {} as IPageParams<TruckDriverLog对象>,
     resType: {} as any,
@@ -2862,13 +2940,13 @@ export default {
     resType: {} as any,
   },
   /** add 卡车变更日志 */
-  add_39: {
+  add_40: {
     realUrl: '/strategy/truck_log/add' as const,
     reqType: {} as TruckLog对象,
     resType: {} as any,
   },
   /** 获取truck_log列表 */
-  list_63: {
+  list_64: {
     realUrl: '/strategy/truck_log/list' as const,
     reqType: {} as IPageParams<TruckLog对象>,
     resType: {} as any,

+ 1 - 4
src/utils/config/interFaces/user.ts

@@ -841,10 +841,7 @@ export default {
   /** 登录更新用户信息 */
   token_update: {
     realUrl: '/user/oauth/token_update' as const,
-    reqType: {} as {
-      /** userid */
-      userid: string
-    },
+    reqType: {} as TokenUpdateParam参数,
     resType: {} as Token认证返回实体,
   },
   /** 获取端列表-不分页 */

+ 32 - 2
src/utils/func/convert.ts

@@ -1,10 +1,22 @@
-export default {
+const convert = {
+  transformFromBaiduToGCJ(latitude, longitude) {
+    const xPi = (3.14159265358979323846264338327950288 * 3000.0) / 180.0
+    const x = longitude - 0.0065
+    const y = latitude - 0.006
+    const z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * xPi)
+    const theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * xPi)
+    const aLatitude = z * Math.sin(theta)
+    const aLongitude = z * Math.cos(theta)
+
+    return { latitude: aLatitude, longitude: aLongitude }
+  },
   /** 手机号脱敏 */
   mobileDes(mobile) {
     return mobile && mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
   },
   nullView(data) {
-    return !data && data !== 0 ? '--' : data
+    const rv = !data && data !== 0 ? '--' : data
+    return rv
   },
   getOrderStatusStr(settleStatus) {
     const map = config.common.settleStatus
@@ -34,4 +46,22 @@ export default {
     })
     return arr.filter(filterFunc)
   },
+  /** 空 */
+  isNull(val) {
+    return false
+  },
+  /** 非空 */
+  unNull(val) {
+    return false
+  },
+}
+
+// 空
+convert.isNull = (val) => {
+  return convert.nullView(val) === '--'
+}
+// 非空
+convert.unNull = (val) => {
+  return convert.nullView(val) !== '--'
 }
+export default convert

+ 12 - 2
src/utils/func/index.ts

@@ -2,7 +2,17 @@ import native from './native'
 import convert from './convert'
 import validate from './validate'
 import dayjs from 'dayjs'
-
+const dayjsAllowNull = (date) => {
+  if (func.convert.isNull(date)) {
+    return new Proxy({} as ReturnType<typeof dayjs>, {
+      get(target, p) {
+        return () => func.convert.nullView(date)
+      },
+    })
+  } else {
+    return dayjs(date)
+  }
+}
 export default {
   native,
   convert,
@@ -18,7 +28,7 @@ export default {
     })
   },
   getDate(date) {
-    const day = dayjs(date)
+    const day = dayjsAllowNull(date)
     return day
     // return new Proxy(dayjs(date), {
     //   get(target, p) {

+ 2 - 1
src/utils/func/native.ts

@@ -109,7 +109,8 @@ export default {
    */
   openLocation(args: UniApp.OpenLocationOptions) {
     if (args.latitude && args.longitude) {
-      uni.openLocation(args)
+      const location = func.convert.transformFromBaiduToGCJ(args.latitude, args.longitude)
+      uni.openLocation({ ...args, ...location })
     }
   },
 

+ 1 - 1
src/utils/store/curPage.ts

@@ -1,5 +1,5 @@
 import { defineStore } from 'pinia'
-const debug = () => import.meta.env.DEV && false
+const debug = () => import.meta.env.DEV && true
 /** 当前页面地址 */
 const curPage = ref<string>()
 /** 预制页面地址 */