|
|
@ -47,11 +47,21 @@ |
|
|
<a-select-option value="2">授权</a-select-option> |
|
|
<a-select-option value="2">授权</a-select-option> |
|
|
</a-select> |
|
|
</a-select> |
|
|
</a-col> |
|
|
</a-col> |
|
|
|
|
|
<a-col :span="5" class="query_item"> |
|
|
|
|
|
<span>委托状态:</span> |
|
|
|
|
|
<a-select default-value="" > |
|
|
|
|
|
<a-select-option value="">全部</a-select-option> |
|
|
|
|
|
<a-select-option value="1">委托中</a-select-option> |
|
|
|
|
|
<a-select-option value="2">撤销中</a-select-option> |
|
|
|
|
|
<a-select-option value="2">撤销失败</a-select-option> |
|
|
|
|
|
<a-select-option value="2">撤销成功</a-select-option> |
|
|
|
|
|
</a-select> |
|
|
|
|
|
</a-col> |
|
|
<a-col :span="5" class="query_item query_item2"> |
|
|
<a-col :span="5" class="query_item query_item2"> |
|
|
<span>创建时间:</span> |
|
|
<span>创建时间:</span> |
|
|
<a-range-picker v-model="query.createtime" valueFormat="YYYY-MM-DD"/> |
|
|
<a-range-picker v-model="query.createtime" valueFormat="YYYY-MM-DD"/> |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="14" class="query_item query_item1"> |
|
|
<a-col :span="9" class="query_item query_item1"> |
|
|
<a-space :size="21"> |
|
|
<a-space :size="21"> |
|
|
<a-button type="primary" class="query_button" @click="getAllDate">查 询</a-button> |
|
|
<a-button type="primary" class="query_button" @click="getAllDate">查 询</a-button> |
|
|
<a-button class="query_button" @click="resetQurey">重 置</a-button> |
|
|
<a-button class="query_button" @click="resetQurey">重 置</a-button> |
|
|
@ -62,7 +72,7 @@ |
|
|
<div class="table"> |
|
|
<div class="table"> |
|
|
<div class="table_title"> |
|
|
<div class="table_title"> |
|
|
<span >查询结果</span> |
|
|
<span >查询结果</span> |
|
|
<a-button type="primary" class="query_button">获 取</a-button> |
|
|
<a-button type="primary" class="query_button" @click="getGoods">获 取</a-button> |
|
|
</div> |
|
|
</div> |
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false"> |
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false"> |
|
|
<template slot="goods_status" slot-scope="goods_status"> |
|
|
<template slot="goods_status" slot-scope="goods_status"> |
|
|
@ -103,7 +113,7 @@ |
|
|
import Operation from '../../Operation.vue' |
|
|
import Operation from '../../Operation.vue' |
|
|
import dataSelect from '../../dateSelect/index.vue' |
|
|
import dataSelect from '../../dateSelect/index.vue' |
|
|
import operationRecords from '../../operationRecords/index.vue' |
|
|
import operationRecords from '../../operationRecords/index.vue' |
|
|
import {getAllDate,getLog} from '../../../api/index' |
|
|
import {getAllDate,getLog,manualGetGoods} from '../../../api/index' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return{ |
|
|
return{ |
|
|
@ -167,6 +177,12 @@ export default { |
|
|
scopedSlots:{customRender:'goods_status'}, |
|
|
scopedSlots:{customRender:'goods_status'}, |
|
|
align:'center' |
|
|
align:'center' |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '委托状态', |
|
|
|
|
|
dataIndex: '', |
|
|
|
|
|
// scopedSlots:{customRender:'goods_status'}, |
|
|
|
|
|
align:'center' |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '操作', |
|
|
title: '操作', |
|
|
scopedSlots: { customRender: 'operation' }, |
|
|
scopedSlots: { customRender: 'operation' }, |
|
|
@ -184,6 +200,20 @@ export default { |
|
|
this.getAllDate() |
|
|
this.getAllDate() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
getGoods(){ |
|
|
|
|
|
manualGetGoods().then(res=>{ |
|
|
|
|
|
if(res.code==200){ |
|
|
|
|
|
if(res.data.count==0){ |
|
|
|
|
|
this.$message.success('无新增委托数据'); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$message.success('成功获取'+res.data.count+'个委托数据!'); |
|
|
|
|
|
this.getAllDate() |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$message.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 重置query |
|
|
// 重置query |
|
|
resetQurey(){ |
|
|
resetQurey(){ |
|
|
Object.assign(this.query, this.$options.data().query) |
|
|
Object.assign(this.query, this.$options.data().query) |
|
|
|