| | |
| | | </u-form-item> |
| | | </view> |
| | | <view class="formItemContent"> |
| | | <u-form-item label="相关附件:" :border-bottom="false"> |
| | | <u-form-item label="相关附件:" :border-bottom="false" :required="!pageState" |
| | | prop="fileListRequired"> |
| | | <view class="fileBox" v-if="pageState"> |
| | | <cl-upload v-model="fileList" :add="false" :action="`''`" cloud-type="other" |
| | | :remove="false" /> |
| | | </view> |
| | | <view class="fileBox" v-else> |
| | | <view class="overFile"> |
| | | <u--input v-model="form.fileListRequired" border="none"></u--input> |
| | | </view> |
| | | <fileUpload class="rowTipContenetAll" :sys-code="sysCode" |
| | | @handleFile="handleFile" /> |
| | | </view> |
| | |
| | | isChange: 1, |
| | | changeName: '', |
| | | changeDescribe: '', |
| | | fileListRequired: '' |
| | | }, |
| | | dictObj: JSON.parse(uni.getStorageSync('dictObj') || '[]'), |
| | | fileList: [], |
| | |
| | | message: '请输入', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'fileListRequired': { |
| | | required: true, |
| | | message: '请上传附件', |
| | | trigger: ['blur', 'change'] |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | onLoad: function(option) { |
| | |
| | | }, |
| | | handleFile(data) { |
| | | this.fileBaseList = data |
| | | console.log('data', data) |
| | | this.form.fileListRequired = data.length > 0 ? '12323' : null |
| | | console.log('this.fileListRequired', this.form.fileListRequired) |
| | | this.form.fileChangeList = this.fileBaseList |
| | | }, |
| | | formVali() { |
| | | return new Promise((resolve, reject) => { |
| | | if (!this.pageState) { |
| | | this.$refs.uForm.validate().then(res => { |
| | | console.log('res', res) |
| | | resolve(true) |
| | | }).catch(errors => { |
| | | reject(false) |
| | |
| | | margin: 19.23rpx 0px !important; |
| | | } |
| | | |
| | | .fileBox { |
| | | .overFile { |
| | | z-index: -100; |
| | | position: absolute !important; |
| | | height: 96px !important; |
| | | opacity: 0; |
| | | } |
| | | } |
| | | |
| | | .workOrderDetail { |
| | | border: 1px solid #bbb; |
| | | border-radius: 5px; |