Browse Source

优化

master
ltlzx 4 years ago
parent
commit
c2cf72ccfa
  1. 8
      src/api/index.js
  2. 4
      src/components/orderDetails/index.vue
  3. 15
      src/components/page/admission/index.vue
  4. 9
      src/components/page/afterService/invoice.vue
  5. 2
      src/components/page/layout/index.vue

8
src/api/index.js

@ -264,3 +264,11 @@ export const downloadInvoice = query => {
params: query params: query
}); });
}; };
//检查是否能够下架
export const whetherOff = query => {
return request({
url: '/admin/goods.Goods/whetherOff',
method: 'get',
params: query
});
};

4
src/components/orderDetails/index.vue

@ -298,7 +298,9 @@
} }
.oreder_content{ .oreder_content{
border: 1px #AAAAAA dashed ; border: 1px #AAAAAA dashed ;
min-height: 422px; /* min-height: 422px; */
height: 422px;
overflow-y: auto;
border-radius: 5px; border-radius: 5px;
padding: 24px 20px; padding: 24px 20px;
/* padding-top: 24px; */ /* padding-top: 24px; */

15
src/components/page/admission/index.vue

@ -63,7 +63,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" @click="OffShelf"> </a-button> <a-button type="primary" class="query_button" @click="OffShelf"> </a-button>
</div> </div>
<a-table :columns="columns" :data-source="data" bordered :pagination="false" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio' }"> <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"> <template slot="goods_status" slot-scope="goods_status">
@ -117,7 +117,7 @@
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 Operation from '../../Operation.vue' import Operation from '../../Operation.vue'
import {getAllDate,getLog,offGoods} from '../../../api/index' import {getAllDate,getLog,offGoods,whetherOff} from '../../../api/index'
export default { export default {
data() { data() {
return{ return{
@ -210,11 +210,18 @@ export default {
}, },
methods:{ methods:{
OffShelf(){ OffShelf(){
// console.info(this.selectedRowKeys) console.info(this.selectedRowKeys)
if(this.selectedRowKeys.length==0){ if(this.selectedRowKeys.length==0){
this.$message.error('请选择要下架的标的'); this.$message.error('请选择要下架的标的');
}else{ }else{
this.visible2=true let data={goods_isli:this.selectedRowKeys[0]}
whetherOff(data).then(res=>{
if(res.code==200){
this.visible2=true
}else{
this.$message.error(res.msg);
}
})
} }
}, },
onSelectChange(selectedRowKeys) { onSelectChange(selectedRowKeys) {

9
src/components/page/afterService/invoice.vue

@ -145,6 +145,7 @@ export default {
{ {
title: '发票编号', title: '发票编号',
dataIndex: 'ticketid', dataIndex: 'ticketid',
width:'120px'
// align:'center' // align:'center'
}, },
{ {
@ -169,7 +170,7 @@ export default {
dataIndex: 'uscc', dataIndex: 'uscc',
// align:'center' // align:'center'
}, },
// { // {
// title: '', // title: '',
// dataIndex: '', // dataIndex: '',
@ -195,6 +196,12 @@ export default {
width:'90px' width:'90px'
// align:'center' // align:'center'
}, },
{
title: '失败原因',
dataIndex: 'ticketApiMessage',
width:'90px'
// align:'center'
},
{ {
title: '操作', title: '操作',
scopedSlots: { customRender: 'operation' }, scopedSlots: { customRender: 'operation' },

2
src/components/page/layout/index.vue

@ -52,7 +52,7 @@
</a-col> --> </a-col> -->
<a-col :span="6" class="query_item"> <a-col :span="6" class="query_item">
<span>委托方/授权方</span> <span>委托方/授权方</span>
<a-input v-model="query1.entrust_name"/> <a-input v-model="query1.entrust_name" placeholder="名称/身份ISLI认证码"/>
</a-col> </a-col>
<a-col :span="6" class="query_item"> <a-col :span="6" class="query_item">
<span>交易品种</span> <span>交易品种</span>

Loading…
Cancel
Save