|
|
@@ -9,7 +9,7 @@
|
|
|
:key="v.key"
|
|
|
>{{ v.value }}</el-descriptions-item
|
|
|
>
|
|
|
- <el-descriptions-item label="机构组织类型">{{
|
|
|
+ <el-descriptions-item label="机构组织类型" v-if="false">{{
|
|
|
getLabel(dict.type.reality_org_type, orgType)
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="是否可用">{{
|
|
|
@@ -32,7 +32,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="机构类型" v-if="false">
|
|
|
- <el-select v-model="type" placeholder="机构类型">
|
|
|
+ <el-select v-model="type" placeholder="请选择机构类型">
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.sys_org_type"
|
|
|
:key="dict.value"
|
|
|
@@ -44,26 +44,29 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item v-if="type == 4" label="城市天气区域">
|
|
|
-<!-- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-model="weatherAreaCode"
|
|
|
placeholder="天气区域编码"
|
|
|
@input="handleInput2"
|
|
|
></el-input>-->
|
|
|
-<!-- <el-select v-model="weatherAreaCode" placeholder="请选择" clearable>
|
|
|
+ <!-- <el-select v-model="weatherAreaCode" placeholder="请选择" clearable>
|
|
|
<el-option v-for="item in areaList" :key="item.key" :label="item.value" :value="item.key"></el-option>
|
|
|
</el-select>-->
|
|
|
<el-cascader
|
|
|
+ clearable
|
|
|
v-model="weatherAreaCode"
|
|
|
:options="areaList"
|
|
|
@change="selectArea"
|
|
|
+ placeholder="请选择城市天气区域"
|
|
|
></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item v-if="type == 4" label="营业场所面积">
|
|
|
<el-input
|
|
|
+ clearable
|
|
|
v-model="premisesArea"
|
|
|
- placeholder="营业场所面积"
|
|
|
+ placeholder="请输入营业场所面积"
|
|
|
@input="handleInput"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -95,14 +98,18 @@
|
|
|
v-model="lastUpdateTime"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- placeholder="请选择更新日期"
|
|
|
+ placeholder="请选择最近一次更新"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item v-if="type == 10" label="平台品牌">
|
|
|
- <el-select v-model="platformBrand" placeholder="平台品牌">
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="platformBrand"
|
|
|
+ placeholder="请选择平台品牌"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.org_platform_brand"
|
|
|
:key="dict.value"
|
|
|
@@ -115,8 +122,9 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item v-if="type == 10" label="平台供应商品牌">
|
|
|
<el-select
|
|
|
+ clearable
|
|
|
v-model="platformSupplierBrand"
|
|
|
- placeholder="平台供应商品牌"
|
|
|
+ placeholder="请选择平台供应商品牌"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.org_platform_supplier_brand"
|
|
|
@@ -139,38 +147,40 @@
|
|
|
label-position="left"
|
|
|
label-width="120px"
|
|
|
>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="是否自有产权">
|
|
|
- <el-select
|
|
|
- v-model="ownership"
|
|
|
- placeholder="是否自有产权"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.property_situation"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="是否区域外">
|
|
|
- <el-select
|
|
|
- v-model="outsideArea"
|
|
|
- placeholder="是否区域外"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.org_extend_is"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="是否自有产权">
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="ownership"
|
|
|
+ placeholder="请选择是否自有产权"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.property_situation"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="是否区域外">
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="outsideArea"
|
|
|
+ placeholder="请选择是否区域外"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.org_extend_is"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<!-- 表格 -->
|
|
|
@@ -281,9 +291,9 @@
|
|
|
<el-col :span="12" :xs="24">
|
|
|
<p style="font-size: 12px; color: #999">上传保安证</p>
|
|
|
<image-upload
|
|
|
+ :limit="5"
|
|
|
:value="askariCertificate"
|
|
|
:fileSize="2"
|
|
|
- :type="'alone'"
|
|
|
@input="getImgUrl"
|
|
|
></image-upload>
|
|
|
|
|
|
@@ -299,8 +309,7 @@
|
|
|
<el-image :src="uplp"></el-image>
|
|
|
</div>
|
|
|
</el-col> -->
|
|
|
- <!-- <el-image class="zoom-image border-color-change" :src="uplp" fit="contain"></el-image>-->
|
|
|
-
|
|
|
+ <!-- <el-image class="zoom-image border-color-change" :src="uplp" fit="contain"></el-image>-->
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -320,7 +329,11 @@
|
|
|
<el-row>
|
|
|
<el-col :span="7">
|
|
|
<el-form-item label="业务库类型">
|
|
|
- <el-select v-model="businessLibraryType" placeholder="请选择业务库类型">
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="businessLibraryType"
|
|
|
+ placeholder="请选择业务库类型"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.business_library_type"
|
|
|
:key="dict.value"
|
|
|
@@ -775,24 +788,24 @@
|
|
|
label="证书"
|
|
|
prop="certificate"
|
|
|
>
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-if="false"
|
|
|
v-model="Businessform.certificate"
|
|
|
placeholder="请输入证书"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<div
|
|
|
class="image-container"
|
|
|
style="margin-left: 20px"
|
|
|
- v-if="!Businessform.certificate"
|
|
|
+ v-if="Businessform.certificateEvidence"
|
|
|
>
|
|
|
<p style="font-size: 12px; color: #999">上传证书</p>
|
|
|
<image-upload
|
|
|
- :limit="1"
|
|
|
+ :limit="5"
|
|
|
:fileSize="2"
|
|
|
+ :value="Businessform.certificate"
|
|
|
@input="uploadBusinessSuccess"
|
|
|
></image-upload>
|
|
|
</div>
|
|
|
- <a :href="Businessform.certificate">点击查看</a>
|
|
|
<!-- <el-button type="primary" @click="resetimg(Businessform.certificate)">重新上传</el-button> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="false" label="佐证" prop="evidence">
|
|
|
@@ -864,24 +877,24 @@
|
|
|
label="证书"
|
|
|
prop="certificate"
|
|
|
>
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-if="false"
|
|
|
v-model="Bankform.certificate"
|
|
|
placeholder="请输入证书"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<div
|
|
|
class="image-container"
|
|
|
style="margin-left: 20px"
|
|
|
- v-if="!Bankform.certificate"
|
|
|
+ v-if="Bankform.certificateEvidence"
|
|
|
>
|
|
|
<p style="font-size: 12px; color: #999">上传证书</p>
|
|
|
<image-upload
|
|
|
- :limit="1"
|
|
|
+ :limit="5"
|
|
|
:fileSize="2"
|
|
|
+ :value="Bankform.certificate"
|
|
|
@input="uploadBankSuccess"
|
|
|
></image-upload>
|
|
|
</div>
|
|
|
- <a :href="Bankform.certificate">点击查看</a>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="false" label="佐证" prop="evidence">
|
|
|
<el-input v-model="Bankform.evidence" placeholder="请输入佐证" />
|
|
|
@@ -943,24 +956,24 @@
|
|
|
label="证书"
|
|
|
prop="certificate"
|
|
|
>
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-if="false"
|
|
|
v-model="orgform.certificate"
|
|
|
placeholder="请输入证书"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<div
|
|
|
class="image-container"
|
|
|
style="margin-left: 20px"
|
|
|
- v-if="!orgform.certificate"
|
|
|
+ v-if="orgform.certificateEvidence"
|
|
|
>
|
|
|
<p style="font-size: 12px; color: #999">上传证书</p>
|
|
|
<image-upload
|
|
|
- :limit="1"
|
|
|
+ :limit="5"
|
|
|
:fileSize="2"
|
|
|
+ :value="orgform.certificate"
|
|
|
@input="uploadorgSuccess"
|
|
|
></image-upload>
|
|
|
</div>
|
|
|
- <a :href="orgform.certificate">点击查看</a>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="false" label="佐证" prop="evidence">
|
|
|
<el-input v-model="orgform.evidence" placeholder="请输入佐证" />
|
|
|
@@ -1031,24 +1044,24 @@
|
|
|
label="证书"
|
|
|
prop="certificate"
|
|
|
>
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-if="false"
|
|
|
v-model="detachedform.certificate"
|
|
|
placeholder="请输入证书"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<div
|
|
|
class="image-container"
|
|
|
style="margin-left: 20px"
|
|
|
- v-if="!detachedform.certificate"
|
|
|
+ v-if="detachedform.certificateEvidence"
|
|
|
>
|
|
|
<p style="font-size: 12px; color: #999">上传证书</p>
|
|
|
<image-upload
|
|
|
- :limit="1"
|
|
|
+ :limit="5"
|
|
|
:fileSize="2"
|
|
|
+ :value="detachedform.certificate"
|
|
|
@input="uploaddetachedSuccess"
|
|
|
></image-upload>
|
|
|
</div>
|
|
|
- <a :href="detachedform.certificate">点击查看</a>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="false" label="佐证" prop="evidence">
|
|
|
<el-input v-model="detachedform.evidence" placeholder="请输入佐证" />
|
|
|
@@ -1096,8 +1109,8 @@ import {
|
|
|
updateOrgPhysicalDefenseConstruction,
|
|
|
delOrgPhysicalDefenseConstruction,
|
|
|
} from "@/api/system/OrgPhysicalDefenseConstruction";
|
|
|
-import {selectCityInfoVoList} from "@/api/core/weather";
|
|
|
-import TreeNodeDialogVue from '../../tool/build/TreeNodeDialog.vue';
|
|
|
+import { selectCityInfoVoList } from "@/api/core/weather";
|
|
|
+import TreeNodeDialogVue from "../../tool/build/TreeNodeDialog.vue";
|
|
|
|
|
|
export default {
|
|
|
dicts: [
|
|
|
@@ -1112,22 +1125,26 @@ export default {
|
|
|
"org_extend_self_service_bank_standard",
|
|
|
"org_extend_detached_standard",
|
|
|
"org_extend_is",
|
|
|
- "property_situation"
|
|
|
+ "property_situation",
|
|
|
],
|
|
|
props: [],
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- reqmsg:false,
|
|
|
+ reqmsg: false,
|
|
|
//表单验证
|
|
|
rules: {
|
|
|
standard: [{ required: true, message: "请输入标准", trigger: "blur" }],
|
|
|
dateOfCompliance: [
|
|
|
- { required: TreeNodeDialogVue, message: "请输入达标日期", trigger: "blur" },
|
|
|
- ],
|
|
|
- certificate: [
|
|
|
- { validator: this.isreq, message: "请选择图片", trigger: "blur" },
|
|
|
+ {
|
|
|
+ required: TreeNodeDialogVue,
|
|
|
+ message: "请输入达标日期",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
],
|
|
|
+ // certificate: [
|
|
|
+ // { validator: this.isreq, message: "请选择图片", trigger: "blur" },
|
|
|
+ // ],
|
|
|
},
|
|
|
|
|
|
//基础信息key
|
|
|
@@ -1140,6 +1157,7 @@ export default {
|
|
|
// { label: "是否可用", key: "isLock" },
|
|
|
{ label: "更新时间", key: "updateTime" },
|
|
|
{ label: "同步时间", key: "createTime" },
|
|
|
+ { label: "机构简称", key: "shortName" },
|
|
|
],
|
|
|
|
|
|
type: null,
|
|
|
@@ -1152,8 +1170,8 @@ export default {
|
|
|
premisesArea: null,
|
|
|
ownership: null,
|
|
|
outsideArea: null,
|
|
|
- askari: 1,
|
|
|
- businessLibrary: 1,
|
|
|
+ askari: 0,
|
|
|
+ businessLibrary: 0,
|
|
|
businessLibraryType: null,
|
|
|
dutyMode: 0,
|
|
|
remoteControl: null,
|
|
|
@@ -1237,44 +1255,47 @@ export default {
|
|
|
propItem: "",
|
|
|
|
|
|
row: "",
|
|
|
- areaList:[],
|
|
|
+ areaList: [],
|
|
|
+ imgs: [],
|
|
|
+ Businessimgs: [],
|
|
|
+ Bankimgs: [],
|
|
|
+ orgimgs: [],
|
|
|
+ detachedimgs: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
- 'detachedform.certificateEvidence'(newValue) {
|
|
|
+ "detachedform.certificateEvidence"(newValue) {
|
|
|
if (newValue === 1) {
|
|
|
- this.reqmsg=true;
|
|
|
+ this.reqmsg = true;
|
|
|
}
|
|
|
if (newValue === 0) {
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
}
|
|
|
},
|
|
|
- 'Bankform.certificateEvidence'(newValue) {
|
|
|
+ "Bankform.certificateEvidence"(newValue) {
|
|
|
if (newValue === 1) {
|
|
|
- this.reqmsg=true;
|
|
|
+ this.reqmsg = true;
|
|
|
}
|
|
|
if (newValue === 0) {
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
}
|
|
|
},
|
|
|
- 'Businessform.certificateEvidence'(newValue) {
|
|
|
+ "Businessform.certificateEvidence"(newValue) {
|
|
|
if (newValue === 1) {
|
|
|
- this.reqmsg=true;
|
|
|
+ this.reqmsg = true;
|
|
|
}
|
|
|
if (newValue === 0) {
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
}
|
|
|
},
|
|
|
- 'orgform.certificateEvidence'(newValue) {
|
|
|
+ "orgform.certificateEvidence"(newValue) {
|
|
|
if (newValue === 1) {
|
|
|
- this.reqmsg=true;
|
|
|
+ this.reqmsg = true;
|
|
|
}
|
|
|
if (newValue === 0) {
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
computed: {
|
|
|
switchModel: {
|
|
|
@@ -1297,71 +1318,68 @@ export default {
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
-
|
|
|
isreq(rule, value, callback) {
|
|
|
- if(this.reqmsg){
|
|
|
- callback(new Error('证书为必填项'));
|
|
|
- }else{
|
|
|
+ if (this.reqmsg) {
|
|
|
+ callback(new Error("证书为必填项"));
|
|
|
+ } else {
|
|
|
callback();
|
|
|
}
|
|
|
},
|
|
|
- getImgUrl(fileList) {
|
|
|
- let matchResult = fileList.match(/\/statics(.*)/);
|
|
|
- if (matchResult) {
|
|
|
- let result = matchResult[0];
|
|
|
- this.askariCertificate = result;
|
|
|
- } else {
|
|
|
- }
|
|
|
- // this.askariCertificate=img;
|
|
|
- console.log(this.askariCertificate, "imgs");
|
|
|
+ // getImgUrl(fileList) {
|
|
|
+ // let matchResult = fileList.match(/\/statics(.*)/);
|
|
|
+ // if (matchResult) {
|
|
|
+ // let result = matchResult[0];
|
|
|
+ // this.askariCertificate = result;
|
|
|
+ // } else {
|
|
|
+ // }
|
|
|
+ // // this.askariCertificate=img;
|
|
|
+ // console.log(this.askariCertificate, "imgs");
|
|
|
+ // },
|
|
|
+ getImgUrl(img) {
|
|
|
+ this.imgs.push(img);
|
|
|
+ console.log(this.imgs, "imgs");
|
|
|
},
|
|
|
getAreaList() {
|
|
|
- selectCityInfoVoList({}).then(response => {
|
|
|
+ selectCityInfoVoList({}).then((response) => {
|
|
|
this.areaList = response.data;
|
|
|
});
|
|
|
},
|
|
|
- selectArea(value){
|
|
|
- this.weatherAreaCode=value[1];
|
|
|
+ selectArea(value) {
|
|
|
+ this.weatherAreaCode = value[1];
|
|
|
},
|
|
|
downBusiness(file) {
|
|
|
- window.open(file);
|
|
|
+ let array = file.split(',');
|
|
|
+ console.log(array)
|
|
|
+ for (let i = 0; i < array.length; i++) {
|
|
|
+ window.open(array[i]);
|
|
|
+ }
|
|
|
},
|
|
|
//证书上传
|
|
|
- uploadBusinessSuccess(fileList) {
|
|
|
- let matchResult = fileList.match(/\/statics(.*)/);
|
|
|
- if (matchResult) {
|
|
|
- let result = matchResult[0];
|
|
|
- this.Businessform.certificate = result;
|
|
|
- } else {
|
|
|
- }
|
|
|
+ uploadBusinessSuccess(img) {
|
|
|
+ this.Businessimgs.push(img);
|
|
|
},
|
|
|
- uploadBankSuccess(fileList) {
|
|
|
- let matchResult = fileList.match(/\/statics(.*)/);
|
|
|
- if (matchResult) {
|
|
|
- let result = matchResult[0];
|
|
|
- this.Bankform.certificate = result;
|
|
|
- } else {
|
|
|
- }
|
|
|
+ uploadBankSuccess(img) {
|
|
|
+ this.Bankimgs.push(img);
|
|
|
},
|
|
|
- uploadorgSuccess(fileList) {
|
|
|
- let matchResult = fileList.match(/\/statics(.*)/);
|
|
|
- if (matchResult) {
|
|
|
- let result = matchResult[0];
|
|
|
- this.orgform.certificate = result;
|
|
|
- } else {
|
|
|
- }
|
|
|
+ uploadorgSuccess(img) {
|
|
|
+ this.orgimgs.push(img);
|
|
|
},
|
|
|
- uploaddetachedSuccess(fileList) {
|
|
|
- let matchResult = fileList.match(/\/statics(.*)/);
|
|
|
- if (matchResult) {
|
|
|
- let result = matchResult[0];
|
|
|
- this.detachedform.certificate = result;
|
|
|
- } else {
|
|
|
- }
|
|
|
+ uploaddetachedSuccess(img) {
|
|
|
+ this.detachedimgs.push(img);
|
|
|
},
|
|
|
+
|
|
|
handleInput() {
|
|
|
// 使用正则表达式过滤输入,只保留数字和小数点
|
|
|
- this.premisesArea = this.premisesArea.replace(/[^0-9.]/g, "");
|
|
|
+ // this.premisesArea = this.premisesArea.replace(/[^0-9.]/g, "");
|
|
|
+ // 限制只能输入1到999999之间的数字
|
|
|
+ let value = parseInt(this.premisesArea, 10); // 将输入的值转为整数
|
|
|
+
|
|
|
+ if (isNaN(value) || value < 1 || value > 999999) {
|
|
|
+ // 判断是否在范围内
|
|
|
+ this.premisesArea = ""; // 不在范围内则清空输入的值
|
|
|
+ } else {
|
|
|
+ this.premisesArea = value.toString(); // 在范围内则保留输入的值
|
|
|
+ }
|
|
|
},
|
|
|
handleInput2() {
|
|
|
// 使用正则表达式过滤输入,只保留数字和小数点
|
|
|
@@ -1414,6 +1432,20 @@ export default {
|
|
|
data.data.detachedWallPenetratingEquipment;
|
|
|
this.cashAddingRoomRemoteControl =
|
|
|
data.data.cashAddingRoomRemoteControl;
|
|
|
+ // if (
|
|
|
+ // this.askariCertificate &&
|
|
|
+ // this.askariCertificate.trim() &&
|
|
|
+ // this.askariCertificate.includes(",")
|
|
|
+ // ) {
|
|
|
+ // this.imgs = this.askariCertificate.split(",");
|
|
|
+ // } else if (
|
|
|
+ // this.askariCertificate &&
|
|
|
+ // this.askariCertificate.trim() &&
|
|
|
+ // this.askariCertificate.includes(".")
|
|
|
+ // ) {
|
|
|
+ // this.imgs.push(this.askariCertificate);
|
|
|
+ // }
|
|
|
+
|
|
|
// console.log(this.extendId);
|
|
|
}
|
|
|
});
|
|
|
@@ -1477,7 +1509,7 @@ export default {
|
|
|
updateBy: null,
|
|
|
orgId: null,
|
|
|
};
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
this.resetForm("Businessform");
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
@@ -1504,11 +1536,13 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitBusinessForm() {
|
|
|
+ this.Businessform.certificate= this.Businessimgs[this.Businessimgs.length - 1].toString(",");
|
|
|
this.$refs.Businessform.validate((valid) => {
|
|
|
if (valid) {
|
|
|
// 表单验证通过,提交数据或执行其他操作
|
|
|
this.Businessform.orgId = this.$route.params.id;
|
|
|
this.Businessform.type = 2;
|
|
|
+
|
|
|
if (this.Businessform.id != null) {
|
|
|
// console.log(this.Businessform,"this.Businessform")
|
|
|
updateOrgPhysicalDefenseConstruction(this.Businessform).then(
|
|
|
@@ -1542,9 +1576,7 @@ export default {
|
|
|
handleBusinessDelete(row) {
|
|
|
const Businessids = row.id || this.Businessids;
|
|
|
this.$modal
|
|
|
- .confirm(
|
|
|
- '确认删除?'
|
|
|
- )
|
|
|
+ .confirm("确认删除?")
|
|
|
.then(function () {
|
|
|
return delOrgPhysicalDefenseConstruction(Businessids);
|
|
|
})
|
|
|
@@ -1577,7 +1609,7 @@ export default {
|
|
|
updateBy: null,
|
|
|
orgId: null,
|
|
|
};
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
this.resetForm("Bankform");
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
@@ -1604,11 +1636,13 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitBankForm() {
|
|
|
+ this.Bankform.certificate= this.Bankimgs[this.Bankimgs.length - 1].toString(",");
|
|
|
this.$refs.Bankform.validate((valid) => {
|
|
|
if (valid) {
|
|
|
// 表单验证通过,提交数据或执行其他操作
|
|
|
this.Bankform.orgId = this.$route.params.id;
|
|
|
this.Bankform.type = 3;
|
|
|
+
|
|
|
if (this.Bankform.id != null) {
|
|
|
updateOrgPhysicalDefenseConstruction(this.Bankform).then(
|
|
|
(response) => {
|
|
|
@@ -1641,7 +1675,7 @@ export default {
|
|
|
handleBankDelete(row) {
|
|
|
const Bankids = row.id || this.Bankids;
|
|
|
this.$modal
|
|
|
- .confirm('确认删除?')
|
|
|
+ .confirm("确认删除?")
|
|
|
.then(function () {
|
|
|
return delOrgPhysicalDefenseConstruction(Bankids);
|
|
|
})
|
|
|
@@ -1672,7 +1706,7 @@ export default {
|
|
|
updateBy: null,
|
|
|
orgId: null,
|
|
|
};
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
this.resetForm("detachedform");
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
@@ -1699,11 +1733,13 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitdetachedForm() {
|
|
|
+ this.detachedform.certificate= this.detachedimgs[this.detachedimgs.length - 1].toString(",");
|
|
|
this.$refs.detachedform.validate((valid) => {
|
|
|
if (valid) {
|
|
|
// 表单验证通过,提交数据或执行其他操作
|
|
|
this.detachedform.orgId = this.$route.params.id;
|
|
|
this.detachedform.type = 4;
|
|
|
+
|
|
|
if (this.detachedform.id != null) {
|
|
|
updateOrgPhysicalDefenseConstruction(this.detachedform).then(
|
|
|
(response) => {
|
|
|
@@ -1736,9 +1772,7 @@ export default {
|
|
|
handledetachedDelete(row) {
|
|
|
const detachedids = row.id || this.detachedids;
|
|
|
this.$modal
|
|
|
- .confirm(
|
|
|
- '确认删除?'
|
|
|
- )
|
|
|
+ .confirm("确认删除?")
|
|
|
.then(function () {
|
|
|
return delOrgPhysicalDefenseConstruction(detachedids);
|
|
|
})
|
|
|
@@ -1764,7 +1798,7 @@ export default {
|
|
|
updateBy: null,
|
|
|
orgId: null,
|
|
|
};
|
|
|
- this.reqmsg=false;
|
|
|
+ this.reqmsg = false;
|
|
|
this.resetForm("orgform");
|
|
|
},
|
|
|
// 取消按钮
|
|
|
@@ -1797,11 +1831,13 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitOrgForm() {
|
|
|
+ this.orgform.certificate= this.orgimgs[this.orgimgs.length - 1].toString(",");
|
|
|
this.$refs.orgform.validate((valid) => {
|
|
|
if (valid) {
|
|
|
// 表单验证通过,提交数据或执行其他操作
|
|
|
this.orgform.orgId = this.$route.params.id;
|
|
|
this.orgform.type = 1;
|
|
|
+
|
|
|
if (this.orgform.id != null) {
|
|
|
updateOrgPhysicalDefenseConstruction(this.orgform).then(
|
|
|
(response) => {
|
|
|
@@ -1832,7 +1868,7 @@ export default {
|
|
|
handleOrgDelete(row) {
|
|
|
const orgids = row.id || this.orgids;
|
|
|
this.$modal
|
|
|
- .confirm('确认删除?')
|
|
|
+ .confirm("确认删除?")
|
|
|
.then(function () {
|
|
|
return delOrgPhysicalDefenseConstruction(orgids);
|
|
|
})
|
|
|
@@ -1846,10 +1882,10 @@ export default {
|
|
|
let dat = {
|
|
|
orgType: this.orgType,
|
|
|
weatherAreaCode: this.weatherAreaCode,
|
|
|
- askariCertificate: this.askariCertificate,
|
|
|
+ askariCertificate: this.imgs[this.imgs.length - 1].toString(","),
|
|
|
premisesArea: this.premisesArea,
|
|
|
- ownership: this.ownership ,
|
|
|
- outsideArea: this.outsideArea ,
|
|
|
+ ownership: this.ownership,
|
|
|
+ outsideArea: this.outsideArea,
|
|
|
askari: this.askari ? 1 : 0,
|
|
|
businessLibraryType: this.businessLibraryType,
|
|
|
dutyMode: this.dutyMode,
|