|
|
@ -141,6 +141,17 @@ |
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:routerFreedom']" |
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:routerFreedom']" |
|
|
|
>自主授权</el-button> |
|
|
|
>自主授权</el-button> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
type="success" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
icon="el-icon-caret-right" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
:disabled="single" |
|
|
|
|
|
|
|
@click="obtainLoginStatus" |
|
|
|
|
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:routerFreedom']" |
|
|
|
|
|
|
|
>授权活跃状态查询</el-button> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
@ -178,7 +189,6 @@ |
|
|
|
icon="el-icon-s-promotion" |
|
|
|
icon="el-icon-s-promotion" |
|
|
|
@click="registered(scope.row)" |
|
|
|
@click="registered(scope.row)" |
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:edit']" |
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:edit']" |
|
|
|
v-if="isShowRegistered(scope.row)" |
|
|
|
|
|
|
|
>登记</el-button> |
|
|
|
>登记</el-button> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
@ -186,7 +196,6 @@ |
|
|
|
icon="el-icon-s-check" |
|
|
|
icon="el-icon-s-check" |
|
|
|
@click="loginVerificated(scope.row)" |
|
|
|
@click="loginVerificated(scope.row)" |
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:remove']" |
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:remove']" |
|
|
|
v-show="isShowLoginVerificated(scope.row)" |
|
|
|
|
|
|
|
>登录校验</el-button> |
|
|
|
>登录校验</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
@ -211,7 +220,7 @@ |
|
|
|
<el-option v-for="dict in dict.type.login_dlsf" :key="dict.value" :label="dict.label" |
|
|
|
<el-option v-for="dict in dict.type.login_dlsf" :key="dict.value" :label="dict.label" |
|
|
|
:value="dict.value"/> |
|
|
|
:value="dict.value"/> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<!-- <el-input v-model="form.dlsf" placeholder="请输入登录身份" />--> |
|
|
|
<!-- <el-input v-model="form.dlsf" placeholder="请输入登录身份" />--> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="办税人员登录密码" prop="dlsfmm"> |
|
|
|
<el-form-item label="办税人员登录密码" prop="dlsfmm"> |
|
|
|
<el-input v-model="form.dlsfmm" placeholder="请输入办税人员登录密码" /> |
|
|
|
<el-input v-model="form.dlsfmm" placeholder="请输入办税人员登录密码" /> |
|
|
@ -221,7 +230,7 @@ |
|
|
|
<el-option v-for="dict in dict.type.login_dlfs" :key="dict.value" :label="dict.label" |
|
|
|
<el-option v-for="dict in dict.type.login_dlfs" :key="dict.value" :label="dict.label" |
|
|
|
:value="dict.value"/> |
|
|
|
:value="dict.value"/> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<!-- <el-input v-model="form.dlfs" placeholder="请输入登录方式" />--> |
|
|
|
<!-- <el-input v-model="form.dlfs" placeholder="请输入登录方式" />--> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="登录密码" prop="dlmm"> |
|
|
|
<el-form-item label="登录密码" prop="dlmm"> |
|
|
|
<el-input v-model="form.dlmm" placeholder="请输入登录密码" /> |
|
|
|
<el-input v-model="form.dlmm" placeholder="请输入登录密码" /> |
|
|
@ -272,9 +281,9 @@ import { |
|
|
|
registeredMethod, |
|
|
|
registeredMethod, |
|
|
|
getCompanyservice, |
|
|
|
getCompanyservice, |
|
|
|
qrcodeMethod, |
|
|
|
qrcodeMethod, |
|
|
|
encrypt |
|
|
|
encrypt, |
|
|
|
|
|
|
|
obtainLoginStatus |
|
|
|
} from "@/api/digital/registered"; |
|
|
|
} from "@/api/digital/registered"; |
|
|
|
import router from "@/router"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "Invoiceallyhdj", |
|
|
|
name: "Invoiceallyhdj", |
|
|
@ -285,6 +294,7 @@ export default { |
|
|
|
loading: true, |
|
|
|
loading: true, |
|
|
|
// 选中数组 |
|
|
|
// 选中数组 |
|
|
|
ids: [], |
|
|
|
ids: [], |
|
|
|
|
|
|
|
chooses: [], |
|
|
|
should : false, |
|
|
|
should : false, |
|
|
|
// 非单个禁用 |
|
|
|
// 非单个禁用 |
|
|
|
single: true, |
|
|
|
single: true, |
|
|
@ -354,6 +364,26 @@ export default { |
|
|
|
{ required: true, message: "属性不能为空", trigger: "blur" } |
|
|
|
{ required: true, message: "属性不能为空", trigger: "blur" } |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkRegested:{ |
|
|
|
|
|
|
|
identity: "企业ID", |
|
|
|
|
|
|
|
bsryxm : "办税人员姓名", |
|
|
|
|
|
|
|
dqbm : "地区编码", |
|
|
|
|
|
|
|
dlsf : "登录身份", |
|
|
|
|
|
|
|
dlsfmm : "办税人员登录密码", |
|
|
|
|
|
|
|
dlmm : "登录密码", |
|
|
|
|
|
|
|
dlzh : "登录账号", |
|
|
|
|
|
|
|
nsrmc : "纳税人名称", |
|
|
|
|
|
|
|
nsrsbh : "纳税人识别号", |
|
|
|
|
|
|
|
bsrysfzjhm : "办税人员身份证件号码", |
|
|
|
|
|
|
|
bsrysjhm : "办税人员手机号码" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
checkLogin:{ |
|
|
|
|
|
|
|
identity: "企业ID", |
|
|
|
|
|
|
|
dqbm : "地区编码", |
|
|
|
|
|
|
|
nsrsbh : "纳税人识别号", |
|
|
|
|
|
|
|
bsrysfzjhm : "办税人员身份证件号码", |
|
|
|
|
|
|
|
}, |
|
|
|
//登记参数 |
|
|
|
//登记参数 |
|
|
|
registeredParams: { |
|
|
|
registeredParams: { |
|
|
|
appkey: "935248bf224f6c8431cdc1969f029519", |
|
|
|
appkey: "935248bf224f6c8431cdc1969f029519", |
|
|
@ -397,7 +427,43 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
routerFreedom() { |
|
|
|
routerFreedom() { |
|
|
|
this.$router.push("/auth") |
|
|
|
const url = this.$router.resolve({ path: "/auth" }).href; |
|
|
|
|
|
|
|
window.open(url, '_blank'); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** 等级活跃状态查询 */ |
|
|
|
|
|
|
|
obtainLoginStatus(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.chooses.length==1){ |
|
|
|
|
|
|
|
getCompanyservice(this.chooses[0].identity).then(resp=>{ |
|
|
|
|
|
|
|
//请求成功 |
|
|
|
|
|
|
|
if(resp.code==200 && resp.data != null && resp.data != ""){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const requestBody = { |
|
|
|
|
|
|
|
key: resp.data.secret, |
|
|
|
|
|
|
|
order: JSON.stringify({ |
|
|
|
|
|
|
|
nsrsbh: this.chooses[0].nsrsbh |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
|
|
|
|
if (res.code == 200 && res.data != null && res.data != "") { |
|
|
|
|
|
|
|
obtainLoginStatus(res.data,this.chooses[0].identity).then(response => { |
|
|
|
|
|
|
|
if (response.code == 200){ |
|
|
|
|
|
|
|
this.$message.success(response.msg) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}else if (res.data == null || res.data == ""){ |
|
|
|
|
|
|
|
this.$message.error('报文加密失败') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else if(resp.data == null || resp.data == "") { |
|
|
|
|
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.$message.error('请选择一条数据') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
/** 查询金四-用户登记列表 */ |
|
|
|
/** 查询金四-用户登记列表 */ |
|
|
|
getList() { |
|
|
|
getList() { |
|
|
@ -451,6 +517,9 @@ export default { |
|
|
|
// 多选框选中数据 |
|
|
|
// 多选框选中数据 |
|
|
|
handleSelectionChange(selection) { |
|
|
|
handleSelectionChange(selection) { |
|
|
|
this.ids = selection.map(item => item.id) |
|
|
|
this.ids = selection.map(item => item.id) |
|
|
|
|
|
|
|
this.chooses = selection.map(item => { |
|
|
|
|
|
|
|
return {identity:item.identity,nsrsbh:item.nsrsbh} |
|
|
|
|
|
|
|
}) |
|
|
|
this.single = selection.length!==1 |
|
|
|
this.single = selection.length!==1 |
|
|
|
this.multiple = !selection.length |
|
|
|
this.multiple = !selection.length |
|
|
|
}, |
|
|
|
}, |
|
|
@ -472,73 +541,97 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
//登记方法 |
|
|
|
//登记方法 |
|
|
|
registered(row) { |
|
|
|
registered(row) { |
|
|
|
this.reset(); |
|
|
|
let msg = this.checkParams(row,this.checkRegested) |
|
|
|
this.$modal.confirm('请确认:登记identity为'+row.identity+',登记方式为'+row.dlfs+',登记身份为'+row.dlsf+'?').then(() => { |
|
|
|
if (!msg){ |
|
|
|
|
|
|
|
this.reset(); |
|
|
|
|
|
|
|
this.$modal.confirm('请确认:登记identity为'+row.identity+',登记方式为'+row.dlfs+',登记身份为'+row.dlsf+'?').then(() => { |
|
|
|
|
|
|
|
getCompanyservice(row.identity).then(resp=>{ |
|
|
|
|
|
|
|
//请求成功 |
|
|
|
|
|
|
|
if(resp.code==200 && resp.data){ |
|
|
|
|
|
|
|
this.convertRegistedParam(row,true) |
|
|
|
|
|
|
|
const requestBody = { |
|
|
|
|
|
|
|
key: resp.data.secret, |
|
|
|
|
|
|
|
order: JSON.stringify(this.registeredParams), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
|
|
|
|
if (res.code == 200 && res.data) { |
|
|
|
|
|
|
|
registeredMethod(res.data,row.identity).then(response => { |
|
|
|
|
|
|
|
if (response.code == 200){ |
|
|
|
|
|
|
|
this.$message.success('请求登记成功') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}else if (!res.data){ |
|
|
|
|
|
|
|
this.$message.error('报文加密失败') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else if(!resp.data) { |
|
|
|
|
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.$message.error(msg) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** 登陆验证 */ |
|
|
|
|
|
|
|
loginVerificated(row){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let msg = this.checkParams(row,this.checkLogin); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!msg){ |
|
|
|
|
|
|
|
this.reset(); |
|
|
|
getCompanyservice(row.identity).then(resp=>{ |
|
|
|
getCompanyservice(row.identity).then(resp=>{ |
|
|
|
//请求成功 |
|
|
|
//请求成功 |
|
|
|
if(resp.code==200 && resp.data != null && resp.data != ""){ |
|
|
|
if(resp.code==200 && resp.data){ |
|
|
|
this.convertRegistedParam(row,true) |
|
|
|
this.convertRegistedParam(row,false) |
|
|
|
const requestBody = { |
|
|
|
const requestBody = { |
|
|
|
key: resp.data.secret, |
|
|
|
key: resp.data.secret, |
|
|
|
order: JSON.stringify(this.registeredParams), |
|
|
|
order: JSON.stringify(this.loginVerificatedParams), |
|
|
|
} |
|
|
|
} |
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
if (res.code == 200 && res.data != null && res.data != "") { |
|
|
|
if (res.code == 200 && res.data) { |
|
|
|
registeredMethod(res.data,row.identity).then(response => { |
|
|
|
qrcodeMethod(res.data,row.identity).then(response => { |
|
|
|
if (response.code == 200){ |
|
|
|
if (response.code == 200 && response.data){ |
|
|
|
this.$message.success('请求登记成功') |
|
|
|
|
|
|
|
|
|
|
|
if (response.data.requestId){ |
|
|
|
|
|
|
|
this.$message.success('登记成功') |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.$message.error('登记失败') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
if(response.msg){ |
|
|
|
|
|
|
|
this.$message.error(response.msg) |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.$message.error(response.message) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}else if (res.data == null || res.data == ""){ |
|
|
|
}else if (!res.data){ |
|
|
|
this.$message.error('报文加密失败') |
|
|
|
this.$message.error('报文加密失败') |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else if(resp.data == null || resp.data == "") { |
|
|
|
}else if (!resp.data){ |
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else { |
|
|
|
|
|
|
|
this.$message.error(msg) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** 登陆验证 */ |
|
|
|
checkParams(row,check){ |
|
|
|
loginVerificated(row){ |
|
|
|
let msg = ''; |
|
|
|
this.reset(); |
|
|
|
Object.keys(check).forEach(key=>{ |
|
|
|
getCompanyservice(row.identity).then(resp=>{ |
|
|
|
if (row[key]==null || row[key]==''){ |
|
|
|
//请求成功 |
|
|
|
msg = msg+check[key]+'、' |
|
|
|
if(resp.code==200 && resp.data != null && resp.data != ""){ |
|
|
|
|
|
|
|
this.convertRegistedParam(row,false) |
|
|
|
|
|
|
|
const requestBody = { |
|
|
|
|
|
|
|
key: resp.data.secret, |
|
|
|
|
|
|
|
order: JSON.stringify(this.loginVerificatedParams), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
|
|
|
|
if (res.code == 200 && res.data != null && res.data != "") { |
|
|
|
|
|
|
|
qrcodeMethod(res.data,row.identity).then(response => { |
|
|
|
|
|
|
|
if (response.code == 200 && response.data != null && response.data != ""){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data.requestId != null && response.data.requestId != ""){ |
|
|
|
|
|
|
|
this.$message.success('登记成功') |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.$message.error('登记失败') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
if(response.msg){ |
|
|
|
|
|
|
|
this.$message.error(response.msg) |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.$message.error(response.message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}else if (res.data == null || res.data == ""){ |
|
|
|
|
|
|
|
this.$message.error('报文加密失败') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else if (resp.data == null || resp.data == ""){ |
|
|
|
|
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
if (msg){ |
|
|
|
|
|
|
|
msg = msg.slice(0,msg.length-1)+ '不能为空' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return msg; |
|
|
|
}, |
|
|
|
}, |
|
|
|
convertRegistedParam(row,flag){ |
|
|
|
convertRegistedParam(row,flag){ |
|
|
|
if (flag){ |
|
|
|
if (flag){ |
|
|
@ -597,36 +690,6 @@ export default { |
|
|
|
this.download('invoiceall/invoiceallyhdj/export', { |
|
|
|
this.download('invoiceall/invoiceallyhdj/export', { |
|
|
|
...this.queryParams |
|
|
|
...this.queryParams |
|
|
|
}, `invoiceallyhdj_${new Date().getTime()}.xlsx`) |
|
|
|
}, `invoiceallyhdj_${new Date().getTime()}.xlsx`) |
|
|
|
}, |
|
|
|
|
|
|
|
isShowRegistered(row){ |
|
|
|
|
|
|
|
return row.dqbm != null |
|
|
|
|
|
|
|
&& row.dqbm != '' |
|
|
|
|
|
|
|
&& row.dlfs != null |
|
|
|
|
|
|
|
&& row.dlfs != '' |
|
|
|
|
|
|
|
&& row.dlsfmm != null |
|
|
|
|
|
|
|
&& row.dlsfmm != '' |
|
|
|
|
|
|
|
&& row.dlmm != null |
|
|
|
|
|
|
|
&& row.dlmm != '' |
|
|
|
|
|
|
|
&& row.dlzh != null |
|
|
|
|
|
|
|
&& row.dlzh != '' |
|
|
|
|
|
|
|
&& row.nsrmc != null |
|
|
|
|
|
|
|
&& row.nsrmc != '' |
|
|
|
|
|
|
|
&& row.nsrsbh != null |
|
|
|
|
|
|
|
&& row.nsrsbh != '' |
|
|
|
|
|
|
|
&& row.bsrysfzjhm != null |
|
|
|
|
|
|
|
&& row.bsrysfzjhm != '' |
|
|
|
|
|
|
|
&& row.identity != null |
|
|
|
|
|
|
|
&& row.identity != '' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
isShowLoginVerificated(row){ |
|
|
|
|
|
|
|
return row.dqbm != null |
|
|
|
|
|
|
|
&& row.dqbm != '' |
|
|
|
|
|
|
|
&& row.nsrsbh != null |
|
|
|
|
|
|
|
&& row.nsrsbh != '' |
|
|
|
|
|
|
|
&& row.bsrysfzjhm != null |
|
|
|
|
|
|
|
&& row.bsrysfzjhm != '' |
|
|
|
|
|
|
|
&& row.identity != null |
|
|
|
|
|
|
|
&& row.identity != '' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|