|
|
@ -46,7 +46,7 @@ |
|
|
<el-form-item :label="'项目名称'"> |
|
|
<el-form-item :label="'项目名称'"> |
|
|
<el-input v-model="searchData.projectName" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="searchData.projectName" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'报价专员'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="'询价专员'"> |
|
|
<el-input v-model="searchData.quoterName" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="searchData.quoterName" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'优先等级'"> |
|
|
<el-form-item :label="'优先等级'"> |
|
|
@ -85,7 +85,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<!-- 报价列表 --> |
|
|
|
|
|
|
|
|
<!-- 询价列表 --> |
|
|
<el-table |
|
|
<el-table |
|
|
:height="height" |
|
|
:height="height" |
|
|
:data="dataList" |
|
|
:data="dataList" |
|
|
@ -143,7 +143,7 @@ |
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
|
|
|
|
|
|
<!-- 报价模态框 --> |
|
|
|
|
|
|
|
|
<!-- 询价模态框 --> |
|
|
<el-dialog :title="modalData.title" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px"> |
|
|
<el-dialog :title="modalData.title" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item prop="customerDesc" :rules="rules.customerDesc"> |
|
|
<el-form-item prop="customerDesc" :rules="rules.customerDesc"> |
|
|
@ -161,7 +161,7 @@ |
|
|
<el-input v-model="modalData.projectName" style="width: 221px"></el-input> |
|
|
<el-input v-model="modalData.projectName" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item prop="quoterName" :rules="rules.quoterName"> |
|
|
<el-form-item prop="quoterName" :rules="rules.quoterName"> |
|
|
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">报价专员</a></span> |
|
|
|
|
|
|
|
|
<span slot="label" style="" @click="getBaseList(103,2)"><a herf="#">询价专员</a></span> |
|
|
<el-input v-model="modalData.quoterName" style="width: 221px"></el-input> |
|
|
<el-input v-model="modalData.quoterName" style="width: 221px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -213,15 +213,15 @@ |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 录入报价结果模态框 --> |
|
|
|
|
|
<el-dialog title="录入报价结果" :close-on-click-modal="false" v-drag :visible.sync="enterResultModalFlag" width="785px"> |
|
|
|
|
|
|
|
|
<!-- 录入询价结果模态框 --> |
|
|
|
|
|
<el-dialog title="录入询价结果" :close-on-click-modal="false" v-drag :visible.sync="enterResultModalFlag" width="785px"> |
|
|
<el-form :inline="true" label-position="top" :model="enterResultData" :rules="enterResultRules" style="margin-left: 0px;margin-top: 10px;"> |
|
|
<el-form :inline="true" label-position="top" :model="enterResultData" :rules="enterResultRules" style="margin-left: 0px;margin-top: 10px;"> |
|
|
<el-form-item label="实际报价日期" prop="actualityQuotationDate" :rules="enterResultRules.actualityQuotationDate"> |
|
|
|
|
|
|
|
|
<el-form-item label="实际询价日期" prop="actualityQuotationDate" :rules="enterResultRules.actualityQuotationDate"> |
|
|
<el-date-picker v-model="enterResultData.actualityQuotationDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 200px"></el-date-picker> |
|
|
<el-date-picker v-model="enterResultData.actualityQuotationDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 200px"></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="enterResultData" :rules="enterResultRules" style="margin-left:0px;margin-top: 5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="enterResultData" :rules="enterResultRules" style="margin-left:0px;margin-top: 5px;"> |
|
|
<el-form-item label="报价结果信息" prop="quotationResultInformation" :rules="enterResultRules.quotationResultInformation"> |
|
|
|
|
|
|
|
|
<el-form-item label="询价结果信息" prop="quotationResultInformation" :rules="enterResultRules.quotationResultInformation"> |
|
|
<el-input type="textarea" v-model="enterResultData.quotationResultInformation" :rows="3" resize='none' maxlength="300" show-word-limit style="width: 500px;height: 30px"></el-input> |
|
|
<el-input type="textarea" v-model="enterResultData.quotationResultInformation" :rows="3" resize='none' maxlength="300" show-word-limit style="width: 500px;height: 30px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -268,8 +268,8 @@ |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 提交客户报价模态框 --> |
|
|
|
|
|
<el-dialog title="提交客户报价" :close-on-click-modal="false" v-drag :visible.sync="submitResultModalFlag" width="620px"> |
|
|
|
|
|
|
|
|
<!-- 提交客户询价模态框 --> |
|
|
|
|
|
<el-dialog title="提交客户询价" :close-on-click-modal="false" v-drag :visible.sync="submitResultModalFlag" width="620px"> |
|
|
<el-form :inline="true" label-position="top" :model="submitResultData" :rules="submitResultRules" style="margin-left: 0px;margin-top: 10px;"> |
|
|
<el-form :inline="true" label-position="top" :model="submitResultData" :rules="submitResultRules" style="margin-left: 0px;margin-top: 10px;"> |
|
|
<el-form-item label="实际提交客户日期" prop="actualitySubmissionDate" :rules="submitResultRules.actualitySubmissionDate"> |
|
|
<el-form-item label="实际提交客户日期" prop="actualitySubmissionDate" :rules="submitResultRules.actualitySubmissionDate"> |
|
|
<el-date-picker v-model="submitResultData.actualitySubmissionDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 200px"></el-date-picker> |
|
|
<el-date-picker v-model="submitResultData.actualitySubmissionDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" style="width: 200px"></el-date-picker> |
|
|
@ -377,8 +377,8 @@ |
|
|
|
|
|
|
|
|
<!-- 页签 --> |
|
|
<!-- 页签 --> |
|
|
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 500px;box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);border: 2px;" @tab-click="tabClick" class="customer-tab"> |
|
|
<el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; min-height: 500px;box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);border: 2px;" @tab-click="tabClick" class="customer-tab"> |
|
|
<!-- 报价详细信息页签 --> |
|
|
|
|
|
<el-tab-pane label="报价详细信息" name="quotation_detail_information" style=""> |
|
|
|
|
|
|
|
|
<!-- 询价详细信息页签 --> |
|
|
|
|
|
<el-tab-pane label="询价详细信息" name="quotation_detail_information" style=""> |
|
|
<el-form :inline="true" label-position="top" :model="quotationDetailData" style="margin-left: 10px;margin-top: 10px;"> |
|
|
<el-form :inline="true" label-position="top" :model="quotationDetailData" style="margin-left: 10px;margin-top: 10px;"> |
|
|
<el-form-item label="技术注意事项"> |
|
|
<el-form-item label="技术注意事项"> |
|
|
<el-input |
|
|
<el-input |
|
|
@ -402,20 +402,20 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<!-- 报价结果页签 --> |
|
|
|
|
|
<el-tab-pane label="报价结果" name="quotation_result"> |
|
|
|
|
|
|
|
|
<!-- 询价结果页签 --> |
|
|
|
|
|
<el-tab-pane label="询价结果" name="quotation_result"> |
|
|
<el-form :inline="true" label-position="top" :model="quotationResultData" style="margin-left: 10px;margin-top: 5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="quotationResultData" style="margin-left: 10px;margin-top: 5px;"> |
|
|
<el-button v-if="quotationResultData.quotationResultStatus === 'C'" type="primary" @click="quotationResultModal()">录入报价结果</el-button> |
|
|
|
|
|
<el-button v-if="quotationResultData.quotationResultStatus === 'E'" type="primary" @click="submitQuotationModal()">提交客户报价</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="quotationResultData.quotationResultStatus === 'C'" type="primary" @click="quotationResultModal()">录入询价结果</el-button> |
|
|
|
|
|
<el-button v-if="quotationResultData.quotationResultStatus === 'E'" type="primary" @click="submitQuotationModal()">提交客户询价</el-button> |
|
|
<el-button v-if="quotationResultData.quotationResultStatus === 'S'" type="primary" @click="customerResponseModal()">客户回复</el-button> |
|
|
<el-button v-if="quotationResultData.quotationResultStatus === 'S'" type="primary" @click="customerResponseModal()">客户回复</el-button> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="quotationResultData" style="margin-left: 10px;margin-top: 2px;"> |
|
|
<el-form :inline="true" label-position="top" :model="quotationResultData" style="margin-left: 10px;margin-top: 2px;"> |
|
|
<el-form-item label="实际报价日期"> |
|
|
|
|
|
|
|
|
<el-form-item label="实际询价日期"> |
|
|
<el-date-picker v-model="quotationResultData.actualityQuotationDate" readonly type="date" value-format="yyyy-MM-dd" style="width: 240px"></el-date-picker> |
|
|
<el-date-picker v-model="quotationResultData.actualityQuotationDate" readonly type="date" value-format="yyyy-MM-dd" style="width: 240px"></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="quotationResultData" style="margin-left: 10px;margin-top: -1px;"> |
|
|
<el-form :inline="true" label-position="top" :model="quotationResultData" style="margin-left: 10px;margin-top: -1px;"> |
|
|
<el-form-item label="报价结果信息"> |
|
|
|
|
|
|
|
|
<el-form-item label="询价结果信息"> |
|
|
<el-input type="textarea" v-model="quotationResultData.quotationResultInformation" readonly :rows="2" resize='none' show-word-limit style="width: 760px;height: 20px"></el-input> |
|
|
<el-input type="textarea" v-model="quotationResultData.quotationResultInformation" readonly :rows="2" resize='none' show-word-limit style="width: 760px;height: 20px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -782,19 +782,19 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
quotationInformationSearch, // 报价信息列表查询 |
|
|
|
|
|
quotationInformationSave, // 报价信息新增 |
|
|
|
|
|
quotationInformationEdit, // 报价信息编辑 |
|
|
|
|
|
quotationInformationDelete, // 报价信息删除 |
|
|
|
|
|
getFileContentList, // 获取报价单附件列表 |
|
|
|
|
|
quotationResultSearch, // 获取报价结果对象 |
|
|
|
|
|
|
|
|
quotationInformationSearch, // 询价信息列表查询 |
|
|
|
|
|
quotationInformationSave, // 询价信息新增 |
|
|
|
|
|
quotationInformationEdit, // 询价信息编辑 |
|
|
|
|
|
quotationInformationDelete, // 询价信息删除 |
|
|
|
|
|
getFileContentList, // 获取询价单附件列表 |
|
|
|
|
|
quotationResultSearch, // 获取询价结果对象 |
|
|
deleteQuotationFile, // 文件删除 |
|
|
deleteQuotationFile, // 文件删除 |
|
|
downLoadQuotationFile, // 文件下载 |
|
|
downLoadQuotationFile, // 文件下载 |
|
|
saveQuotationResult, // 保存报价结果 |
|
|
|
|
|
|
|
|
saveQuotationResult, // 保存询价结果 |
|
|
saveSubmitResult, // 保存提交结果 |
|
|
saveSubmitResult, // 保存提交结果 |
|
|
saveCustomerResponse, // 保存客户回复 |
|
|
saveCustomerResponse, // 保存客户回复 |
|
|
getProjectPartList, // 获取产品列表 |
|
|
getProjectPartList, // 获取产品列表 |
|
|
checkQuotationStatus, // 检查报价进度 |
|
|
|
|
|
|
|
|
checkQuotationStatus, // 检查询价进度 |
|
|
getProjectInformation, // 获取项目信息 |
|
|
getProjectInformation, // 获取项目信息 |
|
|
getCustomerInformation // 获取客户信息 |
|
|
getCustomerInformation // 获取客户信息 |
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
} from '@/api/quotation/quotationInformation.js' |
|
|
@ -995,7 +995,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1QuotationNo', |
|
|
serialNumber: '102001Table1QuotationNo', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'quotationNo', |
|
|
columnProp: 'quotationNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1013,7 +1013,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1CustomerNo', |
|
|
serialNumber: '102001Table1CustomerNo', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'customerNo', |
|
|
columnProp: 'customerNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1031,7 +1031,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1CustomerDesc', |
|
|
serialNumber: '102001Table1CustomerDesc', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'customerDesc', |
|
|
columnProp: 'customerDesc', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1049,7 +1049,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1ProjectId', |
|
|
serialNumber: '102001Table1ProjectId', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'projectId', |
|
|
columnProp: 'projectId', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1067,7 +1067,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1ProjectName', |
|
|
serialNumber: '102001Table1ProjectName', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'projectName', |
|
|
columnProp: 'projectName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1085,7 +1085,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1TrackerName', |
|
|
serialNumber: '102001Table1TrackerName', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'trackerName', |
|
|
columnProp: 'trackerName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1103,11 +1103,11 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1QuoterName', |
|
|
serialNumber: '102001Table1QuoterName', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'quoterName', |
|
|
columnProp: 'quoterName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '报价专员', |
|
|
|
|
|
|
|
|
columnLabel: '询价专员', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
columnSortable: false, |
|
|
columnSortable: false, |
|
|
@ -1121,7 +1121,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1TestPartNo', |
|
|
serialNumber: '102001Table1TestPartNo', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'testPartNo', |
|
|
columnProp: 'testPartNo', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1139,7 +1139,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1PartName', |
|
|
serialNumber: '102001Table1PartName', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'partName', |
|
|
columnProp: 'partName', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1157,7 +1157,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1PriorityLevel', |
|
|
serialNumber: '102001Table1PriorityLevel', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'priorityLevel', |
|
|
columnProp: 'priorityLevel', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1175,7 +1175,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1RequiredCompletionDate', |
|
|
serialNumber: '102001Table1RequiredCompletionDate', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'requiredCompletionDate', |
|
|
columnProp: 'requiredCompletionDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1193,7 +1193,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1quotationStatus', |
|
|
serialNumber: '102001Table1quotationStatus', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'quotationStatus', |
|
|
columnProp: 'quotationStatus', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1211,7 +1211,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1CreateDate', |
|
|
serialNumber: '102001Table1CreateDate', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'createDate', |
|
|
columnProp: 'createDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1229,7 +1229,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1CreateBy', |
|
|
serialNumber: '102001Table1CreateBy', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'createBy', |
|
|
columnProp: 'createBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1247,7 +1247,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1UpdateDate', |
|
|
serialNumber: '102001Table1UpdateDate', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'updateDate', |
|
|
columnProp: 'updateDate', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1265,7 +1265,7 @@ |
|
|
functionId: 102001, |
|
|
functionId: 102001, |
|
|
serialNumber: '102001Table1UpdateBy', |
|
|
serialNumber: '102001Table1UpdateBy', |
|
|
tableId: '102001Table1', |
|
|
tableId: '102001Table1', |
|
|
tableName: '报价信息表', |
|
|
|
|
|
|
|
|
tableName: '询价信息表', |
|
|
columnProp: 'updateBy', |
|
|
columnProp: 'updateBy', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
@ -1725,14 +1725,14 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 获取报价结果列表 |
|
|
|
|
|
|
|
|
* 获取询价结果列表 |
|
|
*/ |
|
|
*/ |
|
|
getQuotationResult () { |
|
|
getQuotationResult () { |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
quotationNo: this.quotationCurrentRow.quotationNo |
|
|
quotationNo: this.quotationCurrentRow.quotationNo |
|
|
} |
|
|
} |
|
|
// 报价结果对象 |
|
|
|
|
|
|
|
|
// 询价结果对象 |
|
|
quotationResultSearch(tempData).then(({data}) => { |
|
|
quotationResultSearch(tempData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.quotationResultData = data.rows[0] |
|
|
this.quotationResultData = data.rows[0] |
|
|
@ -1751,7 +1751,7 @@ |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
projectId: this.quotationCurrentRow.projectId |
|
|
projectId: this.quotationCurrentRow.projectId |
|
|
} |
|
|
} |
|
|
// 报价结果对象 |
|
|
|
|
|
|
|
|
// 询价结果对象 |
|
|
getProjectInformation(tempData).then(({data}) => { |
|
|
getProjectInformation(tempData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.projectInformationData = data.rows[0] |
|
|
this.projectInformationData = data.rows[0] |
|
|
@ -1768,7 +1768,7 @@ |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
customerNo: this.quotationCurrentRow.customerNo |
|
|
customerNo: this.quotationCurrentRow.customerNo |
|
|
} |
|
|
} |
|
|
// 报价结果对象 |
|
|
|
|
|
|
|
|
// 询价结果对象 |
|
|
getCustomerInformation(tempData).then(({data}) => { |
|
|
getCustomerInformation(tempData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.customerInformationData = data.rows[0] |
|
|
this.customerInformationData = data.rows[0] |
|
|
@ -1780,12 +1780,12 @@ |
|
|
|
|
|
|
|
|
// ======== 新增/编辑模态框 ======== |
|
|
// ======== 新增/编辑模态框 ======== |
|
|
/** |
|
|
/** |
|
|
* 报价信息新增模态框 |
|
|
|
|
|
|
|
|
* 询价信息新增模态框 |
|
|
*/ |
|
|
*/ |
|
|
addModal () { |
|
|
addModal () { |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
flag: '1', |
|
|
flag: '1', |
|
|
title: '报价新增', |
|
|
|
|
|
|
|
|
title: '询价新增', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
quotationNo: '', |
|
|
quotationNo: '', |
|
|
customerNo: '', |
|
|
customerNo: '', |
|
|
@ -1822,13 +1822,13 @@ |
|
|
this.modalFlag = true |
|
|
this.modalFlag = true |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 报价信息编辑模态框 |
|
|
|
|
|
|
|
|
* 询价信息编辑模态框 |
|
|
* @param row |
|
|
* @param row |
|
|
*/ |
|
|
*/ |
|
|
updateModal (row) { |
|
|
updateModal (row) { |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
flag: '2', |
|
|
flag: '2', |
|
|
title: '报价编辑', |
|
|
|
|
|
|
|
|
title: '询价编辑', |
|
|
site: row.site, |
|
|
site: row.site, |
|
|
quotationNo: row.quotationNo, |
|
|
quotationNo: row.quotationNo, |
|
|
customerNo: row.customerNo, |
|
|
customerNo: row.customerNo, |
|
|
@ -1939,11 +1939,11 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.quoter === '' || this.modalData.quoter == null) { |
|
|
if (this.modalData.quoter === '' || this.modalData.quoter == null) { |
|
|
this.$message.warning('请选择报价专员编码!') |
|
|
|
|
|
|
|
|
this.$message.warning('请选择询价专员编码!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.quoterName === '' || this.modalData.quoterName == null) { |
|
|
if (this.modalData.quoterName === '' || this.modalData.quoterName == null) { |
|
|
this.$message.warning('请选择报价专员名称!') |
|
|
|
|
|
|
|
|
this.$message.warning('请选择询价专员名称!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.modalData.testPartNo === '' || this.modalData.testPartNo == null) { |
|
|
if (this.modalData.testPartNo === '' || this.modalData.testPartNo == null) { |
|
|
@ -1999,14 +1999,14 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 报价信息删除 |
|
|
|
|
|
|
|
|
* 询价信息删除 |
|
|
*/ |
|
|
*/ |
|
|
delModal () { |
|
|
delModal () { |
|
|
if(this.quotationSelections.length === 0){ |
|
|
if(this.quotationSelections.length === 0){ |
|
|
this.$message.warning('请勾选要删除的报价信息!') |
|
|
|
|
|
|
|
|
this.$message.warning('请勾选要删除的询价信息!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.$confirm(`是否删除这 `+ this.quotationSelections.length +` 条报价信息?`, '提示', { |
|
|
|
|
|
|
|
|
this.$confirm(`是否删除这 `+ this.quotationSelections.length +` 条询价信息?`, '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -2037,7 +2037,7 @@ |
|
|
|
|
|
|
|
|
// ======== 列表操作方法 ======== |
|
|
// ======== 列表操作方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 单机选中报价信息 |
|
|
|
|
|
|
|
|
* 单机选中询价信息 |
|
|
* @param row |
|
|
* @param row |
|
|
*/ |
|
|
*/ |
|
|
quotationClickRow (row) { |
|
|
quotationClickRow (row) { |
|
|
@ -2046,7 +2046,7 @@ |
|
|
this.quotationDetailData = row |
|
|
this.quotationDetailData = row |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 复选报价信息 |
|
|
|
|
|
|
|
|
* 复选询价信息 |
|
|
* @param val |
|
|
* @param val |
|
|
*/ |
|
|
*/ |
|
|
selectionQuotation (val) { |
|
|
selectionQuotation (val) { |
|
|
@ -2054,7 +2054,7 @@ |
|
|
this.$refs.selectDiv.setLengthselected(this.quotationSelections.length) |
|
|
this.$refs.selectDiv.setLengthselected(this.quotationSelections.length) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// ======== 报价结果相关方法 ======== |
|
|
|
|
|
|
|
|
// ======== 询价结果相关方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 封装录入方法 |
|
|
* 封装录入方法 |
|
|
*/ |
|
|
*/ |
|
|
@ -2069,7 +2069,7 @@ |
|
|
fileContentList: [], |
|
|
fileContentList: [], |
|
|
updateBy: this.$store.state.user.name |
|
|
updateBy: this.$store.state.user.name |
|
|
} |
|
|
} |
|
|
// 获得选中的报价号 |
|
|
|
|
|
|
|
|
// 获得选中的询价号 |
|
|
// if (this.quotationSelections.length > 0) { |
|
|
// if (this.quotationSelections.length > 0) { |
|
|
// this.quotationSelections.forEach(val => { |
|
|
// this.quotationSelections.forEach(val => { |
|
|
// this.enterResultData.quotationNo += ';' + val.quotationNo |
|
|
// this.enterResultData.quotationNo += ';' + val.quotationNo |
|
|
@ -2079,27 +2079,27 @@ |
|
|
// this.enterResultData.quotationNo = this.quotationCurrentRow.quotationNo |
|
|
// this.enterResultData.quotationNo = this.quotationCurrentRow.quotationNo |
|
|
// } |
|
|
// } |
|
|
this.enterResultData.quotationNo = this.quotationCurrentRow.quotationNo |
|
|
this.enterResultData.quotationNo = this.quotationCurrentRow.quotationNo |
|
|
// // 获得这些报价号的全部附件 |
|
|
|
|
|
|
|
|
// // 获得这些询价号的全部附件 |
|
|
// this.getFileContentList() |
|
|
// this.getFileContentList() |
|
|
this.enterResultModalFlag = true |
|
|
this.enterResultModalFlag = true |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 录入报价结果 |
|
|
|
|
|
|
|
|
* 录入询价结果 |
|
|
*/ |
|
|
*/ |
|
|
quotationResultModal () { |
|
|
quotationResultModal () { |
|
|
// // 如果有选中报价单 |
|
|
|
|
|
|
|
|
// // 如果有选中询价单 |
|
|
// if (this.quotationSelections != null && this.quotationSelections.length > 0) { |
|
|
// if (this.quotationSelections != null && this.quotationSelections.length > 0) { |
|
|
// let tempData = { |
|
|
// let tempData = { |
|
|
// currentStatus: 'C', |
|
|
// currentStatus: 'C', |
|
|
// informationList: this.quotationSelections, |
|
|
// informationList: this.quotationSelections, |
|
|
// } |
|
|
// } |
|
|
// // 检查报价单状态 |
|
|
|
|
|
|
|
|
// // 检查询价单状态 |
|
|
// checkQuotationStatus(tempData).then(({data}) => { |
|
|
// checkQuotationStatus(tempData).then(({data}) => { |
|
|
// if (data && data.code === 0) { |
|
|
// if (data && data.code === 0) { |
|
|
// if (data.flag === 1) { // 状态一致 |
|
|
// if (data.flag === 1) { // 状态一致 |
|
|
// this.packQuotationResultModal() |
|
|
// this.packQuotationResultModal() |
|
|
// } else { // 状态不同 |
|
|
// } else { // 状态不同 |
|
|
// this.$message.warning('选中的报价单进度有误,请确认!') |
|
|
|
|
|
|
|
|
// this.$message.warning('选中的询价单进度有误,请确认!') |
|
|
// } |
|
|
// } |
|
|
// } else { |
|
|
// } else { |
|
|
// this.$alert(data.msg, '错误', { |
|
|
// this.$alert(data.msg, '错误', { |
|
|
@ -2107,25 +2107,25 @@ |
|
|
// }) |
|
|
// }) |
|
|
// } |
|
|
// } |
|
|
// }) |
|
|
// }) |
|
|
// } else { // 没有选中报价单,则根据当前点击行报价单操作 |
|
|
|
|
|
|
|
|
// } else { // 没有选中询价单,则根据当前点击行询价单操作 |
|
|
// this.packQuotationResultModal() |
|
|
// this.packQuotationResultModal() |
|
|
// } |
|
|
// } |
|
|
this.packQuotationResultModal() |
|
|
this.packQuotationResultModal() |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 保存报价结果 |
|
|
|
|
|
|
|
|
* 保存询价结果 |
|
|
*/ |
|
|
*/ |
|
|
saveQuotationResult () { |
|
|
saveQuotationResult () { |
|
|
if (this.enterResultData.actualityQuotationDate === '' || this.enterResultData.actualityQuotationDate == null) { |
|
|
if (this.enterResultData.actualityQuotationDate === '' || this.enterResultData.actualityQuotationDate == null) { |
|
|
this.$message.warning('请选择实际报价日期!') |
|
|
|
|
|
|
|
|
this.$message.warning('请选择实际询价日期!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.enterResultData.quotationResultInformation === '' || this.enterResultData.quotationResultInformation == null) { |
|
|
if (this.enterResultData.quotationResultInformation === '' || this.enterResultData.quotationResultInformation == null) { |
|
|
this.$message.warning('请填写报价结果信息!') |
|
|
|
|
|
|
|
|
this.$message.warning('请填写询价结果信息!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// if (this.quotationSelections.length > 1) { |
|
|
// if (this.quotationSelections.length > 1) { |
|
|
// this.$confirm(`是否录入多条报价结果?`, '提示', { |
|
|
|
|
|
|
|
|
// this.$confirm(`是否录入多条询价结果?`, '提示', { |
|
|
// confirmButtonText: '确定', |
|
|
// confirmButtonText: '确定', |
|
|
// cancelButtonText: '取消', |
|
|
// cancelButtonText: '取消', |
|
|
// type: 'warning' |
|
|
// type: 'warning' |
|
|
@ -2182,7 +2182,7 @@ |
|
|
quotationResultStatus: 'S', |
|
|
quotationResultStatus: 'S', |
|
|
updateBy: this.$store.state.user.name |
|
|
updateBy: this.$store.state.user.name |
|
|
} |
|
|
} |
|
|
// 获得选中的报价号 |
|
|
|
|
|
|
|
|
// 获得选中的询价号 |
|
|
// if (this.quotationSelections.length > 0) { |
|
|
// if (this.quotationSelections.length > 0) { |
|
|
// this.quotationSelections.forEach(val => { |
|
|
// this.quotationSelections.forEach(val => { |
|
|
// this.submitResultData.quotationNo += ';' + val.quotationNo |
|
|
// this.submitResultData.quotationNo += ';' + val.quotationNo |
|
|
@ -2195,22 +2195,22 @@ |
|
|
this.submitResultModalFlag = true |
|
|
this.submitResultModalFlag = true |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 提交客户报价 |
|
|
|
|
|
|
|
|
* 提交客户询价 |
|
|
*/ |
|
|
*/ |
|
|
submitQuotationModal () { |
|
|
submitQuotationModal () { |
|
|
// // 如果有选中报价单 |
|
|
|
|
|
|
|
|
// // 如果有选中询价单 |
|
|
// if (this.quotationSelections != null && this.quotationSelections.length > 0) { |
|
|
// if (this.quotationSelections != null && this.quotationSelections.length > 0) { |
|
|
// let tempData = { |
|
|
// let tempData = { |
|
|
// currentStatus: 'E', |
|
|
// currentStatus: 'E', |
|
|
// informationList: this.quotationSelections, |
|
|
// informationList: this.quotationSelections, |
|
|
// } |
|
|
// } |
|
|
// // 检查报价单状态 |
|
|
|
|
|
|
|
|
// // 检查询价单状态 |
|
|
// checkQuotationStatus(tempData).then(({data}) => { |
|
|
// checkQuotationStatus(tempData).then(({data}) => { |
|
|
// if (data && data.code === 0) { |
|
|
// if (data && data.code === 0) { |
|
|
// if (data.flag === 1) { // 状态一致 |
|
|
// if (data.flag === 1) { // 状态一致 |
|
|
// this.packSubmitQuotationModal() |
|
|
// this.packSubmitQuotationModal() |
|
|
// } else { // 状态不同 |
|
|
// } else { // 状态不同 |
|
|
// this.$message.warning('选中的报价单进度有误,请确认!') |
|
|
|
|
|
|
|
|
// this.$message.warning('选中的询价单进度有误,请确认!') |
|
|
// } |
|
|
// } |
|
|
// } else { |
|
|
// } else { |
|
|
// this.$alert(data.msg, '错误', { |
|
|
// this.$alert(data.msg, '错误', { |
|
|
@ -2218,7 +2218,7 @@ |
|
|
// }) |
|
|
// }) |
|
|
// } |
|
|
// } |
|
|
// }) |
|
|
// }) |
|
|
// } else { // 没有选中报价单,则根据当前点击行报价单操作 |
|
|
|
|
|
|
|
|
// } else { // 没有选中询价单,则根据当前点击行询价单操作 |
|
|
// this.packSubmitQuotationModal() |
|
|
// this.packSubmitQuotationModal() |
|
|
// } |
|
|
// } |
|
|
this.packSubmitQuotationModal() |
|
|
this.packSubmitQuotationModal() |
|
|
@ -2236,7 +2236,7 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// if (this.quotationSelections.length > 1) { |
|
|
// if (this.quotationSelections.length > 1) { |
|
|
// this.$confirm(`是否提交多条客户报价?`, '提示', { |
|
|
|
|
|
|
|
|
// this.$confirm(`是否提交多条客户询价?`, '提示', { |
|
|
// confirmButtonText: '确定', |
|
|
// confirmButtonText: '确定', |
|
|
// cancelButtonText: '取消', |
|
|
// cancelButtonText: '取消', |
|
|
// type: 'warning' |
|
|
// type: 'warning' |
|
|
@ -2294,7 +2294,7 @@ |
|
|
quotationResultStatus: 'R', |
|
|
quotationResultStatus: 'R', |
|
|
updateBy: this.$store.state.user.name |
|
|
updateBy: this.$store.state.user.name |
|
|
} |
|
|
} |
|
|
// 获得选中的报价号 |
|
|
|
|
|
|
|
|
// 获得选中的询价号 |
|
|
// if (this.quotationSelections.length > 0) { |
|
|
// if (this.quotationSelections.length > 0) { |
|
|
// this.quotationSelections.forEach(val => { |
|
|
// this.quotationSelections.forEach(val => { |
|
|
// this.customerResponseData.quotationNo += ';' + val.quotationNo |
|
|
// this.customerResponseData.quotationNo += ';' + val.quotationNo |
|
|
@ -2310,19 +2310,19 @@ |
|
|
* 客户回复 |
|
|
* 客户回复 |
|
|
*/ |
|
|
*/ |
|
|
customerResponseModal () { |
|
|
customerResponseModal () { |
|
|
// // 如果有选中报价单 |
|
|
|
|
|
|
|
|
// // 如果有选中询价单 |
|
|
// if (this.quotationSelections != null && this.quotationSelections.length > 0) { |
|
|
// if (this.quotationSelections != null && this.quotationSelections.length > 0) { |
|
|
// let tempData = { |
|
|
// let tempData = { |
|
|
// currentStatus: 'S', |
|
|
// currentStatus: 'S', |
|
|
// informationList: this.quotationSelections, |
|
|
// informationList: this.quotationSelections, |
|
|
// } |
|
|
// } |
|
|
// // 检查报价单状态 |
|
|
|
|
|
|
|
|
// // 检查询价单状态 |
|
|
// checkQuotationStatus(tempData).then(({data}) => { |
|
|
// checkQuotationStatus(tempData).then(({data}) => { |
|
|
// if (data && data.code === 0) { |
|
|
// if (data && data.code === 0) { |
|
|
// if (data.flag === 1) { // 状态一致 |
|
|
// if (data.flag === 1) { // 状态一致 |
|
|
// this.packCustomerResponseModal() |
|
|
// this.packCustomerResponseModal() |
|
|
// } else { // 状态不同 |
|
|
// } else { // 状态不同 |
|
|
// this.$message.warning('选中的报价单进度有误,请确认!') |
|
|
|
|
|
|
|
|
// this.$message.warning('选中的询价单进度有误,请确认!') |
|
|
// } |
|
|
// } |
|
|
// } else { |
|
|
// } else { |
|
|
// this.$alert(data.msg, '错误', { |
|
|
// this.$alert(data.msg, '错误', { |
|
|
@ -2330,7 +2330,7 @@ |
|
|
// }) |
|
|
// }) |
|
|
// } |
|
|
// } |
|
|
// }) |
|
|
// }) |
|
|
// } else { // 没有选中报价单,则根据当前点击行报价单操作 |
|
|
|
|
|
|
|
|
// } else { // 没有选中询价单,则根据当前点击行询价单操作 |
|
|
// this.packCustomerResponseModal() |
|
|
// this.packCustomerResponseModal() |
|
|
// } |
|
|
// } |
|
|
this.packCustomerResponseModal() |
|
|
this.packCustomerResponseModal() |
|
|
@ -2396,9 +2396,9 @@ |
|
|
// } |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// ======== 报价单附件的相关方法 ======== |
|
|
|
|
|
|
|
|
// ======== 询价单附件的相关方法 ======== |
|
|
/** |
|
|
/** |
|
|
* 获取报价单附件列表 |
|
|
|
|
|
|
|
|
* 获取询价单附件列表 |
|
|
*/ |
|
|
*/ |
|
|
getFileContentData () { |
|
|
getFileContentData () { |
|
|
let currentData = { |
|
|
let currentData = { |
|
|
@ -2414,7 +2414,7 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// /** |
|
|
// /** |
|
|
// * 获得这些报价号的全部附件 |
|
|
|
|
|
|
|
|
// * 获得这些询价号的全部附件 |
|
|
// */ |
|
|
// */ |
|
|
// getFileContentList () { |
|
|
// getFileContentList () { |
|
|
// let currentData = { |
|
|
// let currentData = { |
|
|
@ -2434,7 +2434,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
uploadFile () { |
|
|
uploadFile () { |
|
|
let currentData = { |
|
|
let currentData = { |
|
|
titleCon: '报价附件上传', |
|
|
|
|
|
|
|
|
titleCon: '询价附件上传', |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
quotationNo: this.enterResultData.quotationNo, |
|
|
quotationNo: this.enterResultData.quotationNo, |
|
|
|