|
|
@ -21,10 +21,18 @@ |
|
|
|
value: 'contractName', |
|
|
|
options: 'options', |
|
|
|
}" |
|
|
|
@change="contractNameChange" |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
<a-row :gutter="[16, 16]"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-item label="运维单位" name="ioCompany"> |
|
|
|
<a-input v-model:value="form.ioCompany" disabled/> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
<a-row :gutter="[16, 16]"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-item label="是否事故" name="isAccident"> |
|
|
@ -140,7 +148,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { reactive, ref } from 'vue'; |
|
|
|
import { getInfo, getSubcategoryType, workOrderAdd, getContractNamesByProjectName } from './api'; |
|
|
|
import { getInfo, getSubcategoryType, workOrderAdd, getContractNamesByProjectName,getIoCompanyByName} from './api'; |
|
|
|
import { message } from 'ant-design-vue'; |
|
|
|
import AMapLoader from '@amap/amap-jsapi-loader'; |
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
@ -165,7 +173,12 @@ |
|
|
|
dispatchOpinion: '', |
|
|
|
longitude: '', |
|
|
|
latitude: '', |
|
|
|
ioCompany:'' |
|
|
|
}); |
|
|
|
const contractNameChange = async(val) =>{ |
|
|
|
const res = await getIoCompanyByName(val) |
|
|
|
form.ioCompany = res |
|
|
|
} |
|
|
|
//下拉框 |
|
|
|
const responseLevelOptions = [ |
|
|
|
{ |
|
|
@ -315,6 +328,7 @@ |
|
|
|
}, |
|
|
|
handleChange, |
|
|
|
fileLists, |
|
|
|
contractNameChange |
|
|
|
}; |
|
|
|
}, |
|
|
|
}; |
|
|
|