repairs.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view>
  3. <view>
  4. <hs-input label="申请人" v-model="form.applyUserName" disabled></hs-input>
  5. <hs-dept-select label="归属部门" v-model="form.deptId" :autofill="true"></hs-dept-select>
  6. <hs-input label="设备位置" v-model="form.deviceLoca" model="textarea"></hs-input>
  7. <hs-input label="报修说明" v-model="form.remark" model="textarea"></hs-input>
  8. <hs-dict-select label="紧急程度" dictKey="device_repairs_urgency_level" v-model="form.urgencyLevel" />
  9. <hs-photo label="请添加设备照片" limit="5" v-model="form.photos"></hs-photo>
  10. </view>
  11. <u-gap height="70" bgColor="#ffffff"></u-gap>
  12. <hs-flow-submit ref="flowSubmit" @verify="verify" :data="form" api="deviceRepairs"></hs-flow-submit>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. form: {
  20. applyUserName: ''
  21. }
  22. }
  23. },
  24. onLoad() {
  25. //申请人初始化
  26. this.form.applyUserName = uni.getStorageSync("userInfo").nickName
  27. },
  28. methods: {
  29. verify() {
  30. console.log("提交", this.form)
  31. this.$refs.flowSubmit.submit()
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .desc {
  38. padding: 15rpx 5rpx;
  39. }
  40. .bottim_view {
  41. padding: 5px 20px 30px;
  42. position: fixed;
  43. left: 0px;
  44. bottom: 0px;
  45. width: 100%;
  46. height: 40px;
  47. background-color: #ffffff;
  48. }
  49. </style>