|
|
|
@ -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"> |
|
|
|
更多 |
|
|
|
|