| | |
| | | type="select" /> |
| | | <u-icon slot="right" name="arrow-right" /> |
| | | </u-form-item> |
| | | <u-form-item border="none" border-bottom label="整改类型:" prop="changeType" required @click=" |
| | | showCheckBox = true; |
| | | hideKeyboard('changeEnum', 'changeType'); |
| | | "> |
| | | <u-input v-model="form.changeType" border="none" disabled disabled-color="#ffffff" placeholder="请选择" |
| | | type="select" /> |
| | | <u-icon slot="right" name="arrow-right" /> |
| | | <u-form-item border="none" border-bottom label="整改类型:" prop="changeType" required> |
| | | <u-radio-group v-model="form.changeType" style="font-size: 13px;"> |
| | | <u-radio :key="index" v-for="(item, index) in changeEnum" :customStyle="{marginRight: '16px'}" |
| | | :label="item.name" :name="item.value" /> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | <u-form-item border-bottom label="限期天数:" placeholder="请输入" required |
| | | :disabled='Number(sumbitForm.changeType)===1'> |
| | | <u-input v-model="form.changeDay" border="none" type="number" |
| | | :disabled='Number(sumbitForm.changeType)===1' /> |
| | | <u-form-item border-bottom label="限期天数:" placeholder="请输入" required :disabled='Number(form.changeType)===1'> |
| | | <u-input v-model="form.changeDay" border="none" type="number" :disabled='Number(form.changeType)===1' /> |
| | | </u-form-item> |
| | | <u-form-item border-bottom label="上报单位:" prop="escalationUnitId" required @click=" |
| | | showCheckBox = true; |
| | |
| | | <u-form-item border-bottom label="排查方式:" prop="investigationType" required> |
| | | <u-radio-group v-model="form.investigationType" style="font-size: 13px;"> |
| | | <u-radio :key="index" v-for="(item, index) in Dic.investigationEnum" |
| | | :custom-style="{marginRight: '8px'}" :label="item.name" :name="item.value" /> |
| | | :customStyle="{marginRight: '16px'}" :label="item.name" :name="item.value" /> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | <u-form-item border-bottom label="任务分类:" prop="keyPoint"> |
| | | <u-checkbox-group v-model="form.keyPoint" placement='column' style="font-size: 13px;" |
| | | @change='changeKeyPoint'> |
| | | <u-checkbox :key="index" v-for="(item, index) in emphasisEnumlist" |
| | | :customStyle="{marginTop: '10px'}" shape="circle" :label="item.name" :name="item.value" |
| | | :disabled="item.disabled"></u-checkbox> |
| | | </u-checkbox-group> |
| | | </u-form-item> |
| | | <u-form-item border-bottom label="问题描述:" prop="problemDescribe" required> |
| | | <u--textarea v-model="form.problemDescribe" border="none" placeholder="请输入内容" /> |
| | |
| | | </u-form-item> |
| | | </u-form> |
| | | <u-picker :show="showCheckBox" keyName="label" :columns="actionOptionList" @cancel="showCheckBox = false" |
| | | @confirm="selectBack"></u-picker> |
| | | :default-selector="[0]" :immediateChange='true' @confirm="selectBack"></u-picker> |
| | | <!-- <u-action-sheet v-if="actionOptionList.length > 0" :actions="actionOptionList" :show="showCheckBox" title="请选择" |
| | | @close="showCheckBox = false" @select="selectBack" /> --> |
| | | <view class="bunts"> |
| | |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'polluteType': { |
| | | required: true, |
| | | message: '请选择', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | 'changeType': { |
| | | required: true, |
| | | message: '请选择', |
| | | trigger: ['blur', 'change'] |
| | |
| | | escalationTime: '', |
| | | problemDescribe: '', |
| | | pollutePosition: '', |
| | | keyPoint: [] |
| | | }, |
| | | sumbitForm: { |
| | | unitId: '', |
| | |
| | | escalationTime: '', |
| | | problemDescribe: '', |
| | | pollutePosition: '', |
| | | keyPoint: null |
| | | }, |
| | | unitList: [], |
| | | polluteList: [], |
| | | fileBaseList: [], |
| | | emphasisEnumlist: [] |
| | | } |
| | | }, |
| | | onReady() { |
| | |
| | | return false |
| | | }, |
| | | methods: { |
| | | changeKeyPoint(name) { |
| | | if (name.length > 0) { |
| | | this.sumbitForm.keyPoint = name[0] |
| | | this.emphasisEnumlist.forEach(item => { |
| | | if (item.value === name[0]) { |
| | | item.disabled = false |
| | | } else { |
| | | item.disabled = true |
| | | } |
| | | }) |
| | | } else { |
| | | this.emphasisEnumlist.forEach(item => { |
| | | item.disabled = false |
| | | }) |
| | | } |
| | | console.log(this.emphasisEnumlist) |
| | | }, |
| | | handleFile(data) { |
| | | console.log('datadata', data) |
| | | this.fileBaseList = data |
| | | }, |
| | | close() { |
| | |
| | | this.sumbitForm.escalationName = this.form.escalationName |
| | | this.sumbitForm.investigationType = this.form.investigationType |
| | | this.sumbitForm.fileBaseList = this.fileBaseList |
| | | this.sumbitForm.changeType = this.form.changeType |
| | | this.sumbitForm.state = '20' |
| | | console.log('this.sumbitForm', this.sumbitForm) |
| | | this.$http.httpPost('/allocation/insert', { |
| | |
| | | this.form.escalationTime = data |
| | | this.sumbitForm.escalationTime = data |
| | | if (this.changeEnum.length > 0) { |
| | | this.form.changeType = this.changeEnum[0].name |
| | | this.form.changeType = this.changeEnum[0].value |
| | | this.sumbitForm.changeType = this.changeEnum[0].value |
| | | } |
| | | let userInfor = JSON.parse(uni.getStorageSync('userInfor') || '{}') |
| | |
| | | this.unitList = res.data |
| | | this.Dic = JSON.parse(uni.getStorageSync('dict') || '[]') |
| | | this.changeEnum = this.Dic.changeEnum |
| | | this.changeEnum = this.Dic.changeEnum |
| | | this.emphasisEnumlist = this.Dic.emphasisEnum.map(item => { |
| | | item.disabled = false |
| | | return item |
| | | }) |
| | | this.setDefaultValue() |
| | | }) |
| | | }, |