|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- table区域-begin -->
|
|
|
|
<div>
|
|
|
|
<a-table
|
|
...
|
...
|
@@ -21,7 +20,13 @@ |
|
|
|
</template>
|
|
|
|
<template slot="imgSlot" slot-scope="text,record">
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
|
|
|
|
<img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
|
|
|
|
<img
|
|
|
|
v-else
|
|
|
|
:src="getImgView(text)"
|
|
|
|
:preview="record.id"
|
|
|
|
height="25px"
|
|
|
|
alt=""
|
|
|
|
style="max-width:80px;font-size: 12px;font-style: italic;"/>
|
|
|
|
</template>
|
|
|
|
<template slot="fileSlot" slot-scope="text">
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
|
|
...
|
...
|
@@ -40,8 +45,8 @@ |
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
|
<a-divider type="vertical" />
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
|
|
<a>删除</a>
|
|
|
|
</a-popconfirm>
|
|
|
|
<a>删除</a>
|
|
|
|
</a-popconfirm>
|
|
|
|
<!-- <a-divider type="vertical" />
|
|
|
|
<a-dropdown>
|
|
|
|
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
|
...
|
...
|
@@ -66,7 +71,7 @@ |
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { getAction,deleteAction } from '@api/manage'
|
|
|
|
import { getAction, deleteAction } from '@api/manage'
|
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
...
|
...
|
@@ -74,14 +79,14 @@ |
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'TblTradeInquiryInfoList',
|
|
|
|
mixins:[JeecgListMixin, mixinDevice],
|
|
|
|
mixins: [JeecgListMixin, mixinDevice],
|
|
|
|
components: {
|
|
|
|
TblTradeInquiryInfoModal
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
record: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data () {
|
|
...
|
...
|
@@ -93,108 +98,103 @@ |
|
|
|
{
|
|
|
|
title: '#',
|
|
|
|
dataIndex: '',
|
|
|
|
key:'rowIndex',
|
|
|
|
width:60,
|
|
|
|
align:"center",
|
|
|
|
customRender:function (t,r,index) {
|
|
|
|
return parseInt(index)+1;
|
|
|
|
key: 'rowIndex',
|
|
|
|
width: 60,
|
|
|
|
align: 'center',
|
|
|
|
customRender: function (t, r, index) {
|
|
|
|
return parseInt(index) + 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'供货商名称',
|
|
|
|
align:"center",
|
|
|
|
title: '供货商名称',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'ghsmc'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title:'电话',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'tel'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title:'网络链接地址',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'wldz'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title:'微信号',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'wxh'
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
title:'电话',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'tel'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'网络链接地址',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'wldz'
|
|
|
|
title: '专票单价',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'zpdj'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'微信号',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'wxh'
|
|
|
|
title: '专票税率(%)',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'zpsl'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'单价(元)',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'dj'
|
|
|
|
title: '普票单价',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'ppdj'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'总价(元)',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'zj'
|
|
|
|
title: '普票税率(%)',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'ppsl'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'票据',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'piaoju'
|
|
|
|
title: '无票单价',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'wpdj'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'票据税额比例',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'pjsebl'
|
|
|
|
title: '是否含运费',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'sfhyf'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'最小出货量',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'zxchl'
|
|
|
|
title: '运费',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'yf'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'L/T(交货周期天)',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'jhzqt'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'发货地址',
|
|
|
|
align:"center",
|
|
|
|
title: '发货地址',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'fhdz'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'单价是否含运费',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'djsfhyf'
|
|
|
|
title: '最小出货量',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'zxchl'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'含运费单价',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'hyfdj'
|
|
|
|
title: 'L/T(交货周期天)',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'jhzqt'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'价格评价',
|
|
|
|
align:"center",
|
|
|
|
title: '价格评价',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'jgpj'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'含税价格(元)',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'hsjg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'不含税价格(元)',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'bhsjg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'是否需要重新询价',
|
|
|
|
align:"center",
|
|
|
|
title: '是否需要重新询价',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'sfxycxxj',
|
|
|
|
customRender: (text,record)=>{
|
|
|
|
if(text == 'Y'){
|
|
|
|
customRender: (text, record) => {
|
|
|
|
if (text == 'Y') {
|
|
|
|
return '是'
|
|
|
|
}else if(text == 'N'){
|
|
|
|
} else if (text == 'N') {
|
|
|
|
return '否'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'原因/备注',
|
|
|
|
align:"center",
|
|
|
|
title: '原因/备注',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'bz'
|
|
|
|
},
|
|
|
|
// {
|
|
...
|
...
|
@@ -205,34 +205,34 @@ |
|
|
|
{
|
|
|
|
title: '操作',
|
|
|
|
dataIndex: 'action',
|
|
|
|
align:"center",
|
|
|
|
fixed:"right",
|
|
|
|
width:147,
|
|
|
|
align: 'center',
|
|
|
|
fixed: 'right',
|
|
|
|
width: 147,
|
|
|
|
scopedSlots: { customRender: 'action' }
|
|
|
|
}
|
|
|
|
],
|
|
|
|
url: {
|
|
|
|
list: "/trade/tblTradeInquiryInfo/list",
|
|
|
|
delete: "/trade/tblTradeInquiryInfo/delete",
|
|
|
|
deleteBatch: "/trade/tblTradeInquiryInfo/deleteBatch",
|
|
|
|
exportXlsUrl: "/trade/tblTradeInquiryInfo/exportXls",
|
|
|
|
importExcelUrl: "trade/tblTradeInquiryInfo/importExcel",
|
|
|
|
|
|
|
|
list: '/trade/tblTradeInquiryInfo/list',
|
|
|
|
delete: '/trade/tblTradeInquiryInfo/delete',
|
|
|
|
deleteBatch: '/trade/tblTradeInquiryInfo/deleteBatch',
|
|
|
|
exportXlsUrl: '/trade/tblTradeInquiryInfo/exportXls',
|
|
|
|
importExcelUrl: 'trade/tblTradeInquiryInfo/importExcel'
|
|
|
|
|
|
|
|
},
|
|
|
|
dictOptions:{},
|
|
|
|
superFieldList:[],
|
|
|
|
dictOptions: {},
|
|
|
|
superFieldList: []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.getSuperFieldList();
|
|
|
|
this.getSuperFieldList()
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
importExcelUrl: function(){
|
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
|
|
|
},
|
|
|
|
importExcelUrl: function() {
|
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
modalFormOk(){
|
|
|
|
modalFormOk() {
|
|
|
|
this.loadData(this.record)
|
|
|
|
},
|
|
|
|
// handleDelete(id){
|
|
...
|
...
|
@@ -240,42 +240,42 @@ |
|
|
|
// },
|
|
|
|
handleDelete: function (id) {
|
|
|
|
if (!this.url.delete) {
|
|
|
|
this.$message.error("请设置url.delete属性!")
|
|
|
|
this.$message.error('请设置url.delete属性!')
|
|
|
|
return
|
|
|
|
}
|
|
|
|
var that = this;
|
|
|
|
var that = this
|
|
|
|
deleteAction(that.url.delete, { id: id }).then((res) => {
|
|
|
|
if (res.success) {
|
|
|
|
that.$message.success(res.message);
|
|
|
|
that.$message.success(res.message)
|
|
|
|
that.loadData(that.record)
|
|
|
|
} else {
|
|
|
|
that.$message.warning(res.message);
|
|
|
|
that.$message.warning(res.message)
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
initDictConfig(){
|
|
|
|
initDictConfig() {
|
|
|
|
},
|
|
|
|
getSuperFieldList(){
|
|
|
|
let fieldList=[];
|
|
|
|
fieldList.push({type:'string',value:'ghsmc',text:'供货商名称',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'tel',text:'电话',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'wldz',text:'网络链接地址',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'wxh',text:'微信号',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'dj',text:'单价(元)',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'zj',text:'总价(元)',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'piaoju',text:'票据',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'pjsebl',text:'票据税额比例',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'zxchl',text:'最小出货量',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'lt',text:'L/T(交货周期天)',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'fhdz',text:'发货地址',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'djsfhyf',text:'单价是否含运费',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'hyfdj',text:'含运费单价',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'jgpj',text:'价格评价',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'hsjg',text:'含税价格(元)',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'bhsjg',text:'不含税价格(元)',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'sfxycxxj',text:'是否需要重新询价',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'bz',text:'原因/备注',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'tradeId',text:'关联招标id',dictCode:''})
|
|
|
|
getSuperFieldList() {
|
|
|
|
let fieldList = []
|
|
|
|
fieldList.push({ type: 'string', value: 'ghsmc', text: '供货商名称', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'tel', text: '电话', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'wldz', text: '网络链接地址', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'wxh', text: '微信号', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'dj', text: '单价(元)', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'zj', text: '总价(元)', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'piaoju', text: '票据', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'pjsebl', text: '票据税额比例', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'zxchl', text: '最小出货量', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'lt', text: 'L/T(交货周期天)', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'fhdz', text: '发货地址', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'djsfhyf', text: '单价是否含运费', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'hyfdj', text: '含运费单价', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'jgpj', text: '价格评价', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'hsjg', text: '含税价格(元)', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'bhsjg', text: '不含税价格(元)', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'sfxycxxj', text: '是否需要重新询价', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'bz', text: '原因/备注', dictCode: '' })
|
|
|
|
fieldList.push({ type: 'string', value: 'tradeId', text: '关联招标id', dictCode: '' })
|
|
|
|
this.superFieldList = fieldList
|
|
|
|
},
|
|
|
|
loadData(record) {
|
|
...
|
...
|
@@ -290,7 +290,7 @@ |
|
|
|
}).finally(() => {
|
|
|
|
this.loading = false
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
record: {
|
|
...
|
...
|
@@ -301,9 +301,9 @@ |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
@import '~@assets/less/common.less';
|
|
|
|
</style> |
|
|
\ No newline at end of file |
|
|
|
</style> |
...
|
...
|
|