diff --git a/common/enum.js b/common/enum.js index e71b2d5..73230e3 100644 --- a/common/enum.js +++ b/common/enum.js @@ -1,27 +1,41 @@ import getCdnUrl, { getCdnRoot } from "./getCdnUrl.js" import { authCodeEnum } from "./authCode" - -const dateTypeEnum = { - week: 1, - month: 2, - custom: 3, +import dayjs from "dayjs" +const formatStr = 'YYYY-MM-DD' +let curMonth = dayjs().month() + 1 +let curMYush = curMonth % 3 +// 如果被整除,diff就要设置成被除以的数 +if(curMYush == 0) { + curMYush = 3 } -const dateTypeList = [ - { title: '近一周', val: dateTypeEnum.week }, - { title: '近一月', val: dateTypeEnum.month }, - { title: '自定义时间', val: dateTypeEnum.custom }, -] - - const dateRangeList = [ - { title: '天', val: 1 }, - { title: '周', val: 2 }, - { title: '月', val: 3 }, - { title: '季度', val: 4 }, - { title: '年', val: 5 }, + { title: '本周', val: 1, + range: [ + dayjs().startOf('week').add(-6, 'day').format(formatStr), + dayjs().endOf('week').add(-6, 'day').format(formatStr) + ], + }, + { title: '当月', val: 2, + range: [ + dayjs().startOf('month').format(formatStr), + dayjs().endOf('month').format(formatStr) + ], + }, + { title: '本季度', val: 3, + range: [ + dayjs().month((curMonth - curMYush)).startOf('month').format(formatStr), + dayjs().month(curMonth + (3 - curMYush) - 1).endOf('month').format(formatStr) + ], + }, + { title: '本年度', val: 4, + range: [ + dayjs().startOf('year').format(formatStr), + dayjs().endOf('year').format(formatStr) + ], + }, + { title: '自定义', val: '-1', range: [] }, ] - const costRateTypeEnum = { cny: 'CNY', usd: 'USD', @@ -108,8 +122,6 @@ export { costRateList, pageEventNames, dealBtnMap, - dateTypeEnum, - dateTypeList, authCodeEnum, audioTypeEnum, } \ No newline at end of file diff --git a/manifest.json b/manifest.json index bf9b98a..dfe57dc 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__BCB0FB5", "description" : "探路国际速运", "versionName" : "1.0.1", - "versionCode" : "1055", + "versionCode" : "1056", "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/deliveryDeal/storage.vue b/pages/deliveryDeal/storage.vue index 7e482f8..d2126bb 100644 --- a/pages/deliveryDeal/storage.vue +++ b/pages/deliveryDeal/storage.vue @@ -77,13 +77,18 @@ @@ -143,6 +148,11 @@ if(!res.data) { this.showToast("进仓单号数据不存在") } + if(res?.data?.lockFlag == 'T') { + setTimeout(()=> { + this.showToast(res.data.lockReason) + }, 500) + } let data = res.data || {} this.submitParam = Object.assign({}, data, { pickupMethod: 1, diff --git a/pages/tabBar/order/order.vue b/pages/tabBar/order/order.vue index 914814e..25ded24 100644 --- a/pages/tabBar/order/order.vue +++ b/pages/tabBar/order/order.vue @@ -127,9 +127,6 @@