|
|
|
@ -256,8 +256,8 @@
|
|
|
|
|
<div v-else>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item class="daoqitixingren" label="统一社会信用代码" required>
|
|
|
|
|
<el-form-item prop="tyshxydm"
|
|
|
|
|
<!-- <el-form-item> -->
|
|
|
|
|
<el-form-item prop="tyshxydm" class="daoqitixingren" label="统一社会信用代码" required
|
|
|
|
|
:rules="[
|
|
|
|
|
{
|
|
|
|
|
pattern: /^[a-zA-Z0-9]{18}$/,
|
|
|
|
@ -268,7 +268,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- </el-form-item> -->
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="账号名称" prop="gzhmc"
|
|
|
|
@ -365,8 +365,8 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="系统责任人电话" required>
|
|
|
|
|
<el-form-item prop="xtzrrdh"
|
|
|
|
|
<!-- <el-form-item label="系统责任人电话" required> -->
|
|
|
|
|
<el-form-item prop="xtzrrdh" label="系统责任人电话" required
|
|
|
|
|
:rules="[
|
|
|
|
|
{
|
|
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
@ -377,13 +377,13 @@
|
|
|
|
|
>
|
|
|
|
|
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- </el-form-item> -->
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="系统责任人邮箱" required>
|
|
|
|
|
<el-form-item prop="xtzrryx"
|
|
|
|
|
<!-- <el-form-item> -->
|
|
|
|
|
<el-form-item prop="xtzrryx" label="系统责任人邮箱" required
|
|
|
|
|
:rules="[
|
|
|
|
|
{
|
|
|
|
|
type: 'email',
|
|
|
|
@ -394,7 +394,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- </el-form-item> -->
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="系统责任人地址" required prop="xtzrrdz">
|
|
|
|
@ -412,21 +412,41 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType == 'change' && !audit">
|
|
|
|
|
<el-button type="danger" @click="sendBack">取消</el-button>
|
|
|
|
|
<el-button type="primary" @click="newAssets" :loading="loading">保存</el-button>
|
|
|
|
|
<el-button type="primary" @click="newAssets" :loading="loading">提交</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="audit">
|
|
|
|
|
<el-button type="danger" :disabled="false" @click="btnReject">不通过</el-button>
|
|
|
|
|
<el-button type="primary" :disabled="false" @click="newAssets" :loading="loading">通过</el-button>
|
|
|
|
|
<el-button type="primary" :disabled="false" @click="btnPass" :loading="loading">通过</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<my-dialog title="提示" ref="liebiaoDialog" class="taskDialogBox" width="40%">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="21">
|
|
|
|
|
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="dialogruleForm" label-width="100px">
|
|
|
|
|
<el-form-item label="不通过原因:" prop="auditYy">
|
|
|
|
|
<el-input v-model="dialogruleForm.auditYy" placeholder="请输入不通过原因"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="newTask-form-item">
|
|
|
|
|
<el-button @click="resetForm('dialogruleForm')">取消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm('dialogruleForm')">确定</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6"></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</my-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
|
|
|
|
|
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList, gzhLookInfo, gzhAudit, gzhUnitEdit } from "@/api/auditPagesApi/index";
|
|
|
|
|
import myDialog from "@/views/components/myDialog/index.vue"
|
|
|
|
|
export default {
|
|
|
|
|
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_lx','gzh_rzzt','gzh_rzlx','gzh_cdlx'],
|
|
|
|
|
components:{
|
|
|
|
|
myDialog
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
ruleForm:{
|
|
|
|
@ -440,10 +460,10 @@ export default {
|
|
|
|
|
{ required: true, message: "公众号名称不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
wxh: [
|
|
|
|
|
{ required: true, message: "微信号不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "微信号不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
rzzt: [
|
|
|
|
|
{ required: true, message: "认证主体不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "认证主体不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
tyshxydm: [
|
|
|
|
|
{ required: true, message: "统一社会信用代码不能为空", trigger: "change" },
|
|
|
|
@ -453,7 +473,7 @@ export default {
|
|
|
|
|
{ required: true, message: "公众号状态不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
gzhId: [
|
|
|
|
|
{ required: true, message: "公众号ID不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "公众号ID不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
gzhlx: [
|
|
|
|
|
{ required: true, message: "公众号类型不能为空", trigger: "change" }
|
|
|
|
@ -477,63 +497,108 @@ export default {
|
|
|
|
|
{ required: true, message: "行政区划不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
xtzrr: [
|
|
|
|
|
{ required: true, message: "系统责任人不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "系统责任人不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
xtzrrdh: [
|
|
|
|
|
{ required: true, message: "系统责任人电话不能为空", trigger: "change" },
|
|
|
|
|
{ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "change" }
|
|
|
|
|
{ required: true, message: "系统责任人电话不能为空", trigger: "blur" },
|
|
|
|
|
{ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
xtzrryx: [
|
|
|
|
|
{ required: true, message: "系统责任人邮箱不能为空", trigger: "change" },
|
|
|
|
|
{ type: 'email', message: "请输入正确的邮箱地址", trigger: ['change', 'change'] }
|
|
|
|
|
{ type: 'email', message: "请输入正确的邮箱地址", trigger: ['change', 'blur'] }
|
|
|
|
|
],
|
|
|
|
|
xtzrrdz: [
|
|
|
|
|
{ required: true, message: "系统责任人地址不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "系统责任人地址不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
cdmc: [
|
|
|
|
|
{ required: true, message: "菜单信息(菜单名称)不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "菜单信息(菜单名称)不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
cdlj: [
|
|
|
|
|
{ required: true, message: "菜单信息(菜单链接)不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "菜单信息(菜单链接)不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
cdlx: [
|
|
|
|
|
{ required: true, message: "菜单信息(菜单类型)不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "菜单信息(菜单类型)不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
xtjj: [
|
|
|
|
|
{ required: true, message: "系统简介不能为空", trigger: "change" }
|
|
|
|
|
{ required: true, message: "系统简介不能为空", trigger: "blur" }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
loading:false,
|
|
|
|
|
disabled:false,
|
|
|
|
|
dialogruleForm:{
|
|
|
|
|
auditYy:'',
|
|
|
|
|
},
|
|
|
|
|
dialogruleFormrules:{
|
|
|
|
|
auditYy: [
|
|
|
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
props:['pageType', 'id', 'audit'],
|
|
|
|
|
props:['pageType', 'id', 'audit', 'isModdle'],
|
|
|
|
|
mounted(){
|
|
|
|
|
if(this.pageType == 'look') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
const inputElements = document.querySelectorAll('.el-input__inner');
|
|
|
|
|
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
|
|
|
|
|
inputElements.forEach((input) => {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
textareaInputElements.forEach((input) => {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
} else if(this.pageType == 'change') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
if(this.audit) {
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
if(this.isModdle) {
|
|
|
|
|
if(this.pageType == 'look') {
|
|
|
|
|
this.getInfoTwo(this.id)
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
const inputElements = document.querySelectorAll('.el-input__inner');
|
|
|
|
|
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
|
|
|
|
|
inputElements.forEach((input) => {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
textareaInputElements.forEach((input) => {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
} else if(this.pageType == 'change') {
|
|
|
|
|
this.getInfoTwo(this.id)
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
if(this.audit) {
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if(this.pageType == 'look') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
const inputElements = document.querySelectorAll('.el-input__inner');
|
|
|
|
|
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
|
|
|
|
|
inputElements.forEach((input) => {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
textareaInputElements.forEach((input) => {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
} else if(this.pageType == 'change') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
if(this.audit) {
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
getInfo(id){
|
|
|
|
|
assetOfficialAccountInfo(id).then(res=>{
|
|
|
|
|
this.ruleForm = res.data;
|
|
|
|
|
if(!this.ruleForm.ptlx) {
|
|
|
|
|
this.ruleForm.ptlx = '1'
|
|
|
|
|
}
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.$refs.ruleForm.clearValidate()
|
|
|
|
|
}, 100);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getInfoTwo(id){
|
|
|
|
|
gzhLookInfo(id).then(res=>{
|
|
|
|
|
this.ruleForm = res.data;
|
|
|
|
|
if(!this.ruleForm.ptlx) {
|
|
|
|
|
this.ruleForm.ptlx = '1'
|
|
|
|
|
}
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.$refs.ruleForm.clearValidate()
|
|
|
|
|
}, 100);
|
|
|
|
@ -558,10 +623,10 @@ export default {
|
|
|
|
|
if(valid) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
if(this.pageType == 'change') {
|
|
|
|
|
assetOfficialAccount('put',this.ruleForm).then(res=>{
|
|
|
|
|
gzhUnitEdit(this.ruleForm).then(res=>{
|
|
|
|
|
// console.log(res,"res");
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.$modal.msgSuccess("提交成功,待管理员审核通过后完成修改");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
@ -578,8 +643,48 @@ export default {
|
|
|
|
|
sendBack(){
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
},
|
|
|
|
|
// 驳回按钮
|
|
|
|
|
btnReject(){
|
|
|
|
|
|
|
|
|
|
this.$refs.liebiaoDialog.open()
|
|
|
|
|
},
|
|
|
|
|
// 驳回输入驳回原因点击取消按钮
|
|
|
|
|
resetForm() {
|
|
|
|
|
this.dialogruleForm = {
|
|
|
|
|
auditYy:""
|
|
|
|
|
}
|
|
|
|
|
this.$refs.liebiaoDialog.close()
|
|
|
|
|
},
|
|
|
|
|
// 驳回输入驳回原因点击确定按钮
|
|
|
|
|
submitForm(formName) {
|
|
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let tijioaobj = {
|
|
|
|
|
auditState: '3',
|
|
|
|
|
auditYy: this.dialogruleForm.auditYy,
|
|
|
|
|
currentId: Number(this.id),
|
|
|
|
|
}
|
|
|
|
|
gzhAudit(tijioaobj).then(res=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.$modal.msgSuccess("审核驳回");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log('error submit!!');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 通过按钮
|
|
|
|
|
btnPass(){
|
|
|
|
|
this.loading = true;
|
|
|
|
|
gzhAudit({currentId:Number(this.id),auditState:"2"}).then(res=>{
|
|
|
|
|
this.$modal.msgSuccess("审核通过");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|