Browse Source

2023-11-29 plm报价

master
zelian_wu 2 years ago
parent
commit
a31a3012bb
  1. 1
      src/api/project/project.js
  2. 44
      src/components/quotation/sellForQuotation/quotationCustomerContact.vue
  3. 484
      src/components/quotation/sellForQuotation/quotationDetail.vue
  4. 29
      src/views/modules/quotation/sellForQuotation.vue

1
src/api/project/project.js

@ -29,6 +29,7 @@ export const getContactChooseData= data => createAPI(`/project/getContactChooseD
export const saveProjectContactList= data => createAPI(`/project/saveProjectContactList`,'post',data)
export const deleteProjectInfo= data => createAPI(`/project/deleteProjectInfo`,'post',data)
export const getProjectInfoPartList= data => createAPI(`/project/getProjectInfoPartList`,'post',data)
export const getProjectPartList= data => createAPI(`/project/getProjectPartList`,'get',data)
export const saveProjectPart= data => createAPI(`/project/saveProjectPart`,'post',data)
export const deleteProjectPartWithId= data => createAPI(`/project/deleteProjectPartWithId`,'post',data)
export const getPlmToolPurchaseRequestDataByProject= data => createAPI(`/project/getPlmToolPurchaseRequestDataByProject`,'post',data)

44
src/components/quotation/sellForQuotation/quotationCustomerContact.vue

@ -1,29 +1,33 @@
<template>
<div class="mode-config">
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<download-excel
:fields="fields2()"
:data="exportData2"
type="xls"
:name="exportName2"
:header="exportHeader2"
:footer="exportFooter2"
:fetch="createExportData2"
:before-generate="startDownload2"
:before-finish="finishDownload2"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
</el-form>
</el-form>
<el-row>
<el-col>
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;">
<el-form :inline="true" label-position="top" style="margin-top: 0px">
<download-excel
:fields="fields2()"
:data="exportData2"
type="xls"
:name="exportName2"
:header="exportHeader2"
:footer="exportFooter2"
:fetch="createExportData2"
:before-generate="startDownload2"
:before-finish="finishDownload2"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
</el-form>
</el-form>
</el-col>
</el-row>
<el-table
:data="contactList"
height="370"
height="360"
border
v-loading="dataListLoading"
style="width: 100%; ">
style="width: 100%;margin-top: 10px ">
<el-table-column
v-for="(item,index) in columnList2" :key="index"
:sortable="item.columnSortable"

484
src/components/quotation/sellForQuotation/quotationDetail.vue
File diff suppressed because it is too large
View File

29
src/views/modules/quotation/sellForQuotation.vue

@ -4,25 +4,25 @@
<el-row>
<el-col :span="24">
<el-form-item label="客户编码">
<el-input v-model="searchData.customerNo" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.customerNo" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="客户名称">
<el-input v-model="searchData.customerName" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.customerName" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="跟单员">
<el-input v-model="searchData.trackerName" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.trackerName" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="报价单号">
<el-input v-model="searchData.quotationNo" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.quotationNo" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="客户询价单号">
<el-input v-model="searchData.customerInquiryNo" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.customerInquiryNo" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="内部询价单号">
<el-input v-model="searchData.internalInquiryNo" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.internalInquiryNo" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="searchData.quotationStatus" placeholder="请选择" style="width: 120px">
<el-select v-model="searchData.quotationStatus" style="width: 120px">
<el-option label="全部" value=""></el-option>
<el-option label="草稿" value="草稿"></el-option>
<el-option label="下达" value="下达"></el-option>
@ -33,13 +33,13 @@
<el-row>
<el-col :span="24">
<el-form-item label="项目编码">
<el-input v-model="searchData.projectId" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.projectId" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="项目名称">
<el-input v-model="searchData.projectName" placeholder="请输入内容" clearable style="width: 120px"/>
<el-input v-model="searchData.projectName" clearable style="width: 120px"/>
</el-form-item>
<el-form-item label="销售员">
<el-input v-model="searchData.quoterName" placeholder="请输入内容" size="large" clearable style="width: 120px;height: 28px"/>
<el-input v-model="searchData.quoterName" size="large" clearable style="width: 120px;height: 28px"/>
</el-form-item>
<el-form-item label="报价日期">
<el-date-picker
@ -52,7 +52,6 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="changeDateRange"
placeholder="选择日期">
</el-date-picker>
@ -295,7 +294,7 @@
</el-row>
</el-form>
<el-footer style="height:30px;margin-top: 20px;text-align:center">
<el-button type="primary" @click="insertDiaLogFlag = false">关闭</el-button>
<el-button @click="insertDiaLogFlag = false">关闭</el-button>
<el-button type="primary" :loading="insertQuotationHeaderBtn" @click="insertQuotationHeader">保存</el-button>
</el-footer>
</el-dialog>
@ -523,7 +522,11 @@ export default {
getQuotationHeaderByPage(params).then(({data})=>{
this.tableData = data.data.records;
this.total = data.data.total;
this.quotationHeader = this.tableData[0];
if (this.tableData.length > 0){
this.quotationHeader = this.tableData[0];
}else {
this.quotationHeader = null;
}
})
},
// size

Loading…
Cancel
Save