result-2.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div id="result-1">
  3. <van-row>
  4. <van-col span="24" class="main">
  5. <van-col span="24" class="one">
  6. <van-form>
  7. <van-field v-model="form.name" name="发明名称" label="发明名称" readonly />
  8. <van-field v-model="form.apply_name" name="申请人" label="申请人" readonly />
  9. <van-field v-model="form.type" name="专利类型" label="专利类型" readonly />
  10. <van-field v-model="form.inventor" name="发明人" label="发明人" readonly />
  11. <van-field v-model="form.contact" name="技术联系人" label="技术联系人" readonly />
  12. <van-field v-model="form.phone" name="联系人电话" label="联系人电话" readonly />
  13. <van-field v-model="form.email" name="联系人邮箱" label="联系人邮箱" readonly />
  14. <div style="margin: 16px" v-if="form.status == '-1' || form.status == '-2'">
  15. <van-button round block type="info" @click="update">重申</van-button>
  16. </div>
  17. </van-form>
  18. </van-col>
  19. <van-col span="24" class="two">
  20. <van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 16px' }"> 审核结果 </van-divider>
  21. <van-col span="24" class="record">
  22. <van-steps direction="vertical" inactive-color="#409eff">
  23. <van-step v-for="(item, index) in form.record" :key="index">
  24. <p>
  25. <span>{{ item.time }}</span>
  26. <span>{{ item.word }}</span>
  27. </p>
  28. <p>审核意见:{{ item.remark || '暂无' }}</p>
  29. </van-step>
  30. </van-steps>
  31. </van-col>
  32. </van-col>
  33. </van-col>
  34. </van-row>
  35. </div>
  36. </template>
  37. <script>
  38. import { mapState, createNamespacedHelpers } from 'vuex';
  39. export default {
  40. name: 'result-1',
  41. props: {
  42. form: { type: Object },
  43. },
  44. components: {},
  45. data: function () {
  46. return {};
  47. },
  48. created() {},
  49. methods: {
  50. update() {
  51. this.$emit('update');
  52. },
  53. },
  54. computed: {
  55. ...mapState(['user']),
  56. },
  57. metaInfo() {
  58. return { title: this.$route.meta.title };
  59. },
  60. watch: {
  61. test: {
  62. deep: true,
  63. immediate: true,
  64. handler(val) {},
  65. },
  66. },
  67. };
  68. </script>
  69. <style lang="less" scoped>
  70. .main {
  71. .two {
  72. .record {
  73. p:first-child {
  74. color: #666;
  75. font-weight: bold;
  76. margin: 0 0 5px 0;
  77. font-size: 12px;
  78. span:last-child {
  79. float: right;
  80. }
  81. }
  82. p:last-child {
  83. color: #000;
  84. }
  85. }
  86. }
  87. }
  88. </style>