|
|
|
@ -17,31 +17,31 @@
|
|
|
|
|
:model="form"
|
|
|
|
|
class="commerceMessage_form"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="企业名称">
|
|
|
|
|
<el-form-item label="企业名称" prop="companyName">
|
|
|
|
|
<el-input v-model="form.companyName"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="统一社会信用代码">
|
|
|
|
|
<el-form-item label="统一社会信用代码" prop="socialCreditCode">
|
|
|
|
|
<el-input v-model="form.socialCreditCode"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业性质">
|
|
|
|
|
<el-form-item label="企业性质" prop="companyNature">
|
|
|
|
|
<el-input v-model="form.companyNature"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="营业期限">
|
|
|
|
|
<el-form-item label="营业期限" prop="businessTermDate">
|
|
|
|
|
<el-input v-model="form.businessTermDate"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="发照日期">
|
|
|
|
|
<el-form-item label="发照日期" prop="businessLicenseDate">
|
|
|
|
|
<el-input v-model="form.businessLicenseDate"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="成立日期">
|
|
|
|
|
<el-form-item label="成立日期" prop="establishDate">
|
|
|
|
|
<el-input v-model="form.establishDate"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="注册资本">
|
|
|
|
|
<el-form-item label="注册资本" prop="registerCapital">
|
|
|
|
|
<el-input v-model="form.registerCapital"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="登记机关">
|
|
|
|
|
<el-form-item label="登记机关" prop="registerAuthority">
|
|
|
|
|
<el-input v-model="form.registerAuthority"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业经营状态">
|
|
|
|
|
<el-form-item label="企业经营状态" prop="businessStatus">
|
|
|
|
|
<el-input v-model="form.businessStatus"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
@ -71,10 +71,10 @@
|
|
|
|
|
:model="form"
|
|
|
|
|
class="commerceMessage_form_two"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="企业登记注册地">
|
|
|
|
|
<el-form-item label="企业登记注册地" prop="registerAddress">
|
|
|
|
|
<el-input v-model="form.registerAddress"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业类型">
|
|
|
|
|
<el-form-item label="企业类型" prop="companyTypes">
|
|
|
|
|
<el-checkbox-group v-model="form.companyTypes">
|
|
|
|
|
<el-checkbox label="剧毒" name="companyTypes"></el-checkbox>
|
|
|
|
|
<el-checkbox label="易剧毒" name="companyTypes"></el-checkbox>
|
|
|
|
@ -87,7 +87,7 @@
|
|
|
|
|
<el-checkbox label="外资合资" name="companyTypes"></el-checkbox>
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业主营范围">
|
|
|
|
|
<el-form-item label="企业主营范围" prop="businessScope">
|
|
|
|
|
<el-input type="textarea" v-model="form.businessScope"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
@ -100,10 +100,10 @@
|
|
|
|
|
:model="form"
|
|
|
|
|
class="company_person_message_form"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="安全责任人">
|
|
|
|
|
<el-form-item label="安全责任人" prop="emergencyContact">
|
|
|
|
|
<el-input v-model="form.emergencyContact"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="责任人电话">
|
|
|
|
|
<el-form-item label="责任人电话" prop="emergencyContactPhone">
|
|
|
|
|
<el-input v-model="form.emergencyContactPhone"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
@ -116,7 +116,7 @@
|
|
|
|
|
:model="form"
|
|
|
|
|
class="company_position_form"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="省份名称">
|
|
|
|
|
<el-form-item label="省份名称" prop="provinceName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.provinceName"
|
|
|
|
|
@change="checkCity"
|
|
|
|
@ -131,7 +131,7 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="城市名称">
|
|
|
|
|
<el-form-item label="城市名称" prop="cityName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.cityName"
|
|
|
|
|
@change="checkCounty"
|
|
|
|
@ -146,7 +146,7 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="区县名称">
|
|
|
|
|
<el-form-item label="区县名称" prop="areaName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.areaName"
|
|
|
|
|
@change="checkTown"
|
|
|
|
@ -161,7 +161,7 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="街道/乡镇名称">
|
|
|
|
|
<el-form-item label="街道/乡镇名称" prop="blockName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.blockName"
|
|
|
|
|
@change="checkCommunity"
|
|
|
|
@ -176,7 +176,7 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="社区/村名称">
|
|
|
|
|
<el-form-item label="社区/村名称" prop="streetName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.streetName"
|
|
|
|
|
placeholder="请选择社区/村名称"
|
|
|
|
@ -190,13 +190,13 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="企业地址">
|
|
|
|
|
<el-form-item label="企业地址" prop="companyAddress">
|
|
|
|
|
<el-input v-model="form.companyAddress"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="经度">
|
|
|
|
|
<el-form-item label="经度" prop="longitude">
|
|
|
|
|
<el-input v-model="form.longitude"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="纬度">
|
|
|
|
|
<el-form-item label="纬度" prop="latitude">
|
|
|
|
|
<el-input v-model="form.latitude"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
@ -209,10 +209,10 @@
|
|
|
|
|
:model="form"
|
|
|
|
|
class="jurisdiction_form"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="辖区派出所编码">
|
|
|
|
|
<el-form-item label="辖区派出所编码" prop="policeDistrictCode">
|
|
|
|
|
<el-input v-model="form.policeDistrictCode"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="辖区派出所名称">
|
|
|
|
|
<el-form-item label="辖区派出所名称" prop="policeDistrictCn">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.policeDistrictCn"
|
|
|
|
|
placeholder="请选择辖区派出所名称"
|
|
|
|
@ -226,14 +226,14 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所属片区">
|
|
|
|
|
<el-form-item label="所属片区" prop="belongingArea">
|
|
|
|
|
<el-input v-model="form.belongingArea"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="saveFormData">确 定</el-button>
|
|
|
|
|
<el-button @click="saveFormData()">确 定</el-button>
|
|
|
|
|
<el-button @click="closeForm">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -291,10 +291,10 @@ export default {
|
|
|
|
|
belongingArea: "",
|
|
|
|
|
},
|
|
|
|
|
imageUrl: "",
|
|
|
|
|
upUrl:`http://172.18.113.50:8080/zhapi/safety/system/enterpriseList`, // 图片上传地址
|
|
|
|
|
upUrl: `http://172.18.113.50:8080/zhapi/safety/system/enterpriseList`, // 图片上传地址
|
|
|
|
|
upheaders: {
|
|
|
|
|
Authorization: localStorage.getItem('AuthorizationToken')
|
|
|
|
|
}
|
|
|
|
|
Authorization: localStorage.getItem("AuthorizationToken"),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -305,6 +305,12 @@ export default {
|
|
|
|
|
open(num, item) {
|
|
|
|
|
this.visible = true;
|
|
|
|
|
if (num === 1) {
|
|
|
|
|
// 新建打开时,所有重置表单
|
|
|
|
|
this.$refs["commerceMessage_form"].resetFields();
|
|
|
|
|
this.$refs["commerceMessage_form_two"].resetFields();
|
|
|
|
|
this.$refs["company_person_message_form"].resetFields();
|
|
|
|
|
this.$refs["company_position_form"].resetFields();
|
|
|
|
|
this.$refs["jurisdiction_form"].resetFields();
|
|
|
|
|
this.dialogTitle = "新建";
|
|
|
|
|
} else if (num === 2) {
|
|
|
|
|
this.dialogTitle = "查看档案";
|
|
|
|
@ -313,7 +319,7 @@ export default {
|
|
|
|
|
console.log("item", item);
|
|
|
|
|
this.imageUrl = item.picUrl;
|
|
|
|
|
this.form = Object.assign(this.form, item);
|
|
|
|
|
console.log('form123',this.form);
|
|
|
|
|
console.log("form123", this.form);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getCheck() {
|
|
|
|
@ -392,7 +398,6 @@ export default {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success("新建成功");
|
|
|
|
|
this.visible = false;
|
|
|
|
|
this.form = {};
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning("新建失败");
|
|
|
|
|
}
|
|
|
|
@ -410,11 +415,11 @@ export default {
|
|
|
|
|
this.$emit("back");
|
|
|
|
|
},
|
|
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
|
|
console.log('resimg',res);
|
|
|
|
|
console.log('fileimg',file);
|
|
|
|
|
// this.imageUrl = URL.createObjectURL(file.raw);
|
|
|
|
|
this.$message.success('上传成功')
|
|
|
|
|
},
|
|
|
|
|
console.log("resimg", res);
|
|
|
|
|
console.log("fileimg", file);
|
|
|
|
|
// this.imageUrl = URL.createObjectURL(file.raw);
|
|
|
|
|
this.$message.success("上传成功");
|
|
|
|
|
},
|
|
|
|
|
closeForm() {
|
|
|
|
|
this.visible = false;
|
|
|
|
|
},
|
|
|
|
|