Commit 0749691f by LJM

add

parent 6b568369
...@@ -153,3 +153,148 @@ ...@@ -153,3 +153,148 @@
} }
} }
} }
.xx {
.el-form-item__label {
white-space: nowrap;
}
.dialog-footer {
text-align: center !important;
}
.updatebox {
position: relative;
.selectdw {
width: 64px;
position: absolute;
top: 1px;
right: 2px;
.el-select {
width: 100%;
border-left: 1px solid #C0C4CC;
input {
border: 0px;
padding: 0px;
width: 100%;
height: 25px;
font-size: 14px;
color: #333;
text-align: center;
}
.el-input__prefix, .el-input__suffix {
display: none !important;
}
}
}
}
}
.price-more {
.more-search-btn {
width: 70px;
height: 26px;
background: #F1F4FA;
border-radius: 2px;
border: 1px solid #BEC9DF;
font-size: 12px;
color: #1969F9;
text-align: center;
transition: all 0.5s;
position: relative;
cursor: pointer;
&:hover {
border: 1px solid #1969F9;
}
}
}
.batch-layer {
width: 100%;
.batch-box {
flex: 0 0 33.3%;
border-bottom: 1px solid #eee;
.title {
width: 100%;
height: 30px;
border-bottom: 1px solid #eee;
i {
cursor: pointer;
}
}
.content {
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
width: 100%;
.period-list {
height: 240px;
flex-wrap: wrap;
padding: 0 7px;
li {
width: 36px;
height: 30px;
line-height: 30px;
color: #666;
cursor: pointer;
font-size: 13px;
transition: all 0.4s ease-in-out;
&:hover, &.curr {
color: #FFF;
background-color: #409EFF;
}
}
}
.year-list {
height: 240px;
flex-wrap: wrap;
padding: 0 7px;
li {
flex: 0 0 33.3%;
height: 30px;
line-height: 30px;
color: #666;
cursor: pointer;
font-size: 13px;
margin: 10px 0;
transition: all 0.4s ease-in-out;
&:hover, &.curr {
color: #FFF;
background-color: #409EFF;
}
}
}
}
.footer-btn {
padding-right: 10px;
height: 44px;
justify-content: flex-end;
border-right: 1px solid #eee;
}
}
}
\ No newline at end of file
...@@ -124,4 +124,119 @@ ...@@ -124,4 +124,119 @@
.inquire-con .p-copy:hover .copy { .inquire-con .p-copy:hover .copy {
display: block; display: block;
} }
.xx .el-form-item__label {
white-space: nowrap;
}
.xx .dialog-footer {
text-align: center !important;
}
.xx .updatebox {
position: relative;
}
.xx .updatebox .selectdw {
width: 64px;
position: absolute;
top: 1px;
right: 2px;
}
.xx .updatebox .selectdw .el-select {
width: 100%;
border-left: 1px solid #C0C4CC;
}
.xx .updatebox .selectdw .el-select input {
border: 0px;
padding: 0px;
width: 100%;
height: 25px;
font-size: 14px;
color: #333;
text-align: center;
}
.xx .updatebox .selectdw .el-select .el-input__prefix,
.xx .updatebox .selectdw .el-select .el-input__suffix {
display: none !important;
}
.price-more .more-search-btn {
width: 70px;
height: 26px;
background: #F1F4FA;
border-radius: 2px;
border: 1px solid #BEC9DF;
font-size: 12px;
color: #1969F9;
text-align: center;
transition: all 0.5s;
position: relative;
cursor: pointer;
}
.price-more .more-search-btn:hover {
border: 1px solid #1969F9;
}
.batch-layer {
width: 100%;
}
.batch-layer .batch-box {
flex: 0 0 33.3%;
border-bottom: 1px solid #eee;
}
.batch-layer .batch-box .title {
width: 100%;
height: 30px;
border-bottom: 1px solid #eee;
}
.batch-layer .batch-box .title i {
cursor: pointer;
}
.batch-layer .batch-box .content {
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
width: 100%;
}
.batch-layer .batch-box .content .period-list {
height: 240px;
flex-wrap: wrap;
padding: 0 7px;
}
.batch-layer .batch-box .content .period-list li {
width: 36px;
height: 30px;
line-height: 30px;
color: #666;
cursor: pointer;
font-size: 13px;
transition: all 0.4s ease-in-out;
}
.batch-layer .batch-box .content .period-list li:hover,
.batch-layer .batch-box .content .period-list li.curr {
color: #FFF;
background-color: #409EFF;
}
.batch-layer .batch-box .content .year-list {
height: 240px;
flex-wrap: wrap;
padding: 0 7px;
}
.batch-layer .batch-box .content .year-list li {
flex: 0 0 33.3%;
height: 30px;
line-height: 30px;
color: #666;
cursor: pointer;
font-size: 13px;
margin: 10px 0;
transition: all 0.4s ease-in-out;
}
.batch-layer .batch-box .content .year-list li:hover,
.batch-layer .batch-box .content .year-list li.curr {
color: #FFF;
background-color: #409EFF;
}
.batch-layer .batch-box .footer-btn {
padding-right: 10px;
height: 44px;
justify-content: flex-end;
border-right: 1px solid #eee;
}
/*# sourceMappingURL=inquire.min.css.map */ /*# sourceMappingURL=inquire.min.css.map */
\ No newline at end of file
{"version":3,"sources":["inquire.less"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,kBAAA;EACA,aAAA;;AAHF,YAKE;EACE,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AAEA,YAXF,YAWG;EACC,mBAAA;;AAjBN,YAqBE;EACE,gBAAA;EACA,mBAAA;;AAvBJ,YAqBE,SAIE;EAEE,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,eAAA;EACA,WAAA;;AApCN,YAqBE,SAIE,QAaE;EACE,gBAAA;;AAGF,YArBJ,SAIE,QAiBG;EAEC,mBAAA;EACA,WAAA;;AA7CR,YAqBE,SA6BE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,kBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,YA1CJ,SA6BE,KAaG;EACC,mBAAA;EACA,eAAA;EACA,WAAA;;AAGF,YAhDJ,SA6BE,KAmBG;EACC,WAAA;EACA,gBAAA;;AAEA,YApDN,SA6BE,KAmBG,KAIE;EACC,mBAAA;EACA,cAAA;;AAIJ,YA1DJ,SA6BE,KA6BG;EACC,kBAAA;EACA,WAAA;EACA,8BAAA;;AAEA,YA/DN,SA6BE,KA6BG,IAKE;EACC,8BAAA;;AAIJ,YApEJ,SA6BE,KAuCG;EACC,yBAAA;EACA,mBAAA;EACA,cAAA;;AAEA,YAzEN,SA6BE,KAuCG,OAKE;EACC,mBAAA;EACA,WAAA;;AAhGV,YAsGE;EACE,kBAAA;;AAvGJ,YAsGE,WAGE;EACE,YAAA;EACA,WAAA;EAEA,kBAAA;EACA,QAAA;EACA,UAAA;;AA/GN,YAsGE,WAGE,UAQE;EACE,WAAA;EACA,8BAAA;;AAnHR,YAsGE,WAGE,UAQE,WAIE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AA5HV,YAsGE,WAGE,UAQE,WAeE;AAhIR,YAsGE,WAGE,UAQE,WAeqB;EACjB,wBAAA;;AAjIV,YAwIE;EACE,kBAAA;;AAzIJ,YAwIE,QAGE;EACE,kBAAA;EACA,QAAA;EACA,MAAA;EACA,cAAA;EACA,eAAA;EACA,aAAA;;AAGF,YAZF,QAYG,MACC;EACE,cAAA","file":"inquire.min.css"} {"version":3,"sources":["inquire.less"],"names":[],"mappings":"AAAA;EACE,mBAAA;EACA,kBAAA;EACA,aAAA;;AAHF,YAKE;EACE,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AAEA,YAXF,YAWG;EACC,mBAAA;;AAjBN,YAqBE;EACE,gBAAA;EACA,mBAAA;;AAvBJ,YAqBE,SAIE;EAEE,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,eAAA;EACA,WAAA;;AApCN,YAqBE,SAIE,QAaE;EACE,gBAAA;;AAGF,YArBJ,SAIE,QAiBG;EAEC,mBAAA;EACA,WAAA;;AA7CR,YAqBE,SA6BE;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,kBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,YA1CJ,SA6BE,KAaG;EACC,m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ACjB,wBAAA;;AASV,WACE;EACE,WAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,oBAAA;EACA,kBAAA;EACA,eAAA;;AAEA,WAbF,iBAaG;EACC,yBAAA;;AAON;EACE,WAAA;;AADF,YAGE;EACE,eAAA;EACA,6BAAA;;AALJ,YAGE,WAIE;EACE,WAAA;EACA,YAAA;EACA,6BAAA;;AAVN,YAGE,WAIE,OAKE;EACE,eAAA;;AAbR,YAGE,WAeE;EACE,gBAAA;EACA,mBAAA;EACA,6BAAA;EACA,4BAAA;EAEA,WAAA;;AAxBN,YAGE,WAeE,SAQE;EACE,aAAA;EACA,eAAA;EACA,cAAA;;AA7BR,YAGE,WAeE,SAQE,aAKE;EACE,WAAA;EACA,YAAA;EACA,iBAAA;EACA,WAAA;EACA,eAAA;EACA,eAAA;EACA,gCAAA;;AAEA,YArCR,WAeE,SAQE,aAKE,GASG;AAAQ,YArCjB,WAeE,SAQE,aAKE,GASY;EACR,WAAA;EACA,yBAAA;;AA1CZ,YAGE,WAeE,SA6BE;EACE,aAAA;EACA,eAAA;EACA,cAAA;;AAlDR,YAGE,WAeE,SA6BE,WAKE;EACE,eAAA;EACA,YAAA;EACA,iBAAA;EACA,WAAA;EACA,eAAA;EACA,eAAA;EACA,cAAA;EACA,gCAAA;;AAEA,YA3DR,WAeE,SA6BE,WAKE,GAUG;AAAQ,YA3DjB,WAeE,SA6BE,WAKE,GAUY;EACR,WAAA;EACA,yBAAA;;AAhEZ,YAGE,WAmEE;EACE,mBAAA;EACA,YAAA;EACA,yBAAA;EACA,4BAAA","file":"inquire.min.css"}
\ No newline at end of file \ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
margin-top: 14px; margin-top: 14px;
margin-bottom: 20px; margin-bottom: 20px;
.fl{ .fl {
margin-bottom: 10px; margin-bottom: 10px;
} }
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
} }
} }
} }
.quote { .quote {
position: relative; position: relative;
padding-top: 20px; padding-top: 20px;
...@@ -122,7 +123,6 @@ ...@@ -122,7 +123,6 @@
} }
.updatex { .updatex {
width: 66px; width: 66px;
height: 26px; height: 26px;
...@@ -146,6 +146,7 @@ ...@@ -146,6 +146,7 @@
} }
} }
.assistant { .assistant {
padding-top: 3px; padding-top: 3px;
padding-bottom: 20px; padding-bottom: 20px;
...@@ -164,7 +165,8 @@ ...@@ -164,7 +165,8 @@
.tab { .tab {
border: 1px solid #E5EBF6; border: 1px solid #E5EBF6;
padding-bottom: 10px; padding-bottom: 10px;
border-bottom:0px; border-bottom: 0px;
li { li {
width: 102px; width: 102px;
height: 42px; height: 42px;
...@@ -185,6 +187,7 @@ ...@@ -185,6 +187,7 @@
} }
} }
} }
.dcg { .dcg {
display: block; display: block;
width: 66px; width: 66px;
...@@ -204,12 +207,14 @@ ...@@ -204,12 +207,14 @@
cursor: pointer; cursor: pointer;
color: #fff; color: #fff;
} }
&.disabled{
&.disabled {
background: #ccc; background: #ccc;
color:#fff; color: #fff;
border-color:#ccc; border-color: #ccc;
cursor: not-allowed; cursor: not-allowed;
} }
&.heti { &.heti {
width: 56px; width: 56px;
background: #fff; background: #fff;
...@@ -287,21 +292,21 @@ ...@@ -287,21 +292,21 @@
} }
.price-more{ .price-more {
.more-search-btn{ .more-search-btn {
width: 70px; width: 70px;
height: 26px; height: 26px;
background: #F1F4FA; background: #F1F4FA;
border-radius: 2px; border-radius: 2px;
border: 1px solid #BEC9DF; border: 1px solid #BEC9DF;
font-size: 12px; font-size: 12px;
color:#1969F9; color: #1969F9;
text-align: center; text-align: center;
transition: all 0.5s; transition: all 0.5s;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
&:hover{ &:hover {
border: 1px solid #1969F9; border: 1px solid #1969F9;
} }
......
{"version":3,"sources":["inquireDetail.less"],"names":[],"mappings":"AAAA,cACE;EACE,kBAAA;EACA,mBAAA;EACA,kBAAA;EACA,yBA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AAA;;AAhEZ,YAGE,WAmEE;EACE,mBAAA;EACA,YAAA;EACA,yBAAA;EACA,4BAAA","file":"inquireDetail.min.css"} {"version":3,"sources":["inquireDetail.less"],"names":[],"mappings":"AAAA,cACE;EACE,kBAAA;EACA,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,oBAAA;;AAEA,cAVF,qBAUG;EACC,kBAAA;EACA,SAAA;EACA,OAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,SAAS,EAAT;EACA,cAAA;;AAnBN,cACE,qBAqBE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;;AAzBN,cACE,qBA2BE;EACE,gBAAA;EACA,mBAAA;;AA9BN,cACE,qBA2BE,WAIE;EACE,mBAAA;;AAjCR,cACE,qBA2BE,WAQE;EACE,eAAA;EACA,cAAA;EACA,sBAAA;EACA,kBAAA;;AAxCR,cACE,qBA2BE,WAeE;EACE,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,sBAAA;EACA,sBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAAA;EACA,mBAAA;;AApDR,cACE,qBAuDE,MACE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;;AA5DR,cACE,qBAuDE,MAOE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;;AAlER,cAuEE;EACE,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,mBAAA;;AAEA,cAPF,OAOG;EACC,kBAAA;EACA,SAAA;EACA,OAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,SAAS,EAAT;EACA,cAAA;;AAtFN,cAuEE,OAkBE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;;AA5FN,cAuEE,OAwBE;EACE,gBAAA;EACA,mBAAA;;AAjGN,cAuEE,OAwBE,SAIE;EAEE,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eA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E,eAAA;EACA,YAAA;EACA,iBAAA;EACA,WAAA;EACA,eAAA;EACA,eAAA;EACA,cAAA;EACA,gCAAA;;AAEA,YA3DR,WAeE,SA6BE,WAKE,GAUG;AAAQ,YA3DjB,WAeE,SA6BE,WAKE,GAUY;EACR,WAAA;EACA,yBAAA;;AAhEZ,YAGE,WAmEE;EACE,mBAAA;EACA,YAAA;EACA,yBAAA;EACA,4BAAA","file":"inquireDetail.min.css"}
\ No newline at end of file \ No newline at end of file
...@@ -399,6 +399,14 @@ body { ...@@ -399,6 +399,14 @@ body {
color: #409EFF; color: #409EFF;
} }
.btn-element {
height: 20px;
color: #FFF;
background-color: #409EFF;
box-sizing: border-box;
width: 44px;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; width: 6px;
height: 6px; height: 6px;
......
...@@ -372,6 +372,13 @@ body { ...@@ -372,6 +372,13 @@ body {
.alink { .alink {
color: #409EFF; color: #409EFF;
} }
.btn-element {
height: 20px;
color: #FFF;
background-color: #409EFF;
box-sizing: border-box;
width: 44px;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; width: 6px;
height: 6px; height: 6px;
......
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AAAM;EACJ,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAM;AAAM;AAAU;AAAQ;AAAO;AAAU;AAAG;AAAY;AAAI;AAAI;AAAI;AAAQ;AAAS;AAAO;AAAS;AAAY;AAAQ;AAAQ;AAAQ;AAAM;AAAK;EACxN,SAAA;EACA,UAAA;;AAGF;AAAQ;AAAO;AAAQ;EACrB,eAAA;EACA,YAAA;EACA,wBAA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,oBACE,EAQE;EACE,cAAA;EACA,YAAA;EACA,mBAAA;;AAKN;EACE,cAAA;;AAGF;EACE,YAAA;EACA,WAAA;EACA,yBAAA;EACA,sBAAA;EACA,WAAA;;AAGF;EACE,UAAA;EACA,WAAA;EACA,uBAAA;;AAGF;EACE,iBAAA;EACA,kBAAA;;AAGF;EACE,mBAAA;EACA,kBAAA;;AAGF,yBAAyB;EACvB,mBAAA;;AAGF;EACE,mBAAA","file":"common.min.css"}
\ No newline at end of file \ No newline at end of file
<template>
<section class="pagex">
<div>
<!--搜索区-->
<el-form :inline="true" :model="formInline" ref="formInline" label-width="100px">
<el-form-item label="型号" prop="goods_name">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="品牌" prop="brand_name">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="来源" prop="source">
<el-select v-model="formInline.source" placeholder="请选择" clearable>
<el-option label="全部" value=""></el-option>
<el-option label="现货库存" value="1">现货库存</el-option>
<el-option label="优势物料" value="2">优势物料</el-option>
</el-select>
</el-form-item>
<el-form-item label="状态" prop="source">
<el-select v-model="formInline.source" placeholder="请选择" clearable>
<el-option label="全部" value=""></el-option>
<el-option label="上架" value="1">上架</el-option>
<el-option label="下架" value="2">下架</el-option>
</el-select>
</el-form-item>
<el-form-item label="更新时间">
<el-date-picker v-model="formInline.update_time" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item label="上架有效期">
<el-date-picker v-model="formInline.update_time" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">搜索</el-button>
<el-button @click="resetForm('formInline')">重置</el-button>
</el-form-item>
</el-form>
<!--操作区-->
<div class="operation-area row verCenter bothSide">
<div class="operation-button row verCenter">
<el-button type="primary">导出</el-button>
<div class="text-tip row verCenter">
<i class="el-icon-warning"></i>
<span>该页面展示的数据为:统计我司上传的型号获得询价及最终转化成单的情况</span>
</div>
</div>
<div class="operation-filter row bothSide verCenter">
<div style="margin-right: 10px">
<el-radio-group v-model="tabPosition" @change="change(tabPosition,'frqRates')">
<el-radio-button label="0">当月</el-radio-button>
<el-radio-button label="1">季度</el-radio-button>
<el-radio-button label="2">本年</el-radio-button>
</el-radio-group>
</div>
<div class="date-wrap">
<el-date-picker v-model="formInline.update_time" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
</div>
</div>
</div>
<!--列表区-->
<div class="data-box">
<el-table :data="list" border max-height="600">
<el-table-column prop="inquiry_goods_name" label="型号" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="品牌" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="来源" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="询价次数" :show-overflow-tooltip="true" width="120">
<template v-slot:header='scope'>
<div class="row verCenter">
<span>询价次数</span>
<el-tooltip :aa="scope" class="item" effect="dark" placement="top-start">
<i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i>
<div slot="content">统计我司上传的型号从【猎芯询报价系统】自动匹配推送过来的询价次数</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="inquiry_brand_name" label="询价排名" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="报价次数" :show-overflow-tooltip="true" width="120">
<template v-slot:header='scope'>
<div class="row verCenter">
<span>报价次数</span>
<el-tooltip :aa="scope" class="item" effect="dark" placement="top-start">
<i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i>
<div slot="content">统计我司获得【猎芯询报价系统】推送的询价后,参与报价的次数</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="inquiry_brand_name" label="报价排名" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="询报价转化率" :show-overflow-tooltip="true" width="120">
<template v-slot:header='scope'>
<div class="row verCenter">
<span>询报价转化率</span>
<el-tooltip :aa="scope" class="item" effect="dark" placement="top-start">
<i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i>
<div slot="content">统计我司从询价单推送报价单的转化率</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="inquiry_brand_name" label="成单次数" :show-overflow-tooltip="true" width="120">
<template v-slot:header='scope'>
<div class="row verCenter">
<span>成单次数</span>
<el-tooltip :aa="scope" class="item" effect="dark" placement="top-start">
<i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i>
<div slot="content">统计我司推送报价之后,最终和猎芯达成合作,成交订单的次数</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="inquiry_brand_name" label="成单排名" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="报价成单转化率" :show-overflow-tooltip="true" width="130">
<template v-slot:header='scope'>
<div class="row verCenter">
<span>报价成单转化率</span>
<el-tooltip :aa="scope" class="item" effect="dark" placement="top-start">
<i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i>
<div slot="content">统计我司推送报价之后,最终和猎芯达成合作,成交订单的转化率</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="inquiry_brand_name" label="库存" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="价格" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="大陆交期" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="香港交期" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="状态" :show-overflow-tooltip="true" width="120"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="更新时间" :show-overflow-tooltip="true" width="160"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="上架有效期" :show-overflow-tooltip="true" width="160"></el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
<p class="tetx-goods" style="position: absolute;bottom: -21px">
<span>上传型号总数:</span><em>162512</em>
<span>参与询价型号总数:</span><em>162512</em>
<span>参与报价型号总数:</span><em>162512</em>
<span>成单型号总数:</span><em>162512</em>
</p>
</div>
</div>
<Menu/>
</section>
</template>
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {Autocomplete, Button, DatePicker, Descriptions, DescriptionsItem, Dialog, Divider, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Radio, RadioButton, RadioGroup, Select, Table, TableColumn, Tabs, Tag, Tooltip} from 'element-ui'
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm;
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Tooltip).use(Autocomplete).use(Popover).use(Tag).use(Divider);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination).use(Descriptions).use(DescriptionsItem).use(Tabs).use(Radio).use(RadioGroup).use(RadioButton);
export default {
name: "inquireTransform",
data() {
return {
total: 0,
page: 1,
limit: 10,
list: [],
tabPosition: 0,
formInline: {
goods_name: '',//型号
brand_name: '',//品牌
source: '',//来源
update_time: '',//更新时间
}
};
},
created() {
this.getData()
},
methods: {
getData() {
var params = Object.assign({}, {page: this.page, limit: this.limit}, this.formParam);
this.$http('GET', "/api/quote/getlist", params).then(res => {
if (res.code === 0) {
this.list = res.data.list || [];
this.total = Number(res.data.total) || 0;
} else {
this.$message({
message: res.msg,
type: 'error'
});
}
})
},
/**
* tab切换
* @param index
* @param type
*/
change(index, type) {
},
/**
* 搜索型号
* @param queryString
* @param cb
*/
querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", {
spu_name: queryString
}).then(res => {
if (res.code == 0) {
if (res.data.list.length > 0) {
var arrlist_ = res.data.list || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
arr_.push({
value: arrlist_[i]['spu_name']
})
}
cb(arr_);
} else {
cb([]);
}
}
})
},
/**
* 品牌
* @param queryString
* @param cb
*/
querySearchAsyncBrand(queryString, cb) {
this.$http('get', "/api/brand/get_stand_brand", {
brand: queryString
}).then(res => {
if (res.code == 0) {
if (res.data.list.length > 0) {
var arrlist_ = res.data.list || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
arr_.push({
value: arrlist_[i]
})
}
cb(arr_);
} else {
cb([]);
}
}
})
},
/**
* 搜索
*/
onSubmit() {
this.page = 1;
this.getData();
},
/**
* 重置
* @param formName
*/
resetForm(formName) {
this.formParam.date = '';
this.$refs[formName].resetFields();
},
/**
* 分页条数切换
* @param val
*/
handleSizeChange(val) {
this.limit = val;
this.getData();
},
/**
* 分页点击切换
* @param val
*/
handleCurrentChange(val) {
this.page = val;
this.getData();
}
},
components: {
Menu
}
};
</script>
<style scoped lang="less">
.tetx-goods {
span {
color: #F59A23;
font-weight: bold;
}
em {
color: #FF0000;
font-weight: bold;
margin-right: 15px;
}
}
</style>
\ No newline at end of file
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="inquire-con"> <div class="inquire-con">
<!--搜索区--> <!--搜索区-->
<el-form :inline="true" :model="formParam" class="demo-form-inline" ref="formParam" label-width="100px"> <el-form :inline="true" :model="formParam" class="demo-form-inline" ref="formParam" label-width="100px">
<el-form-item label="询价单号" prop="goods_name"> <el-form-item label="询价单号" prop="inquiry_sn">
<el-input v-model="formParam.goods_name" placeholder="请输入询价单号" @keyup.enter.native="submit" clearable></el-input> <el-input v-model="formParam.inquiry_sn" placeholder="请输入询价单号" @keyup.enter.native="submit" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="型号" prop="goods_name"> <el-form-item label="型号" prop="goods_name">
<el-autocomplete v-model="formParam.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete> <el-autocomplete v-model="formParam.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
...@@ -20,33 +20,31 @@ ...@@ -20,33 +20,31 @@
<el-option label="已报价" value="2"></el-option> <el-option label="已报价" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="是否成功" prop="i_status"> <el-form-item label="是否成功" prop="is_purchased">
<el-select v-model="formParam.i_status" placeholder="请选择" clearable> <el-select v-model="formParam.is_purchased" placeholder="请选择" clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="是" value="-1"></el-option> <el-option label="是" value="0"></el-option>
<el-option label="否" value="1"></el-option> <el-option label="否" value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户性质" prop="i_status"> <el-form-item label="客户性质" prop="customer_tag">
<el-select v-model="formParam.i_status" placeholder="请选择" clearable> <el-select v-model="formParam.customer_tag" placeholder="请选择" clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="KA" value="-1"></el-option> <el-option label="KA" value="KA"></el-option>
<el-option label=“SMB” value="1"></el-option> <el-option label="SMB" value="SMB"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="来源类型" prop="i_status"> <el-form-item label="来源类型" prop="source_from">
<el-select v-model="formParam.i_status" placeholder="请选择" clearable> <el-select v-model="formParam.source_from" placeholder="请选择" clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="历史成单" value="-1"></el-option> <el-option label="精准匹配" value="1"></el-option>
<el-option label=“精准匹配” value="1"></el-option>
<el-option label=“指定采购” value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="询价时间"> <el-form-item label="询价时间">
<el-date-picker v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker v-model="formParam.create_time" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="询价有效期"> <el-form-item label="询价有效期">
<el-date-picker v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker v-model="formParam.deadline_time" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">搜索</el-button> <el-button type="primary" @click="onSubmit">搜索</el-button>
...@@ -56,7 +54,7 @@ ...@@ -56,7 +54,7 @@
<!--操作区--> <!--操作区-->
<div class="operation-area row verCenter bothSide"> <div class="operation-area row verCenter bothSide">
<div class="operation-button row verCenter"> <div class="operation-button row verCenter">
<el-button type="primary" @click="detail">报价</el-button> <el-button type="primary" @click="add">报价</el-button>
<el-button type="primary" @click="exportChange">导出</el-button> <el-button type="primary" @click="exportChange">导出</el-button>
<el-button type="danger" @click="del">删除</el-button> <el-button type="danger" @click="del">删除</el-button>
</div> </div>
...@@ -67,9 +65,13 @@ ...@@ -67,9 +65,13 @@
</div> </div>
<!--列表区--> <!--列表区-->
<div class="data-box"> <div class="data-box">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange" @row-click="rowClick" highlight-current-row>
<el-table-column type="selection" width="40" align="center"></el-table-column> <el-table-column type="selection" width="40" align="center" fixed></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="inquiry_sn" label="询价单号" width="160" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<a class="alink" href="javascript:;">{{ scope.row.inquiry_sn }}</a>
</template>
</el-table-column>
<el-table-column prop="goods_name" label="型号" width="160" :show-overflow-tooltip="true" align="center"> <el-table-column prop="goods_name" label="型号" width="160" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="p-copy"> <div class="p-copy">
...@@ -78,9 +80,9 @@ ...@@ -78,9 +80,9 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="brand_name" label="品牌" width="150" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="brand_name" label="品牌" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="inquiry_number" label="数量" width="80" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="inquiry_number" label="数量" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="batch" label="批次" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="batch" label="批次" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="delivery_time" label="交货日期" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="delivery_time" label="交货日期" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="quote_num" label="报价数" width="80" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="quote_num" label="报价数" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="i_status" label="状态" width="100" :show-overflow-tooltip="true" align="center"> <el-table-column prop="i_status" label="状态" width="100" :show-overflow-tooltip="true" align="center">
...@@ -91,25 +93,32 @@ ...@@ -91,25 +93,32 @@
<span v-else-if="scope.row.i_status==-1" class="f-red1">已关闭</span> <span v-else-if="scope.row.i_status==-1" class="f-red1">已关闭</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="猎芯采购员" width="100" :show-overflow-tooltip="true" align="center"> <el-table-column prop="buyer_info" label="猎芯采购员" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover placement="bottom" title="采购员联系方式" width="200" trigger="click"> <el-popover placement="bottom" title="采购员联系方式" width="200" trigger="hover">
<div class="contact-information"> <div class="contact-information">
<p class="row verCenter"><em>电话:</em><span>13512341234</span></p> <p class="row verCenter"><em>电话:</em><span>{{ scope.row.buyer_info.mobile }}</span></p>
<p class="row verCenter"><em>邮箱:</em><span>lx@ichunt.com</span></p> <p class="row verCenter"><em>邮箱:</em><span>{{ scope.row.buyer_info.email }}</span></p>
</div> </div>
<a slot="reference" href="javascript:;" class="alink">张三</a> <a slot="reference" href="javascript:;" class="alink">{{ scope.row.buyer_info.buyer_name }}</a>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="是否成单" width="80" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="is_purchased_val" label="是否成单" width="80" :show-overflow-tooltip="true" align="center">
<el-table-column prop="" label="客户性质" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="batch" label="来源类型" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>历史成单</span> <!--未成单-->
<span v-if="scope.row.is_purchased == 0">{{ scope.row.is_purchased_val }}</span>
<!--成单-->
<a v-if="scope.row.is_purchased == 1" class="alink" :href="'/#/orderTrackGoods?inquiry_sn='+scope.row.inquiry_sn">{{ scope.row.is_purchased_val }}</a>
</template>
</el-table-column>
<el-table-column prop="customer_tag" label="客户性质" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="source_from_val" label="来源类型" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span>{{ scope.row.source_from_val }}</span>
<el-tooltip :aa="scope" class="item" effect="dark" placement="top-start"> <el-tooltip :aa="scope" class="item" effect="dark" placement="top-start">
<i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i> <i class="el-icon-question" style="color:#ff7e11;margin-left:5px;cursor:pointer;font-size:16px;"></i>
<div slot="content">历史记录有过猎芯采购员跟我司采购过该型号品牌</div> <div slot="content">{{ scope.row.source_from_tips }}</div>
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
...@@ -123,47 +132,434 @@ ...@@ -123,47 +132,434 @@
</el-table> </el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination> <el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div> </div>
<!--报价信息-->
<template v-if="listVisible">
<div style="margin-bottom: 20px;">
<el-radio-group v-model="tabIndex" @change="change(tabIndex)">
<el-radio-button label="0">当前报价</el-radio-button>
<el-radio-button label="1">匹配库存</el-radio-button>
<el-radio-button label="2">历史报价</el-radio-button>
</el-radio-group>
</div>
<!--当前报价-->
<template v-if="tabIndex == 0">
<el-table :data="currentQuotoDataList" border max-height="500" highlight-current-row>
<el-table-column label="操作" width="66" align="center">
<template slot-scope="scope">
<!--待确认-->
<a href="javascript:;" @click="edit(scope.row)" class="row rowCenter verCenter btn-element" v-if="scope.row.status == 7" style="background: #ff7e11">确认</a>
<!--已成单-->
<a href="javascript:;" @click="edit(scope.row)" class="row rowCenter verCenter btn-element" v-else-if="scope.row.status == 3" style="background: #aaaaaa">修改</a>
<!--确认中-->
<a href="javascript:;" @click="edit(scope.row)" class="row rowCenter verCenter btn-element" v-else-if="scope.row.status == 1">修改</a>
</template>
</el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="" label="猎芯采购员" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="brand_name" label="品牌" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="status" label="状态" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">确认中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已成单</span>
<span v-else-if="scope.row.status==4" class="f-red1">已关闭</span>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="price_origin" label="价格" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span>{{ scope.row.price_origin|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="currency" label="币种" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span v-if="scope.row.currency==1">人民币</span>
<span v-else-if="scope.row.currency==2">美元</span>
<span v-else-if="scope.row.currency==3">港币</span>
<span v-else-if="scope.row.currency==4">欧元</span>
<span v-else-if="scope.row.currency==5">英磅</span>
</template>
</el-table-column>
<el-table-column prop="tax_rate" label="税率" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="batch" label="批次" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="mpq" label="最小包装数量" width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span>{{ scope.row.price_other|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="remark" label="备注" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="报价时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
</el-table>
</template>
<!--匹配库存-->
<template v-if="tabIndex == 1">
<el-table :data="matchingskuDataList" border max-height="500" highlight-current-row>
<el-table-column label="操作" width="60" align="center">
<template slot-scope="scope">
<!--待报价和已报价才可以新增报价-->
<template v-if="inquireObj.i_status == 1 || inquireObj.i_status == 2">
<template v-if="scope.row.is_bind != 1">
<a href="javascript:;" @click="addMatchingHistory(scope.row)" class="row rowCenter verCenter btn-element">选择</a>
</template>
<template v-else>
<a class="row rowCenter verCenter btn-element" style="background: #ccc">选择</a>
</template>
</template>
</template>
</el-table-column>
<el-table-column prop="goods_name" label="型号" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="brand_name" label="品牌" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="batch_sn" label="批次" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="mpq" label="标准包装量" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="stock" label="库存数量" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="cn_ladder_price" label="国内含税价" width="120" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope" v-if="scope.row.cn_ladder_price&&scope.row.cn_ladder_price.length>0">
<div class="price-more">
<el-tooltip placement="bottom" effect="light">
<div slot="content">
<div class="boxxrth2021">
<p class="clr" v-for="item in scope.row.cn_ladder_price">
<span class="fl">{{ item.purchases }}+</span>
<span class="fl">&yen;{{ item.price }}</span>
</p>
</div>
</div>
<div class="more-search-btn">查看更多</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="hk_ladder_price" label="香港交货价" width="120" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope" v-if="scope.row.hk_ladder_price&&scope.row.hk_ladder_price.length>0">
<div class="price-more">
<el-tooltip placement="bottom" effect="light">
<div slot="content">
<div class="boxxrth2021">
<p class="clr" v-for="item in scope.row.hk_ladder_price">
<span class="fl">{{ item.purchases }}+</span>
<span class="fl">${{ item.price }}</span>
</p>
</div>
</div>
<div class="more-search-btn">查看更多</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="cn_delivery_time" label="大陆交期" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="hk_delivery_time" label="香港交期" width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="goods_status" label="状态" width="150" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.goods_status==1" class="f-green">上架</el-tag>
<el-tag type="info" v-else-if="scope.row.goods_status==3">下架</el-tag>
</template>
</el-table-column>
</el-table>
</template>
<!--历史报价-->
<template v-if="tabIndex == 2">
<el-table :data="historyDataList" border max-height="500" highlight-current-row>
<el-table-column label="操作" width="60" align="center">
<template slot-scope="scope">
<!--待报价和已报价才可以新增报价-->
<template v-if="inquireObj.i_status == 1 || inquireObj.i_status == 2">
<template v-if="scope.row.is_bind != 1">
<a href="javascript:;" @click="addMatchingHistory(scope.row)" class="row rowCenter verCenter btn-element">选择</a>
</template>
<template v-else>
<a class="row rowCenter verCenter btn-element" style="background: #ccc">选择</a>
</template>
</template>
</template>
</el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="" label="猎芯采购员" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
{{ scope.row.buyer_info.buyer_name }}
</template>
</el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="brand_name" label="品牌" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="status" label="状态" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<el-tag type="info" v-if="scope.row.status==1">比价中</el-tag>
<el-tag type="info" v-else-if="scope.row.status==2">已选中</el-tag>
<el-tag type="info" v-else-if="scope.row.status==3">已确认</el-tag>
<el-tag type="success" v-else-if="scope.row.status==4">已成单</el-tag>
<el-tag type="warning" v-else-if="scope.row.status==5">已关闭</el-tag>
<el-tag type="danger" v-else-if="scope.row.status==9">已删除</el-tag>
<el-tag type="warning" v-else-if="scope.row.status==-1">已撤销</el-tag>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="price_rmb" label="价格" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span>{{ scope.row.price_rmb|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="currency" label="币种" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="tax_rate" label="税率" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="batch" label="批次" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="mpq" label="最小包装数量" width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<span>{{ scope.row.price_other|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="remark" label="备注" width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="报价时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
</el-table>
</template>
</template>
</div> </div>
<Menu/> <Menu/>
<el-dialog title="询价管理日志" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px"> <!--弹窗日志-->
<el-dialog title="询价管理日志" :close-on-click-modal="false" :visible.sync="dialogVisibleLog" width="1000px">
<el-table :data="logs" border max-height="600"> <el-table :data="logs" border max-height="600">
<el-table-column prop="create_time" label="时间" min-width="150" align="center"></el-table-column> <el-table-column prop="create_time" label="时间" min-width="150" align="center"></el-table-column>
<el-table-column prop="message" label="操作说明" min-width="150" align="center"></el-table-column> <el-table-column prop="message" label="操作说明" min-width="150" align="center"></el-table-column>
<el-table-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column> <el-table-column prop="operator" label="操作人" min-width="150" align="center"></el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
<!--弹窗报价-->
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="dialogVisible" width="656px" class="xx">
<div class="dialog-form">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<div class="row bothSide zdypop">
<div class="box">
<el-form-item label="报价型号" prop="goods_name">
<el-input v-model="ruleForm.goods_name" placeholder="请输入型号" :value="ruleForm.goods_name" disabled></el-input>
</el-form-item>
<el-form-item label="报价数量" prop="quote_number">
<el-input v-model="ruleForm.quote_number" placeholder="请输入数量" :value="ruleForm.quote_number"></el-input>
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-select v-model="ruleForm.currency" @change="currentChange">
<el-option label="RMB(人民币)" value="1"></el-option>
<el-option label="USD(美元)" value="2"></el-option>
<el-option label="HKD(港币)" value="3"></el-option>
<el-option label="EUR(欧元)" value="4"></el-option>
<el-option label="GBP(英磅)" value="5"></el-option>
</el-select>
</el-form-item>
<el-form-item label="批次" prop="batch">
<el-popover placement="bottom" width="800" trigger="click" v-model="visible">
<div class="row batch-layer">
<div class="batch-box verCenter">
<div class="title row bothSide verCenter">
<i class="el-icon-arrow-left" @click="prevChange"></i>
<span>年份</span>
<i class="el-icon-arrow-right" @click="nextChange"></i>
</div>
<div class="content row">
<ul class="row year-list">
<li class="row rowCenter verCenter" v-for="(v,indexY) in year" :class="{curr:yearIndex==indexY}" @click="tabChange(indexY,1)">{{ v }}年</li>
</ul>
</div>
<div class="footer-btn row verCenter">
<el-button size="mini" round @click="clear(1,index)">清空</el-button>
<el-button size="mini" round @click="confirm(1,year[yearIndex])">确定</el-button>
</div>
</div>
<div class="batch-box verCenter">
<div class="title row rowCenter verCenter">
<span>第一周期</span>
</div>
<div class="content row">
<ul class="row period-list">
<li class="row rowCenter verCenter" v-for="(v,indexY) in period" :class="{curr:periodIndex==indexY}" @click="tabChange(indexY,2)">{{ v }}</li>
</ul>
</div>
<div class="footer-btn row verCenter">
<el-button size="mini" round @click="clear(1,index)">清空</el-button>
<el-button size="mini" round @click="confirm(2,period[periodIndex])">确定</el-button>
</div>
</div>
<div class="batch-box verCenter">
<div class="title row rowCenter verCenter">
<span>第二周期</span>
</div>
<div class="content row">
<ul class="row period-list">
<li class="row rowCenter verCenter" v-for="(v,indexY) in period" :class="{curr:periodIndexTwo==indexY}" @click="tabChange(indexY,3)">{{ v }}</li>
</ul>
</div>
<div class="footer-btn row verCenter">
<el-button size="mini" round @click="clear(1,index)">清空</el-button>
<el-button size="mini" round @click="confirm(3,period[periodIndexTwo])">确定</el-button>
</div>
</div>
</div>
<el-input slot="reference" v-model="ruleForm.batch" placeholder="请输入D/C" :value="ruleForm.batch"></el-input>
</el-popover>
</el-form-item>
<el-form-item label="最小包装数量">
<el-input v-model="ruleForm.mpq" placeholder="请输入MPQ" :value="ruleForm.mpq"></el-input>
</el-form-item>
<el-form-item label="其他费用" class="updatebox">
<el-input placeholder="" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" v-model="ruleForm.price_other" placeholder="请输入其他费用" :value="ruleForm.price_other"></el-input>
</el-form-item>
</div>
<div class="box">
<el-form-item label="报价品牌" prop="brand_name">
<el-input v-model="ruleForm.brand_name" placeholder="请输入品牌" :value="ruleForm.brand_name" disabled></el-input>
</el-form-item>
<el-form-item label="价格" prop="price_origin">
<el-input v-model="ruleForm.price_origin" placeholder="请输入价格" :value="ruleForm.price_origin"></el-input>
</el-form-item>
<el-form-item label="税率">
<el-input disabled v-model="ruleForm.tax_rate" style="width: 100px" :value="ruleForm.tax_rate">
</el-input>
</el-form-item>
<el-form-item label="货期" prop="delivery_int" class="updatebox">
<el-input placeholder="货期" v-model="ruleForm.delivery_int" :value="ruleForm.delivery_int"></el-input>
<div class="selectdw">
<el-select v-model="ruleForm.delivery_unit_val" placeholder="请选择" class="placehoload">
<el-option label="工作日" value="工作日"></el-option>
<el-option label="周" value="周"></el-option>
</el-select>
</div>
</el-form-item>
<el-form-item label="起订量">
<el-input v-model="ruleForm.moq" placeholder="请输入起订量" :value="ruleForm.moq"></el-input>
</el-form-item>
<el-form-item label="报价有效期" prop="expire_time">
<el-date-picker type="date" placeholder="选择报价有效期" value-format="yyyy-MM-dd" v-model="ruleForm.expire_time" :picker-options="pickerOptions"></el-date-picker>
</el-form-item>
</div>
</div>
<el-form-item label="备注">
<el-input type="textarea" v-model="ruleForm.remark" placeholder="请输入备注"></el-input>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
</div>
</el-dialog>
</section> </section>
</template> </template>
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import Menu from "@/components/menu.vue"; import Menu from "@/components/menu.vue";
import {dateTimeFormate} from "../../filters/formate.js";
import VueClipboard from 'vue-clipboard2' import VueClipboard from 'vue-clipboard2'
import Tool from '../../tool' import Tool from '../../tool'
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn} from 'element-ui' import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Radio, RadioButton, RadioGroup, Select, Table, TableColumn, Tag, Tooltip} from 'element-ui'
import {NODE_ENVS} from "../../ajax"; import {NODE_ENVS} from "../../ajax";
Vue.prototype.$message = Message; Vue.prototype.$message = Message;
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete); Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete).use(Radio).use(RadioGroup).use(RadioButton);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination).use(Popover); Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination).use(Popover).use(Tag).use(Tooltip);
Vue.use(VueClipboard); Vue.use(VueClipboard);
export default { export default {
name: "inquire", name: "inquire",
data() { data() {
return { return {
pickerOptions: {
disabledDate(time) {
return time.getTime() < (Date.now() - (24 * 60 * 60 * 1000));
}
},
title: '新增报价',
tabIndex: 0,
dialogVisible: false,
listVisible: false,
dialogVisibleLog: false,
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
tableData: [], tableData: [],
multipleSelection: [], multipleSelection: [],
dialogVisible: false,
logs: [], logs: [],
formParam: { inquireObj: {},
currentQuotoDataList: [],//当前报价列表
matchingskuDataList: [],//匹配库存列表
historyDataList: [],//历史报价列表
isModify: false,
yearIndex: -1,//年份
periodIndex: -1,//第一周期
periodIndexTwo: -1,//第二周期
pin_obj_id: '',//关联库存id
visible: false,
year: ['2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024'],
period: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54'],
ruleForm: {
inquiry_id: '',
inquiry_sn: '',
inquiry_items_id: '',
quote_id: '',
goods_name: '', goods_name: '',
quote_number: '',
currency: '1',
batch: '',
mpq: '',
price_other: '',
brand_name: '', brand_name: '',
i_status: '', price_origin: '',
date: '' tax_rate: '13%',
delivery_int: '',
delivery_unit_val: '工作日',
delivery_time: '',//delivery_int+delivery_unit_val
moq: '',
expire_time: '',
remark: ''
},
rules: {
goods_name: [{
required: true,
message: '请输入报价型号',
trigger: 'blur'
}],
quote_number: [{
required: true,
message: '请输入报价数量',
trigger: 'blur'
}],
currency: [{
required: true,
message: '请选择币种',
trigger: 'blur'
}],
batch: [{
required: true,
message: '请输入批次',
trigger: 'change'
}],
price_origin: [{
required: true,
message: '请输入价格',
trigger: 'blur'
},],
delivery_int: [{
required: true,
message: '请输入货期',
trigger: 'blur'
}],
expire_time: [{
required: true,
message: '请输入报价有效期',
trigger: 'blur'
}]
},
formParam: {
inquiry_sn: '',//询价单号
goods_name: '',//型号
brand_name: '',//品牌
i_status: '',//状态
is_purchased: '',//是否成功
customer_tag: '',//客户性质
source_from: '',//来源类型
create_time: '',//询价时间
deadline_time: ''//询价有效期
} }
}; };
}, },
...@@ -176,15 +572,15 @@ export default { ...@@ -176,15 +572,15 @@ export default {
}, },
methods: { methods: {
getData() { getData() {
this.$http('get', "/api/inquiry/getlist", { //格式化时间
page: this.page, if (this.formParam.create_time) {
limit: this.limit, this.formParam.create_time = this.formParam.create_time[0] + '~' + this.formParam.create_time[1];
goods_name: this.formParam.goods_name, }
brand_name: this.formParam.brand_name, if (this.formParam.deadline_time) {
start_time: this.formParam.date ? this.formParam.date[0] : '', this.formParam.deadline_time = this.formParam.deadline_time[0] + '~' + this.formParam.deadline_time[1];
end_time: this.formParam.date ? this.formParam.date[1] : '', }
i_status: this.formParam.i_status var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formParam)
}).then(res => { this.$http('get', "/api/inquiry/getlist", params).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
this.total = res.data.total; this.total = res.data.total;
...@@ -196,7 +592,484 @@ export default { ...@@ -196,7 +592,484 @@ export default {
} }
}) })
}, },
//型号 /**
* 报价新增
*/
add() {
if (this.multipleSelection.length != 1) {
this.$message({
showClose: true,
message: '请选择一条询价信息',
type: 'warning'
});
return;
}
if (this.multipleSelection[0].i_status == 1 || this.multipleSelection[0].i_status == 2) {
this.title = '新增报价';
this.dialogVisible = true;
this.isModify = false;//标记新增状态
this.ruleForm.inquiry_sn = this.multipleSelection[0].inquiry_sn;
this.ruleForm.inquiry_id = this.multipleSelection[0].inquiry_id;
this.ruleForm.inquiry_items_id = this.multipleSelection[0].id;
this.ruleForm.goods_name = this.multipleSelection[0].goods_name; //赋值型号
this.ruleForm.brand_name = this.multipleSelection[0].brand_name; //赋值品牌
this.ruleForm.quote_number = '';//清空报价数量
this.ruleForm.price_origin = '';//清空价格
this.ruleForm.currency = '';//清空币种
this.ruleForm.tax_rate = '13%';//恢复税率
this.ruleForm.batch = '';//清空批次
this.ruleForm.delivery_int = '';//清空货期
this.ruleForm.delivery_unit_val = '工作日';//恢复货期默认单位
this.ruleForm.mpq = '';//清空最小包装数量
this.ruleForm.moq = '';//清空起订量
this.ruleForm.price_other = '';//清空其他费用
this.ruleForm.expire_time = '';//清空报价有效期
this.ruleForm.remark = '';//清空备注
this.ruleForm.quote_id = '';//新增的时候不需要quote_id
} else {
this.$message({
showClose: true,
message: '该订单不可报价',
type: 'warning'
});
return;
}
this.$nextTick(() => {
this.$refs['ruleForm'].resetFields();
})
},
/**
* 匹配库存,历史报价新增
*/
addMatchingHistory(row) {
this.title = '新增报价';
this.dialogVisible = true;
this.isModify = false;//标记新增状态
this.ruleForm.inquiry_sn = this.inquireObj.inquiry_sn;
this.ruleForm.inquiry_id = this.inquireObj.inquiry_id;
this.ruleForm.inquiry_items_id = this.inquireObj.id;
/**
* 匹配库存关联goods_id
* 历史报价关联id
*/
if (this.tabIndex == 1) {
this.pin_obj_id = row.goods_id;
} else if (this.tabIndex == 2) {
this.pin_obj_id = row.id;
}
this.ruleForm.goods_name = row.goods_name; //赋值型号
this.ruleForm.brand_name = row.brand_name; //赋值品牌
this.ruleForm.quote_number = '';//清空报价数量
this.ruleForm.price_origin = '';//清空价格
this.ruleForm.currency = '';//清空币种
this.ruleForm.tax_rate = '13%';//恢复税率
this.ruleForm.batch = '';//清空批次
this.ruleForm.delivery_int = '';//清空货期
this.ruleForm.delivery_unit_val = '工作日';//恢复货期默认单位
this.ruleForm.mpq = '';//清空最小包装数量
this.ruleForm.moq = '';//清空起订量
this.ruleForm.price_other = '';//清空其他费用
this.ruleForm.expire_time = '';//清空报价有效期
this.ruleForm.remark = '';//清空备注
this.ruleForm.quote_id = '';//新增的时候不需要quote_id
this.$nextTick(() => {
this.$refs['ruleForm'].resetFields();
})
},
/**
* 编辑修改
*/
edit(row) {
this.title = '修改报价';
this.dialogVisible = true;
this.isModify = true; //标记修改状态
this.ruleForm.inquiry_sn = row.inquiry_sn;
this.ruleForm.inquiry_id = row.inquiry_id;
this.ruleForm.inquiry_items_id = row.inquiry_items_id;
this.ruleForm.quote_id = row.id; //编辑的时候需要
this.ruleForm.goods_name = row.goods_name;//赋值型号
this.ruleForm.brand_name = row.brand_name;//赋值品牌
this.ruleForm.quote_number = row.quote_number;//报价数量
row.price_origin = this.float(row.price_origin);//价格转换
this.ruleForm.price_origin = row.price_origin;//价格
this.ruleForm.currency = row.currency.toString();//币种
this.ruleForm.tax_rate = Number(row.tax_rate) * 100 + '%';//税率
this.ruleForm.batch = row.batch;//批次
this.ruleForm.delivery_int = row.delivery_info.delivery_int; //货期
this.ruleForm.delivery_unit_val = row.delivery_info.delivery_unit_val;//货期单位
this.ruleForm.mpq = row.mpq;//最小包装数量
this.ruleForm.moq = row.moq;//起订量
row.price_other = this.float(row.price_other);//其他费用
this.ruleForm.price_other = row.price_other;//其他费用
this.ruleForm.remark = row.remark;//备注
//报价有效期
if (row.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.ruleForm.expire_time = row.expire_time;
}
},
/**
*报价弹窗提交
* @param formName
*/
submitForm(formName) {
var that = this;
this.$refs[formName].validate((valid) => {
if (valid) {
var params = this.ruleForm;
//转化税率
if (params.tax_rate == '13%') {
params.tax_rate = 0.13;
} else {
params.tax_rate = 0;
}
this.ruleForm.delivery_time = this.ruleForm.delivery_int + this.ruleForm.delivery_unit_val; //拼接货期字段
this.$http('post', "/api/quote/save", params).then(res => {
if (res.code == 0) {
this.$message({
message: '操作成功',
type: 'success',
onClose() {
that.dialogVisible = false;
that.getData();
if (that.tabIndex == 0) {
that.currentQuotoChange();
}
//匹配库存 历史报价需要调用库存关联报价
if (that.tabIndex == 1 || that.tabIndex == 2) {
that.quotePin();
}
}
});
} else {
this.$message({
message: res.msg,
type: 'error'
});
}
}).catch(err => {
this.$message({
message: '网络出现问题',
type: 'error'
});
});
} else {
return false;
}
});
},
/**
* 行点击
* @param row
* @param column
* @param event
*/
rowClick(row, column, event) {
this.tabIndex = 0;
this.listVisible = true;
this.inquireObj = row;
this.currentQuotoChange();
},
/**
* tab切换
* @param index
*/
change(index) {
if (index == 0) {
this.currentQuotoChange();
} else if (index == 1) {
this.matchingskuChange();
} else if (index == 2) {
this.historyChange();
}
},
/**
* 当前报价
*/
currentQuotoChange() {
this.$http('GET', "/api/inquiry/detail", {
inquiry_item_id: this.inquireObj.id
}).then(res => {
if (res.code === 0) {
this.currentQuotoDataList = res.data.quote_list || [];
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
/**
* 匹配库存
*/
matchingskuChange() {
this.$http('GET', "/api/sku/list", {
"goods_name": this.inquireObj.goods_name,
"goods_status/condition": 1,
"goods_status": 1,
}).then(res => {
if (res.code === 0) {
this.matchingskuDataList = res.data.list || [];
//筛选匹配库存的所有goods_id
var ids = res.data.list.map(obj => {
return obj.goods_id;
})
if (ids.length > 0) {
this.checkBind(ids);
}
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
/**
* 历史报价
*/
historyChange() {
this.$http('GET', "/api/quote/history", {
page: 1,
limit: 1000000,
goods_name: this.inquireObj.goods_name,
brand_name: this.inquireObj.brand_name,
inquiry_items_id: this.inquireObj.id
}).then(res => {
if (res.code === 0) {
this.historyDataList = res.data.list || [];
//筛选历史报价的id
var ids = res.data.list.map(obj => {
return obj.id;
})
if (ids.length > 0) {
this.checkBind(ids);
}
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
/**
* 库存关联报价
*/
quotePin() {
var that = this;
this.$http('post', "/api/quote/pin", {
inquiry_items_id: this.inquireObj.id,
pin_type: this.tabIndex == 1 ? 2 : 1, // 1历史报价匹配 2库存匹配
pin_obj_id: this.pin_obj_id
}).then(res => {
if (res.code == 0) {
if (this.tabIndex == 1) {
this.matchingskuChange();
} else if (this.tabIndex == 2) {
this.historyChange();
}
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
})
},
/**
*效验是否已生成报价
*/
checkBind(ids) {
this.$http('get', "/api/quote/checkpinlist", {
inquiry_items_id: this.inquireObj.id,
pin_type: this.tabIndex == 1 ? 2 : 1,// 1历史报价匹配 2库存匹配
pin_obj_ids: ids.join(',')
}).then(res => {
if (res.code === 0) {
if (this.tabIndex == 1) {
//匹配库存
for (let i = 0; i < this.matchingskuDataList.length; i++) {
for (let j = 0; j < res.data.bind_ids.length; j++) {
if (this.matchingskuDataList[i].goods_id == res.data.bind_ids[j]) {
this.matchingskuDataList[i].is_bind = 1;
}
}
}
} else if (this.tabIndex == 2) {
//历史报价
for (let i = 0; i < this.historyDataList.length; i++) {
for (let j = 0; j < res.data.bind_ids.length; j++) {
if (this.historyDataList[i].id == res.data.bind_ids[j]) {
this.historyDataList[i].is_bind = 1;
}
}
}
}
}
})
},
/**
* 格式化数据
* @param value
* @returns {number}
*/
float(value) {
let num = Number(value)
if (num) {
return num
} else {
return 0
}
},
/**
* 前进年份
*/
prevChange() {
this.yearIndex = -1;
let starYear = this.year[0];
let arr = [];
for (let i = 0; i < 15; i++) {
arr.push(starYear - (i + 1))
}
this.year = arr.sort();
},
/**
* 后退年份
*/
nextChange() {
this.yearIndex = -1;
let starYear = this.year[this.year.length - 1] * 1;
let arr = [];
for (let i = 0; i < 15; i++) {
arr.push(starYear + (i + 1))
}
this.year = arr;
},
/**
* 批次年月选择
* @param index
* @param type
*/
tabChange(index, type) {
if (type == 1) {
this.yearIndex = index;
} else if (type == 2) {
this.periodIndex = index;
} else if (type == 3) {
this.periodIndexTwo = index;
}
},
/**
* 批次关闭
* @param type
* @param index
*/
clear(type, index) {
this.visible = false;
this.ruleForm.batch = '';
},
/**
* 批次确定
* @param type
* @param val
* @param index
* @returns {boolean}
*/
confirm(type, val, index) {
if (this.yearIndex == -1) {
this.$message({
message: '请选择年份',
type: 'warning'
});
return false;
}
if (type == 1) {
val = val.toString();
val = val.substring(val.length - 2);
this.ruleForm.batch = val + '+';
} else if (type == 2) {
if (!val) {
this.$message({
message: '请选择第一周期',
type: 'warning'
});
return false;
}
let year = this.year[this.yearIndex].toString();
year = year.substring(year.length - 2);
this.ruleForm.batch = year + val;
} else if (type == 3) {
if (this.periodIndex == -1) {
this.$message({
message: '请选择第一周期',
type: 'warning'
});
return false;
}
if (!val) {
this.$message({
message: '请选择第二周期',
type: 'warning'
});
return false;
}
var one = parseInt(this.period[this.periodIndex]);
var two = parseInt(val);
if (two <= one) {
this.$message({
message: '不可小于第一周期',
type: 'warning'
});
return false;
}
let year = this.year[this.yearIndex].toString();
year = year.substring(year.length - 2);
let period = this.period[this.periodIndex].toString();
period = period.substring(period.length - 2);
val = val.toString();
val = val.substring(val.length - 2);
let prev = year + period;
let next = year + val;
this.ruleForm.batch = prev + '-' + next;
}
this.visible = false;
},
/**
* 税率切换
* @param val
*/
currentChange(val) {
if (val == 1) {
this.ruleForm.tax_rate = '13%';
} else {
this.ruleForm.tax_rate = '0%';
}
},
/**
* 搜索型号
* @param queryString
* @param cb
*/
querySearchAsync(queryString, cb) { querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", { this.$http('get', "/api/search/getspu", {
spu_name: queryString spu_name: queryString
...@@ -217,7 +1090,11 @@ export default { ...@@ -217,7 +1090,11 @@ export default {
} }
}) })
}, },
//品牌 /**
* 搜索品牌
* @param queryString
* @param cb
*/
querySearchAsyncBrand(queryString, cb) { querySearchAsyncBrand(queryString, cb) {
this.$http('get', "/api/brand/get_stand_brand", { this.$http('get', "/api/brand/get_stand_brand", {
brand: queryString brand: queryString
...@@ -238,36 +1115,56 @@ export default { ...@@ -238,36 +1115,56 @@ export default {
} }
}) })
}, },
/**
* 重置
* @param formName
*/
resetForm(formName) { resetForm(formName) {
this.formParam.date = ''; this.formParam.date = '';
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
/**
* 搜索提交
*/
onSubmit() { onSubmit() {
this.page = 1; this.page = 1;
this.getData(); this.getData();
}, },
/**
* chebox选择的数据
* @param val
*/
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
/**
* 分页条数切换
* @param val
*/
handleSizeChange(val) { handleSizeChange(val) {
this.limit = val; this.limit = val;
this.getData(); this.getData();
}, },
/**
* 分页点击切换
* @param val
*/
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
this.getData(); this.getData();
}, },
dateFormat(row, column) { /**
let date = row.create_time; * 获取日志
return dateTimeFormate(date); * @param obj_type
}, * @param obj_id
*/
getLogs(obj_type, obj_id) { getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", { this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type, obj_type: obj_type,
obj_id: obj_id obj_id: obj_id
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.dialogVisible = true; this.dialogVisibleLog = true;
this.logs = res.data.list; this.logs = res.data.list;
} else { } else {
this.$message({ this.$message({
...@@ -277,45 +1174,17 @@ export default { ...@@ -277,45 +1174,17 @@ export default {
} }
}); });
}, },
/**
* 查看日志
* @param row
*/
handleClick(row) { handleClick(row) {
this.getLogs(504, row.supplier_auto_inquiry_id); this.getLogs(504, row.supplier_auto_inquiry_id);
console.log(row); console.log(row);
}, },
detail() { /**
var arr = []; * 导出
if (this.multipleSelection.length == 0) { */
this.$message({
showClose: true,
message: '请至少选择一条询价信息',
type: 'warning'
});
return;
}
if (this.multipleSelection.length > 1) {
this.$message({
showClose: true,
message: '请选择一条询价信息',
type: 'warning'
});
return;
}
if (this.multipleSelection[0].i_status == 1 || this.multipleSelection[0].i_status == 2) {
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
}
this.$router.push({
path: '/inquire/detail?id=' + arr.join(",")
})
} else {
this.$message({
showClose: true,
message: '该订单不可报价',
type: 'warning'
});
return;
}
},
exportChange() { exportChange() {
var arr = []; var arr = [];
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
...@@ -331,6 +1200,10 @@ export default { ...@@ -331,6 +1200,10 @@ export default {
} }
window.location.href = NODE_ENVS + '/api/inquiry/export?ids=' + arr.join(",") + '&token=' + Tool.getCookie('token'); window.location.href = NODE_ENVS + '/api/inquiry/export?ids=' + arr.join(",") + '&token=' + Tool.getCookie('token');
}, },
/**
* 删除
* @returns {boolean}
*/
del() { del() {
var arr = []; var arr = [];
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
...@@ -380,6 +1253,10 @@ export default { ...@@ -380,6 +1253,10 @@ export default {
}); });
} }
}, },
/**
* 复制
* @param e
*/
onCopy(e) { onCopy(e) {
this.$message({ this.$message({
message: '复制成功', message: '复制成功',
......
...@@ -194,7 +194,6 @@ ...@@ -194,7 +194,6 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.price_other|floatZero }}</span> <span>{{ scope.row.price_other|floatZero }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column> <el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column> <el-table-column prop="remark" label="备注" width="200"></el-table-column>
...@@ -795,8 +794,8 @@ export default { ...@@ -795,8 +794,8 @@ export default {
id: arr.join(",") id: arr.join(",")
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other) res.data.quote_info.price_other = this.float(res.data.quote_info.price_other);
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin) res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin);
this.ruleForm.goods_name = res.data.quote_info.goods_name; this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number; this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString(); this.ruleForm.currency = res.data.quote_info.currency.toString();
......
<template>
<section class="store pagex">
<div class="store-con">
<!--列表区-->
<div class="data-box">
<el-table :data="list" border max-height="600">
<el-table-column prop="msg_sn" label="消息名称" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="msg_type" label="消息内容" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="msg_type" label="附件" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div>
</div>
<Menu/>
<el-dialog title="消息详情" :close-on-click-modal="false" :visible.sync="dialogVisible" width="1000px">
<el-descriptions size="medium" border :column="2">
<el-descriptions-item>
<template slot="label">发件人</template>
{{ msgDetail.sender }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">收件人</template>
{{ msgDetail.recipient }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">时间</template>
{{ msgDetail.create_time }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">大小</template>
{{ msgDetail.size }}
</el-descriptions-item>
</el-descriptions>
<p style="margin-top: 20px;padding-bottom: 10px;">{{ msgDetail.content }}</p>
</el-dialog>
</section>
</template>
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {Autocomplete, Button, DatePicker, Descriptions, DescriptionsItem, Dialog, Divider, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn, Tag, Tooltip} from 'element-ui'
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm;
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Tooltip).use(Autocomplete).use(Popover).use(Tag).use(Divider);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination).use(Descriptions).use(DescriptionsItem);
export default {
name: "notice",
data() {
return {
total: 0,
page: 1,
limit: 10,
list: [],
dialogVisible: false,
msgDetail: {}
};
},
created() {
this.getData()
},
methods: {
getData() {
var params = Object.assign({},
{page: this.page, limit: this.limit},
this.formParam,
{start_time: this.formParam.date ? this.formParam.date[0] : ''},
{end_time: this.formParam.date ? this.formParam.date[1] : ''}
);
this.$http('GET', "/api/message/getMsgList", params).then(res => {
if (res.code === 0) {
this.list = res.data.list || [];
this.total = Number(res.data.total) || 0;
} else {
this.$message({
message: res.msg,
type: 'error'
});
}
})
},
getMsgDetail(msg_id) {
this.$http('GET', "/api/message/getMsgDetail", {msg_id: msg_id}).then(res => {
if (res.code === 0) {
this.msgDetail = res.data;
this.dialogVisible = true;
} else {
this.$message({
message: res.msg,
type: 'error'
});
}
})
},
viewChange(index, row) {
this.getMsgDetail(row.id);
},
handleCurrentChange(val) {
this.page = val;
this.getData();
}
},
components: {
Menu
}
};
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -35,8 +35,11 @@ ...@@ -35,8 +35,11 @@
<el-option label="全部收款" value="3"></el-option> <el-option label="全部收款" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="询价单号" prop="inquiry_sn">
<el-input v-model="formInline.inquiry_sn" placeholder="请输入询价单号" @keyup.enter.native="submit" style="width: 193px;"></el-input>
</el-form-item>
<el-form-item label="报价单号" prop="quote_sn"> <el-form-item label="报价单号" prop="quote_sn">
<el-input v-model="formInline.quote_sn" placeholder="请输入号" @keyup.enter.native="submit" style="width: 193px;"></el-input> <el-input v-model="formInline.quote_sn" placeholder="请输入报价单号" @keyup.enter.native="submit" style="width: 193px;"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="订单来源" prop="source_type"> <el-form-item label="订单来源" prop="source_type">
<el-select v-model="formInline.source_type" placeholder="请选择"> <el-select v-model="formInline.source_type" placeholder="请选择">
...@@ -143,6 +146,7 @@ export default { ...@@ -143,6 +146,7 @@ export default {
shipping_status: '', shipping_status: '',
status: '', status: '',
pay_status: '', pay_status: '',
inquiry_sn: '',
quote_sn: '', quote_sn: '',
source_type: '', source_type: '',
}, },
...@@ -151,22 +155,17 @@ export default { ...@@ -151,22 +155,17 @@ export default {
}; };
}, },
created() { created() {
let inquiry_sn = this.$route.query.inquiry_sn;
if (inquiry_sn) {
this.formInline.inquiry_sn = inquiry_sn;
}
this.getData(); this.getData();
}, },
computed: {}, computed: {},
methods: { methods: {
getData() { getData() {
this.$http('post', "/api/purchase/getPurchaseList", { var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline)
page: this.page, this.$http('post', "/api/purchase/getPurchaseList", params).then(res => {
limit: this.limit,
brand_name: this.formInline.brand_name,
goods_name: this.formInline.goods_name,
shipping_status: this.formInline.shipping_status,
status: this.formInline.status,
pay_status: this.formInline.pay_status,
quote_sn: this.formInline.quote_sn,
source_type: this.formInline.source_type,
}).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
this.total = Number(res.data.total) || 0; this.total = Number(res.data.total) || 0;
......
<template>
<section class="goods pagex">
<div class="goods-con">
<!--搜索区-->
<el-form :inline="true" :model="formInline" label-width="80px" ref="formInline">
<el-form-item label="发货单号" prop="stock_in_sn">
<el-input v-model="formInline.stock_in_sn" placeholder="请输入发货单号"></el-input>
</el-form-item>
<el-form-item label="型号" prop="goods_name">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="品牌" prop="brand_name">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="状态" prop="status">
<el-select v-model="formInline.status" placeholder="请选择">
<el-option label="全部" value=""></el-option>
<el-option label="待到货" value="1"></el-option>
<el-option label="完成" value="2"></el-option>
<el-option label="作废" value="-3"></el-option>
</el-select>
</el-form-item>
<el-form-item label="退货时间">
<el-date-picker v-model="formInline.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submit">查询</el-button>
<el-button @click="resetForm('formInline')">重置</el-button>
</el-form-item>
</el-form>
<!--操作区-->
<div class="operation-area row verCenter bothSide">
<div class="operation-button row verCenter">
</div>
<div class="text-tip row verCenter">
<i class="el-icon-warning"></i>
<span>该页面展示的数据为:猎芯客户与我司产生的订单退货数据</span>
</div>
</div>
<!--列表区-->
<div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column prop="stock_in_sn" label="对应发货单" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="stock_in_sn" label="状态" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="out_qty" label="发货数量" min-width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="in_qty" label="退货数量" min-width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="status_val" label="单价" min-width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="shipping_name" label="退货总价" min-width="80" align="center"></el-table-column>
<el-table-column prop="create_name" label="批次" min-width="100" align="center"></el-table-column>
<el-table-column prop="create_time" label="退货时间" width="150" align="center"></el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div>
</div>
<Menu/>
</section>
</template>
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {Autocomplete, Button, DatePicker, Dialog, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Select, Table, TableColumn, Tag} from 'element-ui'
Vue.prototype.$message = Message;
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination);
Vue.use(TableColumn).use(Table).use(Autocomplete).use(Tag).use(DatePicker);
export default {
name: "orderTrackInvoice",
data() {
return {
total: 0,
limit: 10,
page: 1,
dialogVisible: false,
logs: [],
formInline: {
date: '',
stock_in_sn: "",
goods_name: '',
brand_name: '',
status: ''
},
tableData: "",
multipleSelection: [] //选择数据
};
},
created() {
this.getData();
},
computed: {},
methods: {
getData() {
this.$http('post', "/api/purchase/getDeliveryList", {
page: this.page,
limit: this.limit,
stock_in_sn: this.formInline.stock_in_sn,
brand_name: this.formInline.brand_name,
goods_name: this.formInline.goods_name,
status: this.formInline.status,
}).then(res => {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.total) || 0;
} else {
this.$message(res.msg);
}
})
},
/**
* 分页点击切换
* @param val
*/
handleCurrentChange(val) {
this.page = val;
this.getData();
},
/**
* 分页条数切换
* @param val
*/
handleSizeChange(val) {
this.limit = val;
this.getData();
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
getLogs(obj_type, obj_id) {
this.$http('GET', "/api/log/getLogs", {
obj_type: obj_type,
obj_id: obj_id
}).then(res => {
if (res.code === 0) {
this.dialogVisible = true;
this.logs = res.data.list;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
});
},
submit() {
this.page = 1;
this.getData();
},
resetForm(formName) {
this.$refs[formName].resetFields();
},
//取消发货
cancelSend() {
var self = this;
if (this.multipleSelection.length <= 0) {
this.$message({
message: "请勾选数据进行操作",
type: 'warning'
});
return false;
}
let stock_in_ids = [];
stock_in_ids = this.multipleSelection.map(obj => {
return obj.stock_in_id;
})
let source_arr = [];
let status_arr = [];
source_arr = this.multipleSelection.map(obj => {
return obj.source;
})
status_arr = this.multipleSelection.map(obj => {
return obj.status;
})
let source = source_arr.every(ele => ele === 2)
if (source) {
//待入库
let status = status_arr.every(ele => ele === 1)
if (status) {
MessageBox.confirm('确定取消发货吗?', {
type: 'error'
}).then(() => {
this.$http('POST', "/api/purchase/cancelSupDelivery", {stock_in_ids: stock_in_ids.join(',')}).then(res => {
if (res.code == 0) {
this.$message({
message: "操作成功",
type: 'success',
duration: 2000,
onClose() {
self.getData();
}
});
} else {
this.$message({
message: res.msg,
type: 'error'
});
}
})
}).catch(() => {
})
} else {
this.$message({
message: '请选择待入库状态',
type: 'warning'
});
}
} else {
this.$message({
message: '请选择创建人为自己的发货单',
type: 'warning'
});
}
},
//型号
querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", {
spu_name: queryString
}).then(res => {
if (res.code == 0) {
if (res.data.list.length > 0) {
var arrlist_ = res.data.list || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
arr_.push({
value: arrlist_[i]['spu_name']
})
}
cb(arr_);
} else {
cb([]);
}
}
})
},
//品牌
querySearchAsyncBrand(queryString, cb) {
this.$http('get', "/api/brand/get_stand_brand", {
brand: queryString
}).then(res => {
if (res.code == 0) {
if (res.data.list.length > 0) {
var arrlist_ = res.data.list || [];
var arr_ = []
for (var i = 0; i < arrlist_.length; i++) {
arr_.push({
value: arrlist_[i]
})
}
cb(arr_);
} else {
cb([]);
}
}
})
},
},
components: {
Menu
}
};
</script>
<style scoped>
@import "../../assets/css/goods/goods.min.css";
</style>
\ No newline at end of file
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