uu
This commit is contained in:
parent
462b6a07b3
commit
7d7356f248
167
common/enum.js
167
common/enum.js
@ -1,67 +1,5 @@
|
|||||||
import getCdnUrl from "./getCdnUrl.js"
|
import getCdnUrl from "./getCdnUrl.js"
|
||||||
|
|
||||||
const ordStaEnum = {
|
|
||||||
post: 1,
|
|
||||||
get: 2,
|
|
||||||
unpay: 3
|
|
||||||
}
|
|
||||||
const ordStatusList = [
|
|
||||||
{ title: '寄件', val: ordStaEnum.post },
|
|
||||||
{ title: '收件', val: ordStaEnum.get },
|
|
||||||
{ title: '待付款', val: ordStaEnum.unpay }
|
|
||||||
]
|
|
||||||
|
|
||||||
const payTypeEnum = {
|
|
||||||
postNow: 1,
|
|
||||||
toNow: 2,
|
|
||||||
postMonth: 3,
|
|
||||||
toMonth: 4,
|
|
||||||
outNow: 5,
|
|
||||||
outMonth: 6,
|
|
||||||
other: 7,
|
|
||||||
}
|
|
||||||
|
|
||||||
const payTypeList = [
|
|
||||||
{ title: '寄付现结', val: payTypeEnum.postNow },
|
|
||||||
{ title: '到付现结', val: payTypeEnum.toNow },
|
|
||||||
{ title: '寄付月结', val: payTypeEnum.postMonth },
|
|
||||||
{ title: '到付月结', val: payTypeEnum.toMonth },
|
|
||||||
{ title: '第三方付款', val: payTypeEnum.outNow },
|
|
||||||
{ title: '第三方月结',val: payTypeEnum.outMonth },
|
|
||||||
{ title: '其他', val: payTypeEnum.other }
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
const dlvTypeEnum = {
|
|
||||||
waitpack: 1,
|
|
||||||
getpack: 2,
|
|
||||||
trans: 3,
|
|
||||||
dispatch: 4,
|
|
||||||
sign: 5,
|
|
||||||
obtain: 6,
|
|
||||||
waitdispatch: 7,
|
|
||||||
cancel: 8,
|
|
||||||
nullify: 9,
|
|
||||||
forward: 10,
|
|
||||||
back: 11,
|
|
||||||
other: 12,
|
|
||||||
}
|
|
||||||
|
|
||||||
const dlvTypeList = [
|
|
||||||
{ title: '待取件', val: dlvTypeEnum.waitpack },
|
|
||||||
{ title: '已取件', val: dlvTypeEnum.getpack },
|
|
||||||
{ title: '运输中', val: dlvTypeEnum.trans },
|
|
||||||
{ title: '派送中', val: dlvTypeEnum.dispatch },
|
|
||||||
{ title: '已签收', val: dlvTypeEnum.sign },
|
|
||||||
{ title: '已收取',val: dlvTypeEnum.obtain },
|
|
||||||
{ title: '待派送', val: dlvTypeEnum.waitdispatch },
|
|
||||||
{ title: '已取消', val: dlvTypeEnum.cancel },
|
|
||||||
{ title: '已作废', val: dlvTypeEnum.nullify },
|
|
||||||
{ title: '已转寄', val: dlvTypeEnum.forward },
|
|
||||||
{ title: '已退回', val: dlvTypeEnum.back },
|
|
||||||
{ title: '其他', val: dlvTypeEnum.other },
|
|
||||||
]
|
|
||||||
|
|
||||||
const dateTypeEnum = {
|
const dateTypeEnum = {
|
||||||
week: 1,
|
week: 1,
|
||||||
month: 2,
|
month: 2,
|
||||||
@ -75,91 +13,6 @@ const dateTypeList = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
const sendTypeEnum = {
|
|
||||||
home: 1,
|
|
||||||
tockRoom: 2,
|
|
||||||
container: 3,
|
|
||||||
}
|
|
||||||
const sendTypeList = [
|
|
||||||
{ title: '上门取件', val: sendTypeEnum.home },
|
|
||||||
{ title: '仓库收货', val: sendTypeEnum.tockRoom },
|
|
||||||
{ title: '整柜提货', val: sendTypeEnum.container }
|
|
||||||
]
|
|
||||||
|
|
||||||
const payStatusEnum = {
|
|
||||||
todo: 1,
|
|
||||||
done: 2,
|
|
||||||
other: 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
const payStatusList = [
|
|
||||||
{ title: '待付款', val: payStatusEnum.todo },
|
|
||||||
{ title: '已付款', val: payStatusEnum.done },
|
|
||||||
{ title: '其他', val: payStatusEnum.other }
|
|
||||||
]
|
|
||||||
|
|
||||||
const wareTypeEnum = {
|
|
||||||
uncome: 1,
|
|
||||||
comed: 2,
|
|
||||||
toConfirm: 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
const wareTypeList = [
|
|
||||||
{ title: '待入仓', val: wareTypeEnum.uncome },
|
|
||||||
{ title: '已入仓', val: wareTypeEnum.comed },
|
|
||||||
{ title: '待确认', val: wareTypeEnum.toConfirm }
|
|
||||||
]
|
|
||||||
|
|
||||||
const qingguanEnum = {
|
|
||||||
kuaidi: 1,
|
|
||||||
zishui: 2,
|
|
||||||
ziti: 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
const qingguanList = [
|
|
||||||
{ title: '快递清关', val: qingguanEnum.kuaidi },
|
|
||||||
{ title: '自税清关', val: qingguanEnum.zishui },
|
|
||||||
{ title: '自清自提', val: qingguanEnum.ziti },
|
|
||||||
]
|
|
||||||
|
|
||||||
const baoguanEnum = {
|
|
||||||
kuaidi: 1,
|
|
||||||
tuishui: 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
const baoguanList = [
|
|
||||||
{ title: '快递报关', val: baoguanEnum.kuaidi },
|
|
||||||
{ title: '退税报关', val: baoguanEnum.tuishui },
|
|
||||||
]
|
|
||||||
|
|
||||||
const packTypeEnum = {
|
|
||||||
zhixiang: 1,
|
|
||||||
muxiang: 2,
|
|
||||||
zhenzhi: 3,
|
|
||||||
other: 4
|
|
||||||
}
|
|
||||||
|
|
||||||
const packTypeList = [
|
|
||||||
{ title: '纸箱', val: packTypeEnum.zhixiang },
|
|
||||||
{ title: '木箱', val: packTypeEnum.muxiang },
|
|
||||||
{ title: '针织袋', val: packTypeEnum.zhenzhi },
|
|
||||||
{ title: '其他', val: packTypeEnum.other },
|
|
||||||
]
|
|
||||||
|
|
||||||
const kuaidiTypeEnum = {
|
|
||||||
shunfeng: 1,
|
|
||||||
debang: 2,
|
|
||||||
yunda: 3,
|
|
||||||
other: 4
|
|
||||||
}
|
|
||||||
|
|
||||||
const kuaidiTypeList = [
|
|
||||||
{ title: '顺丰', val: kuaidiTypeEnum.shunfeng },
|
|
||||||
{ title: '德邦', val: kuaidiTypeEnum.debang },
|
|
||||||
{ title: '韵达', val: kuaidiTypeEnum.yunda },
|
|
||||||
{ title: '其他', val: kuaidiTypeEnum.other },
|
|
||||||
]
|
|
||||||
|
|
||||||
const dateRangeList = [
|
const dateRangeList = [
|
||||||
{ title: '天', val: 1 },
|
{ title: '天', val: 1 },
|
||||||
{ title: '周', val: 2 },
|
{ title: '周', val: 2 },
|
||||||
@ -229,26 +82,6 @@ export {
|
|||||||
pageEventNames,
|
pageEventNames,
|
||||||
authCodeEnum,
|
authCodeEnum,
|
||||||
dealBtnMap,
|
dealBtnMap,
|
||||||
ordStaEnum,
|
|
||||||
ordStatusList,
|
|
||||||
payTypeEnum,
|
|
||||||
payTypeList,
|
|
||||||
dlvTypeEnum,
|
|
||||||
dlvTypeList,
|
|
||||||
dateTypeEnum,
|
dateTypeEnum,
|
||||||
dateTypeList,
|
dateTypeList,
|
||||||
sendTypeEnum,
|
|
||||||
sendTypeList,
|
|
||||||
payStatusEnum,
|
|
||||||
payStatusList,
|
|
||||||
wareTypeEnum,
|
|
||||||
wareTypeList,
|
|
||||||
qingguanEnum,
|
|
||||||
qingguanList,
|
|
||||||
baoguanEnum,
|
|
||||||
baoguanList,
|
|
||||||
packTypeEnum,
|
|
||||||
packTypeList,
|
|
||||||
kuaidiTypeEnum,
|
|
||||||
kuaidiTypeList,
|
|
||||||
}
|
}
|
||||||
@ -69,16 +69,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import {
|
|
||||||
ordStaEnum,
|
|
||||||
ordStatusList,
|
|
||||||
payTypeEnum,
|
|
||||||
payTypeList,
|
|
||||||
dlvTypeEnum,
|
|
||||||
dlvTypeList,
|
|
||||||
dateTypeEnum,
|
|
||||||
dateTypeList
|
|
||||||
} from "@/common/enum"
|
|
||||||
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
|
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
|
||||||
import {
|
import {
|
||||||
goto
|
goto
|
||||||
|
|||||||
@ -86,7 +86,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import { sendTypeEnum, sendTypeList, qingguanList, baoguanList, } from "@/common/enum"
|
|
||||||
import { goto } from "@/common/untool"
|
import { goto } from "@/common/untool"
|
||||||
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
|
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
|
||||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
@ -107,7 +106,6 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
kehuList: [{title: '李先生', val: '11'}],
|
kehuList: [{title: '李先生', val: '11'}],
|
||||||
...(JSON.parse(JSON.stringify({ qingguanList, baoguanList, sendTypeEnum, sendTypeList }))),
|
|
||||||
tipsList: [
|
tipsList: [
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
@ -91,7 +91,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import { sendTypeEnum, sendTypeList, qingguanList, baoguanList, } from "@/common/enum"
|
|
||||||
import { goto } from "@/common/untool"
|
import { goto } from "@/common/untool"
|
||||||
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
|
import BpeGooditemEditTmp from "@/components/buns-post-edit-templates/bpe-gooditem-edit-tmp"
|
||||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
@ -112,7 +111,6 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
kehuList: [{title: '李先生', val: '11'}],
|
kehuList: [{title: '李先生', val: '11'}],
|
||||||
...(JSON.parse(JSON.stringify({ qingguanList, baoguanList, sendTypeEnum, sendTypeList }))),
|
|
||||||
tipsList: [
|
tipsList: [
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
</u-row>
|
</u-row>
|
||||||
</tpx-select>
|
</tpx-select>
|
||||||
</view>
|
</view>
|
||||||
<view class="edm-input-item">
|
<!-- <view class="edm-input-item">
|
||||||
<tpx-select v-model:value="baseFormData.type2" :list="qingguanList"
|
<tpx-select v-model:value="baseFormData.type2" :list="qingguanList"
|
||||||
mode="drop"
|
mode="drop"
|
||||||
>
|
>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
</u-row>
|
</u-row>
|
||||||
</u-row>
|
</u-row>
|
||||||
</tpx-select>
|
</tpx-select>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="dt-block">
|
<view class="dt-block">
|
||||||
@ -230,9 +230,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import {
|
|
||||||
qingguanList, baoguanList, packTypeList, kuaidiTypeList
|
|
||||||
} from "@/common/enum"
|
|
||||||
import {
|
import {
|
||||||
goto, setClipboardData
|
goto, setClipboardData
|
||||||
} from "@/common/untool"
|
} from "@/common/untool"
|
||||||
@ -247,7 +245,6 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
...(JSON.parse(JSON.stringify({ qingguanList, baoguanList, packTypeList, kuaidiTypeList }))),
|
|
||||||
baseFormData: {
|
baseFormData: {
|
||||||
ydList: [
|
ydList: [
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -265,7 +265,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// import { sendTypeEnum } from "@/common/enum"
|
|
||||||
import BpeAddressinfoTmp from "@/components/buns-post-edit-templates/bpe-addressinfo-tmp"
|
import BpeAddressinfoTmp from "@/components/buns-post-edit-templates/bpe-addressinfo-tmp"
|
||||||
import BpeGoodstaticTmp from "@/components/buns-post-edit-templates/bpe-goodstatic-tmp"
|
import BpeGoodstaticTmp from "@/components/buns-post-edit-templates/bpe-goodstatic-tmp"
|
||||||
import BpeCostTmp from "@/components/buns-post-edit-templates/bpe-cost-tmp"
|
import BpeCostTmp from "@/components/buns-post-edit-templates/bpe-cost-tmp"
|
||||||
|
|||||||
@ -194,7 +194,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import { sendTypeEnum, sendTypeList } from "@/common/enum"
|
|
||||||
import { goto } from "@/common/untool"
|
import { goto } from "@/common/untool"
|
||||||
import BpeAddressinfoTmp from "@/components/buns-post-edit-templates/bpe-addressinfo-tmp"
|
import BpeAddressinfoTmp from "@/components/buns-post-edit-templates/bpe-addressinfo-tmp"
|
||||||
import BpeGoodsizeTmp from "@/components/buns-post-edit-templates/bpe-goodsize-tmp"
|
import BpeGoodsizeTmp from "@/components/buns-post-edit-templates/bpe-goodsize-tmp"
|
||||||
@ -211,7 +210,6 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
...(JSON.parse(JSON.stringify({ sendTypeEnum, sendTypeList }))),
|
|
||||||
proList: [
|
proList: [
|
||||||
{val: 1 },{ val: 2 }
|
{val: 1 },{ val: 2 }
|
||||||
],
|
],
|
||||||
|
|||||||
@ -60,16 +60,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import {
|
|
||||||
ordStaEnum,
|
|
||||||
ordStatusList,
|
|
||||||
payTypeEnum,
|
|
||||||
payTypeList,
|
|
||||||
dlvTypeEnum,
|
|
||||||
dlvTypeList,
|
|
||||||
dateTypeEnum,
|
|
||||||
dateTypeList
|
|
||||||
} from "@/common/enum"
|
|
||||||
|
|
||||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -72,16 +72,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import {
|
|
||||||
ordStaEnum,
|
|
||||||
ordStatusList,
|
|
||||||
payTypeEnum,
|
|
||||||
payTypeList,
|
|
||||||
dlvTypeEnum,
|
|
||||||
dlvTypeList,
|
|
||||||
dateTypeEnum,
|
|
||||||
dateTypeList
|
|
||||||
} from "@/common/enum"
|
|
||||||
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
|
import BoOperatorTmp from "@/components/buns-order-templates/bo-operator-tmp"
|
||||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -65,16 +65,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import {
|
|
||||||
ordStaEnum,
|
|
||||||
ordStatusList,
|
|
||||||
payTypeEnum,
|
|
||||||
payTypeList,
|
|
||||||
dlvTypeEnum,
|
|
||||||
dlvTypeList,
|
|
||||||
dateTypeEnum,
|
|
||||||
dateTypeList
|
|
||||||
} from "@/common/enum"
|
|
||||||
|
|
||||||
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
import BpeGoodphotoTmp from "@/components/buns-post-edit-templates/bpe-goodphoto-tmp"
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -35,8 +35,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as apiService from "@/common/api"
|
import * as apiService from "@/common/api"
|
||||||
import { addressNameCodeMap } from "@/common/enum"
|
|
||||||
import { getAddressDetail, setAddresModalParam } from "@/common/util"
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@ -68,7 +66,6 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getAddressDetail,
|
|
||||||
async initData() {
|
async initData() {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -151,7 +151,6 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import getCdnUrl from "@/common/getCdnUrl"
|
import getCdnUrl from "@/common/getCdnUrl"
|
||||||
import { ordStaEnum, ordStatusList, payTypeEnum, payTypeList, dlvTypeEnum, dlvTypeList, dateTypeEnum, dateTypeList } from "@/common/enum"
|
|
||||||
import { goto, setClipboardData, confirmModal, showLoading } from "@/common/untool"
|
import { goto, setClipboardData, confirmModal, showLoading } from "@/common/untool"
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@ -175,7 +174,6 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
...JSON.parse(JSON.stringify({ ordStaEnum, ordStatusList, payTypeEnum, payTypeList, dlvTypeEnum, dlvTypeList, dateTypeEnum, dateTypeList })),
|
|
||||||
searchParam: {
|
searchParam: {
|
||||||
keyword: '',
|
keyword: '',
|
||||||
ordStatus: ordStatusList[0].val // 订单状态, 1:寄件; 2:收件; 3:待付款;
|
ordStatus: ordStatusList[0].val // 订单状态, 1:寄件; 2:收件; 3:待付款;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user