Commit ad603c9d by 肖康

x

parent b73453ee
......@@ -316,6 +316,9 @@ body {
input::-webkit-input-placeholder {
color: #A1ACC1!important;
}
.placehoload input::-webkit-input-placeholder {
color: #333!important;
}
.el-table,.el-table thead {
color: #333;
}
......
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;
}
/**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-input__inner {
color: #333 !important;
}
.pagex input::-webkit-input-placeholder {
color: #A1ACC1 !important;
}
.pagex .el-table,
.pagex .el-table thead {
color: #333;
}
.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-select .el-input__inner:focus {
border-color: #C0C4CC;
}
.pagex .el-table__header th {
font-weight: normal;
}
.pagex .el-table__header th {
background-color: #F1F4FA;
}
.pagex .el-table--enable-row-hover .el-table__body tr:hover > td,
.pagex .el-table__body tr.hover-row.current-row > td,
.pagex .el-table__body tr.hover-row.el-table__row--striped.current-row > td,
.pagex .el-table__body tr.hover-row.el-table__row--striped > td,
.pagex .el-table__body tr.hover-row > td {
background: #F1F8FF !important;
}
.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;
}
.pagex .el-table td,
.pagex .el-table th.is-leaf,
.pagex .el-table--border,
.pagex .el-table--group {
border-color: #D2D9E7;
}
.pagex .el-table--border::after,
.pagex .el-table--group::after,
.pagex .el-table::before {
background-color: #D2D9E7;
}
.pagex .el-table__fixed-body-wrapper {
z-index: 4;
}
.zdypop .el-form-item__label {
color: #333;
}
.zdypop .el-input.is-disabled {
background-color: #F1F4FA;
border-color: #F1F4FA;
}
.zdypop .el-input.is-disabled .el-input__inner {
background-color: #F1F4FA;
border-color: #F1F4FA;
}
.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 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-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-tooltip__popper.is-light[x-placement^=left] .popper__arrow {
border-left-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;
}
.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
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-input__inner{color:#333 !important}.pagex input::-webkit-input-placeholder{color:#A1ACC1 !important}.pagex .placehoload input::-webkit-input-placeholder{color:#333 !important}.pagex .el-table,.pagex .el-table thead{color:#333}.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-select .el-input__inner:focus{border-color:#C0C4CC}.pagex .el-table__header th{font-weight:normal}.pagex .el-table__header th{background-color:#F1F4FA}.pagex .el-table--enable-row-hover .el-table__body tr:hover>td,.pagex .el-table__body tr.hover-row.current-row>td,.pagex .el-table__body tr.hover-row.el-table__row--striped.current-row>td,.pagex .el-table__body tr.hover-row.el-table__row--striped>td,.pagex .el-table__body tr.hover-row>td{background:#F1F8FF !important}.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}.pagex .el-table td,.pagex .el-table th.is-leaf,.pagex .el-table--border,.pagex .el-table--group{border-color:#D2D9E7}.pagex .el-table--border::after,.pagex .el-table--group::after,.pagex .el-table::before{background-color:#D2D9E7}.pagex .el-table__fixed-body-wrapper{z-index:4}.zdypop .el-form-item__label{color:#333}.zdypop .el-input.is-disabled{background-color:#F1F4FA;border-color:#F1F4FA}.zdypop .el-input.is-disabled .el-input__inner{background-color:#F1F4FA;border-color:#F1F4FA}.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-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-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-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}.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}
\ No newline at end of file
......@@ -606,9 +606,10 @@
// this.$message(res.err_msg);
}
this.$message('操作成功');
this.getData()
if (this.active == 1) {
//历史报价
this.getHistory()
//this.getHistory()
} else {
//库存匹配
this.getSkulist()
......
......@@ -11,6 +11,7 @@
<el-form-item label="状态">
<el-select v-model="formInline.status" placeholder="请选择">
<el-option label="比价中" value="1"></el-option>
<el-option label="已选中" value="2"></el-option>
<el-option label="已确认" value="3"></el-option>
<el-option label="已成单" value="4"></el-option>
<el-option label="已关闭" value="5"></el-option>
......
......@@ -188,7 +188,7 @@
<el-input v-model="scope.row.hkhq" placeholder="如:2-5">
</el-input>
<div class="selectdw">
<el-select v-model="scope.row.hkhqdw" placeholder="天" class="placehoload">
<el-select v-model="scope.row.hkhqdw" placeholder="天" class="placehoload">
<el-option label="天" value="天"></el-option>
<el-option label="周" value="周"></el-option>
</el-select>
......@@ -439,11 +439,13 @@
var arr_ = {}
var self = this;
for (var i = 0; i < self.huoqidata.length; i++) {
arr_[self.huoqidata[i]['goods_id']] = {
cn_delivery_time: self.huoqidata[i]['dlhq'] + (self.huoqidata[i]['dlhqdw'] || '天'),
hk_delivery_time: self.huoqidata[i]['hkhq'] + (self.huoqidata[i]['hkhqdw'] || '天')
arr_[self.huoqidata[i]['goods_id']]={}
if(self.huoqidata[i]['dlhq']&&self.huoqidata[i]['dlhq']!='undefined'){
arr_[self.huoqidata[i]['goods_id']].cn_delivery_time=self.huoqidata[i]['dlhq'] + ((self.huoqidata[i]['dlhqdw']&&self.huoqidata[i]['dlhqdw']!='天' )?'周':'工作日')
}
if(self.huoqidata[i]['hkhq']&&self.huoqidata[i]['hkhq'] !='undefined'){
arr_[self.huoqidata[i]['goods_id']].hk_delivery_time=self.huoqidata[i]['hkhq'] + ((self.huoqidata[i]['hkhqdw'] &&self.huoqidata[i]['hkhqdw']!='天')?'周':'工作日')
}
}
console.log(arr_)
this.$http('post', "/api/sku/updateSku", arr_).then(res => {
......
......@@ -623,7 +623,7 @@ eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../.
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"html {\\r\\n -webkit-text-size-adjust: 100%;\\r\\n -ms-text-size-adjust: 100%;\\r\\n}\\r\\nhtml * {\\r\\n outline: 0;\\r\\n -webkit-text-size-adjust: none !important;\\r\\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;\\r\\n}\\r\\nhtml,\\r\\nbody {\\r\\n font-family: PingFangSC-Regular, PingFang SC, 'Microsoft Yahei', sans-serif;\\r\\n font-style: normal;\\r\\n -webkit-font-smoothing: antialiased;\\r\\n -moz-osx-font-smoothing: grayscale;\\r\\n font-size: 14px;\\r\\n color: #646B78;\\r\\n}\\r\\nbody,\\r\\ndiv,\\r\\ndl,\\r\\ndt,\\r\\ndd,\\r\\nul,\\r\\nol,\\r\\nli,\\r\\nh1,\\r\\nh2,\\r\\nh3,\\r\\nh4,\\r\\nh5,\\r\\nh6,\\r\\npre,\\r\\ncode,\\r\\nform,\\r\\nfieldset,\\r\\nlegend,\\r\\ninput,\\r\\ntextarea,\\r\\np,\\r\\nblockquote,\\r\\nth,\\r\\ntd,\\r\\nhr,\\r\\nbutton,\\r\\narticle,\\r\\naside,\\r\\ndetails,\\r\\nfigcaption,\\r\\nfigure,\\r\\nfooter,\\r\\nheader,\\r\\nmenu,\\r\\nnav,\\r\\nsection {\\r\\n margin: 0;\\r\\n padding: 0;\\r\\n}\\r\\nbutton,\\r\\ninput,\\r\\nselect,\\r\\ntextarea {\\r\\n font-size: 100%;\\r\\n border: none;\\r\\n -webkit-appearance: none;\\r\\n}\\r\\ninput[type=button],\\r\\ninput[type=file],\\r\\ninput[type=submit] {\\r\\n cursor: pointer;\\r\\n}\\r\\ntable {\\r\\n border-collapse: collapse;\\r\\n border-spacing: 0;\\r\\n}\\r\\nol,\\r\\nul,\\r\\ndl {\\r\\n list-style: none;\\r\\n}\\r\\nh1,\\r\\nh2,\\r\\nh3,\\r\\nh4,\\r\\nh5,\\r\\nh6 {\\r\\n font-size: 100%;\\r\\n font-weight: 500;\\r\\n}\\r\\nem,\\r\\nb,\\r\\ni {\\r\\n font-style: normal;\\r\\n}\\r\\na {\\r\\n text-decoration: none;\\r\\n}\\r\\nimg {\\r\\n border: none;\\r\\n}\\r\\n.clr {\\r\\n *zoom: 1;\\r\\n clear: both;\\r\\n}\\r\\n.clr:after {\\r\\n content: \\\".\\\";\\r\\n clear: both;\\r\\n height: 0;\\r\\n visibility: hidden;\\r\\n display: block;\\r\\n}\\r\\n.fl {\\r\\n float: left;\\r\\n _display: inline;\\r\\n}\\r\\n.fr {\\r\\n float: right;\\r\\n _display: inline;\\r\\n}\\r\\n.va-t {\\r\\n vertical-align: top;\\r\\n}\\r\\n.va-m {\\r\\n vertical-align: middle;\\r\\n}\\r\\n.va-b {\\r\\n vertical-align: bottom;\\r\\n}\\r\\n.lineBlock {\\r\\n display: inline-block;\\r\\n *display: inline;\\r\\n zoom: 1;\\r\\n letter-spacing: normal;\\r\\n word-spacing: normal;\\r\\n}\\r\\n.lbBox {\\r\\n font-size: 0 !important;\\r\\n *word-spacing: -1px !important;\\r\\n}\\r\\n.emptys {\\r\\n margin-left: -1px;\\r\\n width: 1px;\\r\\n height: 100%;\\r\\n font-size: 0;\\r\\n vertical-align: middle;\\r\\n}\\r\\n.boxsiz {\\r\\n box-sizing: border-box;\\r\\n}\\r\\n.column {\\r\\n display: flex;\\r\\n flex-direction: column;\\r\\n}\\r\\n.row {\\r\\n display: flex;\\r\\n flex-direction: row;\\r\\n}\\r\\n/* 两侧对齐 */\\r\\n.bothSide {\\r\\n justify-content: space-between;\\r\\n}\\r\\n/* 平均分布 */\\r\\n.avarage {\\r\\n justify-content: space-around;\\r\\n}\\r\\n/* 水平居中 */\\r\\n.rowCenter {\\r\\n justify-content: center;\\r\\n}\\r\\n/* 垂直居中 */\\r\\n.verCenter {\\r\\n align-items: center;\\r\\n}\\r\\n.boxFlex {\\r\\n flex: 1;\\r\\n}\\r\\nhtml,\\r\\nbody {\\r\\n width: 100%;\\r\\n height: 100%;\\r\\n -webkit-overflow-scrolling: touch;\\r\\n}\\r\\nbody {\\r\\n overflow-x: hidden;\\r\\n background: #F1F4FA;\\r\\n}\\r\\n.f-blue {\\r\\n color: #1969F9;\\r\\n}\\r\\n.f-green {\\r\\n color: #3FBE1B;\\r\\n}\\r\\n.f-yellow1 {\\r\\n color: #CC8200;\\r\\n}\\r\\n.f-red1 {\\r\\n color: #FC1F00;\\r\\n}\\r\\n/**element-ui 样式重写**/\\r\\n.el-pagination {\\r\\n text-align: right;\\r\\n margin-top: 20px;\\r\\n}\\r\\n.el-message--info {\\r\\n min-width: auto !important;\\r\\n border: 0px !important;\\r\\n background: rgba(0, 0, 0, 0.4) !important;\\r\\n top: 100px !important;\\r\\n}\\r\\n.el-message--info .el-icon-info {\\r\\n display: none;\\r\\n}\\r\\n.el-message--info .el-message__content {\\r\\n color: #fff !important;\\r\\n}\\r\\n.pagex {\\r\\n padding: 20px;\\r\\n}\\r\\n.pagex .el-input__inner {\\r\\n height: 38px;\\r\\n border-radius: 2px;\\r\\n border: 1px solid #BEC9DF;\\r\\n font-size: 14px;\\r\\n}\\r\\n.pagex .el-input__inner:focus {\\r\\n border: 1px solid #387FFF;\\r\\n}\\r\\n.pagex .el-form-item__label {\\r\\n color: #666;\\r\\n}\\r\\n.pagex .el-range-editor.el-input__inner {\\r\\n width: 257px;\\r\\n}\\r\\n.pagex .el-select .el-input.is-focus .el-input__inner,\\r\\n.pagex .el-range-editor.is-active,\\r\\n.pagex .el-range-editor.is-active:hover {\\r\\n border-color: #387FFF;\\r\\n}\\r\\n.pagex .el-select {\\r\\n width: 100px;\\r\\n}\\r\\n.pagex .el-form--inline .el-form-item {\\r\\n margin-right: 30px;\\r\\n}\\r\\n.pagex .el-message--info {\\r\\n min-width: auto !important;\\r\\n border: 0px !important;\\r\\n background: rgba(0, 0, 0, 0.4) !important;\\r\\n}\\r\\n.pagex .el-message--info .el-icon-info {\\r\\n display: none;\\r\\n}\\r\\n.pagex .el-message--info .el-message__content {\\r\\n color: #fff !important;\\r\\n}\\r\\n.pagex .el-input__inner {\\r\\n color: #333 !important;\\r\\n}\\r\\n.pagex input::-webkit-input-placeholder {\\r\\n color: #A1ACC1 !important;\\r\\n}\\r\\n.pagex .el-table,\\r\\n.pagex .el-table thead {\\r\\n color: #333;\\r\\n}\\r\\n.pagex .el-checkbox__input.is-checked .el-checkbox__inner,\\r\\n.pagex .el-checkbox__input.is-indeterminate .el-checkbox__inner {\\r\\n background-color: #1969F9;\\r\\n border-color: #1969F9;\\r\\n}\\r\\n.pagex .el-select .el-input__inner:focus {\\r\\n border-color: #C0C4CC;\\r\\n}\\r\\n.pagex .el-table__header th {\\r\\n font-weight: normal;\\r\\n}\\r\\n.pagex .el-table__header th {\\r\\n background-color: #F1F4FA;\\r\\n}\\r\\n.pagex .el-table--enable-row-hover .el-table__body tr:hover > td,\\r\\n.pagex .el-table__body tr.hover-row.current-row > td,\\r\\n.pagex .el-table__body tr.hover-row.el-table__row--striped.current-row > td,\\r\\n.pagex .el-table__body tr.hover-row.el-table__row--striped > td,\\r\\n.pagex .el-table__body tr.hover-row > td {\\r\\n background: #F1F8FF !important;\\r\\n}\\r\\n.pagex .el-table__body-wrapper::-webkit-scrollbar {\\r\\n width: 18px;\\r\\n}\\r\\n.pagex .el-table__body-wrapper::-webkit-scrollbar-thumb {\\r\\n border-radius: 8px;\\r\\n background: #fff;\\r\\n width: 18px;\\r\\n -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);\\r\\n}\\r\\n.pagex .el-table__body-wrapper::-webkit-scrollbar-track {\\r\\n border-radius: 0;\\r\\n background: #D2D9E7;\\r\\n}\\r\\n.pagex .el-table td,\\r\\n.pagex .el-table th.is-leaf,\\r\\n.pagex .el-table--border,\\r\\n.pagex .el-table--group {\\r\\n border-color: #D2D9E7;\\r\\n}\\r\\n.pagex .el-table--border::after,\\r\\n.pagex .el-table--group::after,\\r\\n.pagex .el-table::before {\\r\\n background-color: #D2D9E7;\\r\\n}\\r\\n.pagex .el-table__fixed-body-wrapper {\\r\\n z-index: 4;\\r\\n}\\r\\n.zdypop .el-form-item__label {\\r\\n color: #333;\\r\\n}\\r\\n.zdypop .el-input.is-disabled {\\r\\n background-color: #F1F4FA;\\r\\n border-color: #F1F4FA;\\r\\n}\\r\\n.zdypop .el-input.is-disabled .el-input__inner {\\r\\n background-color: #F1F4FA;\\r\\n border-color: #F1F4FA;\\r\\n}\\r\\n.el-cascader-panel {\\r\\n min-height: 150px;\\r\\n max-height: 300px;\\r\\n}\\r\\n.placehoload .el-input__inner::-webkit-input-placeholder {\\r\\n color: #333;\\r\\n}\\r\\n.el-tooltip__popper {\\r\\n box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);\\r\\n border: 1px solid #387FFF !important;\\r\\n border-radius: 0px !important;\\r\\n}\\r\\n.el-tooltip__popper .boxxrth2021 {\\r\\n width: 150px;\\r\\n background: #fff;\\r\\n font-size: 12px;\\r\\n color: #333;\\r\\n}\\r\\n.el-tooltip__popper .boxxrth2021 p {\\r\\n height: 28px;\\r\\n line-height: 28px;\\r\\n}\\r\\n.el-tooltip__popper .boxxrth2021 p span {\\r\\n width: 50%;\\r\\n}\\r\\n.el-tooltip__popper[x-placement=\\\"top\\\"] .popper__arrow {\\r\\n border-top-color: #387FFF !important;\\r\\n}\\r\\n.el-tooltip__popper[x-placement=\\\"bottom\\\"] .popper__arrow {\\r\\n border-bottom-color: #387FFF !important;\\r\\n}\\r\\n.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow {\\r\\n border-top-color: #387FFF !important;\\r\\n}\\r\\n.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow {\\r\\n border-bottom-color: #387FFF !important;\\r\\n}\\r\\n.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow {\\r\\n border-left-color: #387FFF !important;\\r\\n}\\r\\n.el-dialog__body {\\r\\n padding: 20px !important;\\r\\n}\\r\\n.el-dialog__title {\\r\\n font-size: 14px;\\r\\n color: #333;\\r\\n font-weight: bold;\\r\\n position: relative;\\r\\n}\\r\\n.el-dialog__title::after {\\r\\n content: \\\"\\\";\\r\\n position: absolute;\\r\\n width: 5px;\\r\\n height: 22px;\\r\\n background: #1969F9;\\r\\n left: -20px;\\r\\n top: 2px;\\r\\n}\\r\\n.el-icon-close {\\r\\n font-size: 24px;\\r\\n}\\r\\n.el-icon-close:hover,\\r\\n.el-icon-close:focus {\\r\\n color: #1969F9 !important;\\r\\n}\\r\\n.el-message-box__container {\\r\\n text-align: center;\\r\\n padding: 15px 0px;\\r\\n}\\r\\n.el-message-box__message {\\r\\n display: inline-block;\\r\\n}\\r\\n.el-message-box__message p {\\r\\n color: #333;\\r\\n font-size: 16px;\\r\\n}\\r\\n.el-message-box__status.el-icon-error {\\r\\n color: #FC1F00 !important;\\r\\n font-size: 25px !important;\\r\\n}\\r\\n.el-message-box__close:before {\\r\\n content: \\\"\\\\E609\\\";\\r\\n}\\r\\n.el-message-box__btns .el-button,\\r\\n.dialog-footer .el-button {\\r\\n width: 76px;\\r\\n height: 34px;\\r\\n text-align: center;\\r\\n line-height: 34px;\\r\\n background: #E8ECF4;\\r\\n border: 1px solid #E8ECF4;\\r\\n border-radius: 2px;\\r\\n color: #8391AD;\\r\\n font-size: 14px;\\r\\n padding: 0px;\\r\\n}\\r\\n.el-message-box__btns .el-button:hover,\\r\\n.dialog-footer .el-button:hover,\\r\\n.el-message-box__btns .el-button:focus,\\r\\n.dialog-footer .el-button:focus {\\r\\n color: #8391AD;\\r\\n background: #E8ECF4;\\r\\n border: 1px solid #E8ECF4;\\r\\n}\\r\\n.el-message-box__btns .el-button.el-button--primary,\\r\\n.dialog-footer .el-button.el-button--primary {\\r\\n border: 1px solid #1969F9;\\r\\n color: #fff;\\r\\n background: #1969F9;\\r\\n}\\r\\n.el-message-box__btns .el-button.el-button--primary:hover,\\r\\n.dialog-footer .el-button.el-button--primary:hover,\\r\\n.el-message-box__btns .el-button.el-button--primary:focus,\\r\\n.dialog-footer .el-button.el-button--primary:focus {\\r\\n color: #fff;\\r\\n background: #1969F9;\\r\\n border: 1px solid #1969F9;\\r\\n}\\r\\n.p-text {\\r\\n margin-bottom: 6px;\\r\\n}\\r\\n.p-text em {\\r\\n width: 56px;\\r\\n text-align: left;\\r\\n}\\r\\n.p-text span {\\r\\n width: 214px;\\r\\n height: 30px;\\r\\n background: #F1F4FA;\\r\\n border-radius: 2px;\\r\\n font-size: 14px;\\r\\n color: #333333;\\r\\n padding-left: 7px;\\r\\n margin-left: 8px;\\r\\n text-align: left;\\r\\n}\\r\\n.popper-class-box .popper__arrow {\\r\\n left: 20px !important;\\r\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/assets/css/public/common.min.css?./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2");
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"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{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{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-input__inner{color:#333 !important}.pagex input::-webkit-input-placeholder{color:#A1ACC1 !important}.pagex .placehoload input::-webkit-input-placeholder{color:#333 !important}.pagex .el-table,.pagex .el-table thead{color:#333}.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-select .el-input__inner:focus{border-color:#C0C4CC}.pagex .el-table__header th{font-weight:normal}.pagex .el-table__header th{background-color:#F1F4FA}.pagex .el-table--enable-row-hover .el-table__body tr:hover>td,.pagex .el-table__body tr.hover-row.current-row>td,.pagex .el-table__body tr.hover-row.el-table__row--striped.current-row>td,.pagex .el-table__body tr.hover-row.el-table__row--striped>td,.pagex .el-table__body tr.hover-row>td{background:#F1F8FF !important}.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}.pagex .el-table td,.pagex .el-table th.is-leaf,.pagex .el-table--border,.pagex .el-table--group{border-color:#D2D9E7}.pagex .el-table--border::after,.pagex .el-table--group::after,.pagex .el-table::before{background-color:#D2D9E7}.pagex .el-table__fixed-body-wrapper{z-index:4}.zdypop .el-form-item__label{color:#333}.zdypop .el-input.is-disabled{background-color:#F1F4FA;border-color:#F1F4FA}.zdypop .el-input.is-disabled .el-input__inner{background-color:#F1F4FA;border-color:#F1F4FA}.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-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-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-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}.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}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/assets/css/public/common.min.css?./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2");
/***/ }),
......
......@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>cloudsystem</title>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.df8ae05cf22eff5bbd0b.js" rel="preload" as="script"></head>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.bb808fb84e71c01f8d5f.js" rel="preload" as="script"></head>
<body>
<noscript>
<strong>网络异常,请稍后加载</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="http://yunxin.liexindev.net/app.df8ae05cf22eff5bbd0b.js"></script></body>
<script type="text/javascript" src="http://yunxin.liexindev.net/app.bb808fb84e71c01f8d5f.js"></script></body>
</html>
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default).use(_tooltip2.default); // .use(Loading);\n\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"InquireDetail\",\n\n data() {\n return {\n currentDataId: 0,\n active: 0,\n total: 0,\n limit: 10,\n page: 1,\n multipleSelection: [],\n quote_info: {},\n inquiry_info: {},\n quote_list: [],\n title: '新增',\n isModify: false,\n tableData: [],\n historyList: [],\n submitState: 0,\n ruleForm: {\n inquiry_id: '',\n inquiry_sn: '',\n inquiry_items_id: '',\n quote_id: '',\n goods_name: '',\n quote_number: '',\n currency: '1',\n batch: '',\n mpq: '',\n price_other: '',\n unit: '',\n brand: '',\n brand_s: '',\n price_origin: '',\n tax_rate: '13%',\n delivery_time: '',\n delivery_time_val: '',\n delivery_time_unit: '天',\n moq: '',\n expire_time: '',\n remark: ''\n },\n rules: {\n goods_name: [{\n required: true,\n message: '请输入报价型号',\n trigger: 'blur'\n }],\n brand_s: [{\n required: true,\n message: '请选择品牌',\n trigger: 'blur'\n }],\n quote_number: [{\n required: true,\n message: '请输入报价数量',\n trigger: 'blur'\n }],\n currency: [{\n required: true,\n message: '请选择币种',\n trigger: 'blur'\n }],\n batch: [{\n required: true,\n message: '请输入批次',\n trigger: 'blur'\n }],\n brand: [{\n required: true,\n message: '请选择报价品牌'\n }],\n price_origin: [{\n required: true,\n message: '请输入价格',\n trigger: 'blur'\n }],\n delivery_time_val: [{\n required: true,\n message: '请输入货期',\n trigger: 'blur'\n }],\n expire_time: [{\n required: true,\n message: '请输入报价有效期',\n trigger: 'blur'\n }]\n },\n dialogVisible: false,\n brandList: [],\n textArr: ['匹配库存', '历史报价']\n };\n },\n\n created() {\n this.getData();\n },\n\n watch: {\n $route(to, from) {\n if (to.path == from.path) {\n this.getData();\n }\n }\n\n },\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/detail\", {\n inquiry_item_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.inquiry_info = res.data.inquiry_info;\n this.quote_list = res.data.quote_list;\n this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;\n this.ruleForm.inquiry_id = res.data.inquiry_info.inquiry_id;\n this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;\n this.getSkulist();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getSkulist() {\n console.log('库存匹配');\n this.$http('get', \"/api/sku/list\", {\n brand_id: this.inquiry_info.brand_id,\n goods_name: this.inquiry_info.goods_name,\n 'goods_status/condition': 1,\n goods_status: 1\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n var arr_ = this.tableData,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].goods_id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n checkBind(ids) {\n this.$http('get', \"/api/quote/checkpinlist\", {\n inquiry_items_id: this.$route.query.id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_ids: ids\n }).then(res => {\n if (res.err_code === 0) {\n if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {\n var arr_ = this.active == 1 ? JSON.parse(JSON.stringify(this.historyList)) : JSON.parse(JSON.stringify(this.tableData));\n\n for (var i = 0; i < arr_.length; i++) {\n var str_ = this.active == 1 ? String(arr_[i].id) : String(arr_[i].goods_id);\n\n if (res.data.bind_ids.indexOf(str_) != -1) {\n if (this.active == 1) {\n arr_[i].disabled = true;\n this.historyList = arr_;\n } else {\n arr_[i].disabled = true;\n this.tableData = arr_;\n }\n } else {\n if (this.active == 1) {\n arr_[i].disabled = false;\n this.historyList = arr_;\n } else {\n arr_[i].disabled = false;\n this.tableData = arr_;\n }\n }\n }\n }\n }\n });\n },\n\n getHistory() {\n console.log('历史报价');\n this.$http('get', \"/api/quote/history\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.inquiry_info.goods_name,\n brand_name: this.inquiry_info.brand_name,\n inquiry_items_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.total = res.data.total;\n this.historyList = res.data.list || [];\n var arr_ = this.historyList,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getHistory();\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n tab(index) {\n this.active = index;\n console.log(this.active);\n this.page = 1;\n this.$forceUpdate();\n\n if (index == 1) {\n this.getHistory();\n } else {\n this.getSkulist();\n }\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n keyup(val) {\n if (this.ruleForm.delivery_time_unit == '天') {\n if (val >= 6) {\n this.ruleForm.delivery_time_val = 6;\n }\n\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n } else if (this.ruleForm.delivery_time_unit == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n }\n },\n\n unitChange(val) {\n if (val == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n } else {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n }\n },\n\n currentChange(val) {\n if (val == 1) {\n this.ruleForm.tax_rate = '13%';\n } else if (val == 2) {\n this.ruleForm.tax_rate = '0%';\n }\n },\n\n submitForm(formName) {\n this.$refs[formName].validate(valid => {\n if (this.submitState) {\n return;\n }\n\n if (valid) {\n // let loadingInstance = Loading.service({\n // background: 'rgba(0, 0, 0, 0)'\n // });\n this.submitState = 1;\n let submitData_ = JSON.parse(JSON.stringify(this.ruleForm));\n\n if (submitData_.tax_rate == '13%') {\n submitData_.tax_rate = 0.13;\n } else {\n submitData_.tax_rate = 0;\n }\n\n this.$http('post', \"/api/quote/save\", submitData_).then(res => {\n if (res.err_code == 0) {\n //this.$message('操作成功');\n this.$http('post', \"/api/quote/pin\", {\n inquiry_items_id: this.ruleForm.inquiry_items_id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_id: this.currentDataId\n }).then(res => {\n if (res.err_code == 0) {} else {// this.$message(res.err_msg);\n }\n\n this.$message('操作成功');\n\n if (this.active == 1) {\n //历史报价\n this.getHistory();\n } else {\n //库存匹配\n this.getSkulist();\n }\n\n this.dialogVisible = false; // setTimeout(() => {\n // window.location.reload();\n // }, 2000)\n // loadingInstance.close();\n\n this.submitState = 0;\n });\n } else {\n this.$message(res.err_msg);\n this.submitState = 0; //loadingInstance.close();\n }\n }).catch(err => {\n this.submitState = 0; //loadingInstance.close();\n });\n } else {\n console.log(this.ruleForm.delivery_time);\n return false;\n }\n });\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.ruleForm.brand,\n type: 2\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = []; //this.ruleForm.brand = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n },\n\n handleSelectBrandName(item) {\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = item.brand_id;\n brand_ss[0].brand_name = item.value;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n },\n\n added() {\n this.title = '新增';\n this.dialogVisible = true;\n this.isModify = false;\n this.ruleForm.brand = '';\n this.ruleForm.tax_rate = '13%';\n this.ruleForm.moq = '';\n this.ruleForm.mpq = '';\n this.ruleForm.price_other = '';\n this.ruleForm.quote_id = '';\n this.$nextTick(() => {\n this.$refs['ruleForm'].resetFields();\n });\n },\n\n modify() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3 || this.multipleSelection[0].status == 5) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.title = '修改';\n this.dialogVisible = true;\n this.ruleForm.quote_id = arr.join(\",\");\n this.isModify = true;\n this.$http('get', \"/api/quote/getinfo\", {\n id: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n console.log(res.data.quote_info.tax_rate);\n this.ruleForm.tax_rate = Number(res.data.quote_info.tax_rate) * 100 + '%';\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n this.$message(\"该订单不可修改\");\n return;\n }\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/quote/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n }).catch(() => {});\n },\n\n handle(index, row) {\n console.log(row);\n\n if (row.disabled) {\n this.$message('已绑定,不能重复操作');\n return;\n }\n\n if (this.active == 1) {\n this.currentDataId = row.id;\n } else {\n this.currentDataId = row.goods_id;\n }\n\n this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';\n this.dialogVisible = true;\n this.ruleForm.quote_id = '';\n this.isModify = true;\n\n if (this.active != 1) {\n //匹配库存 不请求接口\n this.$http('get', \"/api/quote/gettransinfoforsku\", {\n goods_id: row.goods_id,\n inquiry_items_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n var datap_ = res.data.trans_to_quote_info;\n this.ruleForm.goods_name = datap_.goods_name;\n this.ruleForm.batch = datap_.batch;\n this.ruleForm.price_origin = datap_.price_origin;\n this.ruleForm.brand = datap_.brand_name;\n let brand_ssaa = [{\n brand_id: datap_.brand_id,\n brand_name: datap_.brand_name\n }];\n this.ruleForm.brand_s = JSON.stringify(brand_ssaa);\n this.ruleForm.moq = datap_.moq;\n this.ruleForm.mpq = datap_.mpq;\n this.ruleForm.quote_number = datap_.quote_number;\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n this.$http('get', \"/api/quote/getinfo\", {\n id: row.id\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n this.ruleForm.tax_rate = res.data.quote_info.tax_rate;\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n }\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/inquireDetail.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default).use(_tooltip2.default); // .use(Loading);\n\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"InquireDetail\",\n\n data() {\n return {\n currentDataId: 0,\n active: 0,\n total: 0,\n limit: 10,\n page: 1,\n multipleSelection: [],\n quote_info: {},\n inquiry_info: {},\n quote_list: [],\n title: '新增',\n isModify: false,\n tableData: [],\n historyList: [],\n submitState: 0,\n ruleForm: {\n inquiry_id: '',\n inquiry_sn: '',\n inquiry_items_id: '',\n quote_id: '',\n goods_name: '',\n quote_number: '',\n currency: '1',\n batch: '',\n mpq: '',\n price_other: '',\n unit: '',\n brand: '',\n brand_s: '',\n price_origin: '',\n tax_rate: '13%',\n delivery_time: '',\n delivery_time_val: '',\n delivery_time_unit: '天',\n moq: '',\n expire_time: '',\n remark: ''\n },\n rules: {\n goods_name: [{\n required: true,\n message: '请输入报价型号',\n trigger: 'blur'\n }],\n brand_s: [{\n required: true,\n message: '请选择品牌',\n trigger: 'blur'\n }],\n quote_number: [{\n required: true,\n message: '请输入报价数量',\n trigger: 'blur'\n }],\n currency: [{\n required: true,\n message: '请选择币种',\n trigger: 'blur'\n }],\n batch: [{\n required: true,\n message: '请输入批次',\n trigger: 'blur'\n }],\n brand: [{\n required: true,\n message: '请选择报价品牌'\n }],\n price_origin: [{\n required: true,\n message: '请输入价格',\n trigger: 'blur'\n }],\n delivery_time_val: [{\n required: true,\n message: '请输入货期',\n trigger: 'blur'\n }],\n expire_time: [{\n required: true,\n message: '请输入报价有效期',\n trigger: 'blur'\n }]\n },\n dialogVisible: false,\n brandList: [],\n textArr: ['匹配库存', '历史报价']\n };\n },\n\n created() {\n this.getData();\n },\n\n watch: {\n $route(to, from) {\n if (to.path == from.path) {\n this.getData();\n }\n }\n\n },\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/detail\", {\n inquiry_item_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.inquiry_info = res.data.inquiry_info;\n this.quote_list = res.data.quote_list;\n this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;\n this.ruleForm.inquiry_id = res.data.inquiry_info.inquiry_id;\n this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;\n this.getSkulist();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getSkulist() {\n console.log('库存匹配');\n this.$http('get', \"/api/sku/list\", {\n brand_id: this.inquiry_info.brand_id,\n goods_name: this.inquiry_info.goods_name,\n 'goods_status/condition': 1,\n goods_status: 1\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n var arr_ = this.tableData,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].goods_id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n checkBind(ids) {\n this.$http('get', \"/api/quote/checkpinlist\", {\n inquiry_items_id: this.$route.query.id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_ids: ids\n }).then(res => {\n if (res.err_code === 0) {\n if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {\n var arr_ = this.active == 1 ? JSON.parse(JSON.stringify(this.historyList)) : JSON.parse(JSON.stringify(this.tableData));\n\n for (var i = 0; i < arr_.length; i++) {\n var str_ = this.active == 1 ? String(arr_[i].id) : String(arr_[i].goods_id);\n\n if (res.data.bind_ids.indexOf(str_) != -1) {\n if (this.active == 1) {\n arr_[i].disabled = true;\n this.historyList = arr_;\n } else {\n arr_[i].disabled = true;\n this.tableData = arr_;\n }\n } else {\n if (this.active == 1) {\n arr_[i].disabled = false;\n this.historyList = arr_;\n } else {\n arr_[i].disabled = false;\n this.tableData = arr_;\n }\n }\n }\n }\n }\n });\n },\n\n getHistory() {\n console.log('历史报价');\n this.$http('get', \"/api/quote/history\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.inquiry_info.goods_name,\n brand_name: this.inquiry_info.brand_name,\n inquiry_items_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.total = res.data.total;\n this.historyList = res.data.list || [];\n var arr_ = this.historyList,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getHistory();\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n tab(index) {\n this.active = index;\n console.log(this.active);\n this.page = 1;\n this.$forceUpdate();\n\n if (index == 1) {\n this.getHistory();\n } else {\n this.getSkulist();\n }\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n keyup(val) {\n if (this.ruleForm.delivery_time_unit == '天') {\n if (val >= 6) {\n this.ruleForm.delivery_time_val = 6;\n }\n\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n } else if (this.ruleForm.delivery_time_unit == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n }\n },\n\n unitChange(val) {\n if (val == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n } else {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n }\n },\n\n currentChange(val) {\n if (val == 1) {\n this.ruleForm.tax_rate = '13%';\n } else if (val == 2) {\n this.ruleForm.tax_rate = '0%';\n }\n },\n\n submitForm(formName) {\n this.$refs[formName].validate(valid => {\n if (this.submitState) {\n return;\n }\n\n if (valid) {\n // let loadingInstance = Loading.service({\n // background: 'rgba(0, 0, 0, 0)'\n // });\n this.submitState = 1;\n let submitData_ = JSON.parse(JSON.stringify(this.ruleForm));\n\n if (submitData_.tax_rate == '13%') {\n submitData_.tax_rate = 0.13;\n } else {\n submitData_.tax_rate = 0;\n }\n\n this.$http('post', \"/api/quote/save\", submitData_).then(res => {\n if (res.err_code == 0) {\n //this.$message('操作成功');\n this.$http('post', \"/api/quote/pin\", {\n inquiry_items_id: this.ruleForm.inquiry_items_id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_id: this.currentDataId\n }).then(res => {\n if (res.err_code == 0) {} else {// this.$message(res.err_msg);\n }\n\n this.$message('操作成功');\n this.getData();\n\n if (this.active == 1) {//历史报价\n //this.getHistory()\n } else {\n //库存匹配\n this.getSkulist();\n }\n\n this.dialogVisible = false; // setTimeout(() => {\n // window.location.reload();\n // }, 2000)\n // loadingInstance.close();\n\n this.submitState = 0;\n });\n } else {\n this.$message(res.err_msg);\n this.submitState = 0; //loadingInstance.close();\n }\n }).catch(err => {\n this.submitState = 0; //loadingInstance.close();\n });\n } else {\n console.log(this.ruleForm.delivery_time);\n return false;\n }\n });\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.ruleForm.brand,\n type: 2\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = []; //this.ruleForm.brand = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n },\n\n handleSelectBrandName(item) {\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = item.brand_id;\n brand_ss[0].brand_name = item.value;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n },\n\n added() {\n this.title = '新增';\n this.dialogVisible = true;\n this.isModify = false;\n this.ruleForm.brand = '';\n this.ruleForm.tax_rate = '13%';\n this.ruleForm.moq = '';\n this.ruleForm.mpq = '';\n this.ruleForm.price_other = '';\n this.ruleForm.quote_id = '';\n this.$nextTick(() => {\n this.$refs['ruleForm'].resetFields();\n });\n },\n\n modify() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3 || this.multipleSelection[0].status == 5) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.title = '修改';\n this.dialogVisible = true;\n this.ruleForm.quote_id = arr.join(\",\");\n this.isModify = true;\n this.$http('get', \"/api/quote/getinfo\", {\n id: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n console.log(res.data.quote_info.tax_rate);\n this.ruleForm.tax_rate = Number(res.data.quote_info.tax_rate) * 100 + '%';\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n this.$message(\"该订单不可修改\");\n return;\n }\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/quote/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n }).catch(() => {});\n },\n\n handle(index, row) {\n console.log(row);\n\n if (row.disabled) {\n this.$message('已绑定,不能重复操作');\n return;\n }\n\n if (this.active == 1) {\n this.currentDataId = row.id;\n } else {\n this.currentDataId = row.goods_id;\n }\n\n this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';\n this.dialogVisible = true;\n this.ruleForm.quote_id = '';\n this.isModify = true;\n\n if (this.active != 1) {\n //匹配库存 不请求接口\n this.$http('get', \"/api/quote/gettransinfoforsku\", {\n goods_id: row.goods_id,\n inquiry_items_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n var datap_ = res.data.trans_to_quote_info;\n this.ruleForm.goods_name = datap_.goods_name;\n this.ruleForm.batch = datap_.batch;\n this.ruleForm.price_origin = datap_.price_origin;\n this.ruleForm.brand = datap_.brand_name;\n let brand_ssaa = [{\n brand_id: datap_.brand_id,\n brand_name: datap_.brand_name\n }];\n this.ruleForm.brand_s = JSON.stringify(brand_ssaa);\n this.ruleForm.moq = datap_.moq;\n this.ruleForm.mpq = datap_.mpq;\n this.ruleForm.quote_number = datap_.quote_number;\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n this.$http('get', \"/api/quote/getinfo\", {\n id: row.id\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n this.ruleForm.tax_rate = res.data.quote_info.tax_rate;\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n }\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/inquireDetail.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../../tool */ \"./src/tool/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default).use(_tooltip2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand_id: '',\n brand_name: \"\",\n date: '',\n status: ''\n }\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n console.log(this.formInline);\n this.$http('get', \"/api/quote/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : '',\n status: this.formInline.status\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = _ajax.NODE_ENVS + '/api/quote/export?ids=' + arr.join(\",\") + '&token=' + _tool.default.getCookie('token');\n ;\n },\n\n close() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$http('post', \"/api/quote/close\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"关闭成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/quote/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n }).catch(() => {});\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name,\n type: 2\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../../tool */ \"./src/tool/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default).use(_tooltip2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand_id: '',\n brand_name: \"\",\n date: '',\n status: ''\n }\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n console.log(this.formInline);\n this.$http('get', \"/api/quote/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : '',\n status: this.formInline.status\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = _ajax.NODE_ENVS + '/api/quote/export?ids=' + arr.join(\",\") + '&token=' + _tool.default.getCookie('token');\n ;\n },\n\n close() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$http('post', \"/api/quote/close\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"关闭成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/quote/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n }).catch(() => {});\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name,\n type: 2\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"quote pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"quote-con\" },\n [\n _c(\n \"el-form\",\n {\n staticClass: \"demo-form-inline\",\n attrs: { inline: true, model: _vm.formInline }\n },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"报价型号\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync,\n placeholder: \"请输入型号\"\n },\n on: { select: _vm.handleSelectGoodsName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.goods_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"goods_name\", $$v)\n },\n expression: \"formInline.goods_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"品牌\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync2,\n placeholder: \"请输入品牌\"\n },\n on: { select: _vm.handleSelectBrandName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.brand_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"brand_name\", $$v)\n },\n expression: \"formInline.brand_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"状态\" } },\n [\n _c(\n \"el-select\",\n {\n attrs: { placeholder: \"请选择\" },\n model: {\n value: _vm.formInline.status,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"status\", $$v)\n },\n expression: \"formInline.status\"\n }\n },\n [\n _c(\"el-option\", {\n attrs: { label: \"比价中\", value: \"1\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已确认\", value: \"3\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已成单\", value: \"4\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已关闭\", value: \"5\" }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"最近报价时间\" } },\n [\n _c(\"el-date-picker\", {\n attrs: {\n type: \"daterange\",\n \"range-separator\": \"至\",\n \"start-placeholder\": \"开始日期\",\n \"end-placeholder\": \"结束日期\"\n },\n model: {\n value: _vm.formInline.date,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"date\", $$v)\n },\n expression: \"formInline.date\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.onSubmit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n { staticClass: \"fl dcg\", on: { click: _vm.exportChange } },\n [_vm._v(\"导出\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg\", on: { click: _vm.close } }, [\n _vm._v(\"关闭\")\n ]),\n _c(\n \"div\",\n { staticClass: \"fl dcg delbtn\", on: { click: _vm.del } },\n [_vm._v(\"删除\")]\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"data-box th-all\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.tableData, border: \"\" },\n on: { \"selection-change\": _vm.handleSelectionChange }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n type: \"selection\",\n width: \"40\",\n align: \"center\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"goods_name\",\n fixed: \"left\",\n label: \"型号\",\n width: \"200\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\n \"div\",\n { staticClass: \"price-mores\" },\n [\n _c(\n \"el-tooltip\",\n {\n attrs: {\n effect: \"light\",\n placement: \"bottom-start\",\n \"popper-class\": \"popper-class-box\"\n }\n },\n [\n _c(\n \"div\",\n {\n attrs: { slot: \"content\" },\n slot: \"content\"\n },\n [\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"型号\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.goods_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"品牌\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.brand_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"数量\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.quote_number)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"批次\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [_vm._v(_vm._s(scope.row.batch))]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"交货日期\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(\n scope.row.delivery_time\n )\n )\n ]\n )\n ]\n )\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"more-search-btn\" },\n [_vm._v(_vm._s(scope.row.goods_name))]\n )\n ]\n )\n ],\n 1\n )\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n fixed: \"left\",\n label: \"品牌\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_sn\",\n label: \"询价单号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_goods_name\",\n label: \"报价型号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_brand_name\",\n label: \"报价品牌\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"status\", label: \"状态\", width: \"100\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row.status == 1\n ? _c(\"span\", { staticClass: \"f-green\" }, [\n _vm._v(\"比价中\")\n ])\n : scope.row.status == 2\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [\n _vm._v(\"已选中\")\n ])\n : scope.row.status == 3\n ? _c(\"span\", [_vm._v(\"已确认\")])\n : scope.row.status == 4\n ? _c(\"span\", [_vm._v(\"已成单\")])\n : scope.row.status == 5\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已关闭\")\n ])\n : scope.row.status == 9\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已删除\")\n ])\n : scope.row.status == -1\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已撤销\")\n ])\n : _vm._e()\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_status_val\",\n label: \"是否有效\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_number\",\n label: \"报价数量\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"price_origin\", label: \"价格\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"currency_val\", label: \"币种\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"tax_rate\", label: \"税率\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch\", label: \"批次\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"delivery_time\",\n label: \"货期\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"mpq\", label: \"最小包装数量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"moq\", label: \"起订量\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_other\",\n label: \"其他费用\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_time\",\n label: \"报价有效期\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"remark\", label: \"备注\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"最近报价时间\",\n width: \"200\"\n }\n })\n ],\n 1\n ),\n _c(\"el-pagination\", {\n attrs: {\n layout: \"prev, pager, next,jumper\",\n \"page-size\": _vm.limit,\n total: _vm.total,\n \"current-page\": _vm.page\n },\n on: { \"current-change\": _vm.handleCurrentChange }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\"Menu\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221c089814-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"quote pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"quote-con\" },\n [\n _c(\n \"el-form\",\n {\n staticClass: \"demo-form-inline\",\n attrs: { inline: true, model: _vm.formInline }\n },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"报价型号\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync,\n placeholder: \"请输入型号\"\n },\n on: { select: _vm.handleSelectGoodsName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.goods_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"goods_name\", $$v)\n },\n expression: \"formInline.goods_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"品牌\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync2,\n placeholder: \"请输入品牌\"\n },\n on: { select: _vm.handleSelectBrandName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.brand_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"brand_name\", $$v)\n },\n expression: \"formInline.brand_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"状态\" } },\n [\n _c(\n \"el-select\",\n {\n attrs: { placeholder: \"请选择\" },\n model: {\n value: _vm.formInline.status,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"status\", $$v)\n },\n expression: \"formInline.status\"\n }\n },\n [\n _c(\"el-option\", {\n attrs: { label: \"比价中\", value: \"1\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已选中\", value: \"2\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已确认\", value: \"3\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已成单\", value: \"4\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已关闭\", value: \"5\" }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"最近报价时间\" } },\n [\n _c(\"el-date-picker\", {\n attrs: {\n type: \"daterange\",\n \"range-separator\": \"至\",\n \"start-placeholder\": \"开始日期\",\n \"end-placeholder\": \"结束日期\"\n },\n model: {\n value: _vm.formInline.date,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"date\", $$v)\n },\n expression: \"formInline.date\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.onSubmit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n { staticClass: \"fl dcg\", on: { click: _vm.exportChange } },\n [_vm._v(\"导出\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg\", on: { click: _vm.close } }, [\n _vm._v(\"关闭\")\n ]),\n _c(\n \"div\",\n { staticClass: \"fl dcg delbtn\", on: { click: _vm.del } },\n [_vm._v(\"删除\")]\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"data-box th-all\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.tableData, border: \"\" },\n on: { \"selection-change\": _vm.handleSelectionChange }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n type: \"selection\",\n width: \"40\",\n align: \"center\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"goods_name\",\n fixed: \"left\",\n label: \"型号\",\n width: \"200\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\n \"div\",\n { staticClass: \"price-mores\" },\n [\n _c(\n \"el-tooltip\",\n {\n attrs: {\n effect: \"light\",\n placement: \"bottom-start\",\n \"popper-class\": \"popper-class-box\"\n }\n },\n [\n _c(\n \"div\",\n {\n attrs: { slot: \"content\" },\n slot: \"content\"\n },\n [\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"型号\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.goods_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"品牌\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.brand_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"数量\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.quote_number)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"批次\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [_vm._v(_vm._s(scope.row.batch))]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"交货日期\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(\n scope.row.delivery_time\n )\n )\n ]\n )\n ]\n )\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"more-search-btn\" },\n [_vm._v(_vm._s(scope.row.goods_name))]\n )\n ]\n )\n ],\n 1\n )\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n fixed: \"left\",\n label: \"品牌\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_sn\",\n label: \"询价单号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_goods_name\",\n label: \"报价型号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_brand_name\",\n label: \"报价品牌\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"status\", label: \"状态\", width: \"100\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row.status == 1\n ? _c(\"span\", { staticClass: \"f-green\" }, [\n _vm._v(\"比价中\")\n ])\n : scope.row.status == 2\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [\n _vm._v(\"已选中\")\n ])\n : scope.row.status == 3\n ? _c(\"span\", [_vm._v(\"已确认\")])\n : scope.row.status == 4\n ? _c(\"span\", [_vm._v(\"已成单\")])\n : scope.row.status == 5\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已关闭\")\n ])\n : scope.row.status == 9\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已删除\")\n ])\n : scope.row.status == -1\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已撤销\")\n ])\n : _vm._e()\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_status_val\",\n label: \"是否有效\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_number\",\n label: \"报价数量\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"price_origin\", label: \"价格\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"currency_val\", label: \"币种\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"tax_rate\", label: \"税率\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch\", label: \"批次\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"delivery_time\",\n label: \"货期\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"mpq\", label: \"最小包装数量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"moq\", label: \"起订量\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_other\",\n label: \"其他费用\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_time\",\n label: \"报价有效期\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"remark\", label: \"备注\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"最近报价时间\",\n width: \"200\"\n }\n })\n ],\n 1\n ),\n _c(\"el-pagination\", {\n attrs: {\n layout: \"prev, pager, next,jumper\",\n \"page-size\": _vm.limit,\n total: _vm.total,\n \"current-page\": _vm.page\n },\n on: { \"current-change\": _vm.handleCurrentChange }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\"Menu\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221c089814-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../../tool */ \"./src/tool/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_tooltip2.default).use(_autocomplete2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"list\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n dialogVisible: false,\n dialogVisible2: false,\n downHref: \"\",\n formInline: {\n goods_name: '',\n status: '',\n brand_id: '',\n brand_name: '',\n date: ''\n },\n multipleSelection: [],\n selectData: [],\n huoqidata: [],\n kucundata: [],\n tableData: [],\n brandList: [],\n disabled: false,\n timer: null\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/sku/list\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n },\n\n downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('get', \"/api/sku/exportSku\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10); //window.location.href = res.data\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCommand(command) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.selectData = JSON.parse(JSON.stringify(this.multipleSelection));\n\n if (command == 1) {\n //修改库存弹窗\n this.dialogVisible = true;\n this.kucundata = this.selectData;\n } else {\n //修改货期弹窗\n this.dialogVisible2 = true;\n this.huoqidata = this.selectData;\n }\n },\n\n submitHq() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.huoqidata.length; i++) {\n arr_[self.huoqidata[i]['goods_id']] = {\n cn_delivery_time: self.huoqidata[i]['dlhq'] + (self.huoqidata[i]['dlhqdw'] || '天'),\n hk_delivery_time: self.huoqidata[i]['hkhq'] + (self.huoqidata[i]['hkhqdw'] || '天')\n };\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible2 = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n submitKc() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.kucundata.length; i++) {\n arr_[self.kucundata[i]['goods_id']] = {\n stock: self.kucundata[i]['updateStock']\n };\n console.log(self.kucundata[i]['goods_id']);\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code === 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n changeStatus(status) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n var arr = [];\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['goods_id']);\n }\n\n this.$http('post', \"/api/sku/updateSkuStatus\", {\n sku_ids: arr.join(\",\"),\n status: status == 1 ? 'passed' : 'offshelf'\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"操作成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Store/list.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../../tool */ \"./src/tool/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_tooltip2.default).use(_autocomplete2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"list\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n dialogVisible: false,\n dialogVisible2: false,\n downHref: \"\",\n formInline: {\n goods_name: '',\n status: '',\n brand_id: '',\n brand_name: '',\n date: ''\n },\n multipleSelection: [],\n selectData: [],\n huoqidata: [],\n kucundata: [],\n tableData: [],\n brandList: [],\n disabled: false,\n timer: null\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/sku/list\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n },\n\n downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('get', \"/api/sku/exportSku\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10); //window.location.href = res.data\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCommand(command) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.selectData = JSON.parse(JSON.stringify(this.multipleSelection));\n\n if (command == 1) {\n //修改库存弹窗\n this.dialogVisible = true;\n this.kucundata = this.selectData;\n } else {\n //修改货期弹窗\n this.dialogVisible2 = true;\n this.huoqidata = this.selectData;\n }\n },\n\n submitHq() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.huoqidata.length; i++) {\n arr_[self.huoqidata[i]['goods_id']] = {};\n\n if (self.huoqidata[i]['dlhq'] && self.huoqidata[i]['dlhq'] != 'undefined') {\n arr_[self.huoqidata[i]['goods_id']].cn_delivery_time = self.huoqidata[i]['dlhq'] + (self.huoqidata[i]['dlhqdw'] && self.huoqidata[i]['dlhqdw'] != '天' ? '周' : '工作日');\n }\n\n if (self.huoqidata[i]['hkhq'] && self.huoqidata[i]['hkhq'] != 'undefined') {\n arr_[self.huoqidata[i]['goods_id']].hk_delivery_time = self.huoqidata[i]['hkhq'] + (self.huoqidata[i]['hkhqdw'] && self.huoqidata[i]['hkhqdw'] != '天' ? '周' : '工作日');\n }\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible2 = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n submitKc() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.kucundata.length; i++) {\n arr_[self.kucundata[i]['goods_id']] = {\n stock: self.kucundata[i]['updateStock']\n };\n console.log(self.kucundata[i]['goods_id']);\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code === 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n changeStatus(status) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n var arr = [];\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['goods_id']);\n }\n\n this.$http('post', \"/api/sku/updateSkuStatus\", {\n sku_ids: arr.join(\",\"),\n status: status == 1 ? 'passed' : 'offshelf'\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"操作成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Store/list.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......
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