addEdit2.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <el-dialog
  3. v-loading="loading"
  4. :title="title"
  5. :center="true"
  6. align="left"
  7. top="10vh"
  8. width="1040px"
  9. :close-on-click-modal="false"
  10. :visible.sync="showModelThis"
  11. element-loading-text="拼命加载中"
  12. element-loading-spinner="el-icon-loading"
  13. element-loading-background="rgba(0, 0, 0, 0.8)"
  14. @close="closeModel"
  15. >
  16. <el-card style="margin-top: -15px;height:685px">
  17. <stepBar
  18. :id="modelId"
  19. :payNo="payNo"
  20. @refresh="searchList"
  21. :dstatus="dstatus"
  22. ></stepBar>
  23. <el-collapse v-model="activeNames" accordion>
  24. <el-collapse-item title="对账详情" name="1">
  25. <add-view
  26. style="margin:0 0 -28px 0;"
  27. :id="id"
  28. :isDetail="isDetail"
  29. :newTime="newTime"
  30. :payNo="payNo"
  31. @refreshAll="refreshAll"
  32. ></add-view>
  33. </el-collapse-item>
  34. <el-collapse-item title="业务审核" name="2">
  35. <exam-view
  36. :id="id"
  37. :newTime="newTime"
  38. :payNo="payNo"
  39. @refreshAll="refreshAll"
  40. ></exam-view>
  41. </el-collapse-item>
  42. </el-collapse>
  43. </el-card>
  44. </el-dialog>
  45. </template>
  46. <script>
  47. import addView from "@/views/purchase/orderRecord/components/addView";
  48. import examView from "@/views/purchase/orderRecord/components/examView";
  49. import stepBar from "@/views/purchase/orderRecord/components/stepBar";
  50. export default {
  51. name: "orderRecord",
  52. props: ["showModel", "id", "isDetail", "dstatus", "payNo","companyNo"],
  53. components: {
  54. addView,
  55. examView,
  56. stepBar,
  57. },
  58. data() {
  59. return {
  60. activeNames: "2",
  61. newTime: 0,
  62. activeName: "-1",
  63. loading: false,
  64. title: "业务审核",
  65. showModelThis: this.showModel,
  66. };
  67. },
  68. watch: {
  69. showModel: function (val) {
  70. this.showModelThis = val;
  71. if (val) {
  72. this.initForm();
  73. }
  74. },
  75. showModelThis(val) {
  76. if (!val) {
  77. this.$emit("cancel");
  78. }
  79. },
  80. },
  81. methods: {
  82. closeModel() {
  83. console.log("closeModel!!");
  84. },
  85. refreshAll() {
  86. this.showModelThis = false;
  87. this.$emit("refresh");
  88. },
  89. async initForm() {
  90. console.log(this.id);
  91. // this.active = this.dstatusOptions.findIndex((v) => v.id === this.dstatus);
  92. this.changea();
  93. // this.setActiveName();
  94. },
  95. changea() {
  96. this.newTime = new Date().valueOf();
  97. },
  98. },
  99. };
  100. </script>
  101. <style lang="scss" scoped>
  102. .orderRecord {
  103. .setWidth {
  104. width: 100% !important;
  105. // display: flex;
  106. // display: block !important;
  107. // .el-input__inner {
  108. // display: flex;
  109. // width: 1000px !important;
  110. // display: block !important;
  111. // }
  112. }
  113. }
  114. </style>