Commit a8e00462 by LJM

js

parent 64e9a006
Showing with 327 additions and 597 deletions
...@@ -156,19 +156,15 @@ img { ...@@ -156,19 +156,15 @@ img {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
/* 两侧对齐 */
.bothSide { .bothSide {
justify-content: space-between; justify-content: space-between;
} }
/* 平均分布 */
.avarage { .avarage {
justify-content: space-around; justify-content: space-around;
} }
/* 水平居中 */
.rowCenter { .rowCenter {
justify-content: center; justify-content: center;
} }
/* 垂直居中 */
.verCenter { .verCenter {
align-items: center; align-items: center;
} }
...@@ -201,7 +197,6 @@ body { ...@@ -201,7 +197,6 @@ body {
.f-red1 { .f-red1 {
color: #FC1F00; color: #FC1F00;
} }
/**element-ui 样式重写**/
.el-pagination { .el-pagination {
text-align: right; text-align: right;
margin-top: 20px; margin-top: 20px;
...@@ -209,106 +204,6 @@ body { ...@@ -209,106 +204,6 @@ body {
.pagex { .pagex {
padding: 20px; 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: 202px;
}
.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 ::-webkit-scrollbar {
width: 10px;
height: 10px;
background: transparent;
}
.pagex ::-webkit-scrollbar-track {
background: transparent;
}
.pagex ::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: #c1c1c1;
}
.pagex ::-webkit-scrollbar-thumb:hover {
background-color: #a8a8a8;
}
.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 { .zdypop .el-form-item__label {
color: #333; color: #333;
} }
...@@ -320,17 +215,6 @@ body { ...@@ -320,17 +215,6 @@ body {
background-color: #F1F4FA; background-color: #F1F4FA;
border-color: #F1F4FA; border-color: #F1F4FA;
} }
.el-button--primary {
background: #1969F9;
border-color: #1969F9;
}
.el-cascader-panel {
min-height: 150px;
max-height: 300px;
}
.placehoload .el-input__inner::-webkit-input-placeholder {
color: #333;
}
.el-tooltip__popper { .el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5); box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
border: 1px solid #387FFF !important; border: 1px solid #387FFF !important;
...@@ -471,4 +355,19 @@ body { ...@@ -471,4 +355,19 @@ body {
color: #5e6d82; color: #5e6d82;
line-height: 1.5em; line-height: 1.5em;
} }
::-webkit-scrollbar {
width: 10px;
height: 10px;
background: transparent;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: #c1c1c1;
}
::-webkit-scrollbar-thumb:hover {
background-color: #a8a8a8;
}
/*# sourceMappingURL=common.min.css.map */ /*# sourceMappingURL=common.min.css.map */
\ No newline at end of file
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AACA;EACE,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAA;EACA,UAAA;;AAGF;AACA;AACA;AACA;EACE,eAAA;EACA,YAAA;EACA,wBAAA;;AAGF,KAAK;AACL,KAAK;AACL,KAAK;EACH,eAAA;;AAGF;EACE,yBAAA;EACA,iBAAA;;AAGF;AACA;AACA;EACE,gBAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;EACE,eAAA;EACA,gBAAA;;AAGF;AACA;AACA;EACE,kBAAA;;AAGF;EACE,qBAAA;;AAGF;EACE,YAAA;;AAGF;EACE,QAAA;EACA,WAAA;;AAGF,IAAI;EACF,SAAS,GAAT;EACA,WAAA;EACA,SAAA;EACA,kBAAA;EACA,cAAA;;AAGF;EACE,WAAA;EACA,gBAAA;;AAGF;EACE,YAAA;EACA,gBAAA;;AAGF;EACE,mBAAA;;AAGF;EACE,sBAAA;;AAGF;EACE,sBAAA;;AAIF;EACE,qBAAA;EACA,gBAAA;EACA,OAAA;EACA,sBAAA;EACA,oBAAA;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;EACE,WAAA;EACA,YAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,YAAA;;AAEA,qBAZF,WAYG;AAAD,cAZF,WAYG;AAAQ,qBAZX,WAYY;AAAD,cAZX,WAYY;EACR,cAAA;EACA,mBAAA;EACA,yBAAA;;AAGF,qBAlBF,WAkBG;AAAD,cAlBF,WAkBG;EACC,yBAAA;EACA,WAAA;EACA,mBAAA;;AAEA,qBAvBJ,WAkBG,mBAKE;AAAD,cAvBJ,WAkBG,mBAKE;AAAQ,qBAvBb,WAkBG,mBAKW;AAAD,cAvBb,WAkBG,mBAKW;EACR,WAAA;EACA,mBAAA;EACA,yBAAA;;AAMR;EACE,kBAAA;;AADF,OAGE;EACE,WAAA;EACA,gBAAA;;AALJ,OAQE;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;;AAIJ,iBACE;EACE,UAAA;;AAIJ;EACE,iBAAA;EACA,yBAAA;EACA,kBAAA;EACA,8BAAA;EACA,cAAA;;AALF,UAOE;EACE,eAAA;EACA,cAAA;EACA,kBAAA;;AAIJ;EACE,WAAA;EACA,YAAA;EACA,uBAAA;;AAGF;EACE,uBAAA;;AAGF;EACE,kBAAA;EACA,yBAAA;;AAGF,yBAAyB;EACvB,yBAAA","file":"common.min.css"}
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<a class="item fl" <a class="item fl"
:class="{'scrollsg':rpcg,'act':(JSON.stringify(item)==JSON.stringify({path: $route.path,title: $route.meta.title,query:$route.query}))}" :class="{'scrollsg':rpcg,'act':(JSON.stringify(item)==JSON.stringify({path: $route.path,title: $route.meta.title,query:$route.query}))}"
@click="tabUrl(item)" v-for="item in tabs"> @click="tabUrl(item)" v-for="item in tabs">
<font class="fl">{{item.title}}</font> <font class="fl">{{ item.title }}</font>
<span class="icon iconfont fl" @click.stop="closetab(item.path)"></span> <span class="icon iconfont fl" @click.stop="closetab(item.path)"></span>
</a> </a>
</div> </div>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="login-v fl"> <div class="login-v fl">
<img class="fl" :src="userinfo.avatar||'https://www.ichunt.com/v3/dist/res/home/images/headimg/boy1.png'" <img class="fl" :src="userinfo.avatar||'https://www.ichunt.com/v3/dist/res/home/images/headimg/boy1.png'"
alt=""> alt="">
<div class="fl namex">{{userinfo.contacts_name||'猎芯网用户'}}</div> <div class="fl namex">{{ userinfo.contacts_name || '猎芯网用户' }}</div>
<div class="fl lo-box-drop"> <div class="fl lo-box-drop">
<span class="icon iconfont"></span> <span class="icon iconfont"></span>
<div class="drop-box"> <div class="drop-box">
...@@ -125,6 +125,9 @@ ...@@ -125,6 +125,9 @@
<div class="item" :class="{'act':tabSure==5}"> <div class="item" :class="{'act':tabSure==5}">
<span class="icon iconfont"></span> <span class="icon iconfont"></span>
</div> </div>
<div class="item" :class="{'act':tabSure==6}">
<span class="icon iconfont"></span>
</div>
</div> </div>
<div class="kf-box"> <div class="kf-box">
<el-tooltip placement="left" effect="light"> <el-tooltip placement="left" effect="light">
...@@ -138,14 +141,6 @@ ...@@ -138,14 +141,6 @@
<span>邮箱:</span> <span>邮箱:</span>
<font>vendor@ichunt.com</font> <font>vendor@ichunt.com</font>
</div> </div>
<!-- <div class="itemg">
<span>手机号:</span>
<font></font>
</div>
<div class="itemg">
<span>电话:</span>
<font></font>
</div> -->
<div class="itemg"> <div class="itemg">
<span>QQ:</span> <span>QQ:</span>
<font> <font>
...@@ -177,22 +172,19 @@ ...@@ -177,22 +172,19 @@
<el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button> <el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import Util from "../tool"; import Util from "../tool";
import {Form, FormItem, Input, Menu, MenuItem, Submenu, MenuItemGroup, Message, Dialog, Button, Tooltip} from 'element-ui'
import {Form, FormItem, Input, Menu, MenuItem, Submenu, MenuItemGroup, Message, Dialog, Button, Tooltip} from 'element-ui'
Vue.prototype.$message = Message;
Vue.use(Menu).use(MenuItem).use(MenuItemGroup).use(Submenu).use(Form).use(FormItem).use(Dialog).use(Button).use(Tooltip).use(Input);
Vue.prototype.$message = Message;
Vue.use(Menu).use(MenuItem).use(MenuItemGroup).use(Submenu).use(Form).use(FormItem).use(Dialog).use(Button).use(Tooltip).use(Input);
export default { export default {
name: 'menus', name: 'menus',
props: {}, props: {},
created() { created() {
...@@ -396,11 +388,11 @@ ...@@ -396,11 +388,11 @@
}) })
} }
} }
} }
</script> </script>
<style lang="less"> <style lang="less">
.kf-boxs { .kf-boxs {
width: 200px; width: 200px;
padding: 0 10px; padding: 0 10px;
padding-bottom: 20px; padding-bottom: 20px;
...@@ -424,14 +416,14 @@ ...@@ -424,14 +416,14 @@
margin-top: 20px; margin-top: 20px;
} }
} }
#app { #app {
padding-left: 226px; padding-left: 226px;
padding-top: 56px; padding-top: 56px;
} }
.kf-box { .kf-box {
position: fixed; position: fixed;
right: 0px; right: 0px;
width: 61px; width: 61px;
...@@ -445,9 +437,9 @@ ...@@ -445,9 +437,9 @@
width: 61px; width: 61px;
cursor: pointer; cursor: pointer;
} }
} }
.nav-top { .nav-top {
position: fixed; position: fixed;
left: 0px; left: 0px;
top: 0px; top: 0px;
...@@ -691,9 +683,9 @@ ...@@ -691,9 +683,9 @@
} }
} }
} }
.nav-left2 { .nav-left2 {
width: 62px; width: 62px;
background: #fff; background: #fff;
position: fixed; position: fixed;
...@@ -752,9 +744,9 @@ ...@@ -752,9 +744,9 @@
color: #646B78; color: #646B78;
} }
} }
} }
.nav-left { .nav-left {
width: 226px; width: 226px;
background: #fff; background: #fff;
position: fixed; position: fixed;
...@@ -912,5 +904,5 @@ ...@@ -912,5 +904,5 @@
background: #D2D9E7; background: #D2D9E7;
} }
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="brandxk pagex"> <div class="brandxk pagex">
<div class="brand-con"> <div class="brand-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline"> <el-form :inline="true" :model="formParam" class="demo-form-inline">
<el-form-item label="品牌"> <el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="submit" <el-autocomplete v-model="formParam.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
:fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName">
</el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="关键词"> <el-form-item label="关键词">
<el-input v-model="formInline.keyword" placeholder="请输入关键词" @keyup.enter.native="submit"></el-input> <el-input v-model="formParam.keyword" placeholder="请输入关键词" @keyup.enter.native="submit" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -22,10 +21,8 @@ ...@@ -22,10 +21,8 @@
<a :href="downHref" ref="downs" target="_blank" style="display:none">下载</a> <a :href="downHref" ref="downs" target="_blank" style="display:none">下载</a>
</div> </div>
<div class="data-box th-all" v-if="tableData"> <div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"> <el-table-column fixed type="selection" width="37"></el-table-column>
</el-table-column>
<el-table-column prop="internal_standard_name" label="内部标准名称" min-width="15%"> <el-table-column prop="internal_standard_name" label="内部标准名称" min-width="15%">
</el-table-column> </el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="15%"> <el-table-column prop="brand_name" label="品牌" min-width="15%">
...@@ -37,7 +34,6 @@ ...@@ -37,7 +34,6 @@
<img :src="scope.row.brand_logo" class="brand-img" alt=""> <img :src="scope.row.brand_logo" class="brand-img" alt="">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sku_num" label="型号量" min-width="10%"> <el-table-column prop="sku_num" label="型号量" min-width="10%">
</el-table-column> </el-table-column>
<el-table-column prop="remark" label="品牌备注" min-width="15%"> <el-table-column prop="remark" label="品牌备注" min-width="15%">
...@@ -46,17 +42,14 @@ ...@@ -46,17 +42,14 @@
</el-table-column> </el-table-column>
<el-table-column prop="update_time" label="更新时间" min-width="15%"> <el-table-column prop="update_time" label="更新时间" min-width="15%">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" <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>
@current-change="handleCurrentChange" :current-page="page">
</el-pagination>
</div> </div>
<!--修改品牌弹窗--> <!--修改品牌弹窗-->
<el-dialog title="修改品牌" :visible.sync="dialogVisible" width="1000px"> <el-dialog title="修改品牌" :visible.sync="dialogVisible" width="1000px">
<div class="kc-mask"> <div class="kc-mask">
<el-table :data="updateBranddata" border style="width: 100%"> <el-table :data="updateBranddata" border max-height="600">
<el-table-column prop="brand_name" label="品牌" width="180"> <el-table-column prop="brand_name" label="品牌" width="180">
</el-table-column> </el-table-column>
<el-table-column prop="region" label="地区" width="100"> <el-table-column prop="region" label="地区" width="100">
...@@ -86,34 +79,20 @@ ...@@ -86,34 +79,20 @@
</el-dialog> </el-dialog>
</div> </div>
<Menu /> <Menu/>
</div> </div>
</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 Tool from '../../tool' import Tool from '../../tool'
import { import {Form, FormItem, Select, Option, Input, Button, Table, TableColumn, Message, MessageBox, Dialog, Pagination, Autocomplete} from 'element-ui'
Form,
FormItem, Vue.prototype.$message = Message
Select, Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination).use(Autocomplete)
Option, Vue.use(TableColumn).use(Table)
Input, export default {
Button,
Table,
TableColumn,
Message,
MessageBox,
Dialog,
Pagination,
Autocomplete
} from 'element-ui'
Vue.prototype.$message=Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination).use(
Autocomplete)
Vue.use(TableColumn).use(Table)
export default {
name: "brand", name: "brand",
data() { data() {
...@@ -124,9 +103,8 @@ ...@@ -124,9 +103,8 @@
limit: 10, limit: 10,
page: 1, page: 1,
downHref: "", downHref: "",
formInline: { formParam: {
brand_name: '', brand_name: '',
brand_id: '',
keyword: '' keyword: ''
}, },
disabled: false, disabled: false,
...@@ -135,42 +113,26 @@ ...@@ -135,42 +113,26 @@
multipleSelection: [] multipleSelection: []
}; };
}, },
watch: {
'formInline.brand_name'(val){
if(!val){
this.formInline.brand_id=""
return
}
var arr_=[]
this.brandList=this.brandList||[]
for(var i=0;i<this.brandList.length;i++){
arr_.push(this.brandList[i].value)
}
if(arr_.indexOf(val)==-1){
this.formInline.brand_id=""
}
}
},
created() { created() {
this.getData(); this.getData();
}, },
computed: {},
methods: { methods: {
getData() { getData() {
this.$http('get', "/api/brand/get_brand_list", { this.$http('get', "/api/brand/get_brand_list", {
page: this.page, page: this.page,
limit: this.limit, limit: this.limit,
brand_id: this.formInline.brand_id, brand_id: this.formParam.brand_id,
brand_name: this.formInline.brand_name, brand_name: this.formParam.brand_name,
keyword: this.formInline.keyword, keyword: this.formParam.keyword
}).then(res => { }).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;
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
}, },
...@@ -194,55 +156,58 @@ ...@@ -194,55 +156,58 @@
} }
this.$http('post', "/api/brand/update_brand", arr_).then(res => { this.$http('post', "/api/brand/update_brand", arr_).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message("修改成功"); this.$message({
message: '修改成功',
type: 'success'
});
this.getData() this.getData()
this.dialogVisible = false this.dialogVisible = false
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
}, },
querySearchAsync2(queryString, cb) { //品牌
this.$http('get', "/api/search/getbrand", { querySearchAsyncBrand(queryString, cb) {
brand_name: this.formInline.brand_name this.$http('get', "/api/brand/get_stand_brand", {
brand: queryString
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
var arrlist_ = res.data || []; if (res.data.list.length > 0) {
this.brandList = [] var arrlist_ = res.data.list || [];
this.formInline.brand_id = "" var arr_ = []
for (var i = 0; i < arrlist_.length; i++) { for (var i = 0; i < arrlist_.length; i++) {
this.brandList.push({ arr_.push({
value: arrlist_[i]['brand_name'], value: arrlist_[i]
brand_id: arrlist_[i]['brand_id']
}) })
} }
cb(this.brandList); cb(arr_);
} else {
cb([]);
}
} }
}) })
}, },
handleSelectBrandName(item) {
console.log(this.brandList)
this.formInline.brand_name = item.value;
this.formInline.brand_id = item.brand_id;
},
submit() { submit() {
if(this.formInline.keyword&&this.formInline.keyword.length==1){ if (this.formParam.keyword && this.formParam.keyword.length == 1) {
this.$message("关键词不能少于2个字符"); this.$message("关键词不能少于2个字符");
return return
} }
this.page = 1; this.page = 1;
this.getData(); this.getData();
}, },
downOut() { downOut() {
if (this.disabled) { if (this.disabled) {
this.$message("正在导出中,请不要重复点击"); this.$message("正在导出中,请不要重复点击");
return return
} }
this.$http('post', "/api/brand/export_brand", { this.$http('post', "/api/brand/export_brand", {
brand_id: this.formInline.brand_id, brand_id: this.formParam.brand_id,
brand_name: this.formInline.brand_name, brand_name: this.formParam.brand_name,
keyword: this.formInline.keyword, keyword: this.formParam.keyword,
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.disabled = true this.disabled = true
...@@ -263,7 +228,10 @@ ...@@ -263,7 +228,10 @@
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.disabled = false this.disabled = false
this.$message("导出成功") this.$message({
message: '导出成功',
type: 'success'
});
this.downHref = res.data this.downHref = res.data
setTimeout(() => { setTimeout(() => {
this.$refs.downs.click() this.$refs.downs.click()
...@@ -290,9 +258,7 @@ ...@@ -290,9 +258,7 @@
} }
MessageBox.confirm('确认到删除当前勾选数据吗?', { MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error' type: 'error'
}).then(() => {
})
.then(() => {
this.$http('post', "/api/brand/delete_brand", { this.$http('post', "/api/brand/delete_brand", {
id: arr.join(",") id: arr.join(",")
}).then(res => { }).then(res => {
...@@ -303,10 +269,13 @@ ...@@ -303,10 +269,13 @@
this.$message(res.msg); this.$message(res.msg);
} }
}) })
}).catch(()=>{ }).catch(() => {
}) })
},
handleSizeChange(val) {
this.limit = val;
this.getData();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
...@@ -314,15 +283,14 @@ ...@@ -314,15 +283,14 @@
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val || []; this.multipleSelection = val || [];
console.log(this.multipleSelection)
} }
}, },
components: { components: {
Menu Menu
} }
}; };
</script> </script>
<style scoped> <style scoped>
@import "../../assets/css/goods/brand.min.css"; @import "../../assets/css/goods/brand.min.css";
</style> </style>
\ No newline at end of file
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
<div class="data-box th-all"> <div class="data-box th-all">
<el-table :data="quote_list" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="quote_list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center"></el-table-column> <el-table-column type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="200"></el-table-column> <el-table-column prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column prop="brand_name" label="报价品牌" width="200"></el-table-column> <el-table-column prop="brand_name" label="报价品牌" width="200"></el-table-column>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<el-button type="primary">生成发货单</el-button> <el-button type="primary">生成发货单</el-button>
</div> </div>
<div class="data-box th-all" v-if="tableData"> <div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600"@selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"></el-table-column> <el-table-column fixed type="selection" width="37"></el-table-column>
<el-table-column prop="spu_name" label="订货公司" min-width="15%"></el-table-column> <el-table-column prop="spu_name" label="订货公司" min-width="15%"></el-table-column>
<el-table-column prop="brand_name" label="订单状态" min-width="15%"></el-table-column> <el-table-column prop="brand_name" label="订单状态" min-width="15%"></el-table-column>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<el-button type="primary">取消发货</el-button> <el-button type="primary">取消发货</el-button>
</div> </div>
<div class="data-box th-all" v-if="tableData"> <div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"></el-table-column> <el-table-column fixed type="selection" width="37"></el-table-column>
<el-table-column prop="spu_name" label="发货单号" min-width="15%"></el-table-column> <el-table-column prop="spu_name" label="发货单号" min-width="15%"></el-table-column>
<el-table-column prop="brand_name" label="型号" min-width="15%"></el-table-column> <el-table-column prop="brand_name" label="型号" min-width="15%"></el-table-column>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination); Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination);
Vue.use(TableColumn).use(Table).use(Cascader).use(Autocomplete); Vue.use(TableColumn).use(Table).use(Cascader).use(Autocomplete);
export default { export default {
name: "orderTrackGoods", name: "orderTrackInvoice",
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
</el-form> </el-form>
<div class="data-box th-all" v-if="tableData"> <div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"></el-table-column> <el-table-column fixed type="selection" width="37"></el-table-column>
<el-table-column prop="spu_name" label="发货单号" min-width="15%"></el-table-column> <el-table-column prop="spu_name" label="发货单号" min-width="15%"></el-table-column>
<el-table-column prop="brand_name" label="型号" min-width="15%"></el-table-column> <el-table-column prop="brand_name" label="型号" min-width="15%"></el-table-column>
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<el-option label="处理中" value="2"></el-option> <el-option label="处理中" value="2"></el-option>
<el-option label="已处理" value="3"></el-option> <el-option label="已处理" value="3"></el-option>
<el-option label="失败" value="4"></el-option> <el-option label="失败" value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="更新日期"> <el-form-item label="更新日期">
...@@ -23,19 +22,18 @@ ...@@ -23,19 +22,18 @@
<el-upload class="upload-demo fl" :data="fileData" :action="uploadUrl" :on-change="handleChange" multiple> <el-upload class="upload-demo fl" :data="fileData" :action="uploadUrl" :on-change="handleChange" multiple>
<div class="fl dcg">导入</div> <div class="fl dcg">导入</div>
</el-upload> </el-upload>
<div class="fl dcg long" @click="checkdr">查看导入结果</div> <div class="fl dcg long" @click="checkdr">查看导入结果</div>
<a :href="downHref" ref="downs" target="_blank" style="display:none">下载</a> <a :href="downHref" ref="downs" target="_blank" style="display:none">下载</a>
<a class="fl dcg" :href="downUrl" target="_blank">下载模版</a> <a class="fl dcg" :href="downUrl" target="_blank">下载模版</a>
<div class="fl dcg delbtn" @click="del">删除</div> <div class="fl dcg delbtn" @click="del">删除</div>
</div> </div>
<div class="data-box th-all" v-if="tableData"> <div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"> <el-table-column fixed type="selection" width="37">
</el-table-column> </el-table-column>
<el-table-column label="单号" min-width="20%"> <el-table-column label="单号" min-width="20%">
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="'/#/listDetail?sn='+scope.row.up_sn+'&id='+scope.row.id" class="f-blue">{{scope.row.up_sn}}</a> <a :href="'/#/listDetail?sn='+scope.row.up_sn+'&id='+scope.row.id" class="f-blue">{{ scope.row.up_sn }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="file_name" label="文件名字" min-width="20%"> <el-table-column prop="file_name" label="文件名字" min-width="20%">
...@@ -53,24 +51,22 @@ ...@@ -53,24 +51,22 @@
<el-table-column prop="create_time" label="上传时间" min-width="20%"> <el-table-column prop="create_time" label="上传时间" min-width="20%">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" <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>
@current-change="handleCurrentChange" :current-page="page">
</el-pagination>
</div> </div>
</div> </div>
<Menu /> <Menu/>
</div> </div>
</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 Tool from '../../tool' import Tool from '../../tool'
import { import {
NODE_ENVS NODE_ENVS
} from "../../ajax"; } from "../../ajax";
import { import {
Form, Form,
FormItem, FormItem,
Select, Select,
...@@ -88,11 +84,12 @@ ...@@ -88,11 +84,12 @@
Dialog, Dialog,
Upload, Upload,
Pagination Pagination
} from 'element-ui' } 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.prototype.$message = Message
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Upload) Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Pagination)
export default { Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Upload)
export default {
name: "enter", name: "enter",
data() { data() {
...@@ -100,10 +97,10 @@ ...@@ -100,10 +97,10 @@
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
downHref:"", downHref: "",
uploadUrl: NODE_ENVS + '/api/uploadSku/import', uploadUrl: NODE_ENVS + '/api/uploadSku/import',
fileData:{token:Tool.getCookie('token')}, fileData: {token: Tool.getCookie('token')},
downUrl:NODE_ENVS + '/api/uploadSku/downUploadCsv?token='+Tool.getCookie('token') , downUrl: NODE_ENVS + '/api/uploadSku/downUploadCsv?token=' + Tool.getCookie('token'),
formInline: { formInline: {
status: '', status: '',
date: '' date: ''
...@@ -113,9 +110,9 @@ ...@@ -113,9 +110,9 @@
}; };
}, },
watch: { watch: {
'formInline.date'(val){ 'formInline.date'(val) {
if(!val){ if (!val) {
this.formInline.date=[] this.formInline.date = []
} }
} }
}, },
...@@ -133,11 +130,13 @@ ...@@ -133,11 +130,13 @@
end_time: this.formInline.date[1] end_time: this.formInline.date[1]
}).then(res => { }).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;
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
}, },
...@@ -146,12 +145,14 @@ ...@@ -146,12 +145,14 @@
this.getData(); this.getData();
}, },
handleChange(file, fileList) { handleChange(file, fileList) {
console.log(file.response);
if (!file.response) { if (!file.response) {
return return false;
} }
if (file.response.code === 0) { if (file.response.code === 0) {
this.$message("导入成功") this.$message({
message: '导入成功',
type: 'success'
});
this.page = 1; this.page = 1;
this.getData(); this.getData();
} else { } else {
...@@ -161,14 +162,20 @@ ...@@ -161,14 +162,20 @@
}, },
checkdr() { checkdr() {
if (this.multipleSelection.length > 1) { if (this.multipleSelection.length > 1) {
this.$message("只能选择一条数据导入") this.$message({
message: '只能选择一条数据导入',
type: 'warning'
});
return return
} }
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message("请至少选择一条数据导入") this.$message({
message: '请至少选择一条数据导入',
type: 'warning'
});
return return
} }
this.downHref = NODE_ENVS + '/api/uploadSku/downResult?id=' + this.multipleSelection[0]['id']+'&token='+Tool.getCookie('token') this.downHref = NODE_ENVS + '/api/uploadSku/downResult?id=' + this.multipleSelection[0]['id'] + '&token=' + Tool.getCookie('token')
setTimeout(() => { setTimeout(() => {
this.$refs.downs.click() this.$refs.downs.click()
}, 10) }, 10)
...@@ -176,8 +183,11 @@ ...@@ -176,8 +183,11 @@
}, },
del() { del() {
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
this.$message("请至少选择一条数据") this.$message({
return message: '请至少选择一条数据',
type: 'warning'
});
return;
} }
var arr = []; var arr = [];
for (var i = 0; i < this.multipleSelection.length; i++) { for (var i = 0; i < this.multipleSelection.length; i++) {
...@@ -185,23 +195,30 @@ ...@@ -185,23 +195,30 @@
} }
MessageBox.confirm('确认到删除当前勾选数据吗?', { MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error' type: 'error'
}).then(() => {
})
.then(() => {
this.$http('get', "/api/uploadSku/del", { this.$http('get', "/api/uploadSku/del", {
log_ids: arr.join(",") log_ids: arr.join(",")
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.$message("删除成功"); this.$message({
message: '删除成功',
type: 'success'
});
this.getData() this.getData()
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
}).catch(()=>{ }).catch(() => {
}) })
},
handleSizeChange(val) {
this.limit = val;
this.getData();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
...@@ -209,15 +226,13 @@ ...@@ -209,15 +226,13 @@
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val || []; this.multipleSelection = val || [];
console.log(this.multipleSelection)
} }
}, },
components: { components: {
Menu Menu
} }
}; };
</script> </script>
<style scoped> <style scoped>
@import "../../assets/css/store/enter.min.css"; @import "../../assets/css/store/enter.min.css";
</style> </style>
\ No newline at end of file
<template> <template>
<section class="store pagex"> <section class="store pagex">
<div class="store-con"> <div class="store-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline"> <el-form :inline="true" :model="formParam" class="demo-form-inline">
<el-form-item label="型号"> <el-form-item label="型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号"></el-autocomplete> <el-autocomplete v-model="formParam.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="品牌"> <el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌"></el-autocomplete> <el-autocomplete v-model="formParam.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="formParam.join_inquiry" 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>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">搜索</el-button> <el-button type="primary" @click="onSubmit">搜索</el-button>
...@@ -16,11 +23,11 @@ ...@@ -16,11 +23,11 @@
<el-button type="primary" @click="addBestgoodsChange">新增</el-button> <el-button type="primary" @click="addBestgoodsChange">新增</el-button>
<el-button type="primary" @click="updateBestgoods">修改</el-button> <el-button type="primary" @click="updateBestgoods">修改</el-button>
<el-button type="danger" @click="delBestgoods">删除</el-button> <el-button type="danger" @click="delBestgoods">删除</el-button>
<el-button type="primary">参与询价</el-button> <el-button type="primary" @click="isJoinInquiryChange(1)">参与询价</el-button>
<el-button type="primary">不参与询价</el-button> <el-button type="primary" @click="isJoinInquiryChange(2)">不参与询价</el-button>
</div> </div>
<div class="data-box"> <div class="data-box">
<el-table :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :data="list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"></el-table-column> <el-table-column fixed type="selection" width="37"></el-table-column>
<el-table-column prop="goods_name" label="型号" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="goods_name" label="型号" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="brand_name" label="品牌" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="brand_name" label="品牌" :show-overflow-tooltip="true"></el-table-column>
...@@ -31,7 +38,7 @@ ...@@ -31,7 +38,7 @@
<el-table-column prop="stock_number" label="库存" width="120" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="stock_number" label="库存" width="120" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="join_inquiry_str" label="状态" width="120" :show-overflow-tooltip="true"> <el-table-column prop="join_inquiry_str" label="状态" width="120" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.join_inquiry === 1 ? 'success' : 'primary'" disable-transitions>{{scope.row.join_inquiry_str}}</el-tag> <el-tag :type="scope.row.join_inquiry === 1 ? 'success' : 'primary'" disable-transitions>{{ scope.row.join_inquiry_str }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true"></el-table-column>
...@@ -102,7 +109,7 @@ ...@@ -102,7 +109,7 @@
</div> </div>
<div class="content row"> <div class="content row">
<ul class="row year-list"> <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> <li class="row rowCenter verCenter" v-for="(v,indexY) in year" :class="{curr:yearIndex==indexY}" @click="tabChange(indexY,1)">{{ v }}年</li>
</ul> </ul>
</div> </div>
<div class="footer-btn row verCenter"> <div class="footer-btn row verCenter">
...@@ -116,7 +123,7 @@ ...@@ -116,7 +123,7 @@
</div> </div>
<div class="content row"> <div class="content row">
<ul class="row period-list"> <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> <li class="row rowCenter verCenter" v-for="(v,indexY) in period" :class="{curr:periodIndex==indexY}" @click="tabChange(indexY,2)">{{ v }}</li>
</ul> </ul>
</div> </div>
<div class="footer-btn row verCenter"> <div class="footer-btn row verCenter">
...@@ -130,7 +137,7 @@ ...@@ -130,7 +137,7 @@
</div> </div>
<div class="content row"> <div class="content row">
<ul class="row period-list"> <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> <li class="row rowCenter verCenter" v-for="(v,indexY) in period" :class="{curr:periodIndexTwo==indexY}" @click="tabChange(indexY,3)">{{ v }}</li>
</ul> </ul>
</div> </div>
<div class="footer-btn row verCenter"> <div class="footer-btn row verCenter">
...@@ -217,7 +224,7 @@ ...@@ -217,7 +224,7 @@
</div> </div>
<div class="content row"> <div class="content row">
<ul class="row year-list"> <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> <li class="row rowCenter verCenter" v-for="(v,indexY) in year" :class="{curr:yearIndex==indexY}" @click="tabChange(indexY,1)">{{ v }}年</li>
</ul> </ul>
</div> </div>
<div class="footer-btn row verCenter"> <div class="footer-btn row verCenter">
...@@ -231,7 +238,7 @@ ...@@ -231,7 +238,7 @@
</div> </div>
<div class="content row"> <div class="content row">
<ul class="row period-list"> <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> <li class="row rowCenter verCenter" v-for="(v,indexY) in period" :class="{curr:periodIndex==indexY}" @click="tabChange(indexY,2)">{{ v }}</li>
</ul> </ul>
</div> </div>
<div class="footer-btn row verCenter"> <div class="footer-btn row verCenter">
...@@ -245,7 +252,7 @@ ...@@ -245,7 +252,7 @@
</div> </div>
<div class="content row"> <div class="content row">
<ul class="row period-list"> <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> <li class="row rowCenter verCenter" v-for="(v,indexY) in period" :class="{curr:periodIndexTwo==indexY}" @click="tabChange(indexY,3)">{{ v }}</li>
</ul> </ul>
</div> </div>
<div class="footer-btn row verCenter"> <div class="footer-btn row verCenter">
...@@ -332,7 +339,7 @@ export default { ...@@ -332,7 +339,7 @@ export default {
} }
], ],
updateBestgoodsParam: [], updateBestgoodsParam: [],
formInline: { formParam: {
goods_name: '', goods_name: '',
brand_name: '', brand_name: '',
join_inquiry: '' join_inquiry: ''
...@@ -352,7 +359,7 @@ export default { ...@@ -352,7 +359,7 @@ export default {
updateBestgoods() { updateBestgoods() {
if (this.multipleSelection.length != 1) { if (this.multipleSelection.length != 1) {
this.$message({ this.$message({
message: '请勾选一条数据', message: '请支持修改一条数据',
type: 'warning' type: 'warning'
}); });
return false; return false;
...@@ -549,6 +556,40 @@ export default { ...@@ -549,6 +556,40 @@ export default {
}); });
}, },
//是否参与询价
isJoinInquiryChange(type) {
var self = this;
if (this.multipleSelection.length <= 0) {
this.$message({
message: '请勾选数据',
type: 'warning'
});
return false;
}
var best_goods_ids = this.multipleSelection.map(obj => {
return obj.id;
})
this.$http('post', "/api/bestgoods/isJoinInquiry", {join_inquiry: type, best_goods_ids: best_goods_ids.join(',')}).then(res => {
if (res.code === 0) {
this.$message({
message: res.msg,
type: 'success',
duration: 2000,
onClose() {
self.getData();
}
});
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
})
},
//批次关闭 //批次关闭
clear(type, index) { clear(type, index) {
if (type == 1) { if (type == 1) {
...@@ -697,10 +738,8 @@ export default { ...@@ -697,10 +738,8 @@ export default {
} }
}, },
getData() { getData() {
this.$http('GET', "/api/bestgoods/getBestGoodsList", { var params = Object.assign({}, {page: this.page, limit: this.limit}, this.formParam);
page: this.page, this.$http('GET', "/api/bestgoods/getBestGoodsList", params).then(res => {
limit: this.limit
}).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.list = res.data.list || []; this.list = res.data.list || [];
this.total = Number(res.data.count) || 0; this.total = Number(res.data.count) || 0;
...@@ -709,6 +748,7 @@ export default { ...@@ -709,6 +748,7 @@ export default {
} }
}) })
}, },
//型号
querySearchAsync(queryString, cb) { querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getspu", { this.$http('get', "/api/search/getspu", {
spu_name: queryString spu_name: queryString
...@@ -729,6 +769,7 @@ export default { ...@@ -729,6 +769,7 @@ export default {
} }
}) })
}, },
//品牌
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
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</span> </span>
</div> </div>
<div class="data-box" v-if="tableData"> <div class="data-box" v-if="tableData">
<el-table :data="tableData" border style="width: 100%"> <el-table :data="tableData" border max-height="600">
<el-table-column fixed prop="item_id" label="ID" width="75"> <el-table-column fixed prop="item_id" label="ID" width="75">
</el-table-column> </el-table-column>
<el-table-column prop="status" fixed label="状态" width="120"> <el-table-column prop="status" fixed label="状态" width="120">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico"> <link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>猎芯云芯商家</title> <title>猎芯云芯商家</title>
<link href="http://yunxin.liexindev.net/static/js/0.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/1.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/10.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/11.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/12.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/13.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/14.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/15.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/16.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/17.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/18.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/19.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/2.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/20.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/21.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/22.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/23.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/24.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/25.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/26.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/27.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/28.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/29.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/3.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/30.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/31.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/32.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/33.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/4.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/5.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/6.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/7.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/8.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/9.1663813342121.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/app.1663813342121.js" rel="preload" as="script"></head> <link href="http://yunxin.liexindev.net/static/js/0.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/1.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/10.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/11.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/12.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/13.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/14.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/15.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/16.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/17.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/18.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/19.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/2.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/20.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/21.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/22.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/23.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/24.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/25.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/26.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/27.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/28.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/29.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/3.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/30.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/31.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/32.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/33.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/4.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/5.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/6.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/7.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/8.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/9.1663821732443.js" rel="prefetch"><link href="http://yunxin.liexindev.net/static/js/app.1663821732443.js" rel="preload" as="script"></head>
<body> <body>
<noscript> <noscript>
<strong>网络异常,请稍后加载</strong> <strong>网络异常,请稍后加载</strong>
...@@ -16,5 +16,5 @@ ...@@ -16,5 +16,5 @@
<script> <script>
window.userInfo="" window.userInfo=""
</script> </script>
<script type="text/javascript" src="http://yunxin.liexindev.net/static/js/app.1663813342121.js"></script></body> <script type="text/javascript" src="http://yunxin.liexindev.net/static/js/app.1663821732443.js"></script></body>
</html> </html>
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