Commit b1c3c155 by liangjianmin

js

parent abefb734
......@@ -13,6 +13,7 @@
"echarts": "^5.1.1",
"element-ui": "^2.15.1",
"vue": "^2.6.11",
"vue-clipboard2": "^0.3.1",
"vue-router": "^3.2.0"
},
"devDependencies": {
......
......@@ -476,7 +476,7 @@
}
}
.el-input__inner {
.p-date {
height: 28px !important;
line-height: 28px !important;
}
......
......@@ -396,7 +396,7 @@
.home-index .inquiry .wrap .box2 .inp::-webkit-input-placeholder {
color: #a1acc1;
}
.home-index .el-input__inner {
.home-index .p-date {
height: 28px !important;
line-height: 28px !important;
}
......
......@@ -134,4 +134,23 @@
}
}
}
.p-copy {
position: relative;
.copy {
position: absolute;
right: 0;
top: 0;
color: #1969F9;
cursor: pointer;
display: none;
}
&:hover {
.copy {
display: block;
}
}
}
}
\ No newline at end of file
......@@ -111,4 +111,18 @@
.store-con .updatebox .selectdw .el-select .el-input__suffix {
display: none !important;
}
.store-con .p-copy {
position: relative;
}
.store-con .p-copy .copy {
position: absolute;
right: 0;
top: 0;
color: #1969F9;
cursor: pointer;
display: none;
}
.store-con .p-copy:hover .copy {
display: block;
}
/*# sourceMappingURL=inquire.min.css.map */
\ No newline at end of file
{"version":3,"sources":["inquire.less"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;;AAJF,UAME;EACE,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AAEA,UAXF,YAWG;EACC,mBAAA;;AAlBN,UAsBE;EACE,gBAAA;EACA,mBAAA;;AAxBJ,UAsBE,SAIE;EAEE,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,eAAA;EACA,WAAA;;AArCN,UAsBE,SAIE,QAaE;EACE,gBAAA;;AAGF,UArBJ,SAIE,QAiBG;EAEC,mBAAA;EACA,WAAA;;AA9CR,UAsBE,SA6BE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,UA1CJ,SA6BE,KAaG;EACC,mBAAA;EACA,eAAA;EACA,WAAA;;AAGF,UAhDJ,SA6BE,KAmBG;EACC,WAAA;EACA,gBAAA;;AAEA,UApDN,SA6BE,KAmBG,KAIE;EACC,mBAAA;EACA,cAAA;;AAIJ,UA1DJ,SA6BE,KA6BG;EACC,kBAAA;EACA,WAAA;EACA,8BAAA;;AAEA,UA/DN,SA6BE,KA6BG,IAKE;EACC,8BAAA;;AAIJ,UApEJ,SA6BE,KAuCG;EACC,yBAAA;EACA,mBAAA;EACA,cAAA;;AAEA,UAzEN,SA6BE,KAuCG,OAKE;EACC,mBAAA;EACA,WAAA;;AAjGV,UAuGE;EACE,kBAAA;;AAxGJ,UAuGE,WAGE;EACE,YAAA;EACA,WAAA;EAEA,kBAAA;EACA,QAAA;EACA,UAAA;;AAhHN,UAuGE,WAGE,UAQE;EACE,WAAA;EACA,8BAAA;;AApHR,UAuGE,WAGE,UAQE,WAIE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AA7HV,UAuGE,WAGE,UAQE,WAeE;AAjIR,UAuGE,WAGE,UAQE,WAeqB;EACjB,wBAAA","file":"inquire.min.css"}
\ No newline at end of file
{"version":3,"sources":["inquire.less"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;;AAJF,UAME;EACE,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AAEA,UAXF,YAWG;EACC,mBAAA;;AAlBN,UAsBE;EACE,gBAAA;EACA,mBAAA;;AAxBJ,UAsBE,SAIE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AGF,UAZF,QAYG,MACC;EACE,cAAA","file":"inquire.min.css"}
\ No newline at end of file
......@@ -134,4 +134,12 @@
}
}
}
.price-more {
.more-search-btn {
&:hover {
color: #1969f9;
}
}
}
}
......@@ -111,4 +111,7 @@
.store-con .updatebox .selectdw .el-select .el-input__suffix {
display: none !important;
}
.store-con .price-more .more-search-btn:hover {
color: #1969f9;
}
/*# sourceMappingURL=quote.min.css.map */
\ No newline at end of file
{"version":3,"sources":["quote.less"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;;AAJF,UAME;EACE,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AAEA,UAXF,YAWG;EACC,mBAAA;;AAlBN,UAsBE;EACE,gBAAA;EACA,mBAAA;;AAxBJ,UAsBE,SAIE;EAEE,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,eAAA;EACA,WAAA;;AArCN,UAsBE,SAIE,QAaE;EACE,gBAAA;;AAGF,UArBJ,SAIE,QAiBG;EAEC,mBAAA;EACA,WAAA;;AA9CR,UAsBE,SA6BE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,UA1CJ,SA6BE,KAaG;EACC,mBAAA;EACA,eAAA;EACA,WAAA;;AAGF,UAhDJ,SA6BE,KAmBG;EACC,WAAA;EACA,gBAAA;;AAEA,UApDN,SA6BE,KAmBG,KAIE;EACC,mBAAA;EACA,cAAA;;AAIJ,UA1DJ,SA6BE,KA6BG;EACC,kBAAA;EACA,WAAA;EACA,8BAAA;;AAEA,UA/DN,SA6BE,KA6BG,IAKE;EACC,8BAAA;;AAIJ,UApEJ,SA6BE,KAuCG;EACC,yBAAA;EACA,mBAAA;EACA,cAAA;;AAEA,UAzEN,SA6BE,KAuCG,OAKE;EACC,mBAAA;EACA,WAAA;;AAjGV,UAuGE;EACE,kBAAA;;AAxGJ,UAuGE,WAGE;EACE,YAAA;EACA,WAAA;EAEA,kBAAA;EACA,QAAA;EACA,UAAA;;AAhHN,UAuGE,WAGE,UAQE;EACE,WAAA;EACA,8BAAA;;AApHR,UAuGE,WAGE,UAQE,WAIE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AA7HV,UAuGE,WAGE,UAQE,WAeE;AAjIR,UAuGE,WAGE,UAQE,WAeqB;EACjB,wBAAA","file":"quote.min.css"}
\ No newline at end of file
{"version":3,"sources":["quote.less"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;;AAJF,UAME;EACE,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AAEA,UAXF,YAWG;EACC,mBAAA;;AAlBN,UAsBE;EACE,gBAAA;EACA,mBAAA;;AAxBJ,UAsBE,SAIE;EAEE,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,eAAA;EACA,WAAA;;AArCN,UAsBE,SAIE,QAaE;EACE,gBAAA;;AAGF,UArBJ,SAIE,QAiBG;EAEC,mBAAA;EACA,WAAA;;AA9CR,UAsBE,SA6BE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,iBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,UA1CJ,SA6BE,KAaG;EACC,mBAAA;EACA,eAAA;EACA,WAAA;;AAGF,UAhDJ,SA6BE,KAmBG;EACC,WAAA;EACA,gBAAA;;AAEA,UApDN,SA6BE,KAmBG,KAIE;EACC,mBAAA;EACA,cAAA;;AAIJ,UA1DJ,SA6BE,KA6BG;EACC,kBAAA;EACA,WAAA;EACA,8BAAA;;AAEA,UA/DN,SA6BE,KA6BG,IAKE;EACC,8BAAA;;AAIJ,UApEJ,SA6BE,KAuCG;EACC,yBAAA;EACA,mBAAA;EACA,cAAA;;AAEA,UAzEN,SA6BE,KAuCG,OAKE;EACC,mBAAA;EACA,WAAA;;AAjGV,UAuGE;EACE,kBAAA;;AAxGJ,UAuGE,WAGE;EACE,YAAA;EACA,WAAA;EAEA,kBAAA;EACA,QAAA;EACA,UAAA;;AAhHN,UAuGE,WAGE,UAQE;EACE,WAAA;EACA,8BAAA;;AApHR,UAuGE,WAGE,UAQE,WAIE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AA7HV,UAuGE,WAGE,UAQE,WAeE;AAjIR,UAuGE,WAGE,UAQE,WAeqB;EACjB,wBAAA;;AASJ,UAFJ,YACE,iBACG;EACC,cAAA","file":"quote.min.css"}
\ No newline at end of file
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust : 100%;
-ms-text-size-adjust: 100%;
}
html * {
outline : 0;
-webkit-text-size-adjust : none !important;
outline: 0;
-webkit-text-size-adjust: none !important;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
html,
body {
font-family : PingFangSC-Regular, PingFang SC, 'Microsoft Yahei', sans-serif;
font-style : normal;
-webkit-font-smoothing : antialiased;
font-family: PingFangSC-Regular, PingFang SC, 'Microsoft Yahei', sans-serif;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size : 14px;
color : #646B78;
font-size: 14px;
color: #646B78;
}
body,
......@@ -56,7 +56,7 @@ header,
menu,
nav,
section {
margin : 0;
margin: 0;
padding: 0;
}
......@@ -64,8 +64,8 @@ button,
input,
select,
textarea {
font-size : 100%;
border : none;
font-size: 100%;
border: none;
-webkit-appearance: none;
}
......@@ -77,7 +77,7 @@ input[type=submit] {
table {
border-collapse: collapse;
border-spacing : 0;
border-spacing: 0;
}
ol,
......@@ -92,7 +92,7 @@ h3,
h4,
h5,
h6 {
font-size : 100%;
font-size: 100%;
font-weight: 500;
}
......@@ -116,20 +116,20 @@ img {
}
.clr:after {
content : ".";
clear : both;
height : 0;
content: ".";
clear: both;
height: 0;
visibility: hidden;
display : block;
display: block;
}
.fl {
float : left;
float: left;
_display: inline;
}
.fr {
float : right;
float: right;
_display: inline;
}
......@@ -147,38 +147,38 @@ img {
.lineBlock {
display : inline-block;
*display : inline;
zoom : 1;
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing : normal;
word-spacing: normal;
}
.lbBox {
font-size : 0 !important;
font-size: 0 !important;
*word-spacing: -1px !important;
}
.emptys {
margin-left : -1px;
width : 1px;
height : 100%;
font-size : 0;
margin-left: -1px;
width: 1px;
height: 100%;
font-size: 0;
vertical-align: middle;
}
.boxsiz {
-webkit-box-sizing: border-box;
box-sizing : border-box;
box-sizing: border-box;
}
.column {
display : flex;
display: flex;
flex-direction: column;
}
.row {
display : flex;
display: flex;
flex-direction: row;
}
......@@ -204,16 +204,16 @@ img {
.boxFlex {
-webkit-box-flex: 1;
-moz-box-flex : 1;
-webkit-flex : 1;
-ms-flex : 1;
flex : 1;
-moz-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
html,
body {
width : 100%;
height : 100%;
width: 100%;
height: 100%;
-webkit-overflow-scrolling: touch;
}
......@@ -245,10 +245,10 @@ body {
}
.el-message--info {
min-width : auto !important;
border : 0px !important;
min-width: auto !important;
border: 0px !important;
background: rgba(0, 0, 0, 0.4) !important;
top : 100px !important;
top: 100px !important;
.el-icon-info {
display: none;
......@@ -264,10 +264,10 @@ body {
//表单样式重写
.el-input__inner {
height : 38px;
height: 38px;
border-radius: 2px;
border : 1px solid #BEC9DF;
font-size : 14px;
border: 1px solid #BEC9DF;
font-size: 14px;
&:focus {
border: 1px solid #387FFF;
......@@ -297,8 +297,8 @@ body {
}
.el-message--info {
min-width : auto !important;
border : 0px !important;
min-width: auto !important;
border: 0px !important;
background: rgba(0, 0, 0, 0.4) !important;
.el-icon-info {
......@@ -311,7 +311,6 @@ body {
}
//表格样式重写
.el-table {
color: #646B78;
......@@ -320,7 +319,7 @@ body {
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: #1969F9;
border-color : #1969F9;
border-color: #1969F9;
}
.el-table__header {
......@@ -328,7 +327,7 @@ body {
font-weight: normal;
}
.el-table__body tr.hover-row>td {
.el-table__body tr.hover-row > td {
background-color: #F1F8FF;
}
......@@ -374,38 +373,43 @@ body {
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
border-radius : 8px;
background : #fff;
width : 18px;
border-radius: 8px;
background: #fff;
width: 18px;
-webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}
.el-table__body-wrapper::-webkit-scrollbar-track {
border-radius: 0;
background : #D2D9E7;
background: #D2D9E7;
}
}
.el-cascader-panel{
.el-cascader-panel {
min-height: 150px;
max-height: 300px;
}
.placehoload .el-input__inner::-webkit-input-placeholder {
color: #333;
}
//js跟随提示框
.el-tooltip__popper {
//js跟随提示框
.el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
border: 1px solid #387FFF!important;
border-radius: 0px!important;
border: 1px solid #387FFF !important;
border-radius: 0px !important;
.boxxrth2021 {
width : 150px;
background : #fff;
font-size : 12px;
color : #333;
width: 150px;
background: #fff;
font-size: 12px;
color: #333;
p {
height : 28px;
height: 28px;
line-height: 28px;
span {
......@@ -414,11 +418,21 @@ border-radius: 0px!important;
}
}
}
.el-tooltip__popper[x-placement="top"] .popper__arrow{border-top-color:#387FFF!important;}
.el-tooltip__popper[x-placement="bottom"] .popper__arrow{border-bottom-color:#387FFF!important;}
}
.el-tooltip__popper[x-placement="top"] .popper__arrow {
border-top-color: #387FFF !important;
}
.el-tooltip__popper[x-placement="bottom"] .popper__arrow {
border-bottom-color: #387FFF !important;
}
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{
border-top-color: #387FFF !important;
}
.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{
border-bottom-color: #387FFF !important;
}
//弹窗公共样式
.el-dialog__body {
......@@ -426,19 +440,19 @@ border-radius: 0px!important;
}
.el-dialog__title {
font-size : 14px;
color : #333;
font-size: 14px;
color: #333;
font-weight: bold;
position : relative;
position: relative;
&::after {
content : "";
position : absolute;
width : 5px;
height : 22px;
content: "";
position: absolute;
width: 5px;
height: 22px;
background: #1969F9;
left : -20px;
top : 2px;
left: -20px;
top: 2px;
}
}
......@@ -455,7 +469,7 @@ border-radius: 0px!important;
.el-message-box__container {
text-align: center;
padding : 15px 0px;
padding: 15px 0px;
}
.el-message-box__message {
......@@ -463,12 +477,12 @@ border-radius: 0px!important;
}
.el-message-box__message p {
color : #333;
color: #333;
font-size: 16px;
}
.el-message-box__status.el-icon-error {
color : #FC1F00 !important;
color: #FC1F00 !important;
font-size: 25px !important;
}
......@@ -480,36 +494,62 @@ border-radius: 0px!important;
.dialog-footer {
.el-button {
width : 76px;
height : 34px;
text-align : center;
line-height : 34px;
background : #E8ECF4;
border : 1px solid #E8ECF4;
width: 76px;
height: 34px;
text-align: center;
line-height: 34px;
background: #E8ECF4;
border: 1px solid #E8ECF4;
border-radius: 2px;
color : #8391AD;
font-size : 14px;
padding : 0px;
color: #8391AD;
font-size: 14px;
padding: 0px;
&:hover,
&:focus {
color : #8391AD;
color: #8391AD;
background: #E8ECF4;
border : 1px solid #E8ECF4
border: 1px solid #E8ECF4
}
&.el-button--primary {
border : 1px solid #1969F9;
color : #fff;
border: 1px solid #1969F9;
color: #fff;
background: #1969F9;
&:hover,
&:focus {
color : #fff;
color: #fff;
background: #1969F9;
border : 1px solid #1969F9
border: 1px solid #1969F9
}
}
}
}
.p-text {
margin-bottom: 6px;
em {
width: 56px;
text-align: left;
}
span {
width: 214px;
height: 30px;
background: #F1F4FA;
border-radius: 2px;
font-size: 14px;
color: #333333;
padding-left: 7px;
margin-left: 8px;
text-align: left;
}
}
.popper-class-box{
.popper__arrow{
left: 20px !important;
}
}
\ No newline at end of file
......@@ -301,7 +301,7 @@ body {
.el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
border: 1px solid #387FFF !important;
border-radius: 0px!important;
border-radius: 0px !important;
}
.el-tooltip__popper .boxxrth2021 {
width: 150px;
......@@ -322,6 +322,12 @@ body {
.el-tooltip__popper[x-placement="bottom"] .popper__arrow {
border-bottom-color: #387FFF !important;
}
.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow {
border-top-color: #387FFF !important;
}
.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow {
border-bottom-color: #387FFF !important;
}
.el-dialog__body {
padding: 20px !important;
}
......@@ -400,4 +406,25 @@ body {
background: #1969F9;
border: 1px solid #1969F9;
}
.p-text {
margin-bottom: 6px;
}
.p-text em {
width: 56px;
text-align: left;
}
.p-text span {
width: 214px;
height: 30px;
background: #F1F4FA;
border-radius: 2px;
font-size: 14px;
color: #333333;
padding-left: 7px;
margin-left: 8px;
text-align: left;
}
.popper-class-box .popper__arrow {
left: 20px !important;
}
/*# sourceMappingURL=common.min.css.map */
\ No newline at end of file
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AACA;EACE,8CAA0D,6BAA1D;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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EAAe,4BAAA;;AAK3D;EACE,wBAAA;;AAGF;EACE,eAAA;EACA,WAAA;EACA,iBAAA;EACA,kBAAA;;AAEA,iBAAC;EACC,SAAY,EAAZ;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,WAAA;EACA,QAAA;;AAIJ;EACE,eAAA;;AAEA,cAAC;AACD,cAAC;EACC,cAAA;;AAMJ;EACE,kBAAA;EACA,iBAAA;;AAGF;EACE,qBAAA;;AAGF,wBAAyB;EACvB,WAAA;EACA,eAAA;;AAGF,uBAAuB;EACrB,cAAA;EACA,0BAAA;;AAGF,sBAAsB;EACpB,SAAS,OAAT;;AAGF,qBAGE;AAFF,cAEE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,YAAA;;AAEA,qBAZF,WAYG;AAAD,cAZF,WAYG;AACD,qBAbF,WAaG;AAAD,cAbF,WAaG;EACC,cAAA;EACA,mBAAA;EACA,yBAAA;;AAGF,qBAnBF,WAmBG;AAAD,cAnBF,WAmBG;EACC,yBAAA;EACA,WAAA;EACA,mBAAA;;AAEA,qBAxBJ,WAmBG,mBAKE;AAAD,cAxBJ,WAmBG,mBAKE;AACD,qBAzBJ,WAmBG,mBAME;AAAD,cAzBJ,WAmBG,mBAME;EACC,WAAA;EACA,mBAAA;EACA,yBAAA","file":"common.min.css"}
\ No newline at end of file
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AACA;EACE,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AmB,sBAAuB;EACxC,4BAAA;;AAEF,mBAAmB,SAAS,kBAAmB;EAC7C,yBAAA;;AAEF,mBAAmB,SAAS,qBAAsB;EAChD,4BAAA;;AAIF;EACE,wBAAA;;AAGF;EACE,eAAA;EACA,WAAA;EACA,iBAAA;EACA,kBAAA;;AAEA,iBAAC;EACC,SAAS,EAAT;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,WAAA;EACA,QAAA;;AAIJ;EACE,eAAA;;AAEA,cAAC;AACD,cAAC;EACC,cAAA;;AAMJ;EACE,kBAAA;EACA,iBAAA;;AAGF;EACE,qBAAA;;AAGF,wBAAyB;EACvB,WAAA;EACA,eAAA;;AAGF,uBAAuB;EACrB,cAAA;EACA,0BAAA;;AAGF,sBAAsB;EACpB,SAAS,OAAT;;AAGF,qBAGE;AAFF,cAEE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,YAAA;;AAEA,qBAZF,WAYG;AAAD,cAZF,WAYG;AACD,qBAbF,WAaG;AAAD,cAbF,WAaG;EACC,cAAA;EACA,mBAAA;EACA,yBAAA;;AAGF,qBAnBF,WAmBG;AAAD,cAnBF,WAmBG;EACC,yBAAA;EACA,WAAA;EACA,mBAAA;;AAEA,qBAxBJ,WAmBG,mBAKE;AAAD,cAxBJ,WAmBG,mBAKE;AACD,qBAzBJ,WAmBG,mBAME;AAAD,cAzBJ,WAmBG,mBAME;EACC,WAAA;EACA,mBAAA;EACA,yBAAA;;AAOR;EACE,kBAAA;;AADF,OAEE;EACE,WAAA;EACA,gBAAA;;AAJJ,OAOE;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;;AAIJ,iBACE;EACE,qBAAA","file":"common.min.css"}
\ No newline at end of file
......@@ -121,22 +121,23 @@
</div>
</div>
<!--修改库存弹窗-->
<el-dialog title="修改密码" :visible.sync="dialogVisible" width="500px">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="原始密码" prop="name">
<el-input v-model="ruleForm.name"></el-input>
<el-dialog title="修改密码" :visible.sync="dialogVisible" width="500px" class="demo-ruleForm">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
<el-form-item label="原始密码" prop="old_password">
<el-input v-model="ruleForm.old_password" type='password' placeholder='请输入原始密码'></el-input>
</el-form-item>
<el-form-item label="新密码" prop="name">
<el-input v-model="ruleForm.name"></el-input>
<el-form-item label="新密码" prop="password">
<el-input v-model="ruleForm.password" type='password' placeholder='请输入新密码'></el-input>
</el-form-item>
<el-form-item label="确认新密码" prop="name">
<el-input v-model="ruleForm.name"></el-input>
<el-form-item label="确认新密码" prop="repassword">
<el-input v-model="ruleForm.repassword" type='password' placeholder='请输入新密码'></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-form-item>
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</div>
<el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
......@@ -148,6 +149,7 @@
import {
Form,
FormItem,
Input,
Menu,
MenuItem,
Submenu,
......@@ -157,7 +159,8 @@
Button
} from 'element-ui'
Vue.use(Menu).use(MenuItem).use(MenuItemGroup).use(Submenu).use(Form).use(FormItem).use(Dialog).use(Button);
Vue.use(Menu).use(MenuItem).use(MenuItemGroup).use(Submenu).use(Form).use(FormItem).use(Dialog).use(Button).use(Input);
export default {
name: 'menus',
......@@ -166,6 +169,15 @@
this.getData();
},
data() {
var validatePass2 = (rule, value, callback) => {
if (value === '') {
callback(new Error('请再次输入密码'))
} else if (value !== this.ruleForm.password) {
callback(new Error('两次输入密码不一致!'))
} else {
callback()
}
}
return {
userinfo: {},
collapse: false,
......@@ -174,14 +186,20 @@
tabs: "",
dialogVisible: false,
ruleForm: {
name: ''
old_password: '',
password: '',
repassword: ''
},
rules: {
name: [{
required: true,
message: '请输入活动名称',
trigger: 'blur'
}]
old_password: [
{required: true, message: '请输入原始密码', trigger: 'blur'}
],
password: [
{required: true, message: '请输入新密码', trigger: 'blur'}
],
repassword: [
{required: true, trigger: 'blur', validator: validatePass2}
]
}
}
},
......@@ -298,6 +316,30 @@
handleSelect(key, keyPath) {
this.tabss(key)
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.$http('post', "/api/user/setpasswd", this.ruleForm).then(res => {
if (res.err_code === 0) {
Message('修改成功');
setTimeout(() => {
Util.delCookie('token');
window.location.href = '/#/login';
sessionStorage.removeItem('userInfox')
history.go(0);
}, 2000)
} else {
Message(res.err_msg);
}
}).catch(err => {
console.log(err.message);
})
} else {
console.log('error submit!!');
return false;
}
});
},
logout() {
this.$http('post', "/auth/logout").then(res => {
Util.delCookie('token');
......
......@@ -194,7 +194,7 @@
</ul>
<el-form>
<el-form-item label="">
<el-date-picker v-model="date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-date-picker class="p-date" v-model="date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
</el-form>
</div>
......@@ -305,22 +305,6 @@
},
computed: {},
methods: {
ceshi() {
/* Message('这是一条消息提示');
this.$http('get', "/getJoke1", {
page: 1, count: 2, type: 'video'
}).then(res => {
console.log(res)
})
.catch(err => {
console.log(err.message);
})
*/
}
},
components: {
Menu
}
......
......@@ -3,10 +3,10 @@
<div class="store-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName" ></el-autocomplete>
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
</el-form-item>
<el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName" ></el-autocomplete>
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName"></el-autocomplete>
</el-form-item>
<el-form-item label="询价日期">
<el-date-picker v-model="formInline.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
......@@ -20,11 +20,18 @@
<div class="fl dcg" @click="exportChange">导出</div>
<div class="fl dcg delbtn" @click="del">删除</div>
</div>
<div class="data-box">
<div class="data-box th-all">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" min-width="10%"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="10%"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="10%">
<template slot-scope="scope">
<div class="p-copy">
<p>{{scope.row.goods_name}}</p>
<a class="copy" v-clipboard:copy="scope.row.goods_name" v-clipboard:success="onCopy">复制</a>
</div>
</template>
</el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="10%"></el-table-column>
<el-table-column prop="inquiry_number" label="数量" min-width="10%"></el-table-column>
<el-table-column prop="batch" label="批次" min-width="10%"></el-table-column>
......@@ -50,6 +57,7 @@
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {dateTimeFormate} from "../../filters/formate.js";
import VueClipboard from 'vue-clipboard2'
import {
Form,
FormItem,
......@@ -64,7 +72,6 @@
Table,
TableColumn,
Message,
MessageBox,
Dialog,
Pagination,
Autocomplete
......@@ -72,13 +79,14 @@
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination);
Vue.use(VueClipboard);
export default {
name: "inquire",
data() {
return {
total: 0,
limit: 1,
limit: 10,
page: 1,
tableData: [],
multipleSelection: [],
......@@ -101,12 +109,12 @@
limit: this.limit,
goods_name: this.formInline.goods_name,
brand: this.formInline.brand,
start_time: this.formInline.date[0],
end_time: this.formInline.date[1]
start_time: this.formInline.date ? this.formInline.date[0] : '',
end_time: this.formInline.date ? this.formInline.date[1] : ''
}).then(res => {
if (res.err_code === 0) {
this.tableData = res.data.list || [];
this.total = res.data.count || 3;
this.total = res.data.total;
} else {
Message(res.err_msg);
}
......@@ -134,20 +142,25 @@
return;
}
if (this.multipleSelection.length > 1) {
Message("请选择一条询价信息");
return;
}
if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 2) {
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
}
this.$router.push({
path:'/inquire/detail?id='+arr.join(",")
path: '/inquire/detail?id=' + arr.join(",")
})
} else {
Message("该订单不可报价");
return;
}
},
exportChange() {
var arr = [];
......@@ -190,21 +203,21 @@
})
},
handleSelectGoodsName(item) {
this.formInline.goods_name=item.value
this.formInline.goods_name = item.value
},
handleSelectBrandName(item){
this.formInline.brand_name=item.value;
this.formInline.brand_id=item.brand_id;
handleSelectBrandName(item) {
this.formInline.brand_name = item.value;
this.formInline.brand_id = item.brand_id;
},
querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", {
spu_name: this.formInline.goods_name
}).then(res => {
if (res.err_code == 0) {
var arrlist_=res.data||[];
var arr_=[]
for(var i=0;i<arrlist_.length;i++){
arr_.push({value:arrlist_[i]['spu_name']})
var arrlist_ = res.data || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
arr_.push({value: arrlist_[i]['spu_name']})
}
cb(arr_);
}
......@@ -215,16 +228,19 @@
brand_name: this.formInline.brand_name
}).then(res => {
if (res.err_code == 0) {
var arrlist_=res.data||[];
this.brandList=[]
this.formInline.brand_id=""
for(var i=0;i<arrlist_.length;i++){
this.brandList.push({value:arrlist_[i]['brand_name'],brand_id:arrlist_[i]['brand_id']})
var arrlist_ = res.data || [];
this.brandList = []
this.formInline.brand_id = ""
for (var i = 0; i < arrlist_.length; i++) {
this.brandList.push({value: arrlist_[i]['brand_name'], brand_id: arrlist_[i]['brand_id']})
}
cb(this.brandList);
}
})
}
},
onCopy(e) {
Message('复制成功');
},
},
components: {
Menu
......
......@@ -25,7 +25,7 @@
</p>
</div>
<div class="quote boxsiz">
<p class="tit">价信息</p>
<p class="tit">价信息</p>
<div class="btn-nav clr">
<div class="fl dcg" @click="added" style="margin-left: 0px;">新增</div>
<div class="fl dcg updatex" @click="modify">修改</div>
......@@ -66,7 +66,7 @@
<el-table-column prop="price_other" label="其他费用" width="100"></el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column>
<el-table-column prop="create_time" label="最近报价时间" width="200"></el-table-column>
<el-table-column prop="create_time" label="最近报价时间" width="200" :formatter='dateFormat'></el-table-column>
</el-table>
</div>
</div>
......@@ -76,6 +76,7 @@
<li @click="tab(index)" class="boxsiz row rowCenter verCenter" :class="{'curr':active==index}" v-for="(item,index) in textArr" :key="index">{{item}}</li>
</ul>
<div class="data-box th-all">
<!--匹配库存-->
<template v-if="active==0">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed prop="goods_name" label="型号" width="180">
......@@ -139,8 +140,14 @@
</el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template>
<!--历史报价-->
<template v-else-if="active==1">
<el-table :data="historyList" border style="width: 100%">
<el-table-column fixed label="操作" width="100" align="center" v-if="'show'">
<template slot-scope="scope">
<el-button type="primary" plain size="mini" @click="handle(scope.$index, scope.row)">确认</el-button>
</template>
</el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column prop="brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status" label="状态" min-width="100">
......@@ -171,7 +178,7 @@
</template>
</div>
</div>
<!--新增弹窗-->
<!--弹窗-->
<el-dialog :title="title" :visible.sync="dialogVisible" width="656px" class="xx">
<div class="dialog-form">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
......@@ -248,6 +255,8 @@
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {dateTimeFormate} from "../../filters/formate.js";
import {
Form,
FormItem,
......@@ -279,9 +288,8 @@
return {
active: 0,
total: 0,
limit: 2,
limit: 10,
page: 1,
tableData: [],
multipleSelection: [],
quote_info: {},
inquiry_info: {},
......@@ -344,10 +352,8 @@
textArr: ['匹配库存', '历史报价']
};
},
watch: {},
created() {
this.getData();
},
methods: {
getData() {
......@@ -368,8 +374,8 @@
},
getSkulist() {
this.$http('get', "/api/sku/list", {
brand_id: this.inquiry_info.brand_id,
goods_name: this.inquiry_info.goods_name,
// brand_id: this.inquiry_info.brand_id,
goods_name: 'this.inquiry_info.goods_name',
goods_status: 1,
}).then(res => {
if (res.err_code === 0) {
......@@ -417,6 +423,10 @@
this.getSkulist();
}
},
dateFormat(row, column) {
let date = row.create_time;
return dateTimeFormate(date);
},
keyup(val) {
if (this.ruleForm.delivery_time_unit == '天') {
if (val >= 6) {
......@@ -450,10 +460,10 @@
});
this.$http('post', "/api/quote/save", this.ruleForm).then(res => {
if (res.err_code == 0) {
Message('保存成功');
Message('操作成功');
setTimeout(() => {
window.location.reload();
}, 3000)
}, 2000)
} else {
Message(res.err_msg);
}
......@@ -484,8 +494,8 @@
},
handleSelectBrandName(item) {
let brand_ss = [{brand_id: '', brand_name: ''}];
brand_ss[0].brand_id = item.value;
brand_ss[0].brand_name = item.brand_id;
brand_ss[0].brand_id = item.brand_id;
brand_ss[0].brand_name = item.value;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
},
added() {
......@@ -498,7 +508,12 @@
this.ruleForm.mpq = '';
this.ruleForm.price_other = '';
this.ruleForm.quote_id = '';
this.$nextTick(() => {
this.$refs['ruleForm'].resetFields();
})
},
modify() {
var arr = [];
......@@ -513,6 +528,8 @@
return;
}
if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3 || this.multipleSelection[0].status == 5) {
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
}
......@@ -541,20 +558,30 @@
this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;
this.ruleForm.delivery_time_unit = '天'
this.ruleForm.moq = res.data.quote_info.moq;
this.ruleForm.expire_time = res.data.quote_info.expire_time;
this.ruleForm.remark = res.data.quote_info.remark;
if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.ruleForm.expire_time = res.data.quote_info.expire_time;
}
let brand_ss = [{brand_id: '', brand_name: ''}];
brand_ss[0].brand_id = res.data.quote_info.brand_id;
brand_ss[0].brand_name = res.data.quote_info.brand_name;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
Message(res.err_msg);
}
})
} else {
Message("该订单不可修改");
return;
}
},
del() {
var arr = [];
......@@ -564,13 +591,13 @@
}
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id'])
arr.push(this.multipleSelection[i]['id'])
}
MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error'
}).then(() => {
this.$http('post', "/api/inquiry/delete", {
this.$http('post', "/api/quote/delete", {
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
......@@ -581,6 +608,52 @@
}
})
})
},
handle(index, row) {
this.title = '确认-匹配库存';
this.dialogVisible = true;
this.ruleForm.quote_id = '';
this.isModify = true;
this.$http('get', "/api/quote/getinfo", {
id: row.id
}).then(res => {
if (res.err_code === 0) {
this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString();
this.ruleForm.batch = res.data.quote_info.batch;
this.ruleForm.mpq = res.data.quote_info.mpq;
this.ruleForm.price_other = res.data.quote_info.price_other;
this.ruleForm.unit = res.data.quote_info.unit;
this.ruleForm.brand = res.data.quote_info.brand_name;
this.ruleForm.brand_s = res.data.quote_info.brand_name;
this.ruleForm.price_origin = res.data.quote_info.price_origin;
this.ruleForm.tax_rate = res.data.quote_info.tax_rate;
this.ruleForm.delivery_time = res.data.quote_info.delivery_time;
this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;
this.ruleForm.delivery_time_unit = '天';
this.ruleForm.moq = res.data.quote_info.moq;
this.ruleForm.remark = res.data.quote_info.remark;
if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.ruleForm.expire_time = res.data.quote_info.expire_time;
}
let brand_ss = [{brand_id: '', brand_name: ''}];
brand_ss[0].brand_id = res.data.quote_info.brand_id;
brand_ss[0].brand_name = res.data.quote_info.brand_name;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
Message(res.err_msg);
}
})
}
},
components: {
......
......@@ -29,10 +29,40 @@
<div class="fl dcg" @click="close">关闭</div>
<div class="fl dcg delbtn" @click="del">删除</div>
</div>
<div class="data-box">
<div class="data-box th-all">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="goods_name" label="型号" width="200"></el-table-column>
<el-table-column prop="goods_name" label="型号" width="200">
<template slot-scope="scope">
<div class="price-more">
<el-tooltip effect="light" placement="bottom-start" popper-class="popper-class-box">
<div slot="content">
<p class="p-text row verCenter">
<em class="row">型号</em>
<span class="row verCenter boxsiz">{{scope.row.goods_name}}</span>
</p>
<p class="p-text row verCenter">
<em class="row">品牌</em>
<span class="row verCenter boxsiz">{{scope.row.brand_name}}</span>
</p>
<p class="p-text row verCenter">
<em class="row">数量</em>
<span class="row verCenter boxsiz">{{scope.row.quote_number}}</span>
</p>
<p class="p-text row verCenter">
<em class="row">批次</em>
<span class="row verCenter boxsiz">{{scope.row.batch}}</span>
</p>
<p class="p-text row verCenter">
<em class="row">交货日期</em>
<span class="row verCenter boxsiz">{{scope.row.delivery_time}}</span>
</p>
</div>
<div class="more-search-btn">{{scope.row.goods_name}}</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="brand_name" label="品牌" width="200"></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" width="200"></el-table-column>
<el-table-column prop="quote_goods_name" label="报价型号" width="200"></el-table-column>
......@@ -85,13 +115,13 @@
Table,
TableColumn,
Message,
MessageBox,
Dialog,
Pagination,
Autocomplete
Autocomplete,
Tooltip
} from 'element-ui'
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete);
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete).use(Tooltip);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination);
export default {
......@@ -107,7 +137,7 @@
goods_name: '',
brand: '',
date: '',
status:''
status: ''
}
};
},
......@@ -118,14 +148,15 @@
computed: {},
methods: {
getData() {
console.log(this.formInline)
this.$http('get', "/api/quote/getlist", {
page: this.page,
limit: this.limit,
goods_name: this.formInline.goods_name,
brand: this.formInline.brand,
start_time: this.formInline.date[0],
end_time: this.formInline.date[1],
status:this.formInline.status
start_time: this.formInline.date ? this.formInline.date[0] : '',
end_time: this.formInline.date ? this.formInline.date[1] : '',
status: this.formInline.status
}).then(res => {
if (res.err_code === 0) {
this.tableData = res.data.list || [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment