|
@@ -106,6 +106,9 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
+ <el-form-item label="实验室名称" prop="laboratoryName">
|
|
|
+ <el-input v-model="contractForm.laboratoryName"></el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-divider></el-divider>
|
|
@@ -121,9 +124,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="保管期限" prop="storagePeriod">
|
|
|
<el-select v-model="contractForm.storagePeriod" placeholder="请选择" class="w-100p">
|
|
|
- <el-option label="10年" value="10年"></el-option>
|
|
|
- <el-option label="30年" value="30年"></el-option>
|
|
|
- <el-option label="永久" value="永久"></el-option>
|
|
|
+ <el-option v-for="item in storagePeriodList" :key="item.id" :label="item.dictValue" :value="item.dictKey"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -137,10 +138,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="保管密级" prop="securityLevel">
|
|
|
<el-select v-model="contractForm.securityLevel" placeholder="请选择" class="w-100p">
|
|
|
- <el-option label="机密" value="机密"></el-option>
|
|
|
- <el-option label="绝密" value="绝密"></el-option>
|
|
|
- <el-option label="秘密" value="秘密"></el-option>
|
|
|
- <el-option label="公开" value="公开"></el-option>
|
|
|
+ <el-option v-for="item in securityLevelList" :key="item.id" :label="item.dictValue" :value="item.dictKey"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -254,6 +252,7 @@
|
|
|
submitWbsTreeInContract,getContractInfoTree} from "@/api/manager/contractinfo";
|
|
|
import {getRoleTree} from "@/api/system/role";
|
|
|
import {getDictionary} from "@/api/system/dict";
|
|
|
+ import {getDictionary as getDictbiz} from "@/api/system/dictbiz";
|
|
|
import {remove as removeFile} from "@/api/resource/attach";
|
|
|
import website from '@/config/website';
|
|
|
import {Base64} from 'js-base64';
|
|
@@ -310,6 +309,8 @@
|
|
|
projectInfo:{},
|
|
|
|
|
|
contractTypeList:[],
|
|
|
+ storagePeriodList:[],//保管期限
|
|
|
+ securityLevelList:[],//保管密级
|
|
|
fileList:[],
|
|
|
headers:{},
|
|
|
isBackShow:false,
|
|
@@ -336,6 +337,9 @@
|
|
|
supervisionUnitName: [
|
|
|
{ required: true, message: '请输入监理单位名称', trigger: 'blur' },
|
|
|
],
|
|
|
+ laboratoryName: [
|
|
|
+ { required: true, message: '请输入实验室名称', trigger: 'blur' },
|
|
|
+ ],
|
|
|
startStation: [
|
|
|
{ required: true, message: '请输入起始桩号', trigger: 'blur' },
|
|
|
],
|
|
@@ -441,6 +445,8 @@
|
|
|
}
|
|
|
|
|
|
this.getContractTypeList();
|
|
|
+ this.getStoragePeriodList();
|
|
|
+ this.getSecurityLevelList();
|
|
|
this.setHeaders();
|
|
|
},
|
|
|
beforeLeave(activeName, oldActiveName){
|
|
@@ -815,6 +821,33 @@
|
|
|
|
|
|
mapChange(){
|
|
|
this.$refs['contractForm'].validateField('projectPlace');
|
|
|
+ },
|
|
|
+
|
|
|
+ getStoragePeriodList(){
|
|
|
+ if(this.storagePeriodList.length >1){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ getDictbiz({
|
|
|
+ code:'storage_period'
|
|
|
+ }).then((res)=>{
|
|
|
+ res.data.data.forEach(element => {
|
|
|
+ element.dictKey = Number(element.dictKey)
|
|
|
+ });
|
|
|
+ this.storagePeriodList = res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getSecurityLevelList(){
|
|
|
+ if(this.securityLevelList.length >1){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ getDictbiz({
|
|
|
+ code:'security_level'
|
|
|
+ }).then((res)=>{
|
|
|
+ res.data.data.forEach(element => {
|
|
|
+ element.dictKey = Number(element.dictKey)
|
|
|
+ });
|
|
|
+ this.securityLevelList = res.data.data;
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
}
|