diff --git a/src/api/quotation/quotationHeader.js b/src/api/quotation/quotationHeader.js index bd43388..c7714c9 100644 --- a/src/api/quotation/quotationHeader.js +++ b/src/api/quotation/quotationHeader.js @@ -20,14 +20,20 @@ export const insertQuotationHeader = (data) => createAPI('/plm/quotationHeader/i * @param data 请求参数 * @returns {*} */ -export const searchQuotationTool = (data) => createAPI('/plm/quotationTool/page','get',data); +export const searchQuotationTool = (data) => createAPI('/plm/quotationTool/list','get',data); /** * 新增报价工具 记录 * @param data 请求携带参数 * @returns {*} */ -export const insertQuotationTool = (data) => createAPI('/plm/quotation','post',data); +export const saveQuotationTool = (data) => createAPI('/plm/quotationTool/saveQuotationTool','post',data); +/** + * 删除 报价工具 记录 + * @param data + * @returns {*} + */ +export const deleteQuotationTool = (data) => createAPI('/plm/quotationTool/deleteQuotationTool','post',data); /** * 分页查询QuotationDetail @@ -41,3 +47,9 @@ export const searchQuotationDetailPageByHeaderId = (data) => createAPI('/plm/quo * @returns {*} */ export const insertQuotationDetail = (data) => createAPI('/plm/quotationDetail/insertQuotationDetail','post',data); +/** + * 修改 QuotationDetail + * @param data + * @returns {*} + */ +export const updateQuotationDetail = (data) => createAPI('/plm/quotationDetail/updateQuotationDetail','post',data); diff --git a/src/components/quotation/sellForQuotation/quotationDetail.vue b/src/components/quotation/sellForQuotation/quotationDetail.vue index 8928604..7dc88bc 100644 --- a/src/components/quotation/sellForQuotation/quotationDetail.vue +++ b/src/components/quotation/sellForQuotation/quotationDetail.vue @@ -2,18 +2,19 @@
- 从询价单导入明细 - 新增报价明细 - 从历史报价明细导入 + 从询价单导入明细 + 新增报价明细 + 从历史报价明细导入 + width="90" align="center"> - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -182,21 +183,21 @@ - - + + - - + + @@ -210,8 +211,8 @@ - - + + @@ -280,22 +281,22 @@ - 新 增 + 新 增 从其他报价单复制 - - - - - - - + + + + + + + @@ -343,27 +344,27 @@ - + - + - + - + - + @@ -376,12 +377,12 @@ - + - + @@ -399,7 +400,7 @@ - + @@ -416,25 +417,30 @@ - + - + - - + + - + + + + + + @@ -442,32 +448,32 @@ 取 消 - 确 定 + 确 定 - + - + - + - + - + @@ -479,7 +485,7 @@ - + @@ -490,18 +496,20 @@ - 取 消 - 确 定 + 取 消 + 确 定
diff --git a/src/views/modules/quotation/sellForQuotation.vue b/src/views/modules/quotation/sellForQuotation.vue index e6475bd..09e94c4 100644 --- a/src/views/modules/quotation/sellForQuotation.vue +++ b/src/views/modules/quotation/sellForQuotation.vue @@ -52,6 +52,7 @@ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" + @change="changeDateRange" placeholder="选择日期"> @@ -457,8 +458,13 @@ export default { }, // 搜索条件中的时间输入框 change事件 changeDateRange(){ - this.searchData.startDate = this.searchData.dateValue[0]; - this.searchData.endDate = this.searchData.dateValue[1]; + if (this.searchData.dateValue){ + this.searchData.startDate = this.searchData.dateValue[0]; + this.searchData.endDate = this.searchData.dateValue[1]; + }else { + this.searchData.startDate=""; + this.searchData.endDate=""; + } }, // 初始化数据 initData(){