info.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="mainBox">
  3. <u-cell-group>
  4. <u-cell title="需求类型" arrow-direction="down">
  5. <text slot="value">
  6. {{form.sourceTypeName||''}}
  7. </text>
  8. </u-cell>
  9. <u-cell title="需求单名称" arrow-direction="down">
  10. <text slot="value">
  11. {{form.requirementName||''}}
  12. </text>
  13. </u-cell>
  14. <u-cell title="需求部门" arrow-direction="down">
  15. <text slot="value">
  16. {{form.requireDeptName||''}}
  17. </text>
  18. </u-cell>
  19. <u-cell title="需求人" arrow-direction="down">
  20. <text slot="value">
  21. {{form.requireUserName||''}}
  22. </text>
  23. </u-cell>
  24. <u-cell title="销售合同" arrow-direction="down">
  25. <text slot="value">
  26. {{form.saleContractName||''}}
  27. </text>
  28. </u-cell>
  29. <u-cell title="销售订单" arrow-direction="down">
  30. <text slot="value">
  31. {{form.saleOrderNo||''}}
  32. </text>
  33. </u-cell>
  34. <u-cell title="是否接受拆单" arrow-direction="down">
  35. <text slot="value">
  36. {{form.acceptUnpack == 1 ? '接受' : '不接受'}}
  37. </text>
  38. </u-cell>
  39. <u-cell title="用途" arrow-direction="down">
  40. <text slot="value">
  41. {{form.useTo||''}}
  42. </text>
  43. </u-cell>
  44. <u-cell title="备注" arrow-direction="down">
  45. <text slot="value">
  46. {{form.remark||''}}
  47. </text>
  48. </u-cell>
  49. <u-cell title="附件" arrow-direction="down">
  50. <text slot="value">
  51. <fileMain v-model="form.fileId" type="view"></fileMain>
  52. </text>
  53. </u-cell>
  54. </u-cell-group>
  55. </view>
  56. </template>
  57. <script>
  58. import fileMain from "@/pages/doc/index.vue"
  59. export default {
  60. data() {
  61. return {
  62. form: {},
  63. }
  64. },
  65. components: {
  66. fileMain
  67. },
  68. created() {
  69. },
  70. methods: {
  71. init(data) {
  72. console.log(data,'datasss')
  73. if (data) {
  74. this.form = data
  75. this.form.fileId = this.form.fileId ? JSON.parse(this.form.fileId) : []
  76. }
  77. },
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. /deep/.u-swipe-action-item__right__button__wrapper {
  83. background-color: #f56c6c !important;
  84. }
  85. /deep/.u-cell__body,/deep/.u-cell__title-text{
  86. font-size: 26rpx;
  87. }
  88. </style>