Commit c1b4cc22 by 肖康

Merge branch 'master' of http://119.23.72.7/xiaokang/cloudSystem

# Conflicts:
#	src/assets/css/goods/goods.min.css
parents 0bdf731e edf0d0c0
{"version":3,"sources":["goods.less"],"names":[],"mappings":"AAAA,MACI;EACI,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,aAAA;;AALR,MAOI;EACI,eAAA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AACA,MAVJ,YAUK;EACG,mBAAA;;AAlBZ,MAqBI;EACI,gBAAA;EACA,mBAAA;;AAvBR,MAqBI,SAII;EACI,WAAA;EACA,YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,kBAAA;EACA,eAAA;EACA,oBAAA;;AACA,MAhBR,SAII,KAYK;EACG,mBAAA;EACA,eAAA;EACA,WAAA;;AAEJ,MArBR,SAII,KAiBK;EACG,yBAAA;EACA,mBAAA;EACA,cAAA;;AACA,MAzBZ,SAII,KAiBK,OAII;EACG,mBAAA;EACA,WAAA;;AAhDpB,MAqBI,SAkCI;EAEI,YAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,eAAA;EACA,WAAA;;AACA,MA9CR,SAkCI,SAYK;EAEG,mBAAA;EACA,WAAA;;AAtEhB,MA2EI;EACI,UAAA;EACA,UAAA","file":"goods.min.css"}
\ No newline at end of file
.inquireDetail {
.inquiry-information {
position: relative;
height: 162px;
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E5EBF6;
padding-top: 20px;
padding-left: 17px;
margin-bottom: 20px;
&:after {
position: absolute;
top: 20px;
left: 0;
width: 5px;
height: 21px;
background: #1969F9;
content: '';
display: block;
}
.tit {
font-size: 16px;
color: #333333;
font-weight: bold;
}
.input-box {
margin-top: 14px;
margin-bottom: 20px;
.p-text {
font-size: 14px;
color: #333333;
vertical-align: middle;
margin-right: 10px;
}
input {
height: 38px;
background: #F1F4FA;
border-radius: 2px;
vertical-align: middle;
box-sizing: border-box;
text-indent: 12px;
font-size: 14px;
color: #333333;
}
}
.text {
span {
font-size: 16px;
color: #333333;
font-weight: bold;
}
em {
font-size: 16px;
color: #CC8200;
font-weight: bold;
}
}
}
.quote {
position: relative;
padding-top: 20px;
padding-bottom: 20px;
padding-left: 17px;
background: #FFFFFF;
&:after {
position: absolute;
top: 20px;
left: 0;
width: 5px;
height: 21px;
background: #1969F9;
content: '';
display: block;
}
.tit {
font-size: 16px;
color: #333333;
font-weight: bold;
}
.btn-nav {
margin-top: 17px;
margin-bottom: 20px;
.update {
width: 66px;
height: 26px;
line-height: 26px;
text-align: center;
background: #FFEEDD;
border: 1px solid #FF870D;
border-radius: 2px;
color: #FF870D;
font-size: 14px;
cursor: pointer;
width: 66px;
i {
margin-left: 3px;
}
&:hover {
background: #FCA955;
color: #fff;
}
}
.dcg {
width: 66px;
height: 26px;
border-radius: 2px;
text-align: center;
line-height: 26px;
border: 1px solid #1969F9;
background: #E5EEFF;
color: #1969F9;
margin-left: 10px;
font-size: 14px;
transition: all 0.5s;
&:hover {
background: #1969F9;
cursor: pointer;
color: #fff;
}
&.heti {
width: 56px;
background: #fff;
&:hover {
background: #E5EEFF;
color: #1969F9;
}
}
&.xjk {
position: relative;
left: -11px;
border-left: 1px solid #1969F9;
&:hover {
border-left: 1px solid #1969F9;
}
}
&.delbtn {
border: 1px solid #FC1F00;
background: #FFE7E3;
color: #FC1F00;
&:hover {
background: #FF715D;
color: #fff;
}
}
}
.updatex {
width: 66px;
height: 26px;
line-height: 26px;
text-align: center;
background: #FFEEDD;
border: 1px solid #FF870D;
border-radius: 2px;
color: #FF870D;
font-size: 14px;
cursor: pointer;
width: 66px;
&:hover {
background: #FCA955;
color: #fff;
}
}
}
}
.assistant {
padding-top: 3px;
padding-bottom: 20px;
padding-left: 17px;
background: #FFFFFF;
.ic {
width: 248px;
height: 44px;
background: url("../../images/x.png") no-repeat center;
background-size: cover;
display: block;
}
.tab{
border: 1px solid #E5EBF6;
margin-bottom: 10px;
li{
width: 102px;
height: 42px;
background: #F1F4FA;
border-radius: 2px 2px 0px 0px;
font-size: 14px;
color: #646b78;
&.curr{
position: relative;
top: 1px;
background: #FFFFFF;
font-size: 16px;
color: #333333;
border-bottom: 1px solid #FFFFFF;
}
}
}
}
}
\ No newline at end of file
.inquireDetail .inquiry-information {
position: relative;
height: 162px;
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E5EBF6;
padding-top: 20px;
padding-left: 17px;
margin-bottom: 20px;
}
.inquireDetail .inquiry-information:after {
position: absolute;
top: 20px;
left: 0;
width: 5px;
height: 21px;
background: #1969F9;
content: '';
display: block;
}
.inquireDetail .inquiry-information .tit {
font-size: 16px;
color: #333333;
font-weight: bold;
}
.inquireDetail .inquiry-information .input-box {
margin-top: 14px;
margin-bottom: 20px;
}
.inquireDetail .inquiry-information .input-box .p-text {
font-size: 14px;
color: #333333;
vertical-align: middle;
margin-right: 10px;
}
.inquireDetail .inquiry-information .input-box input {
height: 38px;
background: #F1F4FA;
border-radius: 2px;
vertical-align: middle;
box-sizing: border-box;
text-indent: 12px;
font-size: 14px;
color: #333333;
}
.inquireDetail .inquiry-information .text span {
font-size: 16px;
color: #333333;
font-weight: bold;
}
.inquireDetail .inquiry-information .text em {
font-size: 16px;
color: #CC8200;
font-weight: bold;
}
.inquireDetail .quote {
position: relative;
padding-top: 20px;
padding-bottom: 20px;
padding-left: 17px;
background: #FFFFFF;
}
.inquireDetail .quote:after {
position: absolute;
top: 20px;
left: 0;
width: 5px;
height: 21px;
background: #1969F9;
content: '';
display: block;
}
.inquireDetail .quote .tit {
font-size: 16px;
color: #333333;
font-weight: bold;
}
.inquireDetail .quote .btn-nav {
margin-top: 17px;
margin-bottom: 20px;
}
.inquireDetail .quote .btn-nav .update {
height: 26px;
line-height: 26px;
text-align: center;
background: #FFEEDD;
border: 1px solid #FF870D;
border-radius: 2px;
color: #FF870D;
font-size: 14px;
cursor: pointer;
width: 66px;
}
.inquireDetail .quote .btn-nav .update i {
margin-left: 3px;
}
.inquireDetail .quote .btn-nav .update:hover {
background: #FCA955;
color: #fff;
}
.inquireDetail .quote .btn-nav .dcg {
width: 66px;
height: 26px;
border-radius: 2px;
text-align: center;
line-height: 26px;
border: 1px solid #1969F9;
background: #E5EEFF;
color: #1969F9;
margin-left: 10px;
font-size: 14px;
transition: all 0.5s;
}
.inquireDetail .quote .btn-nav .dcg:hover {
background: #1969F9;
cursor: pointer;
color: #fff;
}
.inquireDetail .quote .btn-nav .dcg.heti {
width: 56px;
background: #fff;
}
.inquireDetail .quote .btn-nav .dcg.heti:hover {
background: #E5EEFF;
color: #1969F9;
}
.inquireDetail .quote .btn-nav .dcg.xjk {
position: relative;
left: -11px;
border-left: 1px solid #1969F9;
}
.inquireDetail .quote .btn-nav .dcg.xjk:hover {
border-left: 1px solid #1969F9;
}
.inquireDetail .quote .btn-nav .dcg.delbtn {
border: 1px solid #FC1F00;
background: #FFE7E3;
color: #FC1F00;
}
.inquireDetail .quote .btn-nav .dcg.delbtn:hover {
background: #FF715D;
color: #fff;
}
.inquireDetail .quote .btn-nav .updatex {
height: 26px;
line-height: 26px;
text-align: center;
background: #FFEEDD;
border: 1px solid #FF870D;
border-radius: 2px;
color: #FF870D;
font-size: 14px;
cursor: pointer;
width: 66px;
}
.inquireDetail .quote .btn-nav .updatex:hover {
background: #FCA955;
color: #fff;
}
.inquireDetail .assistant {
padding-top: 3px;
padding-bottom: 20px;
padding-left: 17px;
background: #FFFFFF;
}
.inquireDetail .assistant .ic {
width: 248px;
height: 44px;
background: url("../../images/x.png") no-repeat center;
background-size: cover;
display: block;
}
.inquireDetail .assistant .tab {
border: 1px solid #E5EBF6;
margin-bottom: 10px;
}
.inquireDetail .assistant .tab li {
width: 102px;
height: 42px;
background: #F1F4FA;
border-radius: 2px 2px 0px 0px;
font-size: 14px;
color: #646b78;
}
.inquireDetail .assistant .tab li.curr {
position: relative;
top: 1px;
background: #FFFFFF;
font-size: 16px;
color: #333333;
border-bottom: 1px solid #FFFFFF;
}
/*# sourceMappingURL=inquireDetail.min.css.map */
\ No newline at end of file
{"version":3,"sources":["inquireDetail.less"],"names":[],"mappings":"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","file":"inquireDetail.min.css"}
\ No newline at end of file
...@@ -196,7 +196,7 @@ html, body, #app { ...@@ -196,7 +196,7 @@ html, body, #app {
height: 42px; height: 42px;
line-height: 42px; line-height: 42px;
text-align: center; text-align: center;
background: #1969F9; background: #A1ACC1;
border-radius: 2px; border-radius: 2px;
font-size: 20px; font-size: 20px;
color: #ffffff; color: #ffffff;
......
...@@ -163,7 +163,7 @@ body, ...@@ -163,7 +163,7 @@ body,
height: 42px; height: 42px;
line-height: 42px; line-height: 42px;
text-align: center; text-align: center;
background: #1969F9; background: #A1ACC1;
border-radius: 2px; border-radius: 2px;
font-size: 20px; font-size: 20px;
color: #ffffff; color: #ffffff;
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
</a> </a>
</div> </div>
<div class="user-box fr"> <div class="user-box fr">
<div class="line"></div> <!-- <div class="line"></div>
<a class="msgh fl" href="#"> <a class="msgh fl" href="#">
<span class="icon iconfont"></span> <span class="icon iconfont"></span>
<font>55</font> <font>55</font>
</a> </a>-->
<div class="line"></div> <div class="line"></div>
<a href="#" class="fl"><span class="icon iconfont fl"></span></a> <a href="#" class="fl"><span class="icon iconfont fl"></span></a>
<div class="line"></div> <div class="line"></div>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @param value * @param value
* @returns {string} * @returns {string}
*/ */
export const dateTimeFormate = (value, params) => { export const dateTimeFormate = (value) => {
var time = new Date(value * 1000); var time = new Date(value * 1000);
function timeAdd0(str) { function timeAdd0(str) {
...@@ -21,21 +21,3 @@ export const dateTimeFormate = (value, params) => { ...@@ -21,21 +21,3 @@ export const dateTimeFormate = (value, params) => {
var s = time.getSeconds(); var s = time.getSeconds();
return y + '-' + timeAdd0(m) + '-' + timeAdd0(d) + ' ' + timeAdd0(h) + ':' + timeAdd0(mm) + ':' + timeAdd0(s); return y + '-' + timeAdd0(m) + '-' + timeAdd0(d) + ' ' + timeAdd0(h) + ':' + timeAdd0(mm) + ':' + timeAdd0(s);
} }
export const dateTimeFormate1 = (value, params) => {
var time = new Date(value * 1000);
function timeAdd0(str) {
if (str < 10) {
str = '0' + str;
}
return str
}
var y = time.getFullYear();
var m = time.getMonth() + 1;
var d = time.getDate();
var h = time.getHours();
var mm = time.getMinutes();
var s = time.getSeconds();
return y + '-' + timeAdd0(m) + '-' + timeAdd0(d);
}
...@@ -22,6 +22,14 @@ const routes = [ ...@@ -22,6 +22,14 @@ const routes = [
component: () => import('../views/List/inquire.vue') component: () => import('../views/List/inquire.vue')
}, },
{ {
path: '/inquire/detail',
name: 'InquireDetail',
meta: {
title: '报价详情'
},
component: () => import('../views/List/inquireDetail.vue')
},
{
path: '/quote', path: '/quote',
name: 'Quote', name: 'Quote',
meta: { meta: {
......
...@@ -31,17 +31,17 @@ ...@@ -31,17 +31,17 @@
<el-table-column prop="brand_name" label="品牌" min-width="10%"></el-table-column> <el-table-column prop="brand_name" label="品牌" min-width="10%"></el-table-column>
<el-table-column prop="inquiry_number" label="数量" min-width="10%"></el-table-column> <el-table-column prop="inquiry_number" label="数量" min-width="10%"></el-table-column>
<el-table-column prop="batch" label="批次" min-width="10%"></el-table-column> <el-table-column prop="batch" label="批次" min-width="10%"></el-table-column>
<el-table-column prop="create_time" label="交货日期" min-width="10%"></el-table-column> <el-table-column prop="delivery_time" label="交货日期" min-width="10%"></el-table-column>
<el-table-column prop="status_a" label="状态" min-width="10%"> <el-table-column prop="i_status" label="状态" min-width="10%">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status_a==1" class="f-green">已报价</span> <span v-if="scope.row.i_status==2" class="f-green">已报价</span>
<span v-else-if="scope.row.status_a==2" class="f-yellow1">处理中</span> <span v-else-if="scope.row.i_status==1" class="f-yellow1">待报价</span>
<span v-else-if="scope.row.status_a==3">已处理</span> <span v-else-if="scope.row.i_status==9">已删除</span>
<span v-else-if="scope.row.status_a==4" 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="quote_count" label="报价数" min-width="10%"></el-table-column> <el-table-column prop="quote_num" label="报价数" min-width="10%"></el-table-column>
<el-table-column prop="create_time" label="报价时间" min-width="10%"></el-table-column> <el-table-column prop="create_time" label="报价时间" min-width="10%" :formatter='dateFormat'></el-table-column>
</el-table> </el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"></el-pagination> <el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div> </div>
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
<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 { import {
Form, Form,
FormItem, FormItem,
...@@ -124,7 +125,11 @@ ...@@ -124,7 +125,11 @@
this.page = val; this.page = val;
this.getData(); this.getData();
}, },
detail(){ dateFormat(row, column) {
let date = row.create_time;
return dateTimeFormate(date);
},
detail() {
var arr = []; var arr = [];
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
Message("请至少选择一条询价信息"); Message("请至少选择一条询价信息");
...@@ -136,10 +141,6 @@ ...@@ -136,10 +141,6 @@
Message("请选择一条询价信息"); Message("请选择一条询价信息");
return; return;
} }
}, },
exportChange() { exportChange() {
var arr = []; var arr = [];
...@@ -152,15 +153,8 @@ ...@@ -152,15 +153,8 @@
arr.push(this.multipleSelection[i]['id']) arr.push(this.multipleSelection[i]['id'])
} }
this.$http('get', "/api/inquiry/export", { window.location.href = '/api/inquiry/export?ids=' + arr.join(",");
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
Message("导出成功");
} else {
Message(res.err_msg);
}
})
}, },
del() { del() {
...@@ -171,7 +165,7 @@ ...@@ -171,7 +165,7 @@
} }
for (var i = 0; i < this.multipleSelection.length; i++) { for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id']) arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id'])
} }
MessageBox.confirm('确认到删除当前勾选数据吗?', { MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error' type: 'error'
......
<template>
<section class="inquireDetail pagex">
<div class="inquiry-information boxsiz">
<p class="tit">询价信息</p>
<div class="input-box">
<span class="p-text">型号</span>
<input type="text" placeholder="" value="SD202104060008" style="width: 176px;margin-right: 30px; "/>
<span class="p-text">品牌</span>
<input type="text" placeholder="" value="Sd" style="width: 100px;margin-right: 30px; "/>
<span class="p-text">数量</span>
<input type="text" placeholder="" value="100000" style="width: 100px ;margin-right: 30px;"/>
<span class="p-text">批次</span>
<input type="text" placeholder="" value="21546" style="width: 100px;margin-right: 30px; "/>
<span class="p-text">交货日期</span>
<input type="text" placeholder="" value="2021-10-06" style="width: 100px;margin-right: 30px; "/>
<span class="p-text">询价单号</span>
<input type="text" placeholder="" value="X2021042301032" style="width: 138px "/>
</div>
<p class="text">
<span>状态:</span>
<em>待报价</em>
</p>
</div>
<div class="quote boxsiz">
<p class="tit">询价信息</p>
<div class="btn-nav clr">
<div class="fl dcg" style="margin-left: 0px;">新增</div>
<div class="fl dcg updatex">修改</div>
<div class="fl dcg delbtn">删除</div>
</div>
<div class="data-box th-all">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" min-width="10%"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="10%"></el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="10%"></el-table-column>
<el-table-column prop="inquiry_number" label="数量" min-width="10%"></el-table-column>
<el-table-column prop="batch" label="批次" min-width="10%"></el-table-column>
<el-table-column prop="delivery_time" label="交货日期" min-width="10%"></el-table-column>
<el-table-column prop="i_status" label="状态" min-width="10%">
<template slot-scope="scope">
<span v-if="scope.row.i_status==2" class="f-green">已报价</span>
<span v-else-if="scope.row.i_status==1" class="f-yellow1">待报价</span>
<span v-else-if="scope.row.i_status==9">已删除</span>
<span v-else-if="scope.row.i_status==-1" class="f-red1">已关闭</span>
</template>
</el-table-column>
<el-table-column prop="quote_num" label="报价数" min-width="10%"></el-table-column>
<el-table-column prop="create_time" label="报价时间" min-width="10%"></el-table-column>
</el-table>
</div>
</div>
<div class="assistant">
<i class="ic"></i>
<ul class="tab row verCenter">
<li class="boxsiz row rowCenter verCenter curr">匹配库存</li>
<li class="boxsiz row rowCenter verCenter">历史报价</li>
</ul>
<div class="data-box th-all">
<el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column prop="inquiry_sn" label="询价单号" min-width="10%"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="10%"></el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="10%"></el-table-column>
<el-table-column prop="inquiry_number" label="数量" min-width="10%"></el-table-column>
<el-table-column prop="batch" label="批次" min-width="10%"></el-table-column>
<el-table-column prop="delivery_time" label="交货日期" min-width="10%"></el-table-column>
<el-table-column prop="i_status" label="状态" min-width="10%">
<template slot-scope="scope">
<span v-if="scope.row.i_status==2" class="f-green">已报价</span>
<span v-else-if="scope.row.i_status==1" class="f-yellow1">待报价</span>
<span v-else-if="scope.row.i_status==9">已删除</span>
<span v-else-if="scope.row.i_status==-1" class="f-red1">已关闭</span>
</template>
</el-table-column>
<el-table-column prop="quote_num" label="报价数" min-width="10%"></el-table-column>
<el-table-column prop="create_time" label="报价时间" min-width="10%"></el-table-column>
</el-table>
</div>
</div>
<Menu/>
</section>
</template>
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {
Form,
FormItem,
Select,
Option,
Input,
DatePicker,
Button,
Dropdown,
DropdownMenu,
DropdownItem,
Table,
TableColumn,
Message,
MessageBox,
Dialog,
Pagination
} from 'element-ui'
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination);
export default {
name: "InquireDetail",
data() {
return {
total: 0,
limit: 1,
page: 1,
tableData: [],
multipleSelection: [],
formInline: {
goods_name: '',
brand: '',
date: ''
}
};
},
watch: {},
created() {
this.getData();
},
computed: {},
methods: {
getData() {
this.$http('get', "/api/inquiry/getlist", {
page: this.page,
limit: this.limit,
goods_name: this.formInline.goods_name,
brand: this.formInline.brand,
start_time: this.formInline.date[0],
end_time: this.formInline.date[1]
}).then(res => {
if (res.err_code === 0) {
this.tableData = res.data.list || [];
this.total = res.data.count || 3;
} else {
Message(res.err_msg);
}
})
},
onSubmit() {
this.page = 1;
this.getData();
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
added(){
}
},
components: {
Menu
}
};
</script>
<style scoped>
@import "../../assets/css/list/inquireDetail.min.css";
</style>
\ No newline at end of file
...@@ -42,25 +42,27 @@ ...@@ -42,25 +42,27 @@
<el-table-column prop="inquiry_sn" label="询价单号" width="200"></el-table-column> <el-table-column prop="inquiry_sn" label="询价单号" width="200"></el-table-column>
<el-table-column prop="quote_goods_name" label="报价型号" width="200"></el-table-column> <el-table-column prop="quote_goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column prop="quote_brand_name" label="报价品牌" width="200"></el-table-column> <el-table-column prop="quote_brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status_a" label="状态" width="100"> <el-table-column prop="status" label="状态" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">已报价</span> <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==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已处理</span> <span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==4" class="f-red1">其他失败</span> <span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="是否有效" width="100"></el-table-column> <el-table-column prop="expire_status_val" label="是否有效" width="100"></el-table-column>
<el-table-column prop="quote_number" label="报价数量" width="100"></el-table-column> <el-table-column prop="quote_number" label="报价数量" width="100"></el-table-column>
<el-table-column prop="price_origin" label="价格" width="200"></el-table-column> <el-table-column prop="price_origin" label="价格" width="200"></el-table-column>
<el-table-column prop="currency_val" label="币种" width="100"></el-table-column> <el-table-column prop="currency_val" label="币种" width="100"></el-table-column>
<el-table-column prop="" label="税率" width="100"></el-table-column> <el-table-column prop="tax_rate" label="税率" width="100"></el-table-column>
<el-table-column prop="batch" label="批次" width="100"></el-table-column> <el-table-column prop="batch" label="批次" width="100"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100"></el-table-column> <el-table-column prop="delivery_time" label="货期" width="100"></el-table-column>
<el-table-column prop="" label="最小包装数量" width="150"></el-table-column> <el-table-column prop="mpq" label="最小包装数量" width="150"></el-table-column>
<el-table-column prop="" label="起订量" width="100"></el-table-column> <el-table-column prop="moq" label="起订量" width="100"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="100"></el-table-column> <el-table-column prop="price_other" label="其他费用" width="100"></el-table-column>
<el-table-column prop="effect_days" 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>
<el-table-column prop="create_time" label="最近报价时间" width="200"></el-table-column> <el-table-column prop="create_time" label="最近报价时间" width="200"></el-table-column>
</el-table> </el-table>
...@@ -100,7 +102,7 @@ ...@@ -100,7 +102,7 @@
data() { data() {
return { return {
total: 0, total: 0,
limit: 1, limit: 10,
page: 1, page: 1,
tableData: [], tableData: [],
multipleSelection: [], multipleSelection: [],
...@@ -128,7 +130,7 @@ ...@@ -128,7 +130,7 @@
}).then(res => { }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
this.total = res.data.count || 3; this.total = res.data.total;
} else { } else {
Message(res.err_msg); Message(res.err_msg);
} }
...@@ -156,15 +158,7 @@ ...@@ -156,15 +158,7 @@
arr.push(this.multipleSelection[i]['id']) arr.push(this.multipleSelection[i]['id'])
} }
this.$http('get', "/api/inquiry/export", { window.location.href = '/api/quote/export?ids=' + arr.join(",");
ids: arr.join(",")
}).then(res => {
if (res.err_code === 0) {
Message("导出成功");
} else {
Message(res.err_msg);
}
})
}, },
close() { close() {
...@@ -182,7 +176,7 @@ ...@@ -182,7 +176,7 @@
ids: arr.join(",") ids: arr.join(",")
}).then(res => { }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
Message("删除成功"); Message("关闭成功");
this.getData(); this.getData();
} else { } else {
Message(res.err_msg); Message(res.err_msg);
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
errorClass1: false, errorClass1: false,
errorClass2: false, errorClass2: false,
errorClass3: false, errorClass3: false,
cp: false,
form: { form: {
mobile: '', mobile: '',
password: '', password: '',
...@@ -84,14 +85,18 @@ ...@@ -84,14 +85,18 @@
let obj = newV; let obj = newV;
let myreg = /^[1][3,4,5,7,8][0-9]{9}$/; let myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
if (!this.cp) {
if (obj.captcha || obj.password || obj.mobile) { if (obj.captcha || obj.password || obj.mobile) {
this.errror_text = ''; this.errror_text = '';
this.errorClass1 = false; this.errorClass1 = false;
this.errorClass2 = false; this.errorClass2 = false;
this.errorClass3 = false; this.errorClass3 = false;
}
} else {
this.cp = false;
} }
if (myreg.test(obj.mobile)) { if (myreg.test(obj.mobile)) {
this.active = true; this.active = true;
} else { } else {
...@@ -107,8 +112,10 @@ ...@@ -107,8 +112,10 @@
methods: { methods: {
updateCp() { updateCp() {
this.$http('get', "/auth/cp").then(res => { this.$http('get', "/auth/cp").then(res => {
this.imgSrc = res.data.url.img; if (res.err_code === 0) {
this.form.captcha_key = res.data.url.key; this.imgSrc = res.data.url.img;
this.form.captcha_key = res.data.url.key;
}
}).catch(err => { }).catch(err => {
console.log(err.message); console.log(err.message);
}) })
...@@ -153,7 +160,6 @@ ...@@ -153,7 +160,6 @@
loadingInstance.close(); loadingInstance.close();
if (res.err_code === 0) { if (res.err_code === 0) {
Util.setCookie("token", res.data.api_token, 1); Util.setCookie("token", res.data.api_token, 1);
console.log(this.$route.query.referer)
if (this.$route.query.referer) { if (this.$route.query.referer) {
window.location.href = "/#" + this.$route.query.referer window.location.href = "/#" + this.$route.query.referer
} else { } else {
...@@ -162,6 +168,7 @@ ...@@ -162,6 +168,7 @@
} else if (res.err_code === 102) { } else if (res.err_code === 102) {
this.errror_text = res.err_msg; this.errror_text = res.err_msg;
this.errorClass3 = true; this.errorClass3 = true;
this.cp = true;
this.updateCp(); this.updateCp();
} else { } else {
this.errror_text = res.err_msg; this.errror_text = res.err_msg;
......
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