@ -7,6 +7,7 @@ import BreakdownCost from "./detail/breakdownCost.vue";
import BuSelect from "../../../components/selector/select/BuSelect.vue" ;
import BuSelect from "../../../components/selector/select/BuSelect.vue" ;
import { queryPropertyTemplate } from "../../../api/property/template" ;
import { queryPropertyTemplate } from "../../../api/property/template" ;
import { queryPropertyTemplateDetailAvailableList } from "../../../api/property/templateDetail" ;
import { queryPropertyTemplateDetailAvailableList } from "../../../api/property/templateDetail" ;
import { againQuote } from "../../../api/quote/quote" ;
export default {
export default {
name : "quoteDetailReport" ,
name : "quoteDetailReport" ,
@ -393,6 +394,24 @@ export default {
this . $message . error ( error )
this . $message . error ( error )
} )
} )
} ,
} ,
handleAgainQuote ( row ) {
this . $confirm ( '确定重新报价该报价单吗?' ) . then ( ( ) => {
let params = {
id : row . quoteId ,
createBy : this . $store . state . user . name ,
}
againQuote ( params ) . then ( ( { data } ) => {
if ( data && data . code === 0 ) {
this . $message . success ( data . msg )
this . handleQuery ( ) ;
} else {
this . $message . warning ( data . msg )
}
} ) . catch ( ( error ) => {
this . $message . error ( error )
} )
} )
}
} ,
} ,
created ( ) {
created ( ) {
this . getSiteAndBuByUserName ( ) ;
this . getSiteAndBuByUserName ( ) ;
@ -492,7 +511,7 @@ export default {
width = "100"
width = "100"
label = "操作" >
label = "操作" >
< template slot -scope = " { row , $ index } " >
< template slot -scope = " { row , $ index } " >
< a > 重新报价 < / a >
< a @click ="handleAgainQuote(row)" > 重新报价 < / a >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e >
< / e l - t a b l e >
@ -668,12 +687,12 @@ export default {
< el -table -column label = "属性值" header -align = " center " min -width = " 140 " prop = "value" >
< el -table -column label = "属性值" header -align = " center " min -width = " 140 " prop = "value" >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< template v-if ="scope.row.valueTypeDb==='T' && scope.row.valueChooseFlag==='Y'" >
< template v-if ="scope.row.valueTypeDb==='T' && scope.row.valueChooseFlag==='Y'" >
< el -select v -model= "scope.row['textValue']" placeholder= "请选择" style= "width: 100%">
< el -select v -model = " scope.row [ ' textValue ' ] " placeholder = "请选择" style = "width: 100%" clearable >
< el -option :label ="available.availableValue" :value ="available.availableValue" :key ="available.id" v-for ="(available) in scope.row.availableList" > < / el -option >
< el -option :label ="available.availableValue" :value ="available.availableValue" :key ="available.id" v-for ="(available) in scope.row.availableList" > < / el -option >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / template >
< / template >
< template v -else -if = " scope.row.valueTypeDb = = = ' N ' & & scope.row.valueChooseFlag = = = ' Y ' " >
< template v -else -if = " scope.row.valueTypeDb = = = ' N ' & & scope.row.valueChooseFlag = = = ' Y ' " >
< el -select v -model= "scope.row['numValue']" placeholder= "请选择" style= "width: 100%">
< el -select v -model = " scope.row [ ' numValue ' ] " placeholder = "请选择" style = "width: 100%" clearable >
< el -option :label ="available.availableValue" :value ="available.availableValue" :key ="available.id" v-for ="(available) in scope.row.availableList" > < / el -option >
< el -option :label ="available.availableValue" :value ="available.availableValue" :key ="available.id" v-for ="(available) in scope.row.availableList" > < / el -option >
< / e l - s e l e c t >
< / e l - s e l e c t >
< / template >
< / template >