saleOrderDetailApproved.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <!-- 销售订单详细页面 -->
  3. <div class="salePlan">
  4. <div class="main">
  5. <span class="text">销售订单物资信息</span>
  6. </div>
  7. <dilTable v-bind.sync="option">
  8. <el-table-column fixed="right" label="操作" width="100">
  9. <template slot-scope="scope">
  10. <el-button
  11. @click="editaddressclick(scope.row.saleOrderMaterialId)"
  12. type="text"
  13. size="small"
  14. >修改地址</el-button
  15. >
  16. </template>
  17. </el-table-column>
  18. </dilTable>
  19. <div class="button-box">
  20. <el-button @click="onClickCancel">返回</el-button>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "salePlan",
  27. data() {
  28. return {
  29. option: {
  30. // 表格请求数据的地址
  31. requestUrl:
  32. "/api/v1/ams/getSaleOrderDetail?apiId=100&saleOrderId=" +
  33. this.$route.params.saleOrderId,
  34. },
  35. };
  36. },
  37. methods: {
  38. //修改收货地址
  39. editaddressclick(saleOrderMaterialId) {
  40. this.$router.push("/editaddress/" + saleOrderMaterialId);
  41. },
  42. // 返回
  43. onClickCancel() {
  44. this.$router.go(-1);
  45. },
  46. },
  47. };
  48. </script>
  49. <style lang='scss' scoped>
  50. .button-box{
  51. display: flex;
  52. text-align: center;
  53. align-items: center;
  54. justify-content: center;
  55. margin-top: 0.3125rem;
  56. margin-bottom: 1.25rem;
  57. }
  58. </style>