diff --git a/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue b/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue
index 0e778e60..440f39dd 100644
--- a/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue
+++ b/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue
@@ -33,6 +33,11 @@ export default {
this.params = data.params;
}
+ if (data.type === "Detail") {
+ this.component = "Detail";
+ this.params = data.params;
+ }
+
if (data.type === "List") {
this.component = "List";
this.params = data.params;
diff --git a/project/xiushan/apps/AppAdministrativeLicense/components/Add.vue b/project/xiushan/apps/AppAdministrativeLicense/components/Add.vue
index cc6ad2cf..9a641317 100644
--- a/project/xiushan/apps/AppAdministrativeLicense/components/Add.vue
+++ b/project/xiushan/apps/AppAdministrativeLicense/components/Add.vue
@@ -7,59 +7,61 @@
@@ -77,13 +79,31 @@ export default {
computed: {
formRules() {
return {
- num: [{required: true,message:"请输入执行编号",trigger: "blur"}]
+ licenseName: [{required: true,message:"请输入许可文书名称",trigger: "blur"}],
+ licenseCode: [{required: true,message:"请输入许可文书号",trigger: "blur"}],
+ decisionDate: [{required: true,message:"请输入许可决定日期",trigger: "blur"}],
+ startDate: [{required: true,message:"请选择许可有效期自",trigger: "blur"}],
+ endtDate: [{required: true,message:"请选择许可有效期至",trigger: "blur"}],
+ licenseOrganization: [{required: true,message:"请输入许可机关",trigger: "blur"}],
+ enterpriseName: [{required: true,message:"请输入经营主体",trigger: "blur"}],
+ unifiedCode: [{required: true,message:"请输入统一信用编号",trigger: "blur"}],
+ licenseContent: [{required: true,message:"请输入许可内容",trigger: "blur"}],
}
}
},
data() {
return {
- forms
+ forms: {
+ licenseName: '',
+ licenseCode: '',
+ decisionDate: '',
+ startDate: '',
+ endtDate: '',
+ licenseOrganization: '',
+ enterpriseName: '',
+ unifiedCode: '',
+ licenseContent: '',
+ }
}
},
created() {},
@@ -94,6 +114,33 @@ export default {
isRefresh: !!isRefresh,
})
},
+ confirm () {
+ this.$refs.forms.validate((valid) => {
+ if (valid) {
+ this.instance.post(`/appcreditadminstrativelicense/addOrUpdate`, {
+ // licenseName: this.forms.licenseName,
+ // licenseCode: this.forms.licenseCode,
+ // decisionDate: this.forms.decisionDate,
+ // startDate: JSON.stringify(this.forms.startDate),
+ // endtDate: JSON.stringify(this.forms.endtDate),
+ // licenseOrganization: this.forms.licenseOrganization,
+ // enterpriseName: this.forms.enterpriseName,
+ // unifiedCode: this.forms.unifiedCode,
+ // licenseContent: this.forms.licenseContent,
+ ...this.forms,
+ id: this.params.id || '',
+ // picture: this.form.picture.length ? this.form.picture[0].url : ''
+ }).then(res => {
+ if (res.code == 0) {
+ this.$message.success('提交成功')
+ setTimeout(() => {
+ this.cancel(true)
+ }, 600)
+ }
+ })
+ }
+ })
+ },
},
}
diff --git a/project/xiushan/apps/AppAdministrativeLicense/components/Detail.vue b/project/xiushan/apps/AppAdministrativeLicense/components/Detail.vue
index b23c68a4..819845b9 100644
--- a/project/xiushan/apps/AppAdministrativeLicense/components/Detail.vue
+++ b/project/xiushan/apps/AppAdministrativeLicense/components/Detail.vue
@@ -7,52 +7,51 @@
@@ -70,7 +69,36 @@ export default {
permissions: Function,
params: Object,
},
- data() {},
+ data() {
+ return {
+ id: '',
+ forms: {},
+ }
+ },
+ created() {
+ if (this.params && this.params.id) {
+ this.id = this.params.id
+ this.getDetail(this.params.id)
+ }
+ },
+ methods: {
+ getDetail(id) {
+ this.instance.post(`/appcreditadminstrativelicense/queryDetailById?id=${id}`).then(res => {
+ if (res.code === 0) {
+ this.forms = res.data
+ // this.forms.codeUrl = [{
+ // url: res.data.codeUrl
+ // }]
+ }
+ })
+ },
+ cancel (isRefresh) {
+ this.$emit('change', {
+ type: 'List',
+ isRefresh: !!isRefresh
+ })
+ }
+ },
}
@@ -89,12 +117,9 @@ export default {
padding-right: 40px;
}
- ::v-deep .ai-detail__footer {
- background: #fff !important;
- }
-
::v-deep .ai-detail__content--active {
padding: 20px;
+ background: #FFF;
.ai-detail__content--wrapper {
width: 100%;
diff --git a/project/xiushan/apps/AppAdministrativeLicense/components/List.vue b/project/xiushan/apps/AppAdministrativeLicense/components/List.vue
index bf57da9c..c5d18c28 100644
--- a/project/xiushan/apps/AppAdministrativeLicense/components/List.vue
+++ b/project/xiushan/apps/AppAdministrativeLicense/components/List.vue
@@ -8,7 +8,7 @@
添加
-
+
导入
导出
@@ -16,66 +16,13 @@
(ids = v.filter((e) => e.sysUserId).map((e) => e.sysUserId)) ">
- 详情
-
-
- 删除
+ 详情
+ 删除
-
@@ -99,32 +46,32 @@ export default {
computed: {
colConfigs() {
return [
- { label: "许可文书号", prop: "position", align: "center", width: "260px",},
- { label: "许可有效期至", prop: "position", align: "center", width: "200px",},
- { label: "许可机关", prop: "position", align: "center", width: "200px",},
- { label: "许可对象", prop: "position", align: "center", width: "200px",},
- { label: "统一信用代码", prop: "position", align: "center", width: "200px",},
- { label: "更新时间", prop: "position", align: "center", width: "120px",},
- { label: "操作人", prop: "position", align: "center", width: "150px" },
- { slot: "options" },
+ { label: "许可文书号", prop: "licenseCode", align: "center", width: "260px",},
+ { label: "许可有效期至", prop: "endDate", align: "center", width: "200px",},
+ { label: "许可机关", prop: "licenseOrganization", align: "center", width: "200px",},
+ { label: "许可对象", prop: "licenseContent", align: "center", width: "200px",},
+ { label: "统一信用代码", prop: "unifiedCode", align: "center", width: "200px",},
+ { label: "更新时间", prop: "startDate", align: "center", width: "120px",},
+ { label: "操作人", prop: "createUserName", align: "center", width: "150px" },
+ { slot: "options", },
];
},
- rules() {
- return {
- name: [{ required: true, message: "请输入许可文书名称" }],
- };
- },
+ },
+ created() {
+ this.getTableData()
},
methods: {
+ import() {},
+ export() {},
getTableData() {
- // this.instance.post("/appportaluserenterprise/list", null, {
- // params: {...this.page, ...this.search, status: 1,...this.select}
- // }).then(res => {
- // if (res?.data) {
- // this.tableData = res.data?.records
- // this.page.total = res.data.total
- // }
- // })
+ this.instance.post("/appcreditadminstrativelicense/list", null, {
+ params: {...this.page, ...this.search, status: 1,...this.select}
+ }).then(res => {
+ if (res?.data) {
+ this.tableData = res.data?.records
+ this.page.total = res.data.total
+ }
+ })
},
toAdd(id) {
this.$emit('change', {
@@ -134,10 +81,17 @@ export default {
}
})
},
- delete(id) {
- this.$confirm("是否要删除?").then(() => this.deleteInfo(id));
+ handleDelete(id) {
+ this.$confirm("是否要删除?").then(() => {
+ this.instance.post(`/appcreditadminstrativelicense/delete?ids=${id}`).then(res => {
+ if (res.code == 0) {
+ this.$message.success("删除成功")
+ this.getTableData()
+ }
+ })
+ })
},
- toDetail (id) {
+ toDetail(id) {
this.$emit('change', {
type: 'Detail',
params: {
@@ -145,7 +99,6 @@ export default {
}
})
},
- deleteInfo() {},
},
};
diff --git a/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue b/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue
index cfb4060e..1c5b3664 100644
--- a/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue
+++ b/project/xiushan/apps/AppAdministrativePenalty/AppAdministrativePenalty.vue
@@ -9,6 +9,7 @@