| | |
| | | <el-form-item v-if="eventInfoData.store" label="店铺得分:"> |
| | | <span>{{ selectStoreChange(eventInfoData.store).storeScore }}</span> |
| | | </el-form-item> |
| | | <el-form-item label="处理意见:" prop="advice"> |
| | | <el-radio-group v-model="eventInfoData.advice"> |
| | | <el-radio :label="item.id" v-for="item in adviceList" :key="item.id">{{ item.label }}</el-radio> |
| | | <el-form-item label="处理意见:" prop="state"> |
| | | <el-radio-group v-model="eventInfoData.state"> |
| | | <el-radio :label="item.id" v-for="item in stateList" :key="item.id">{{ item.label }}</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="大类名称:" prop="categoryId"> |
| | |
| | | import { FILE_ORIGINAL_URL } from "@/utils"; |
| | | import { validateCarNum } from "@/utils/validate"; |
| | | import MyDispatch from '@/components/dispatch'; |
| | | import { formatDate } from "@/utils/date"; |
| | | |
| | | export default { |
| | | components: { MyDispatch }, |
| | |
| | | register: 0 |
| | | }, |
| | | currentEvent: {}, |
| | | adviceList: [ |
| | | stateList: [ |
| | | { |
| | | id: 2, |
| | | label: '上报', |
| | |
| | | ], |
| | | eventInfoData: null, |
| | | rules:{ |
| | | advice:[ |
| | | state:[ |
| | | { |
| | | required: true, trigger:['blur', 'change'], message: '处理意见不能为空' |
| | | }, |
| | |
| | | this.eventInfoData.baseId = this.currentEvent.baseId; |
| | | |
| | | // 调度 |
| | | if (this.eventInfoData.advice === 6) { |
| | | if (this.eventInfoData.state === 6) { |
| | | this.isShowDialog = true; |
| | | } else { |
| | | this.confirmInspection(); |
| | |
| | | this.eventInfoData = { |
| | | baseId: null, |
| | | store: null, |
| | | advice: null, |
| | | state: null, |
| | | categoryId: null, |
| | | typeId: null, |
| | | carNumber: null, |
| | |
| | | }, |
| | | |
| | | confirmInspection(data) { |
| | | basecase.confirmInspection({ ...this.eventInfoData, ...data }) |
| | | if (data) { |
| | | data.baseCaseId = data.id; |
| | | } |
| | | const eventParams = Object.assign({}, this.eventInfoData); |
| | | delete eventParams.store; |
| | | basecase.confirmInspection({ ...eventParams, ...data }) |
| | | .then(() => { |
| | | this.$message.success('操作成功'); |
| | | this.getInspectionData(); |
| | |
| | | |
| | | selectStoreChange(id) { |
| | | const selectedStore = this.storeList.find(store => store.id === id); |
| | | this.eventInfoData.shopName = selectedStore.storeName; |
| | | this.eventInfoData.shopName = selectedStore.id; |
| | | this.eventInfoData.linkShop = 1; |
| | | return selectedStore; |
| | | } |
| | |
| | | <div class="contentItem"> |
| | | <div style="width: 80px">按社区:</div> |
| | | <div class="search"> |
| | | <el-select clearable v-model="searchData.communityId" placeholder="请选择社区"> |
| | | <el-option v-for="option in communityOptions" :key="option.id" :value="option.id" :label="option.regionName"></el-option> |
| | | </el-select> |
| | | <el-cascader clearable v-model="searchData.community" :props="communityProps" :options="communityOptions" placeholder="请选择社区"> |
| | | </el-cascader> |
| | | </div> |
| | | </div> |
| | | <div class="contentItem"> |
| | |
| | | currentPage: 1, |
| | | categoryOptions: CATEGOTY, |
| | | communityOptions: [], |
| | | communityProps: { |
| | | label: 'regionName', |
| | | value: 'id' |
| | | }, |
| | | myproblem: 1, |
| | | number: "", |
| | | searchData: { |
| | | categories: null, |
| | | number: null, |
| | | communityId: null, |
| | | community: null, |
| | | endTime: null, |
| | | site: null, |
| | | startTime: null, |
| | |
| | | methods: { |
| | | // 获取列表 |
| | | getList() { |
| | | const searchData = Object.assign({}, this.searchData); |
| | | if (this.searchData.community) { |
| | | searchData.communityId = searchData.community[1]; |
| | | } |
| | | delete searchData.community; |
| | | casequery |
| | | .baseCaseQuery({ |
| | | current: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | ...this.searchData, |
| | | ...searchData, |
| | | }) |
| | | .then((res) => { |
| | | this.tableData = res.records; |