Browse Source

2024-09-02

master
qiezi 1 year ago
parent
commit
e14aafe6ac
  1. 2
      src/api/quotation/quotationHeader.js
  2. 4
      src/views/modules/quotation/sellForQuotation.vue
  3. 14
      src/views/modules/quotation/sellForQuotation/quoteDetail.vue

2
src/api/quotation/quotationHeader.js

@ -213,3 +213,5 @@ export const deleteQuotationPropertiesItemAvailable = (data) => createAPI('/plm/
export const updateQuoteStatus = (data) => createAPI('/quote/status','post',data);
export const updateQuoteDetailStatus = (data) => createAPI('/quote/detail/status','post',data);

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

@ -112,8 +112,8 @@
<el-link style="cursor: pointer" v-if="scope.row.quotationStatus !== '下达'"
@click="handleUpdateStatus(scope.row)">下达
</el-link>
<el-link style="cursor: pointer" @click="editQuotationHeader(scope.row)">编辑</el-link>
<el-link style="cursor: pointer" @click="deleteQuotationHeader(scope.row)">删除</el-link>
<el-link style="cursor: pointer" v-if="scope.row.quotationStatus === '草稿'" @click="editQuotationHeader(scope.row)">编辑</el-link>
<el-link style="cursor: pointer" v-if="scope.row.quotationStatus === '草稿'" @click="deleteQuotationHeader(scope.row)">删除</el-link>
<el-link style="cursor: pointer" @click="quotationAgain(scope.row)">重新报价</el-link>
</template>
</el-table-column>

14
src/views/modules/quotation/sellForQuotation/quoteDetail.vue

@ -2,7 +2,7 @@
import {
deleteQuotationDetail,
insertQuotationDetail,
searchQuotationDetailPageByHeaderId, updateQuotationDetail
searchQuotationDetailPageByHeaderId, updateQuotationDetail, updateQuoteDetailStatus
} from "../../../../api/quotation/quotationHeader";
import {getProjectPart, getProjectPartList} from "../../../../api/project/project";
import ToolQuotation from "./quotationDetail/toolQuotation.vue";
@ -1000,9 +1000,11 @@ export default {
}
},
editQuotationDetailStatus(row,status){
let params = JSON.parse(JSON.stringify(row))
params.quotationDetailStatus = status;
updateQuotationDetail(params).then(({data}) => {
let params = {
quotationDetailId:row.quotationDetailId,
quotationDetailStatus:status
}
updateQuoteDetailStatus(params).then(({data}) => {
if (data.code === 200) {
this.initData();
this.$message.success(data.msg);
@ -1111,8 +1113,8 @@ export default {
width="140" align="center">
<template slot-scope="{row,$index}">
<el-link style="cursor: pointer" v-if="row.quotationDetailStatus !== '下达'" @click="editQuotationDetailStatus(row,'下达')">下达</el-link>
<el-link style="cursor: pointer" @click="editQuotationDetail(row,$index+1)">编辑</el-link>
<el-link style="cursor: pointer" @click="deleteQuotationDetailData(row)">删除</el-link>
<el-link style="cursor: pointer" v-if="row.quotationDetailStatus === '草稿'" @click="editQuotationDetail(row,$index+1)">编辑</el-link>
<el-link style="cursor: pointer" v-if="row.quotationDetailStatus === '草稿'" @click="deleteQuotationDetailData(row)">删除</el-link>
<el-dropdown trigger="click">
<el-link style="cursor: pointer;font-size: 12px">
更多

Loading…
Cancel
Save