Commit 9a7397a2 by LJM

修复

parent 523e1a01
......@@ -9,7 +9,7 @@
<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.i_status" placeholder="请选择">
<el-select v-model="formParam.i_status" placeholder="请选择" clearable>
<el-option label="全部" value=""></el-option>
<el-option label="已关闭" value="-1"></el-option>
<el-option label="待报价" value="1"></el-option>
......
......@@ -3,17 +3,17 @@
<div class="quote-con">
<el-form :inline="true" :model="formParam" class="demo-form-inline">
<el-form-item label="报价型号">
<el-autocomplete v-model="formParam.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
<el-autocomplete clearable 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 label="品牌">
<el-autocomplete v-model="formParam.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
<el-autocomplete clearable 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.status" placeholder="请选择">
<el-select v-model="formParam.status" placeholder="请选择" clearable>
<el-option label="确认中" value="1"></el-option>
<el-option label="已选中" value="2"></el-option>
<el-option label="已成单" value="4"></el-option>
<el-option label="已关闭" value="5"></el-option>
<el-option label="已成单" value="3"></el-option>
<el-option label="已关闭" value="4"></el-option>
</el-select>
</el-form-item>
<el-form-item label="最近报价时间">
......@@ -68,10 +68,11 @@
<el-table-column prop="quote_brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status" label="状态" width="100">
<template slot-scope="scope">
<span v-if="scope.row.quote_status==1" class="f-green">确认中</span>
<span v-else-if="scope.row.quote_status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.quote_status==3">已成单</span>
<span v-else-if="scope.row.quote_status==4" class="f-red1">已关闭</span>
<el-tag type="primary" v-if="scope.row.quote_status == 1" disable-transitions>{{ scope.row.quote_status_val }}</el-tag>
<el-tag type="info" v-else-if="scope.row.quote_status == 2" disable-transitions>{{ scope.row.quote_status_val }}</el-tag>
<el-tag type="success" v-else-if="scope.row.quote_status == 3" disable-transitions>{{ scope.row.quote_status_val }}</el-tag>
<el-tag type="danger" v-else-if="scope.row.quote_status == 4" disable-transitions>{{ scope.row.quote_status_val }}</el-tag>
<el-tag type="primary" v-else>{{ scope.row.quote_status_val }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100"></el-table-column>
......@@ -101,13 +102,13 @@
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn, Tooltip} from 'element-ui'
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn, Tooltip,Tag} from 'element-ui'
import {NODE_ENVS} from "../../ajax";
import Tool from '../../tool'
Vue.prototype.$message = Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete).use(Tooltip).use(Popover);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination).use(Tag);
export default {
name: "inquire",
......
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