|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<a-modal
|
|
|
title="历史报价查看(view historical quotations)"
|
|
|
- width="55%"
|
|
|
+ width="70%"
|
|
|
:visible="visible"
|
|
|
:maskClosable="false"
|
|
|
switchFullscreen
|
|
@@ -11,7 +11,7 @@
|
|
|
</template>
|
|
|
<div>
|
|
|
<a-card :body-style="{ padding: '10px' }" :bordered="false" style="margin: 10px;">
|
|
|
- <a-alert type="info" show-icon class="alert" style="margin-bottom: 8px">
|
|
|
+ <!-- <a-alert type="info" show-icon class="alert" style="margin-bottom: 8px">
|
|
|
<template #message>
|
|
|
<template v-if="selectedRowKeys.length > 0">
|
|
|
<span>已选中 {{ selectedRowKeys.length }} 条记录</span>
|
|
@@ -22,7 +22,7 @@
|
|
|
<span>未选中任何数据</span>
|
|
|
</template>
|
|
|
</template>
|
|
|
- </a-alert>
|
|
|
+ </a-alert> -->
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
|
:row-key="record => record.id"
|
|
@@ -32,7 +32,6 @@
|
|
|
@change="handleTableChange"
|
|
|
:pagination="pagination"
|
|
|
:scroll="{ x: 1000, y: 300 }"
|
|
|
- :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
>
|
|
|
</a-table>
|
|
|
</a-card>
|
|
@@ -51,22 +50,24 @@
|
|
|
const columns = [
|
|
|
{
|
|
|
title: '项目号(project code)',
|
|
|
- dataIndex: 'projectCode',
|
|
|
- key: 'projectCode',
|
|
|
- align:"center"
|
|
|
+ dataIndex: 'quotationProjectName',
|
|
|
+ key: 'quotationProjectName',
|
|
|
+ align:"center",
|
|
|
+ width:150
|
|
|
},
|
|
|
{
|
|
|
title: '报价时间(quotation date)',
|
|
|
- dataIndex: 'quotationDate',
|
|
|
- key: 'quotationDate',
|
|
|
- align:"center"
|
|
|
+ dataIndex: 'billDate',
|
|
|
+ key: 'billDate',
|
|
|
+ align:"center",
|
|
|
+ width:150
|
|
|
},
|
|
|
{
|
|
|
title: '价格(price)',
|
|
|
- dataIndex: 'price',
|
|
|
- key: 'price',
|
|
|
+ dataIndex: 'saleAmount',
|
|
|
+ key: 'saleAmount',
|
|
|
align:"center",
|
|
|
- width:200
|
|
|
+ width:100
|
|
|
},
|
|
|
];
|
|
|
const dataSource =ref([]);
|
|
@@ -83,15 +84,24 @@
|
|
|
},
|
|
|
size:'small'
|
|
|
});
|
|
|
- function loadData(){
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
+ function loadData(quotationCustomer,productId){
|
|
|
+ let params={quotationCustomer:quotationCustomer,productId:productId}
|
|
|
+ defHttp.get({url:"/saleCode/saleQuotation/queryHisByInfo",params}).then(res=>{
|
|
|
+ console.log("ssssssssssssss");
|
|
|
+ console.log(res);
|
|
|
+ console.log(res.result);
|
|
|
+ if(res){
|
|
|
+ dataSource.value = res
|
|
|
+ }
|
|
|
+ })
|
|
|
+ };
|
|
|
|
|
|
function handleTableChange(paginations, filters, sorter){
|
|
|
pagination.value.total = paginations.total;
|
|
|
pagination.value.current = paginations.current;
|
|
|
pagination.value.pageSize = paginations.pageSize;
|
|
|
- loadData()
|
|
|
+ // loadData()
|
|
|
};
|
|
|
function onSelectChange(keys,rows){
|
|
|
selectedRowKeys.value = keys
|
|
@@ -102,9 +112,10 @@
|
|
|
selectedRowKeys.value = []
|
|
|
selectedRows.value=[]
|
|
|
}
|
|
|
- function getTable(){
|
|
|
+ function getTable(quotationCustomer,productId){
|
|
|
+ console.log("sssssssssssssssssssaaaaaaaaaaaaaa");
|
|
|
visible.value = true
|
|
|
- loadData()
|
|
|
+ loadData(quotationCustomer,productId)
|
|
|
}
|
|
|
defineExpose({
|
|
|
getTable
|
|
@@ -118,4 +129,4 @@
|
|
|
// padding: 8px !important;
|
|
|
// }
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|