Commit 0862dceb by LJM

js

parent 07a51ad1
Showing with 50 additions and 13 deletions
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
<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>
...@@ -48,6 +45,19 @@ ...@@ -48,6 +45,19 @@
<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="currency">
<el-select v-model="formInline.currency" placeholder="全部" clearable>
<el-option label="全部" value=""></el-option>
<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="创建时间">
<el-date-picker v-model="create_time_val" 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-button type="primary" @click="submit">查询</el-button> <el-button type="primary" @click="submit">查询</el-button>
<el-button @click="resetForm('formInline')">重置</el-button> <el-button @click="resetForm('formInline')">重置</el-button>
...@@ -68,12 +78,14 @@ ...@@ -68,12 +78,14 @@
<div class="data-box th-all" v-if="tableData"> <div class="data-box th-all" v-if="tableData">
<el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange"> <el-table :data="tableData" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="40" align="center"></el-table-column> <el-table-column fixed type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="currency_val" label="订单号" width="60" align="center"></el-table-column> <el-table-column prop="purchase_sn" label="订单号" width="200" align="center" :show-overflow-tooltip="true">
<el-table-column label="订货公司" min-width="160" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a :href="'/#/orderTrackGoodsDetail?purchase_id='+scope.row.purchase_id" class="f-blue">{{ scope.row.company_name }}</a> <a :href="'/#/orderTrackGoodsDetail?purchase_id='+scope.row.purchase_id" class="alink">{{ scope.row.purchase_sn }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="company_name" label="订货公司" min-width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="currency_val" label="币种" min-width="60" align="center"></el-table-column>
<el-table-column prop="purchase_amount" label="订单金额" min-width="110" align="center"></el-table-column>
<el-table-column prop="status_val" label="订单状态" min-width="80" align="center"> <el-table-column prop="status_val" label="订单状态" min-width="80" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.status_val == '待提审'" disable-transitions>{{ scope.row.status_val }}</el-tag> <el-tag type="primary" v-if="scope.row.status_val == '待提审'" disable-transitions>{{ scope.row.status_val }}</el-tag>
...@@ -84,7 +96,7 @@ ...@@ -84,7 +96,7 @@
<el-tag type="primary" v-else>{{ scope.row.status_val }}</el-tag> <el-tag type="primary" v-else>{{ scope.row.status_val }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="pay_name" label="对方付款方式" min-width="100" align="center"></el-table-column> <el-table-column prop="pay_name" label="猎芯付款方式" min-width="80" align="center"></el-table-column>
<el-table-column prop="pay_status_val" label="收款状态" min-width="85" align="center"> <el-table-column prop="pay_status_val" label="收款状态" min-width="85" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.pay_status_val == '待付款'" disable-transitions>{{ scope.row.pay_status_val }}</el-tag> <el-tag type="primary" v-if="scope.row.pay_status_val == '待付款'" disable-transitions>{{ scope.row.pay_status_val }}</el-tag>
...@@ -99,10 +111,26 @@ ...@@ -99,10 +111,26 @@
<el-tag type="success" v-if="scope.row.shipping_status_val == '全部发货'" disable-transitions>{{ scope.row.shipping_status_val }}</el-tag> <el-tag type="success" v-if="scope.row.shipping_status_val == '全部发货'" disable-transitions>{{ scope.row.shipping_status_val }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="currency_val" label="币种" min-width="60" align="center"></el-table-column> <el-table-column prop="buyer_name" label="订单人员" width="100" align="center">
<el-table-column prop="purchase_amount" label="订单金额" min-width="110" align="center"></el-table-column> <template slot-scope="scope">
<el-table-column prop="purchase_name" label="订单人员" width="100" align="center"></el-table-column> <el-popover placement="bottom" title="订单人员" width="200" trigger="hover">
<el-table-column prop="source_type" label="订单来源" width="100" align="center"></el-table-column> <div class="contact-information">
<p class="row verCenter"><em>电话:</em><span>{{ scope.row.buyer_info.mobile }}</span></p>
<p class="row verCenter"><em>邮箱:</em><span>{{ scope.row.buyer_info.email }}</span></p>
</div>
<a slot="reference" href="javascript:;" class="alink">{{ scope.row.buyer_info.buyer_name }}</a>
</el-popover>
</template>
</el-table-column>
<el-table-column prop="source_type" label="订单来源" width="100" align="center">
<template slot-scope="scope">
<span>{{ scope.row.source_type }}</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">{{ scope.row.source_type_tips }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="create_time" label="创建时间" width="150" align="center"></el-table-column> <el-table-column prop="create_time" label="创建时间" width="150" align="center"></el-table-column>
<el-table-column fixed="right" label="操作" width="110" align="center"> <el-table-column fixed="right" label="操作" width="110" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -126,11 +154,11 @@ ...@@ -126,11 +154,11 @@
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import Menu from "@/components/menu.vue"; import Menu from "@/components/menu.vue";
import {Autocomplete, Button, Cascader, DatePicker, Dialog, Form, FormItem, Input, Message, Option, Pagination, Select, Table, TableColumn, Tag} from 'element-ui' import {Autocomplete, Button, Cascader, DatePicker, Dialog, Form, FormItem, Input, Message, Option, Pagination, Popover, Select, Table, TableColumn, Tag} from 'element-ui'
Vue.prototype.$message = Message; Vue.prototype.$message = Message;
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).use(DatePicker).use(Tag); Vue.use(TableColumn).use(Table).use(Cascader).use(Autocomplete).use(DatePicker).use(Tag).use(Popover);
export default { export default {
name: "orderTrackGoods", name: "orderTrackGoods",
data() { data() {
...@@ -140,6 +168,7 @@ export default { ...@@ -140,6 +168,7 @@ export default {
page: 1, page: 1,
dialogVisible: false, dialogVisible: false,
logs: [], logs: [],
create_time_val: '',
formInline: { formInline: {
goods_name: '', goods_name: '',
brand_name: '', brand_name: '',
...@@ -149,6 +178,8 @@ export default { ...@@ -149,6 +178,8 @@ export default {
inquiry_sn: '', inquiry_sn: '',
quote_sn: '', quote_sn: '',
source_type: '', source_type: '',
currency: '',
create_time: ''
}, },
tableData: "", tableData: "",
multipleSelection: [] multipleSelection: []
...@@ -164,6 +195,12 @@ export default { ...@@ -164,6 +195,12 @@ export default {
computed: {}, computed: {},
methods: { methods: {
getData() { getData() {
//格式化时间
if (this.create_time_val) {
this.formInline.create_time = this.create_time_val[0] + '~' + this.create_time_val[1];
} else {
this.formInline.create_time = '';
}
var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline) var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline)
this.$http('post', "/api/purchase/getPurchaseList", params).then(res => { this.$http('post', "/api/purchase/getPurchaseList", params).then(res => {
if (res.code === 0) { if (res.code === 0) {
......
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