|
|
@@ -20,12 +20,14 @@
|
|
|
|
|
|
<a-card :bordered="false" style="margin-top: 10px;">
|
|
|
<a-form-model
|
|
|
- ref="ruleForm"
|
|
|
- :label-col="labelCol"
|
|
|
- :wrapper-col="wrapperCol"
|
|
|
+ ref="form"
|
|
|
+ :model="model"
|
|
|
+ :rules="validatorRules"
|
|
|
+ :label-col="{ span: 2 , pull: 1}"
|
|
|
+ :wrapper-col="{ span: 22 , pull: 1}"
|
|
|
>
|
|
|
<a-card title="业务基本情况内容" :bordered="true">
|
|
|
- <a-descriptions :column="3" :bordered="false">
|
|
|
+ <a-descriptions :bordered="false">
|
|
|
<a-descriptions-item label="用户开通状态">{{checkInfo.info.userOpenState}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="码号" :span="2">{{checkInfo.info.smsNumberPrefix}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="详细用途" :span="3">{{checkInfo.info.smsNumberUsage}}</a-descriptions-item>
|
|
|
@@ -34,14 +36,15 @@
|
|
|
<a-descriptions-item label="客户经理">{{checkInfo.info.accountManager}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="手机号" :span="2">{{checkInfo.info.accountManagerPhone}}</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
- <a-form-model-item label="稽核状态" prop="resource">
|
|
|
- <a-radio-group >
|
|
|
- <a-radio value="1">未通过</a-radio>
|
|
|
- <a-radio value="2">通过</a-radio>
|
|
|
+ <a-form-model-item label="稽核状态" prop="basicCheckState">
|
|
|
+ <a-radio-group v-model="model.basicCheckState">
|
|
|
+ <a-radio :value="1">未通过</a-radio>
|
|
|
+ <a-radio :value="2">通过</a-radio>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
- <a-form-model-item label="稽核结果" prop="resource">
|
|
|
+ <a-form-model-item label="稽核结果" prop="basicCheckNote">
|
|
|
<a-textarea
|
|
|
+ v-model="model.basicCheckNote"
|
|
|
placeholder="请输入业务基本情况内容的稽核结果"
|
|
|
:auto-size="{ minRows: 3, maxRows: 5 }"
|
|
|
/>
|
|
|
@@ -49,7 +52,7 @@
|
|
|
</a-card>
|
|
|
|
|
|
<a-card title="业务规范性内容" :bordered="true">
|
|
|
- <a-descriptions :column="3" :bordered="false">
|
|
|
+ <a-descriptions :bordered="false">
|
|
|
<a-descriptions-item label="合同到期时间">{{checkInfo.info.contractExpireTime}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="码号证书到期时间">{{checkInfo.info.smsNumberCertificateExpireTime}}</a-descriptions-item>
|
|
|
<a-descriptions-item label="备案通知到期时间">{{checkInfo.info.recordNoticeExpireTime}}</a-descriptions-item>
|
|
|
@@ -61,14 +64,15 @@
|
|
|
<a-descriptions-item label="是否完成整改">{{checkInfo.info.rectifyReformOver}}</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
|
|
|
- <a-form-model-item label="稽核状态" prop="resource">
|
|
|
- <a-radio-group >
|
|
|
- <a-radio value="1">未通过</a-radio>
|
|
|
- <a-radio value="2">通过</a-radio>
|
|
|
+ <a-form-model-item label="稽核状态" prop="standardCheckState">
|
|
|
+ <a-radio-group v-model="model.standardCheckState">
|
|
|
+ <a-radio :value="1">未通过</a-radio>
|
|
|
+ <a-radio :value="2">通过</a-radio>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
- <a-form-model-item label="稽核结果" prop="resource">
|
|
|
+ <a-form-model-item label="稽核结果" prop="standardCheckNote">
|
|
|
<a-textarea
|
|
|
+ v-model="model.standardCheckNote"
|
|
|
placeholder="请输入业务规范性内容的稽核结果"
|
|
|
:auto-size="{ minRows: 3, maxRows: 5 }"
|
|
|
/>
|
|
|
@@ -78,39 +82,40 @@
|
|
|
<a-card title="附件资料" :bordered="true">
|
|
|
<a-descriptions :column="1" :bordered="false">
|
|
|
<a-descriptions-item label="业务合同">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="号码证书">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="备案通知">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="集团政企价格审批单">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="营业执照" :span="2">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="客户介绍信">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="经办人身份证复印件">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="在CRM没有行短业务的截图">
|
|
|
- <a-space><a v-for="(file,index) in fileList" :href="file.url">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
+ <a-space><a v-for="(file,index) in fileList" :href="handlePreview(file)" target="_blank">{{'附件' + (index + 1)}}</a></a-space>
|
|
|
</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
|
|
|
- <a-form-model-item label="稽核状态" prop="resource">
|
|
|
- <a-radio-group >
|
|
|
- <a-radio value="1">未通过</a-radio>
|
|
|
- <a-radio value="2">通过</a-radio>
|
|
|
+ <a-form-model-item label="稽核状态" prop="dataCheckState">
|
|
|
+ <a-radio-group v-model="model.dataCheckState">
|
|
|
+ <a-radio :value="1">未通过</a-radio>
|
|
|
+ <a-radio :value="2">通过</a-radio>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
- <a-form-model-item label="稽核结果" prop="resource">
|
|
|
+ <a-form-model-item label="稽核结果" prop="dataCheckNote">
|
|
|
<a-textarea
|
|
|
+ v-model="model.dataCheckNote"
|
|
|
placeholder="请输入附件资料的稽核结果"
|
|
|
:auto-size="{ minRows: 3, maxRows: 5 }"
|
|
|
/>
|
|
|
@@ -120,10 +125,10 @@
|
|
|
<a-form-model-item :wrapper-col="{ span: 14, offset: 4 }" style="margin-top: 10px;">
|
|
|
<!-- <a-button type="primary" @click="onSubmit">-->
|
|
|
<a-space>
|
|
|
- <a-button type="primary" @click="showCheckList">
|
|
|
+ <a-button type="primary" @click="submit">
|
|
|
提交
|
|
|
</a-button>
|
|
|
- <a-button @click="showList">
|
|
|
+ <a-button @click="showCheckList">
|
|
|
返回
|
|
|
</a-button>
|
|
|
</a-space>
|
|
|
@@ -142,6 +147,7 @@
|
|
|
import { httpAction, getAction } from '@api/manage'
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
+let Base64 = require('js-base64').Base64
|
|
|
|
|
|
export default {
|
|
|
name: 'TaskCheckCheck',
|
|
|
@@ -155,15 +161,36 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
description: '稽核详情页面',
|
|
|
- labelCol: { span: 1 },
|
|
|
- wrapperCol: { span: 23 },
|
|
|
+ model: {
|
|
|
+ },
|
|
|
+ validatorRules: {
|
|
|
+ basicCheckState: [
|
|
|
+ { required: true, message: '请选择稽核状态!'},
|
|
|
+ ],
|
|
|
+ basicCheckNote: [
|
|
|
+ // { required: true, message: '请输入稽核内容!'},
|
|
|
+ ],
|
|
|
+ standardCheckState: [
|
|
|
+ { required: true, message: '请选择稽核状态!'},
|
|
|
+ ],
|
|
|
+ standardCheckNote: [
|
|
|
+ // { required: true, message: '请输入稽核内容!'},
|
|
|
+ ],
|
|
|
+ dataCheckState: [
|
|
|
+ { required: true, message: '请选择稽核状态!'},
|
|
|
+ ],
|
|
|
+ dataCheckNote: [
|
|
|
+ // { required: true, message: '请输入稽核内容!'},
|
|
|
+ ],
|
|
|
+ },
|
|
|
url: {
|
|
|
list: "/smsCheck/customerInfo/list",
|
|
|
+ check: "/smsCheck/customerInfo/checkInfo",
|
|
|
},
|
|
|
autoSearch: false,
|
|
|
fileList: [
|
|
|
- {text: '附件', url: "http://www.baidu.com"},
|
|
|
- {text: '附件', url: "http://www.zhaopin.com"}
|
|
|
+ {text: '附件', url: "http://202.85.214.182:9001/default/by2_1650088480055.jpg"},
|
|
|
+ {text: '附件', url: "http://202.85.214.182:9001/default/《Nginx代理系统常用手册》电子书_1650129698991.pdf"}
|
|
|
],
|
|
|
}
|
|
|
},
|
|
|
@@ -177,6 +204,49 @@ export default {
|
|
|
let taskInfo = this.checkInfo.task;
|
|
|
this.$emit('goCheckList', taskInfo);
|
|
|
},
|
|
|
+ // 显示列表页面
|
|
|
+ submit() {
|
|
|
+ const that = this;
|
|
|
+ // 触发表单验证
|
|
|
+ this.$refs.form.validate(valid => {
|
|
|
+ // 验证通过
|
|
|
+ if (valid) {
|
|
|
+
|
|
|
+ that.model.infoId = that.checkInfo.info.id;
|
|
|
+ that.model.customerNo = that.checkInfo.info.customerNo;
|
|
|
+ that.model.staffNo = that.checkInfo.info.staffNo;
|
|
|
+
|
|
|
+ console.log(that.checkInfo)
|
|
|
+
|
|
|
+ let httpUrl = this.url.check;
|
|
|
+ let method = 'post';
|
|
|
+ // 发送请求
|
|
|
+ httpAction(httpUrl, this.model, method)
|
|
|
+ .then((res) => {
|
|
|
+ if(res.success){
|
|
|
+ that.$message.success(res.message);
|
|
|
+ that.$emit('ok');
|
|
|
+ that.visible = false;
|
|
|
+ }else{
|
|
|
+ that.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ that.confirmLoading = false;
|
|
|
+ })
|
|
|
+
|
|
|
+ let taskInfo = this.checkInfo.task;
|
|
|
+ that.$emit('goCheckList', taskInfo);
|
|
|
+ } else {
|
|
|
+ that.$message.warning('请检查必填项!');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handlePreview(record) {
|
|
|
+ if (record && record.url) {
|
|
|
+ let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(Base64.encode((record.url)))
|
|
|
+ return url;
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|