|
|
|
@ -8,19 +8,19 @@ |
|
|
|
<div class="body"> |
|
|
|
<div class="query"> |
|
|
|
<a-row justify="space-between" > |
|
|
|
<a-col :span="5" class="query_item"> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>ISLI标识码:</span> |
|
|
|
<a-input v-model="query.islicode"/> |
|
|
|
</a-col> |
|
|
|
<a-col :span="5" class="query_item"> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>标的名称:</span> |
|
|
|
<a-input v-model="query.goods_name"/> |
|
|
|
</a-col> |
|
|
|
<a-col :span="5" class="query_item"> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>委托方:</span> |
|
|
|
<a-input v-model="query.entrust_name"/> |
|
|
|
</a-col> |
|
|
|
<a-col :span="5" class="query_item" > |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item" > |
|
|
|
<span>标的类型:</span> |
|
|
|
<a-select default-value="" v-model="query.goods_type"> |
|
|
|
<a-select-option value="">全部</a-select-option> |
|
|
|
@ -28,7 +28,7 @@ |
|
|
|
<a-select-option value="2">文化数字内容</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-col> |
|
|
|
<a-col :span="4" class="query_item" > |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item" > |
|
|
|
<span>数据状态:</span> |
|
|
|
<a-select default-value="" v-model="query.data_type"> |
|
|
|
<a-select-option value="">全部文化数据</a-select-option> |
|
|
|
@ -38,7 +38,7 @@ |
|
|
|
<a-select-option value="4">已失效文化数据</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-col> |
|
|
|
<a-col :span="5" class="query_item"> |
|
|
|
<a-col :lg="8" :xl="8" :xxl="6" class="query_item"> |
|
|
|
<span>交易方式:</span> |
|
|
|
<a-select default-value="" v-model="query.goods_entrust"> |
|
|
|
<a-select-option value="">全部</a-select-option> |
|
|
|
@ -46,11 +46,11 @@ |
|
|
|
<a-select-option value="2">授权</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-col> |
|
|
|
<a-col :span="5" class="query_item query_item2"> |
|
|
|
<a-col :lg="12" :xl="12" :xxl="6" class="query_item query_item2"> |
|
|
|
<span>创建时间:</span> |
|
|
|
<a-range-picker v-model="query.createtime" valueFormat="YYYY-MM-DD"/> |
|
|
|
</a-col> |
|
|
|
<a-col :span="14" class="query_item query_item1"> |
|
|
|
<a-col :lg="12" :xl="12" :xxl="6" class="query_item query_item1"> |
|
|
|
<a-space :size="21"> |
|
|
|
<a-button type="primary" class="query_button" @click="getAllDate(1)">查 询</a-button> |
|
|
|
<a-button class="query_button" @click="resetQurey">重 置</a-button> |
|
|
|
@ -61,9 +61,9 @@ |
|
|
|
<div class="table"> |
|
|
|
<div class="table_title"> |
|
|
|
<span>查询结果</span> |
|
|
|
<a-button type="primary" class="query_button" @click="getGoods">下 架</a-button> |
|
|
|
<a-button type="primary" class="query_button" @click="OffShelf">下 架</a-button> |
|
|
|
</div> |
|
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"> |
|
|
|
<a-table :columns="columns" :data-source="data" bordered :pagination="false" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio' }"> |
|
|
|
<template slot="goods_status" slot-scope="goods_status"> |
|
|
|
<span>{{goods_status==1?'上架中':goods_status==2?'下架中':goods_status==3?'已转让':'已失效'}}</span> |
|
|
|
</template> |
|
|
|
@ -97,6 +97,18 @@ |
|
|
|
</div> |
|
|
|
<dataSelect :visible.sync="visible" v-if="visible" :goods_islicode="goods_islicode" :type="0"></dataSelect> |
|
|
|
<operationRecords :visible.sync="visible1" :logDate="logDate" ></operationRecords> |
|
|
|
<!-- 下架原因 --> |
|
|
|
<a-modal v-model="visible2" title="下架原因" width="500px" :bodyStyle="modeStyle"> |
|
|
|
<div> |
|
|
|
<a-textarea v-model="reason" placeholder="请输入下架原因" :autoSize="{ minRows: 5, maxRows: 10 }"/> |
|
|
|
</div> |
|
|
|
<template slot="footer"> |
|
|
|
<div> |
|
|
|
<a-button type="white" @click="visible2=false">取 消</a-button> |
|
|
|
<a-button type="primary" @click="getGoods">下 架</a-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</a-modal> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
@ -120,6 +132,11 @@ export default { |
|
|
|
logDate:[], |
|
|
|
visible:false, |
|
|
|
visible1:false, |
|
|
|
visible2:false, |
|
|
|
reason:'', |
|
|
|
modeStyle:{ |
|
|
|
'min-height':'200px' |
|
|
|
}, |
|
|
|
pageSizeOptions: ['10', '20', '30', '40', '50'], |
|
|
|
total:500, |
|
|
|
// 当前页数 |
|
|
|
@ -185,10 +202,18 @@ export default { |
|
|
|
this.getAllDate() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
OffShelf(){ |
|
|
|
if(this.selectedRowKeys.length==0){ |
|
|
|
this.$message.error('请选择要下架的标~'); |
|
|
|
}else{ |
|
|
|
this.visible2=true |
|
|
|
} |
|
|
|
}, |
|
|
|
onSelectChange(selectedRowKeys) { |
|
|
|
this.selectedRowKeys = selectedRowKeys; |
|
|
|
}, |
|
|
|
getGoods(){ |
|
|
|
|
|
|
|
let data={goods_isli:this.selectedRowKeys} |
|
|
|
offGoods(data).then(res=>{ |
|
|
|
if(res.code==200){ |
|
|
|
|