projectQuotation.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div style="padding: 10px 0px 0px 10px">
  3. <el-table
  4. :data="data"
  5. border
  6. height="calc(100vh - 60px)"
  7. style="width: 100%">
  8. <el-table-column
  9. prop="billno"
  10. label="报价单号"
  11. width="0">
  12. </el-table-column>
  13. <el-table-column
  14. prop="projectname"
  15. label="报价项目"
  16. width="0">
  17. </el-table-column>
  18. <el-table-column
  19. prop="submitdate"
  20. label="报价日期"
  21. width="0">
  22. </el-table-column>
  23. <el-table-column
  24. prop="operation"
  25. width="100"
  26. label="操作">
  27. <template slot-scope="scope">
  28. <!-- <el-input v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>-->
  29. <el-button size="mini" type="text" @click="rowChange(scope.row)">详 情</el-button>
  30. <!-- <detailsInfo :row="scope.row"></detailsInfo>-->
  31. </template>
  32. </el-table-column>
  33. </el-table>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. name: "contractInfo",
  39. props:['data'],
  40. methods:{
  41. rowChange(data){
  42. this.$store.dispatch('changeDetailDrawer',false)
  43. setTimeout(()=>{
  44. let route = this.$route
  45. route.query.portrait = 'xmbj'
  46. console.log(route,'route')
  47. if (route.path !== '/quotedPriceDetail') {
  48. this.oldRoute = {path:route.path,query:route.query}
  49. this.$store.dispatch('setHistoryRouter',this.oldRoute)
  50. }
  51. this.$router.replace({
  52. path:'/quotedPriceDetail',
  53. query:{
  54. id:data.sa_quotedpriceid,
  55. rowindex:data.rowindex,
  56. }
  57. })
  58. this.$store.dispatch('changeDetailDrawer',true)
  59. },500)
  60. }
  61. }
  62. }
  63. </script>
  64. <style scoped>
  65. </style>