Commit 0bdf731e by 肖康

x

parent 6ffe61e9
.goods{ .goods {
.goods-con{ .pdf {
background: #FFFFFF; span {
border-radius: 4px; font-size: 20px;
border: 1px solid #E5EBF6;
padding:20px;
} }
.search-btn{
color:#666;
&:hover {
color : #1969F9;
cursor: pointer; cursor: pointer;
width: 76px; }
height: 37px; }
line-height: 37px;
background: #1969F9; .goods-con {
background : #FFFFFF;
border-radius: 4px;
border : 1px solid #E5EBF6;
padding : 20px;
}
.search-btn {
cursor : pointer;
width : 76px;
height : 37px;
line-height : 37px;
background : #1969F9;
border-radius: 2px; border-radius: 2px;
font-size: 14px; font-size : 14px;
color:#fff; color : #fff;
text-align: center; text-align : center;
&:hover{
&:hover {
background: #0050E0; background: #0050E0;
} }
} }
.btn-nav{
margin-top: 11px; .btn-nav {
margin-top : 11px;
margin-bottom: 22px; margin-bottom: 22px;
.dcg{ .dcg {
width: 66px; width : 66px;
height: 26px; height : 26px;
border-radius: 2px; border-radius: 2px;
text-align: center; text-align : center;
line-height: 26px; line-height : 26px;
border: 1px solid #1969F9; border : 1px solid #1969F9;
background: #E5EEFF;; background : #E5EEFF;
color:#1969F9; ;
color : #1969F9;
margin-right: 10px; margin-right: 10px;
font-size: 14px; font-size : 14px;
transition: all 0.5s; transition : all 0.5s;
&:hover{
&:hover {
background: #1969F9; background: #1969F9;
cursor: pointer; cursor : pointer;
color:#fff; color : #fff;
} }
&.delbtn{
border:1px solid #FC1F00; &.delbtn {
border : 1px solid #FC1F00;
background: #FFE7E3; background: #FFE7E3;
color:#FC1F00; color : #FC1F00;
&:hover{
&:hover {
background: #FF715D; background: #FF715D;
color:#fff; color : #fff;
} }
} }
&.updatex{
&.updatex {}
} }
}
.updatex{ .updatex {
width: 66px; width : 66px;
height: 26px; height : 26px;
line-height: 26px; line-height : 26px;
text-align: center; text-align : center;
background: #FFEEDD; background : #FFEEDD;
border: 1px solid #FF870D; border : 1px solid #FF870D;
border-radius: 2px; border-radius: 2px;
color:#FF870D; color : #FF870D;
font-size: 14px; font-size : 14px;
cursor: pointer; cursor : pointer;
width: 66px; width : 66px;
&:hover{
&:hover {
background: #FCA955; background: #FCA955;
color:#fff; color : #fff;
} }
} }
} }
.brand-img{
width: 80%; .brand-img {
width : 80%;
height: 80; height: 80;
} }
......
.goods .goods-con{background:#FFFFFF;border-radius:4px;border:1px solid #E5EBF6;padding:20px}.goods .search-btn{cursor:pointer;width:76px;height:37px;line-height:37px;background:#1969F9;border-radius:2px;font-size:14px;color:#fff;text-align:center}.goods .search-btn:hover{background:#0050E0}.goods .btn-nav{margin-top:11px;margin-bottom:22px}.goods .btn-nav .dcg{width:66px;height:26px;border-radius:2px;text-align:center;line-height:26px;border:1px solid #1969F9;background:#E5EEFF;color:#1969F9;margin-right:10px;font-size:14px;transition:all .5s}.goods .btn-nav .dcg:hover{background:#1969F9;cursor:pointer;color:#fff}.goods .btn-nav .dcg.delbtn{border:1px solid #FC1F00;background:#FFE7E3;color:#FC1F00}.goods .btn-nav .dcg.delbtn:hover{background:#FF715D;color:#fff}.goods .btn-nav .updatex{height:26px;line-height:26px;text-align:center;background:#FFEEDD;border:1px solid #FF870D;border-radius:2px;color:#FF870D;font-size:14px;cursor:pointer;width:66px}.goods .btn-nav .updatex:hover{background:#FCA955;color:#fff}.goods .brand-img{width:80%;height:80} .goods .pdf{color:#666}.goods .pdf span{font-size:20px}.goods .pdf:hover{color:#1969F9;cursor:pointer}.goods .goods-con{background:#FFFFFF;border-radius:4px;border:1px solid #E5EBF6;padding:20px}.goods .search-btn{cursor:pointer;width:76px;height:37px;line-height:37px;background:#1969F9;border-radius:2px;font-size:14px;color:#fff;text-align:center}.goods .search-btn:hover{background:#0050E0}.goods .btn-nav{margin-top:11px;margin-bottom:22px}.goods .btn-nav .dcg{width:66px;height:26px;border-radius:2px;text-align:center;line-height:26px;border:1px solid #1969F9;background:#E5EEFF;color:#1969F9;margin-right:10px;font-size:14px;transition:all .5s}.goods .btn-nav .dcg:hover{background:#1969F9;cursor:pointer;color:#fff}.goods .btn-nav .dcg.delbtn{border:1px solid #FC1F00;background:#FFE7E3;color:#FC1F00}.goods .btn-nav .dcg.delbtn:hover{background:#FF715D;color:#fff}.goods .btn-nav .updatex{height:26px;line-height:26px;text-align:center;background:#FFEEDD;border:1px solid #FF870D;border-radius:2px;color:#FF870D;font-size:14px;cursor:pointer;width:66px}.goods .btn-nav .updatex:hover{background:#FCA955;color:#fff}.goods .brand-img{width:80%;height:80}
\ No newline at end of file \ No newline at end of file
...@@ -387,6 +387,13 @@ body { ...@@ -387,6 +387,13 @@ body {
} }
.el-cascader-panel{
min-height: 150px;
max-height: 300px;
}
.placehoload .el-input__inner::-webkit-input-placeholder {
color: #333;
}
//js跟随提示框 //js跟随提示框
.el-tooltip__popper { .el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5); box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
......
html { html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html *{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;-moz-osx-font-smoothing:grayscale;font-size:14px;color:#646B78}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,menu,nav,section{margin:0;padding:0}button,input,select,textarea{font-size:100%;border:none;-webkit-appearance:none}input[type=button],input[type=file],input[type=submit]{cursor:pointer}table{border-collapse:collapse;border-spacing:0}ol,ul,dl{list-style:none}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:500}em,b,i{font-style:normal}a{text-decoration:none}img{border:none}.clr{*zoom:1;clear:both}.clr:after{content:".";clear:both;height:0;visibility:hidden;display:block}.fl{float:left;_display:inline}.fr{float:right;_display:inline}.va-t{vertical-align:top}.va-m{vertical-align:middle}.va-b{vertical-align:bottom}.lineBlock{display:inline-block;*display:inline;zoom:1;letter-spacing:normal;word-spacing:normal}.lbBox{font-size:0 !important;*word-spacing:-1px !important}.emptys{margin-left:-1px;width:1px;height:100%;font-size:0;vertical-align:middle}.boxsiz{-webkit-box-sizing:border-box;box-sizing:border-box}.column{display:flex;flex-direction:column}.row{display:flex;flex-direction:row}.bothSide{justify-content:space-between}.avarage{justify-content:space-around}.rowCenter{justify-content:center}.verCenter{align-items:center}.boxFlex{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}html,body{width:100%;height:100%;-webkit-overflow-scrolling:touch}body{overflow-x:hidden;background:#F1F4FA}.f-blue{color:#1969F9}.f-green{color:#3FBE1B}.f-yellow1{color:#CC8200}.f-red1{color:#FC1F00}.el-pagination{text-align:right;margin-top:20px}.el-message--info{min-width:auto !important;border:0px !important;background:rgba(0,0,0,0.4) !important;top:100px !important}.el-message--info .el-icon-info{display:none}.el-message--info .el-message__content{color:#fff !important}.pagex{padding:20px}.pagex .el-input__inner{height:38px;border-radius:2px;border:1px solid #BEC9DF;font-size:14px}.pagex .el-input__inner:focus{border:1px solid #387FFF}.pagex .el-form-item__label{color:#666}.pagex .el-range-editor.el-input__inner{width:257px}.pagex .el-select .el-input.is-focus .el-input__inner,.pagex .el-range-editor.is-active,.pagex .el-range-editor.is-active:hover{border-color:#387FFF}.pagex .el-select{width:100px}.pagex .el-form--inline .el-form-item{margin-right:30px}.pagex .el-message--info{min-width:auto !important;border:0px !important;background:rgba(0,0,0,0.4) !important}.pagex .el-message--info .el-icon-info{display:none}.pagex .el-message--info .el-message__content{color:#fff !important}.pagex .el-table{color:#646B78}.pagex .el-checkbox__input.is-checked .el-checkbox__inner,.pagex .el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#1969F9;border-color:#1969F9}.pagex .el-table__header th{font-weight:normal}.pagex .el-table__header .el-table__body tr.hover-row>td{background-color:#F1F8FF}.pagex .th-all .el-table__header th{background-color:#F1F4FA}.pagex .el-table__fixed .el-table__header th{background-color:#F1F4FA}.pagex .el-table__body-wrapper::-webkit-scrollbar{width:18px}.pagex .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:8px;background:#fff;width:18px;-webkit-box-shadow:inset 0 0 8px rgba(0,0,0,0.2)}.pagex .el-table__body-wrapper::-webkit-scrollbar-track{border-radius:0;background:#D2D9E7}.el-cascader-panel{min-height:150px;max-height:300px}.placehoload .el-input__inner::-webkit-input-placeholder{color:#333}.el-tooltip__popper{box-shadow:1px 2px 10px 0 rgba(119,135,145,0.5);border:1px solid #387FFF !important;border-radius:0px!important}.el-tooltip__popper .boxxrth2021{width:150px;background:#fff;font-size:12px;color:#333}.el-tooltip__popper .boxxrth2021 p{height:28px;line-height:28px}.el-tooltip__popper .boxxrth2021 p span{width:50%}.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-dialog__body{padding:20px !important}.el-dialog__title{font-size:14px;color:#333;font-weight:bold;position:relative}.el-dialog__title::after{content:"";position:absolute;width:5px;height:22px;background:#1969F9;left:-20px;top:2px}.el-icon-close{font-size:24px}.el-icon-close:hover,.el-icon-close:focus{color:#1969F9 !important}.el-message-box__container{text-align:center;padding:15px 0px}.el-message-box__message{display:inline-block}.el-message-box__message p{color:#333;font-size:16px}.el-message-box__status.el-icon-error{color:#FC1F00 !important;font-size:25px !important}.el-message-box__close:before{content:"\E609"}.el-message-box__btns .el-button,.dialog-footer .el-button{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}.el-message-box__btns .el-button:hover,.dialog-footer .el-button:hover,.el-message-box__btns .el-button:focus,.dialog-footer .el-button:focus{color:#8391AD;background:#E8ECF4;border:1px solid #E8ECF4}.el-message-box__btns .el-button.el-button--primary,.dialog-footer .el-button.el-button--primary{border:1px solid #1969F9;color:#fff;background:#1969F9}.el-message-box__btns .el-button.el-button--primary:hover,.dialog-footer .el-button.el-button--primary:hover,.el-message-box__btns .el-button.el-button--primary:focus,.dialog-footer .el-button.el-button--primary:focus{color:#fff;background:#1969F9;border:1px solid #1969F9}
-webkit-text-size-adjust: 100%; \ No newline at end of file
-ms-text-size-adjust: 100%;
}
html * {
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;
-moz-osx-font-smoothing: grayscale;
font-size: 14px;
color: #646B78;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
margin: 0;
padding: 0;
}
button,
input,
select,
textarea {
font-size: 100%;
border: none;
-webkit-appearance: none;
}
input[type=button],
input[type=file],
input[type=submit] {
cursor: pointer;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
ol,
ul,
dl {
list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: 500;
}
em,
b,
i {
font-style: normal;
}
a {
text-decoration: none;
}
img {
border: none;
}
.clr {
*zoom: 1;
clear: both;
}
.clr:after {
content: ".";
clear: both;
height: 0;
visibility: hidden;
display: block;
}
.fl {
float: left;
_display: inline;
}
.fr {
float: right;
_display: inline;
}
.va-t {
vertical-align: top;
}
.va-m {
vertical-align: middle;
}
.va-b {
vertical-align: bottom;
}
.lineBlock {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
}
.lbBox {
font-size: 0 !important;
*word-spacing: -1px !important;
}
.emptys {
margin-left: -1px;
width: 1px;
height: 100%;
font-size: 0;
vertical-align: middle;
}
.boxsiz {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.column {
display: flex;
flex-direction: column;
}
.row {
display: flex;
flex-direction: row;
}
/* 两侧对齐 */
.bothSide {
justify-content: space-between;
}
/* 平均分布 */
.avarage {
justify-content: space-around;
}
/* 水平居中 */
.rowCenter {
justify-content: center;
}
/* 垂直居中 */
.verCenter {
align-items: center;
}
.boxFlex {
-webkit-box-flex: 1;
-moz-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
html,
body {
width: 100%;
height: 100%;
-webkit-overflow-scrolling: touch;
}
body {
overflow-x: hidden;
background: #F1F4FA;
}
.f-blue {
color: #1969F9;
}
.f-green {
color: #3FBE1B;
}
.f-yellow1 {
color: #CC8200;
}
.f-red1 {
color: #FC1F00;
}
/**element-ui 样式重写**/
.el-pagination {
text-align: right;
margin-top: 20px;
}
.el-message--info {
min-width: auto !important;
border: 0px !important;
background: rgba(0, 0, 0, 0.4) !important;
top: 100px !important;
}
.el-message--info .el-icon-info {
display: none;
}
.el-message--info .el-message__content {
color: #fff !important;
}
.pagex {
padding: 20px;
}
.pagex .el-input__inner {
height: 38px;
border-radius: 2px;
border: 1px solid #BEC9DF;
font-size: 14px;
}
.pagex .el-input__inner:focus {
border: 1px solid #387FFF;
}
.pagex .el-form-item__label {
color: #666;
}
.pagex .el-range-editor.el-input__inner {
width: 257px;
}
.pagex .el-select .el-input.is-focus .el-input__inner,
.pagex .el-range-editor.is-active,
.pagex .el-range-editor.is-active:hover {
border-color: #387FFF;
}
.pagex .el-select {
width: 100px;
}
.pagex .el-form--inline .el-form-item {
margin-right: 30px;
}
.pagex .el-message--info {
min-width: auto !important;
border: 0px !important;
background: rgba(0, 0, 0, 0.4) !important;
}
.pagex .el-message--info .el-icon-info {
display: none;
}
.pagex .el-message--info .el-message__content {
color: #fff !important;
}
.pagex .el-table {
color: #646B78;
}
.pagex .el-checkbox__input.is-checked .el-checkbox__inner,
.pagex .el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: #1969F9;
border-color: #1969F9;
}
.pagex .el-table__header th {
font-weight: normal;
}
.pagex .el-table__header .el-table__body tr.hover-row > td {
background-color: #F1F8FF;
}
.pagex .th-all .el-table__header th {
background-color: #F1F4FA;
}
.pagex .el-table__fixed .el-table__header th {
background-color: #F1F4FA;
}
.pagex .el-table__body-wrapper::-webkit-scrollbar {
width: 18px;
}
.pagex .el-table__body-wrapper::-webkit-scrollbar-thumb {
border-radius: 8px;
background: #fff;
width: 18px;
-webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}
.pagex .el-table__body-wrapper::-webkit-scrollbar-track {
border-radius: 0;
background: #D2D9E7;
}
.el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
border: 1px solid #387FFF !important;
border-radius: 0px!important;
}
.el-tooltip__popper .boxxrth2021 {
width: 150px;
background: #fff;
font-size: 12px;
color: #333;
}
.el-tooltip__popper .boxxrth2021 p {
height: 28px;
line-height: 28px;
}
.el-tooltip__popper .boxxrth2021 p span {
width: 50%;
}
.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-dialog__body {
padding: 20px !important;
}
.el-dialog__title {
font-size: 14px;
color: #333;
font-weight: bold;
position: relative;
}
.el-dialog__title::after {
content: "";
position: absolute;
width: 5px;
height: 22px;
background: #1969F9;
left: -20px;
top: 2px;
}
.el-icon-close {
font-size: 24px;
}
.el-icon-close:hover,
.el-icon-close:focus {
color: #1969F9 !important;
}
.el-message-box__container {
text-align: center;
padding: 15px 0px;
}
.el-message-box__message {
display: inline-block;
}
.el-message-box__message p {
color: #333;
font-size: 16px;
}
.el-message-box__status.el-icon-error {
color: #FC1F00 !important;
font-size: 25px !important;
}
.el-message-box__close:before {
content: "\E609";
}
.el-message-box__btns .el-button,
.dialog-footer .el-button {
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;
}
.el-message-box__btns .el-button:hover,
.dialog-footer .el-button:hover,
.el-message-box__btns .el-button:focus,
.dialog-footer .el-button:focus {
color: #8391AD;
background: #E8ECF4;
border: 1px solid #E8ECF4;
}
.el-message-box__btns .el-button.el-button--primary,
.dialog-footer .el-button.el-button--primary {
border: 1px solid #1969F9;
color: #fff;
background: #1969F9;
}
.el-message-box__btns .el-button.el-button--primary:hover,
.dialog-footer .el-button.el-button--primary:hover,
.el-message-box__btns .el-button.el-button--primary:focus,
.dialog-footer .el-button.el-button--primary:focus {
color: #fff;
background: #1969F9;
border: 1px solid #1969F9;
}
/*# sourceMappingURL=common.min.css.map */
\ No newline at end of file
.enter{ .enter{
.el-upload-list--text{
display: none;
}
.enter-con{ .enter-con{
background: #FFFFFF; background: #FFFFFF;
border-radius: 4px; border-radius: 4px;
......
.enter .enter-con { .enter .el-upload-list--text{display:none}.enter .enter-con{background:#FFFFFF;border-radius:4px;border:1px solid #E5EBF6;padding:20px}.enter .search-btn{cursor:pointer;width:76px;height:37px;line-height:37px;background:#1969F9;border-radius:2px;font-size:14px;color:#fff;text-align:center}.enter .search-btn:hover{background:#0050E0}.enter .btn-nav{margin-top:11px;margin-bottom:22px}.enter .btn-nav .dcg{width:66px;height:26px;border-radius:2px;text-align:center;line-height:26px;border:1px solid #1969F9;background:#fff;color:#1969F9;margin-right:10px;font-size:14px;transition:all .5s}.enter .btn-nav .dcg.long{width:95px}.enter .btn-nav .dcg:hover{background:#1969F9;cursor:pointer;color:#fff}.enter .btn-nav .dcg.delbtn{border:1px solid #FC1F00;background:#FFE7E3;color:#FC1F00}.enter .btn-nav .dcg.delbtn:hover{background:#FF715D;color:#fff}
background: #FFFFFF; \ No newline at end of file
border-radius: 4px;
border: 1px solid #E5EBF6;
padding: 20px;
}
.enter .search-btn {
cursor: pointer;
width: 76px;
height: 37px;
line-height: 37px;
background: #1969F9;
border-radius: 2px;
font-size: 14px;
color: #fff;
text-align: center;
}
.enter .search-btn:hover {
background: #0050E0;
}
.enter .btn-nav {
margin-top: 11px;
margin-bottom: 22px;
}
.enter .btn-nav .dcg {
width: 66px;
height: 26px;
border-radius: 2px;
text-align: center;
line-height: 26px;
border: 1px solid #1969F9;
background: #fff;
color: #1969F9;
margin-right: 10px;
font-size: 14px;
transition: all 0.5s;
}
.enter .btn-nav .dcg.long {
width: 95px;
}
.enter .btn-nav .dcg:hover {
background: #1969F9;
cursor: pointer;
color: #fff;
}
.enter .btn-nav .dcg.delbtn {
border: 1px solid #FC1F00;
background: #FFE7E3;
color: #FC1F00;
}
.enter .btn-nav .dcg.delbtn:hover {
background: #FF715D;
color: #fff;
}
/*# sourceMappingURL=enter.min.css.map */
\ No newline at end of file
...@@ -3,12 +3,19 @@ ...@@ -3,12 +3,19 @@
<div class="goods-con"> <div class="goods-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline"> <el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="型号"> <el-form-item label="型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" <el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false"
placeholder="请输入型号" @select="handleSelectGoodsName" ></el-autocomplete> :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="品牌"> <el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" <el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false"
placeholder="请输入品牌" @select="handleSelectBrandName" ></el-autocomplete> :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName">
</el-autocomplete>
</el-form-item>
<el-form-item label="分类">
<el-cascader expand-trigger="hover" placeholder="试试搜索:分类" :options="options" filterable
@change="handleChange"></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="关键词"> <el-form-item label="关键词">
<el-input v-model="formInline.keyword" placeholder="请输入关键词"></el-input> <el-input v-model="formInline.keyword" placeholder="请输入关键词"></el-input>
...@@ -36,8 +43,11 @@ ...@@ -36,8 +43,11 @@
<el-table-column prop="encap" label="封装" min-width="15%"> <el-table-column prop="encap" label="封装" min-width="15%">
</el-table-column> </el-table-column>
<el-table-column prop="pdf" label="规格书" min-width="15%"> <el-table-column prop="pdf" label="规格书" min-width="15%">
<template slot-scope="scope" v-if="scope.row.pdf">
<a :href="scope.row.pdf" target="_blank" class="pdf"><span class="icon iconfont"></span></a>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="images_l" label="图片" min-width="10%"> <el-table-column prop="images_l" label="图片" min-width="15%">
<template slot-scope="scope" v-if="scope.row.images_l"> <template slot-scope="scope" v-if="scope.row.images_l">
<img :src="scope.row.images_l" class="brand-img" alt=""> <img :src="scope.row.images_l" class="brand-img" alt="">
</template> </template>
...@@ -58,25 +68,27 @@ ...@@ -58,25 +68,27 @@
</el-pagination> </el-pagination>
</div> </div>
<!--修改品牌弹窗--> <!--修改商品弹窗-->
<el-dialog title="修改品牌" :visible.sync="dialogVisible" width="1000px"> <el-dialog title="修改商品" :visible.sync="dialogVisible" width="1000px">
<div class="kc-mask"> <div class="kc-mask">
<el-table :data="updateBranddata" border style="width: 100%"> <el-table :data="updateGoodsdata" border style="width: 100%">
<el-table-column prop="brand_name" label="品牌" width="180"> <el-table-column prop="spu_name" label="型号" min-width="15%">
</el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="15%">
</el-table-column> </el-table-column>
<el-table-column prop="region" label="地区" width="100"> <el-table-column prop="encap" label="封装" min-width="15%">
</el-table-column> </el-table-column>
<el-table-column prop="brand_logo" label="LOGO" min-width="120"> <el-table-column prop="pdf" label="规格书" min-width="15%">
<template slot-scope="scope" v-if="scope.row.brand_logo"> <template slot-scope="scope" v-if="scope.row.pdf">
<img :src="scope.row.brand_logo" class="brand-img" alt=""> <a :href="scope.row.pdf" target="_blank" class="pdf"><span class="icon iconfont"></span></a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="internal_standard_name" label="内部标准名称" min-width="170"> <el-table-column prop="images_l" label="图片" min-width="15%">
<template slot-scope="scope"> <template slot-scope="scope" v-if="scope.row.images_l">
<el-input v-model="scope.row.internal_standard_name" placeholder="点击修改"></el-input> <img :src="scope.row.images_l" class="brand-img" alt="">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="remark" label="品牌备注" width="320"> <el-table-column prop="remark" label="商品备注" width="320">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.remark" placeholder="点击修改"></el-input> <el-input v-model="scope.row.remark" placeholder="点击修改"></el-input>
</template> </template>
...@@ -112,46 +124,78 @@ ...@@ -112,46 +124,78 @@
MessageBox, MessageBox,
Dialog, Dialog,
Pagination, Pagination,
Autocomplete Autocomplete,
Cascader
} from 'element-ui' } from 'element-ui'
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination).use( Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination)
Autocomplete) Vue.use(TableColumn).use(Table).use(Cascader).use(Autocomplete)
Vue.use(TableColumn).use(Table)
export default { export default {
name: "brand", name: "brand",
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
updateBranddata: [], updateGoodsdata: [],
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
formInline: { formInline: {
goods_name:'', goods_name: '',
brand_name: '', brand_name: '',
brand_id: '', brand_id: '',
keyword: '' keyword: '',
class_id2: '',
class_id1: ''
}, },
tableData: "", tableData: "",
multipleSelection: [] multipleSelection: [],
options: [],
selectedOptions: []
}; };
}, },
watch: {}, watch: {},
created() { created() {
this.getData(); this.getData();
this.getClass();
}, },
computed: {}, computed: {},
methods: { methods: {
getClass(){
this.$http('get', "/api/class/get_class_list", {}).then(res => {
if (res.err_code === 0) {
var arr_=res.data||[]
for(var i=0;i<arr_.length;i++){
var children_arr=[]
var arr_2= arr_[i].sub_class||[]
for(var o=0;o<arr_2.length;o++){
children_arr.push({
value:arr_[i].class_id,
label:arr_[i].class_name
})
}
this.options.push({
value:arr_[i].class_id,
label:arr_[i].class_name,
children:children_arr
})
}
} else {
Message(res.err_msg);
}
})
},
getData() { getData() {
this.$http('get', "/api/spu/get_spu_list", { this.$http('get', "/api/spu/get_spu_list", {
page: this.page, page: this.page,
limit: this.limit, limit: this.limit,
brand_id: this.formInline.brand_id, brand_id: this.formInline.brand_id,
brand_name: this.formInline.brand_name, brand_name: this.formInline.brand_name,
spu_name:this.formInline.goods_name, spu_name: this.formInline.goods_name,
keyword: this.formInline.keyword, keyword: this.formInline.keyword,
class_id2: this.formInline.class_id2,
class_id1: this.formInline.class_id1
}).then(res => { }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
...@@ -172,16 +216,15 @@ ...@@ -172,16 +216,15 @@
Message("请至少选择一条数据") Message("请至少选择一条数据")
return return
} }
this.updateBranddata = JSON.parse(JSON.stringify(this.multipleSelection)); this.updateGoodsdata = JSON.parse(JSON.stringify(this.multipleSelection));
this.dialogVisible = true this.dialogVisible = true
}, },
submitUpdate() { submitUpdate() {
var arr_ = { var arr_ = {
id:this.updateBranddata[0].id, id: this.updateGoodsdata[0].spu_id,
remark:this.updateBranddata[0].remark, remark: this.updateGoodsdata[0].remark
internal_standard_name:this.updateBranddata[0].internal_standard_name
} }
this.$http('post', "/api/brand/update_brand", arr_).then(res => { this.$http('post', "/api/spu/update_spu", arr_).then(res => {
if (res.err_code == 0) { if (res.err_code == 0) {
Message("修改成功"); Message("修改成功");
this.getData() this.getData()
...@@ -192,21 +235,23 @@ ...@@ -192,21 +235,23 @@
}) })
}, },
handleSelectGoodsName(item) { handleSelectGoodsName(item) {
this.formInline.goods_name=item.value this.formInline.goods_name = item.value
}, },
handleSelectBrandName(item){ handleSelectBrandName(item) {
this.formInline.brand_name=item.value; this.formInline.brand_name = item.value;
this.formInline.brand_id=item.brand_id; this.formInline.brand_id = item.brand_id;
}, },
querySearchAsync(queryString, cb) { querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", { this.$http('get', "/api/search/getspu", {
spu_name: this.formInline.goods_name spu_name: this.formInline.goods_name
}).then(res => { }).then(res => {
if (res.err_code == 0) { if (res.err_code == 0) {
var arrlist_=res.data||[]; var arrlist_ = res.data || [];
var arr_=[] var arr_ = []
for(var i=0;i<arrlist_.length;i++){ for (var i = 0; i < arrlist_.length; i++) {
arr_.push({value:arrlist_[i]['spu_name']}) arr_.push({
value: arrlist_[i]['spu_name']
})
} }
cb(arr_); cb(arr_);
} }
...@@ -217,11 +262,14 @@ ...@@ -217,11 +262,14 @@
brand_name: this.formInline.brand_name brand_name: this.formInline.brand_name
}).then(res => { }).then(res => {
if (res.err_code == 0) { if (res.err_code == 0) {
var arrlist_=res.data||[]; var arrlist_ = res.data || [];
this.brandList=[] this.brandList = []
this.formInline.brand_id="" this.formInline.brand_id = ""
for(var i=0;i<arrlist_.length;i++){ for (var i = 0; i < arrlist_.length; i++) {
this.brandList.push({value:arrlist_[i]['brand_name'],brand_id:arrlist_[i]['brand_id']}) this.brandList.push({
value: arrlist_[i]['brand_name'],
brand_id: arrlist_[i]['brand_id']
})
} }
cb(this.brandList); cb(this.brandList);
} }
...@@ -233,10 +281,14 @@ ...@@ -233,10 +281,14 @@
}, },
downOut() { downOut() {
this.$http('post', "/api/brand/export_brand", { this.$http('post', "/api/brand/export_spu", {
spu_name: this.formInline.goods_name,
brand_id: this.formInline.brand_id, brand_id: this.formInline.brand_id,
class_id2: this.formInline.class_id2,
class_id1: this.formInline.class_id1,
keyword: this.formInline.keyword, keyword: this.formInline.keyword,
}).then(res => {}) }).then(res => {})
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
...@@ -245,6 +297,11 @@ ...@@ -245,6 +297,11 @@
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val || []; this.multipleSelection = val || [];
console.log(this.multipleSelection) console.log(this.multipleSelection)
},
handleChange(value) {
console.log(value);
this.formInline.class_id1=value[0]
this.formInline.class_id2=value[1]
} }
}, },
......
...@@ -24,8 +24,11 @@ ...@@ -24,8 +24,11 @@
</el-form> </el-form>
<div class="btn-nav clr"> <div class="btn-nav clr">
<el-upload class="upload-demo fl" :action="uploadUrl" :on-change="handleChange" multiple>
<div class="fl dcg">导入</div> <div class="fl dcg">导入</div>
<div class="fl dcg long" @click="checkdr" >查看导入结果</div> </el-upload>
<div class="fl dcg long" @click="checkdr">查看导入结果</div>
<div class="fl dcg" @click="downwj">下载模版</div> <div class="fl dcg" @click="downwj">下载模版</div>
<div class="fl dcg delbtn" @click="del">删除</div> <div class="fl dcg delbtn" @click="del">删除</div>
</div> </div>
...@@ -53,7 +56,8 @@ ...@@ -53,7 +56,8 @@
<el-table-column prop="create_time" label="上传时间" min-width="20%"> <el-table-column prop="create_time" label="上传时间" min-width="20%">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"> <el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total"
@current-change="handleCurrentChange" :current-page="page">
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
...@@ -66,7 +70,9 @@ ...@@ -66,7 +70,9 @@
import Vue from 'vue'; import Vue from 'vue';
import Menu from "@/components/menu.vue"; import Menu from "@/components/menu.vue";
import Tool from '../../tool' import Tool from '../../tool'
import {NODE_ENVS} from "../../ajax"; import {
NODE_ENVS
} from "../../ajax";
import { import {
Form, Form,
FormItem, FormItem,
...@@ -83,10 +89,11 @@ ...@@ -83,10 +89,11 @@
Message, Message,
MessageBox, MessageBox,
Dialog, Dialog,
Upload,
Pagination Pagination
} from 'element-ui' } from 'element-ui'
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination) Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination)
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table) Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Upload)
export default { export default {
name: "enter", name: "enter",
...@@ -95,7 +102,7 @@ ...@@ -95,7 +102,7 @@
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
uploadUrl: NODE_ENVS + '/api/uploadSku/import',
formInline: { formInline: {
status: '', status: '',
date: '' date: ''
...@@ -121,7 +128,7 @@ ...@@ -121,7 +128,7 @@
if (res.err_code === 0) { if (res.err_code === 0) {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
this.total =Number(res.data.total)||0; this.total = Number(res.data.total) || 0;
} else { } else {
Message(res.err_msg); Message(res.err_msg);
} }
...@@ -131,6 +138,20 @@ ...@@ -131,6 +138,20 @@
this.page = 1; this.page = 1;
this.getData(); this.getData();
}, },
handleChange(file, fileList) {
console.log(file.response);
if (!file.response) {
return
}
if (file.response.err_code === 0) {
Message("导入成功")
this.page = 1;
this.getData();
} else {
Message(res.err_msg);
}
},
checkdr() { checkdr() {
if (this.multipleSelection.length > 1) { if (this.multipleSelection.length > 1) {
Message("只能选择一条数据导入") Message("只能选择一条数据导入")
...@@ -140,7 +161,7 @@ ...@@ -140,7 +161,7 @@
Message("请至少选择一条数据导入") Message("请至少选择一条数据导入")
return return
} }
window.location.href=NODE_ENVS+'/api/uploadSku/downResult?id='+this.multipleSelection[0]['id'] window.location.href = NODE_ENVS + '/api/uploadSku/downResult?id=' + this.multipleSelection[0]['id']
}, },
downwj() { downwj() {
...@@ -176,7 +197,7 @@ ...@@ -176,7 +197,7 @@
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.page=val; this.page = val;
this.getData(); this.getData();
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<el-input v-model="scope.row.dlhq" placeholder="如:2-5"> <el-input v-model="scope.row.dlhq" placeholder="如:2-5">
</el-input> </el-input>
<div class="selectdw"> <div class="selectdw">
<el-select v-model="scope.row.dlhqdw"> <el-select v-model="scope.row.dlhqdw" placeholder="天" class="placehoload">
<el-option label="天" value="天"></el-option> <el-option label="天" value="天"></el-option>
<el-option label="周" value="周"></el-option> <el-option label="周" value="周"></el-option>
</el-select> </el-select>
...@@ -178,10 +178,10 @@ ...@@ -178,10 +178,10 @@
<el-table-column label="修改香港交期" min-width="20%"> <el-table-column label="修改香港交期" min-width="20%">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="updatebox"> <div class="updatebox">
<el-input v-model="scope.row.hkhq" placeholder="如:2-5"> <el-input v-model="scope.row.hkhq" placeholder="如:2-5" >
</el-input> </el-input>
<div class="selectdw"> <div class="selectdw">
<el-select v-model="scope.row.hkhqdw"> <el-select v-model="scope.row.hkhqdw" placeholder="天" class="placehoload">
<el-option label="天" value="天"></el-option> <el-option label="天" value="天"></el-option>
<el-option label="周" value="周"></el-option> <el-option label="周" value="周"></el-option>
</el-select> </el-select>
...@@ -356,6 +356,7 @@ ...@@ -356,6 +356,7 @@
//修改货期弹窗 //修改货期弹窗
this.dialogVisible2 = true this.dialogVisible2 = true
this.huoqidata = this.selectData this.huoqidata = this.selectData
} }
}, },
submitHq() { submitHq() {
......
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