12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <view>
- <view>
- <hs-input label="申请人" v-model="form.applyUserName" disabled></hs-input>
- <hs-dept-select label="归属部门" v-model="form.deptId" :autofill="true"></hs-dept-select>
- <hs-input label="设备位置" v-model="form.deviceLoca" model="textarea"></hs-input>
- <hs-input label="报修说明" v-model="form.remark" model="textarea"></hs-input>
- <hs-dict-select label="紧急程度" dictKey="device_repairs_urgency_level" v-model="form.urgencyLevel" />
- <hs-photo label="请添加设备照片" limit="5" v-model="form.photos"></hs-photo>
- </view>
- <u-gap height="70" bgColor="#ffffff"></u-gap>
- <hs-flow-submit ref="flowSubmit" @verify="verify" :data="form" api="deviceRepairs"></hs-flow-submit>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- form: {
- applyUserName: ''
- }
- }
- },
- onLoad() {
- //申请人初始化
- this.form.applyUserName = uni.getStorageSync("userInfo").nickName
- },
- methods: {
- verify() {
- console.log("提交", this.form)
- this.$refs.flowSubmit.submit()
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .desc {
- padding: 15rpx 5rpx;
- }
- .bottim_view {
- padding: 5px 20px 30px;
- position: fixed;
- left: 0px;
- bottom: 0px;
- width: 100%;
- height: 40px;
- background-color: #ffffff;
- }
- </style>
|