| | |
| | | <el-form :model="state.form" size="default" ref="busRef" :rules="state.rules" label-position="right" label-width="130"> |
| | | <el-row :gutter="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="企业名称:" prop="companyId" v-if="state.isAdmin"> |
| | | <el-form-item label="单位名称:" prop="companyId" v-if="state.isAdmin"> |
| | | <el-select v-model="state.form.companyId" placeholder="请选择" filterable clearable style="width: 100%" :disabled="title == '查看' || title == '编辑' || !state.isAdmin" @change="selectValueCom"> |
| | | <el-option |
| | | v-for="item in state.companyList" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="年份:" prop="year"> |
| | | <el-date-picker |
| | | v-model="state.form.year" |
| | | type="year" |
| | | value-format="YYYY" |
| | | placeholder="年份" |
| | | /> |
| | | </el-form-item> |
| | | <el-row :gutter="24"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="记录名称:" prop="recordName" > |
| | |
| | | id: '', |
| | | companyId: null, |
| | | recordName: '', |
| | | year:new Date().getFullYear().toString(), |
| | | inspectionMesses: [] |
| | | }, |
| | | rules: { |
| | |
| | | environment: [{required: true, message: "", trigger: "blur"}], |
| | | consistency: [{required: true, message: "", trigger: "blur"}], |
| | | inspectionMesses:[{ required: true, message: '请填写月度检查记录表', trigger: 'blur' }], |
| | | year: [{ required: true, message: '请选择年份', trigger: 'blur' }], |
| | | }, |
| | | peopleList: [], |
| | | isAdmin: false, |
| | |
| | | id: '', |
| | | companyId: null, |
| | | recordName: '', |
| | | year:new Date().getFullYear().toString(), |
| | | inspectionMesses: [] |
| | | } |
| | | state.companyList = [] |