modifyDeliveryAttroney.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <!-- 修改入库实绩页面 -->
  3. <div class="shipTransport">
  4. <page-title>返回</page-title>
  5. <div class="form">
  6. <div class="form_box">
  7. <dil-form :formId="113" v-model="form1"></dil-form>
  8. </div>
  9. </div>
  10. <!-- 确定和取消 -->
  11. <div class="button_box">
  12. <el-button @click="onClickCancel">返回</el-button>
  13. <el-button type="primary" @click="onClickConfirm">确认</el-button>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import PageTitle from "@/components/Page/Title";
  19. import { sjTime } from '../../../ADMINISTRATORS/app';
  20. export default {
  21. components: { PageTitle },
  22. data(){
  23. return {
  24. form1: {},
  25. }
  26. },
  27. mounted() {
  28. this.information();
  29. },
  30. methods: {
  31. information() {
  32. //编辑请车作业
  33. this.axios
  34. .post("/api/v1/tms/getDeliveryAttorneyId/" + this.$route.params.attorneyId)
  35. .then((res) => {
  36. res.data.data.forEach((e) => {
  37. this.form1 = e;
  38. });
  39. });
  40. },
  41. // 返回
  42. onClickCancel() {
  43. this.$router.go(-1);
  44. },
  45. // 确认
  46. onClickConfirm() {
  47. let AmsshipDeliveryAttorney = {
  48. resultId: this.$route.params.attorneyId,
  49. portId: this.form1.portId,
  50. attorneyContactTelephone:this.form1.attorneyContactTelephone,
  51. attorenyPickupIdcard:this.form1.attorenyPickupIdcard,
  52. attorneyPickupContactPerson:this.form1.attorneyPickupContactPerson,
  53. downSwimPortId:this.form1.downSwimPortId,
  54. attorneyTime:sjTime(this.form1.attorneyTime),
  55. };
  56. this.axios
  57. .post("/api/v1/tms/editDeliveryAttroney",AmsshipDeliveryAttorney
  58. )
  59. .then(() => {
  60. this.$message({
  61. type: "success",
  62. message: "修改成功!",
  63. });
  64. this.$router.go(-1);
  65. });
  66. },
  67. },
  68. };
  69. </script>
  70. <style lang="scss">
  71. .shipTransport{
  72. .form{
  73. display: flex;
  74. .form_box{
  75. width: 320px;
  76. margin-left: 35%;
  77. margin-top: 30px;
  78. margin-right: 20px;
  79. .el-form{
  80. .preview-group{
  81. .el-form-item{
  82. .el-form-item__label{
  83. display: inline-block;
  84. width: 70px !important;
  85. }
  86. .el-form-item__content{
  87. .el-select{
  88. width: 250px;
  89. }
  90. .el-input{
  91. width: 250px;
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. .button_box{
  100. margin-left: 45%;
  101. }
  102. }
  103. </style>