qj-common 4.3.0 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +12 -12
- package/.eslintrc.js +25 -25
- package/.idea/common.iml +11 -11
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/.postcssrc.js +9 -9
- package/.prettierrc.js +7 -7
- package/.project +37 -37
- package/README.md +2 -2
- package/gulpfile.js +20 -20
- package/package.json +18 -18
- package/src/api/apimanage.js +146 -146
- package/src/api/common/index.js +192 -192
- package/src/api/login.js +160 -160
- package/src/api/shopFbu.js +515 -515
- package/src/api/upload.js +8 -8
- package/src/components/Bounced/index.vue +145 -145
- package/src/components/Breadcrumb/index.vue +71 -71
- package/src/components/Checkbox/index.vue +53 -53
- package/src/components/Hamburger/index.vue +48 -48
- package/src/components/Logistics/logic.vue +186 -186
- package/src/components/ScrollBar/index.vue +60 -60
- package/src/components/Sticky/index.vue +76 -76
- package/src/components/SvgIcon/index.vue +42 -42
- package/src/components/ThemePicker/index.vue +243 -243
- package/src/components/Tinymce/components/editorImage.vue +94 -94
- package/src/components/Tinymce/index.vue +166 -166
- package/src/components/Tinymce/plugins.js +7 -7
- package/src/components/Tinymce/toolbar.js +6 -6
- package/src/components/TreeTable/customEval.js +44 -44
- package/src/components/TreeTable/eval.js +29 -29
- package/src/components/TreeTable/index.vue +124 -124
- package/src/components/TreeTable/readme.md +89 -89
- package/src/components/TreeTableApi/customEval.js +49 -49
- package/src/components/TreeTableApi/eval.js +29 -29
- package/src/components/TreeTableApi/index.vue +124 -124
- package/src/components/TreeTableApi/readme.md +89 -89
- package/src/components/Upload/singleImage.vue +123 -123
- package/src/components/Upload/singleImage2.vue +118 -118
- package/src/components/Upload/singleImage3.vue +138 -138
- package/src/components/Upload/upload.vue +295 -295
- package/src/components/workOrderList/index.vue +158 -158
- package/src/dependencies.js +119 -119
- package/src/iconShop/demo.css +539 -539
- package/src/iconShop/demo_index.html +8445 -8445
- package/src/iconShop/iconfont.css +1451 -1451
- package/src/iconShop/iconfont.json +2522 -2522
- package/src/iconShop/iconfont.svg +1070 -1070
- package/src/iconfont/demo.css +539 -539
- package/src/iconfont/demo_index.html +5276 -5276
- package/src/iconfont/iconfont.css +905 -905
- package/src/iconfont/iconfont.json +1563 -1563
- package/src/iconfont/iconfont.svg +692 -692
- package/src/icons/index.js +9 -9
- package/src/lang/e.js +48 -48
- package/src/lang/en.js +48 -48
- package/src/lang/zh.js +48 -48
- package/src/main.js +62 -62
- package/src/permission.js +283 -283
- package/src/permissionForMall.backup.js +375 -375
- package/src/permissionForMall.js +375 -375
- package/src/preset.js +67 -67
- package/src/router/_import_common.js +1 -1
- package/src/router/_import_development.js +1 -1
- package/src/router/_import_production.js +1 -1
- package/src/store/getters.js +39 -39
- package/src/store/index.js +18 -18
- package/src/store/modules/app.js +34 -30
- package/src/store/modules/menu.js +82 -82
- package/src/store/modules/user.js +227 -227
- package/src/styles/element-ui.scss +1368 -1368
- package/src/styles/index.scss +166 -166
- package/src/styles/mixin.scss +27 -27
- package/src/styles/pc-ui.scss +1031 -1031
- package/src/styles/scrollBar.scss +21 -21
- package/src/styles/sidebar.scss +123 -123
- package/src/styles/transition.scss +32 -32
- package/src/styles/variables.scss +44 -44
- package/src/styles/wf-ui.scss +86 -86
- package/src/utils/auth.js +57 -57
- package/src/utils/dom.js +12 -12
- package/src/utils/getQueryString.js +5 -5
- package/src/utils/import.js +5 -5
- package/src/utils/index.js +355 -355
- package/src/utils/interceptor.js +34 -34
- package/src/utils/menu.js +116 -116
- package/src/utils/proapp.js +35 -35
- package/src/utils/query.js +26 -26
- package/src/utils/request.js +366 -366
- package/src/utils/routeMapping.js +39 -39
- package/src/utils/routeMapping.json +310 -310
- package/src/utils/utils.js +84 -84
- package/src/utils/validate.js +102 -102
- package/src/views/404.vue +72 -72
- package/src/views/Layout.vue +106 -106
- package/src/views/imgSwiper/index.vue +34 -34
- package/src/views/layout/Layout.vue +181 -170
- package/src/views/layout/components/AppMain.vue +20 -20
- package/src/views/layout/components/Footer.vue +22 -22
- package/src/views/layout/components/LeftNavbar.vue +318 -310
- package/src/views/layout/components/NavMenu.vue +15 -15
- package/src/views/layout/components/Navbar.vue +664 -661
- package/src/views/layout/components/Sidebar/SidebarItem.vue +116 -113
- package/src/views/layout/components/Sidebar/index.vue +203 -193
- package/src/views/layout/components/index.js +19 -19
- package/src/views/layout/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout/theme/darkBlue/components/LeftNavbar(/345/261/225/347/244/272/345/205/250/351/203/250/350/217/234/345/215/225).vue +448 -448
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.3.vue +191 -191
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.vue +466 -466
- package/src/views/layout/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout/theme/darkBlue/components/Sidebar/SidebarItem.vue +71 -71
- package/src/views/layout/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout/theme/darkBlue/components/index.js +15 -15
- package/src/views/layout-default/Layout.vue +134 -134
- package/src/views/layout-default/components/AppMain.vue +19 -19
- package/src/views/layout-default/components/Footer.vue +22 -22
- package/src/views/layout-default/components/LeftNavbar.vue +164 -164
- package/src/views/layout-default/components/Navbar.vue +295 -295
- package/src/views/layout-default/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout-default/components/Sidebar/index.vue +59 -59
- package/src/views/layout-default/components/index.js +4 -4
- package/src/views/layout-default/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout-default/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout-default/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout-default/theme/darkBlue/components/LeftNavbar.vue +465 -465
- package/src/views/layout-default/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/SidebarItem.vue +69 -69
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout-default/theme/darkBlue/components/index.js +15 -15
- package/src/views/pc/Internationalization.vue +80 -80
- package/src/views/pc/default/Layout.vue +442 -442
- package/src/views/pc/default/LayoutCard.vue +424 -424
- package/src/views/pc/default/assets/flex.scss +99 -99
- package/src/views/pc/default/footer-modules/DgFooter/index.vue +179 -179
- package/src/views/pc/default/footer-modules/DgFooter/indexSDX.vue +187 -187
- package/src/views/pc/default/footer-modules/footer.vue +171 -171
- package/src/views/pc/default/footer-modules/footerAns.vue +167 -167
- package/src/views/pc/default/footer-modules/footerBulk.vue +169 -169
- package/src/views/pc/default/footer-modules/footerDM.vue +254 -254
- package/src/views/pc/default/footer-modules/footerDefault.vue +267 -267
- package/src/views/pc/default/footer-modules/footerDefaultA.vue +270 -270
- package/src/views/pc/default/footer-modules/footerDefaultNew.vue +201 -201
- package/src/views/pc/default/footer-modules/footerHDB.vue +153 -153
- package/src/views/pc/default/footer-modules/footerHy.vue +63 -63
- package/src/views/pc/default/footer-modules/footerKYW.vue +163 -163
- package/src/views/pc/default/footer-modules/footerMh.vue +30 -30
- package/src/views/pc/default/footer-modules/footerNew.vue +116 -116
- package/src/views/pc/default/footer-modules/footer_yzj.vue +169 -169
- package/src/views/pc/default/footer-modules/footerayd.vue +85 -85
- package/src/views/pc/default/footer-modules/ymFooter.vue +154 -154
- package/src/views/pc/default/footer-modules/zgl.vue +250 -250
- package/src/views/pc/default/header-modules/DgHeader/Logo.vue +57 -57
- package/src/views/pc/default/header-modules/DgHeader/Search.vue +135 -135
- package/src/views/pc/default/header-modules/DgHeader/Settleup.vue +46 -46
- package/src/views/pc/default/header-modules/DgHeader/index.vue +38 -38
- package/src/views/pc/default/header-modules/active.vue +177 -177
- package/src/views/pc/default/header-modules/header.vue +97 -97
- package/src/views/pc/default/header-modules/headerA.vue +142 -142
- package/src/views/pc/default/header-modules/headerFLPT.vue +157 -157
- package/src/views/pc/default/header-modules/headerMh.vue +187 -187
- package/src/views/pc/default/header-modules/headerNew.vue +121 -121
- package/src/views/pc/default/header-modules/headerSDX.vue +304 -304
- package/src/views/pc/default/header-modules/headerStyle2.vue +173 -173
- package/src/views/pc/default/header-modules/headerStyle3.vue +190 -190
- package/src/views/pc/default/header-modules/headerStyle4.vue +163 -163
- package/src/views/pc/default/header-modules/headerStyleAns.vue +400 -400
- package/src/views/pc/default/header-modules/headerStyleBulk.vue +427 -427
- package/src/views/pc/default/header-modules/headerStyleDefalut.vue +209 -209
- package/src/views/pc/default/header-modules/headerStyleKYW.vue +435 -435
- package/src/views/pc/default/header-modules/headerStyle_yzj.vue +427 -427
- package/src/views/pc/default/header-modules/headerayd.vue +187 -187
- package/src/views/pc/default/header-modules/index.vue +466 -466
- package/src/views/pc/default/header-modules/ymHeader.vue +292 -292
- package/src/views/pc/default/header-modules/ysHeader.vue +248 -248
- package/src/views/pc/default/header-modules/zgl.vue +855 -855
- package/src/views/pc/default/leftMenu-modules/leftMenu-logo.vue +194 -194
- package/src/views/pc/default/leftMenu-modules/leftMenu-style2.vue +206 -206
- package/src/views/pc/default/leftMenu-modules/leftMenu-style3.vue +207 -207
- package/src/views/pc/default/leftMenu-modules/leftMenu-style4.vue +192 -192
- package/src/views/pc/default/leftMenu-modules/leftMenu.vue +183 -183
- package/src/views/pc/default/leftMenu-modules/leftMenuDefault.vue +212 -212
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultEn.vue +214 -214
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultFLPT.vue +220 -220
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultayd.vue +220 -220
- package/src/views/pc/default/nav-modules/nav.vue +52 -52
- package/src/views/pc/default/nav-modules/navAns.vue +60 -60
- package/src/views/pc/default/nav-modules/navBulk.vue +60 -60
- package/src/views/pc/default/top-modules/DgTopShortcut/index.vue +177 -177
- package/src/views/pc/default/top-modules/Toplg.vue +280 -280
- package/src/views/pc/default/top-modules/topA.vue +136 -136
- package/src/views/pc/default/top-modules/topAns.vue +261 -261
- package/src/views/pc/default/top-modules/topAns_yzj.vue +282 -282
- package/src/views/pc/default/top-modules/topBar.vue +304 -304
- package/src/views/pc/default/top-modules/topBulk.vue +280 -280
- package/src/views/pc/default/top-modules/topDefault.vue +244 -244
- package/src/views/pc/default/top-modules/topDefaultDM.vue +197 -197
- package/src/views/pc/default/top-modules/topDefaultNew.vue +271 -271
- package/src/views/pc/default/top-modules/topFLPT.vue +197 -197
- package/src/views/pc/default/top-modules/topHDB.vue +479 -479
- package/src/views/pc/default/top-modules/topKYW.vue +258 -258
- package/src/views/pc/default/top-modules/topMh.vue +174 -174
- package/src/views/pc/default/top-modules/topNew.vue +97 -97
- package/src/views/pc/default/top-modules/topSDX.vue +298 -298
- package/src/views/pc/default/top-modules/topSimple.vue +247 -247
- package/src/views/pc/default/top-modules/topSimpleHy.vue +256 -256
- package/src/views/pc/default/top-modules/topUcc.vue +264 -264
- package/src/views/pc/default/top-modules/topayd.vue +170 -170
- package/src/views/pc/default/top-modules/ymTop.vue +299 -299
- package/src/views/pc/default/top-modules/zgltop.vue +499 -499
- package/src/views/routerView.vue +9 -9
- package/src/views/templates/components/temp-select.vue +80 -80
- package/src/views/templates/components/temp-upload.vue +233 -233
- package/src/views/templates/readme.md +2 -2
- package/src/views/templates/templateInput.vue +421 -421
- package/src/views/templates/templateReadme.html +588 -588
- package/src/views/templates/templateReadme.md +619 -619
- package/src/views/templates/templateTable.vue +2243 -2243
- package/src/views/templates/templateTableData.vue +1883 -1883
- package/src/views/templates/templateUi/templateTableContent.vue +187 -187
- package/src/views/treeTemplate/index.vue +559 -559
- package/src/views/treeTemplate/treeTemplate.md +274 -274
- package/src/views/uploadDialog/index copy.vue +352 -352
- package/src/views/uploadDialog/index.vue +558 -558
- package/src/views/uploadDialog/indexOlay.vue +582 -582
- package/src/views/uploadDialog/indexPM.vue +578 -578
- package/src/views/uploadDialog/indexUpload.vue +543 -543
- package/src/views/uploadDialog/readme.md +45 -45
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="logic-wrap" style="height:624px;">
|
|
3
|
-
<el-dialog center :visible.sync="logicShow" width="600px" :show-close="false" @close="hideLogic">
|
|
4
|
-
<h4 slot="title">{{expressName}}:{{wlnum}}</h4>
|
|
5
|
-
<el-scrollbar :native="false" wrapStyle="height:330px;">
|
|
6
|
-
<div class="logic-list">
|
|
7
|
-
<ul>
|
|
8
|
-
<li :class="{active: index == 0}" v-for="(item,index) in wltrack" :key="index">
|
|
9
|
-
<div class="left" v-html="date(item.AcceptTime)"></div>
|
|
10
|
-
<div class="right">
|
|
11
|
-
<i class="arrow iconfont icon-circle-arrow-up"></i>
|
|
12
|
-
<p class="info">
|
|
13
|
-
<span>{{th('process')}}</span><br/>
|
|
14
|
-
{{item.AcceptStation}}
|
|
15
|
-
</p>
|
|
16
|
-
</div>
|
|
17
|
-
</li>
|
|
18
|
-
</ul>
|
|
19
|
-
<!--{{th('none')}}-->
|
|
20
|
-
<span v-if="wltrack.length==0" class="noInfo">{{$t('common.pc.default.logistics.none')}}</span>
|
|
21
|
-
</div>
|
|
22
|
-
</el-scrollbar>
|
|
23
|
-
<span slot="footer" class="dialog-footer">
|
|
24
|
-
<!--{{th('subBtn')}}-->
|
|
25
|
-
<el-button class="bg-theme button-color" type="primary" @click="hideLogic" >{{$t('common.pc.default.logistics.subBtn')}}</el-button>
|
|
26
|
-
</span>
|
|
27
|
-
</el-dialog>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
<script>
|
|
31
|
-
import API from "#/api/common";
|
|
32
|
-
export default {
|
|
33
|
-
props: ["wlnum", "wlcompany", "expressName","logicShow"],
|
|
34
|
-
data() {
|
|
35
|
-
return {
|
|
36
|
-
wltrack: [],
|
|
37
|
-
wlInfor: {},
|
|
38
|
-
// wlState: ["暂无物流信息", "暂无物流信息", "在途中", "已签收", "问题件"],
|
|
39
|
-
//(0,"暂无物流信息"),(1,"通过"),(2,"在途中"),(3,"签收"),(4,"问题件")
|
|
40
|
-
wlStateInfor: "",
|
|
41
|
-
resultState: ""
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
created() {
|
|
45
|
-
console.log(this.wlnum, "lookLogiclookLogiclookLogiclookLogic");
|
|
46
|
-
this.getLogic();
|
|
47
|
-
},
|
|
48
|
-
methods: {
|
|
49
|
-
th(key) {
|
|
50
|
-
return this.$th("common.pc.default.logistics.", key);
|
|
51
|
-
},
|
|
52
|
-
date(value) {
|
|
53
|
-
return `<p class="date">${value.slice(
|
|
54
|
-
5,
|
|
55
|
-
10
|
|
56
|
-
)}</p><p class="time">${value.slice(11, 16)}</p>`;
|
|
57
|
-
},
|
|
58
|
-
getLogic() {
|
|
59
|
-
let wlnum = this.wlnum;
|
|
60
|
-
let wlcompany = this.wlcompany;
|
|
61
|
-
let params = {
|
|
62
|
-
// expressType: wlcompany,
|
|
63
|
-
// expressNo: wlnum
|
|
64
|
-
expressType: 'ems',
|
|
65
|
-
expressNo: '54534'
|
|
66
|
-
};
|
|
67
|
-
console.log(API)
|
|
68
|
-
API.getExpressPageForProp(params).then(res => {
|
|
69
|
-
// let dataObj = JSON.parse(res.dataObj);
|
|
70
|
-
// let wltrack = dataObj.Traces;
|
|
71
|
-
// let arrwltrack = wltrack.reverse();
|
|
72
|
-
//
|
|
73
|
-
// this.resultstate = dataObj.State;
|
|
74
|
-
// this.wlInfor = dataObj;
|
|
75
|
-
// if (this.wlInfor.State == "0") {
|
|
76
|
-
// this.wltrack = [];
|
|
77
|
-
// } else {
|
|
78
|
-
// this.wltrack = arrwltrack;
|
|
79
|
-
// }
|
|
80
|
-
// this.wlStateInfor = this.wlState[this.wlInfor.State];
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
hideLogic() {
|
|
84
|
-
this.$emit('hideLogic')
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
watch: {
|
|
88
|
-
wlnum(newValue, oldValue) {
|
|
89
|
-
this.getLogic();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
</script>
|
|
94
|
-
<style lang="scss" scoped>
|
|
95
|
-
h4 {
|
|
96
|
-
font-size: 24px;
|
|
97
|
-
color: #666666;
|
|
98
|
-
text-align: center;
|
|
99
|
-
}
|
|
100
|
-
.logic-wrap {
|
|
101
|
-
.noInfo{
|
|
102
|
-
font-size: 24px;
|
|
103
|
-
text-align: center;
|
|
104
|
-
margin-top: 150px;
|
|
105
|
-
display: block;
|
|
106
|
-
}
|
|
107
|
-
.logic-list {
|
|
108
|
-
width: 100%;
|
|
109
|
-
li {
|
|
110
|
-
overflow: hidden;
|
|
111
|
-
display: flex;
|
|
112
|
-
align-items: center;
|
|
113
|
-
&:last-child {
|
|
114
|
-
.right:after {
|
|
115
|
-
top: auto;
|
|
116
|
-
bottom: 0;
|
|
117
|
-
height: calc(50% + 18px);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.left {
|
|
122
|
-
float: left;
|
|
123
|
-
width: 10%;
|
|
124
|
-
padding-bottom: 40px;
|
|
125
|
-
font-size: 12px;
|
|
126
|
-
margin-left:70px;
|
|
127
|
-
.date {
|
|
128
|
-
font-size: 16px;
|
|
129
|
-
}
|
|
130
|
-
.time {
|
|
131
|
-
font-size: 12px;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
.right {
|
|
135
|
-
width: 60%;
|
|
136
|
-
padding-left: 25px;
|
|
137
|
-
padding-bottom: 40px;
|
|
138
|
-
position: relative;
|
|
139
|
-
min-height: 88px;
|
|
140
|
-
display: flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
.state {
|
|
143
|
-
font-size: 16px;
|
|
144
|
-
}
|
|
145
|
-
.info {
|
|
146
|
-
font-size: 12px;
|
|
147
|
-
// margin-top: 8px;
|
|
148
|
-
line-height: 18px;
|
|
149
|
-
span{
|
|
150
|
-
font-size:15px;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
.arrow {
|
|
154
|
-
font-size: 18px;
|
|
155
|
-
position: absolute;
|
|
156
|
-
left: -10px;
|
|
157
|
-
top: 50%;
|
|
158
|
-
margin-top: -29px;
|
|
159
|
-
background: #fff;
|
|
160
|
-
z-index: 1;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
.logic-wrap {
|
|
166
|
-
.el-scrollbar__wrap {
|
|
167
|
-
overflow-x: hidden;
|
|
168
|
-
}
|
|
169
|
-
.el-scrollbar__bar {
|
|
170
|
-
// opacity: 1;
|
|
171
|
-
}
|
|
172
|
-
.is-horizontal {
|
|
173
|
-
display: none;
|
|
174
|
-
}
|
|
175
|
-
.dialog-footer {
|
|
176
|
-
button {
|
|
177
|
-
width: 110px;
|
|
178
|
-
height: 36px;
|
|
179
|
-
font-size: 16px !important;
|
|
180
|
-
cursor: pointer;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
</style>
|
|
185
|
-
|
|
186
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="logic-wrap" style="height:624px;">
|
|
3
|
+
<el-dialog center :visible.sync="logicShow" width="600px" :show-close="false" @close="hideLogic">
|
|
4
|
+
<h4 slot="title">{{expressName}}:{{wlnum}}</h4>
|
|
5
|
+
<el-scrollbar :native="false" wrapStyle="height:330px;">
|
|
6
|
+
<div class="logic-list">
|
|
7
|
+
<ul>
|
|
8
|
+
<li :class="{active: index == 0}" v-for="(item,index) in wltrack" :key="index">
|
|
9
|
+
<div class="left" v-html="date(item.AcceptTime)"></div>
|
|
10
|
+
<div class="right">
|
|
11
|
+
<i class="arrow iconfont icon-circle-arrow-up"></i>
|
|
12
|
+
<p class="info">
|
|
13
|
+
<span>{{th('process')}}</span><br/>
|
|
14
|
+
{{item.AcceptStation}}
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
</li>
|
|
18
|
+
</ul>
|
|
19
|
+
<!--{{th('none')}}-->
|
|
20
|
+
<span v-if="wltrack.length==0" class="noInfo">{{$t('common.pc.default.logistics.none')}}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</el-scrollbar>
|
|
23
|
+
<span slot="footer" class="dialog-footer">
|
|
24
|
+
<!--{{th('subBtn')}}-->
|
|
25
|
+
<el-button class="bg-theme button-color" type="primary" @click="hideLogic" >{{$t('common.pc.default.logistics.subBtn')}}</el-button>
|
|
26
|
+
</span>
|
|
27
|
+
</el-dialog>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
import API from "#/api/common";
|
|
32
|
+
export default {
|
|
33
|
+
props: ["wlnum", "wlcompany", "expressName","logicShow"],
|
|
34
|
+
data() {
|
|
35
|
+
return {
|
|
36
|
+
wltrack: [],
|
|
37
|
+
wlInfor: {},
|
|
38
|
+
// wlState: ["暂无物流信息", "暂无物流信息", "在途中", "已签收", "问题件"],
|
|
39
|
+
//(0,"暂无物流信息"),(1,"通过"),(2,"在途中"),(3,"签收"),(4,"问题件")
|
|
40
|
+
wlStateInfor: "",
|
|
41
|
+
resultState: ""
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
created() {
|
|
45
|
+
console.log(this.wlnum, "lookLogiclookLogiclookLogiclookLogic");
|
|
46
|
+
this.getLogic();
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
th(key) {
|
|
50
|
+
return this.$th("common.pc.default.logistics.", key);
|
|
51
|
+
},
|
|
52
|
+
date(value) {
|
|
53
|
+
return `<p class="date">${value.slice(
|
|
54
|
+
5,
|
|
55
|
+
10
|
|
56
|
+
)}</p><p class="time">${value.slice(11, 16)}</p>`;
|
|
57
|
+
},
|
|
58
|
+
getLogic() {
|
|
59
|
+
let wlnum = this.wlnum;
|
|
60
|
+
let wlcompany = this.wlcompany;
|
|
61
|
+
let params = {
|
|
62
|
+
// expressType: wlcompany,
|
|
63
|
+
// expressNo: wlnum
|
|
64
|
+
expressType: 'ems',
|
|
65
|
+
expressNo: '54534'
|
|
66
|
+
};
|
|
67
|
+
console.log(API)
|
|
68
|
+
API.getExpressPageForProp(params).then(res => {
|
|
69
|
+
// let dataObj = JSON.parse(res.dataObj);
|
|
70
|
+
// let wltrack = dataObj.Traces;
|
|
71
|
+
// let arrwltrack = wltrack.reverse();
|
|
72
|
+
//
|
|
73
|
+
// this.resultstate = dataObj.State;
|
|
74
|
+
// this.wlInfor = dataObj;
|
|
75
|
+
// if (this.wlInfor.State == "0") {
|
|
76
|
+
// this.wltrack = [];
|
|
77
|
+
// } else {
|
|
78
|
+
// this.wltrack = arrwltrack;
|
|
79
|
+
// }
|
|
80
|
+
// this.wlStateInfor = this.wlState[this.wlInfor.State];
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
hideLogic() {
|
|
84
|
+
this.$emit('hideLogic')
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
watch: {
|
|
88
|
+
wlnum(newValue, oldValue) {
|
|
89
|
+
this.getLogic();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
<style lang="scss" scoped>
|
|
95
|
+
h4 {
|
|
96
|
+
font-size: 24px;
|
|
97
|
+
color: #666666;
|
|
98
|
+
text-align: center;
|
|
99
|
+
}
|
|
100
|
+
.logic-wrap {
|
|
101
|
+
.noInfo{
|
|
102
|
+
font-size: 24px;
|
|
103
|
+
text-align: center;
|
|
104
|
+
margin-top: 150px;
|
|
105
|
+
display: block;
|
|
106
|
+
}
|
|
107
|
+
.logic-list {
|
|
108
|
+
width: 100%;
|
|
109
|
+
li {
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
&:last-child {
|
|
114
|
+
.right:after {
|
|
115
|
+
top: auto;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
height: calc(50% + 18px);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
.left {
|
|
122
|
+
float: left;
|
|
123
|
+
width: 10%;
|
|
124
|
+
padding-bottom: 40px;
|
|
125
|
+
font-size: 12px;
|
|
126
|
+
margin-left:70px;
|
|
127
|
+
.date {
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
}
|
|
130
|
+
.time {
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.right {
|
|
135
|
+
width: 60%;
|
|
136
|
+
padding-left: 25px;
|
|
137
|
+
padding-bottom: 40px;
|
|
138
|
+
position: relative;
|
|
139
|
+
min-height: 88px;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
.state {
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
}
|
|
145
|
+
.info {
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
// margin-top: 8px;
|
|
148
|
+
line-height: 18px;
|
|
149
|
+
span{
|
|
150
|
+
font-size:15px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
.arrow {
|
|
154
|
+
font-size: 18px;
|
|
155
|
+
position: absolute;
|
|
156
|
+
left: -10px;
|
|
157
|
+
top: 50%;
|
|
158
|
+
margin-top: -29px;
|
|
159
|
+
background: #fff;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
.logic-wrap {
|
|
166
|
+
.el-scrollbar__wrap {
|
|
167
|
+
overflow-x: hidden;
|
|
168
|
+
}
|
|
169
|
+
.el-scrollbar__bar {
|
|
170
|
+
// opacity: 1;
|
|
171
|
+
}
|
|
172
|
+
.is-horizontal {
|
|
173
|
+
display: none;
|
|
174
|
+
}
|
|
175
|
+
.dialog-footer {
|
|
176
|
+
button {
|
|
177
|
+
width: 110px;
|
|
178
|
+
height: 36px;
|
|
179
|
+
font-size: 16px !important;
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</style>
|
|
185
|
+
|
|
186
|
+
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="scroll-container" ref="scrollContainer" @wheel.prevent="handleScroll" >
|
|
3
|
-
<div class="scroll-wrapper" ref="scrollWrapper" :style="{top: top + 'px'}">
|
|
4
|
-
<slot></slot>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
const delta = 15;
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
name: "scrollBar",
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
top: 0
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
handleScroll(e) {
|
|
21
|
-
const eventDelta = e.wheelDelta || -e.deltaY * 3;
|
|
22
|
-
const $container = this.$refs.scrollContainer;
|
|
23
|
-
const $containerHeight = $container.offsetHeight;
|
|
24
|
-
const $wrapper = this.$refs.scrollWrapper;
|
|
25
|
-
const $wrapperHeight = $wrapper.offsetHeight;
|
|
26
|
-
if (eventDelta > 0) {
|
|
27
|
-
this.top = Math.min(0, this.top + eventDelta);
|
|
28
|
-
} else {
|
|
29
|
-
if ($containerHeight - delta < $wrapperHeight) {
|
|
30
|
-
if (this.top < -($wrapperHeight - $containerHeight + delta)) {
|
|
31
|
-
this.top = this.top;
|
|
32
|
-
} else {
|
|
33
|
-
this.top = Math.max(
|
|
34
|
-
this.top + eventDelta,
|
|
35
|
-
$containerHeight - $wrapperHeight - delta
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
} else {
|
|
39
|
-
this.top = 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
48
|
-
// @import "../../../src/theme/variables.scss";
|
|
49
|
-
|
|
50
|
-
.scroll-container {
|
|
51
|
-
position: relative;
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: 100%;
|
|
54
|
-
background-color: inherit;
|
|
55
|
-
.scroll-wrapper {
|
|
56
|
-
position: absolute;
|
|
57
|
-
width: 100% !important;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="scroll-container" ref="scrollContainer" @wheel.prevent="handleScroll" >
|
|
3
|
+
<div class="scroll-wrapper" ref="scrollWrapper" :style="{top: top + 'px'}">
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
const delta = 15;
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
name: "scrollBar",
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
top: 0
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
methods: {
|
|
20
|
+
handleScroll(e) {
|
|
21
|
+
const eventDelta = e.wheelDelta || -e.deltaY * 3;
|
|
22
|
+
const $container = this.$refs.scrollContainer;
|
|
23
|
+
const $containerHeight = $container.offsetHeight;
|
|
24
|
+
const $wrapper = this.$refs.scrollWrapper;
|
|
25
|
+
const $wrapperHeight = $wrapper.offsetHeight;
|
|
26
|
+
if (eventDelta > 0) {
|
|
27
|
+
this.top = Math.min(0, this.top + eventDelta);
|
|
28
|
+
} else {
|
|
29
|
+
if ($containerHeight - delta < $wrapperHeight) {
|
|
30
|
+
if (this.top < -($wrapperHeight - $containerHeight + delta)) {
|
|
31
|
+
this.top = this.top;
|
|
32
|
+
} else {
|
|
33
|
+
this.top = Math.max(
|
|
34
|
+
this.top + eventDelta,
|
|
35
|
+
$containerHeight - $wrapperHeight - delta
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
this.top = 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
48
|
+
// @import "../../../src/theme/variables.scss";
|
|
49
|
+
|
|
50
|
+
.scroll-container {
|
|
51
|
+
position: relative;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
background-color: inherit;
|
|
55
|
+
.scroll-wrapper {
|
|
56
|
+
position: absolute;
|
|
57
|
+
width: 100% !important;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :style="{height:height+'px',zIndex:zIndex}">
|
|
3
|
-
<div :class="className" :style="{top:stickyTop+'px',zIndex:zIndex,position:position,width:width,height:height+'px'}">
|
|
4
|
-
<slot>
|
|
5
|
-
<div>sticky</div>
|
|
6
|
-
</slot>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
export default {
|
|
13
|
-
name: 'Sticky',
|
|
14
|
-
props: {
|
|
15
|
-
stickyTop: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: 0
|
|
18
|
-
},
|
|
19
|
-
zIndex: {
|
|
20
|
-
type: Number,
|
|
21
|
-
default: 1
|
|
22
|
-
},
|
|
23
|
-
className: {
|
|
24
|
-
type: String
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
data() {
|
|
28
|
-
return {
|
|
29
|
-
active: false,
|
|
30
|
-
position: '',
|
|
31
|
-
currentTop: '',
|
|
32
|
-
width: undefined,
|
|
33
|
-
height: undefined,
|
|
34
|
-
child: null,
|
|
35
|
-
stickyHeight: 0
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
mounted() {
|
|
39
|
-
this.height = this.$el.getBoundingClientRect().height
|
|
40
|
-
window.addEventListener('scroll', this.handleScroll)
|
|
41
|
-
},
|
|
42
|
-
activated() {
|
|
43
|
-
this.handleScroll()
|
|
44
|
-
},
|
|
45
|
-
destroyed() {
|
|
46
|
-
window.removeEventListener('scroll', this.handleScroll)
|
|
47
|
-
},
|
|
48
|
-
methods: {
|
|
49
|
-
sticky() {
|
|
50
|
-
if (this.active) {
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
this.position = 'fixed'
|
|
54
|
-
this.active = true
|
|
55
|
-
this.width = this.width + 'px'
|
|
56
|
-
},
|
|
57
|
-
reset() {
|
|
58
|
-
if (!this.active) {
|
|
59
|
-
return
|
|
60
|
-
}
|
|
61
|
-
this.position = ''
|
|
62
|
-
this.width = 'auto'
|
|
63
|
-
this.active = false
|
|
64
|
-
},
|
|
65
|
-
handleScroll() {
|
|
66
|
-
this.width = this.$el.getBoundingClientRect().width
|
|
67
|
-
const offsetTop = this.$el.getBoundingClientRect().top
|
|
68
|
-
if (offsetTop <= this.stickyTop) {
|
|
69
|
-
this.sticky()
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
this.reset()
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div :style="{height:height+'px',zIndex:zIndex}">
|
|
3
|
+
<div :class="className" :style="{top:stickyTop+'px',zIndex:zIndex,position:position,width:width,height:height+'px'}">
|
|
4
|
+
<slot>
|
|
5
|
+
<div>sticky</div>
|
|
6
|
+
</slot>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
name: 'Sticky',
|
|
14
|
+
props: {
|
|
15
|
+
stickyTop: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 0
|
|
18
|
+
},
|
|
19
|
+
zIndex: {
|
|
20
|
+
type: Number,
|
|
21
|
+
default: 1
|
|
22
|
+
},
|
|
23
|
+
className: {
|
|
24
|
+
type: String
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
active: false,
|
|
30
|
+
position: '',
|
|
31
|
+
currentTop: '',
|
|
32
|
+
width: undefined,
|
|
33
|
+
height: undefined,
|
|
34
|
+
child: null,
|
|
35
|
+
stickyHeight: 0
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
mounted() {
|
|
39
|
+
this.height = this.$el.getBoundingClientRect().height
|
|
40
|
+
window.addEventListener('scroll', this.handleScroll)
|
|
41
|
+
},
|
|
42
|
+
activated() {
|
|
43
|
+
this.handleScroll()
|
|
44
|
+
},
|
|
45
|
+
destroyed() {
|
|
46
|
+
window.removeEventListener('scroll', this.handleScroll)
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
sticky() {
|
|
50
|
+
if (this.active) {
|
|
51
|
+
return
|
|
52
|
+
}
|
|
53
|
+
this.position = 'fixed'
|
|
54
|
+
this.active = true
|
|
55
|
+
this.width = this.width + 'px'
|
|
56
|
+
},
|
|
57
|
+
reset() {
|
|
58
|
+
if (!this.active) {
|
|
59
|
+
return
|
|
60
|
+
}
|
|
61
|
+
this.position = ''
|
|
62
|
+
this.width = 'auto'
|
|
63
|
+
this.active = false
|
|
64
|
+
},
|
|
65
|
+
handleScroll() {
|
|
66
|
+
this.width = this.$el.getBoundingClientRect().width
|
|
67
|
+
const offsetTop = this.$el.getBoundingClientRect().top
|
|
68
|
+
if (offsetTop <= this.stickyTop) {
|
|
69
|
+
this.sticky()
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
this.reset()
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</script>
|