index.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
  5. <el-input
  6. v-model="queryParams.unifiedSocialCreditCode"
  7. placeholder="请输入统一社会信用代码"
  8. clearable
  9. @keyup.enter="handleQuery"
  10. />
  11. </el-form-item>
  12. <el-form-item>
  13. <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
  14. <el-button icon="Refresh" @click="resetQuery">重置</el-button>
  15. </el-form-item>
  16. </el-form>
  17. <el-table v-loading="loading" :data="enterprisesList" height="650" @selection-change="handleSelectionChange">
  18. <!-- <el-table-column type="selection" width="55" align="center" />-->
  19. <!-- <el-table-column label="主键" align="center" prop="id" />-->
  20. <el-table-column label="企业名称" align="center" prop="enterpriseName" width="260" />
  21. <el-table-column label="统一社会信用代码" align="center" prop="unifiedSocialCreditCode" width="200" />
  22. <el-table-column label="行政许可得分" align="center" prop="administrativeLicense" />
  23. <el-table-column label="行政处罚得分" align="center" prop="administrativePenalty" />
  24. <el-table-column label="行政确认得分" align="center" prop="administrativeConfirmation" />
  25. <el-table-column label="行政监督得分" align="center" prop="administrativeSupervision" />
  26. <el-table-column label="环保信用评价得分" align="center" prop="environmentalCreditEvaluationNotification" />
  27. <el-table-column label="纳税信用得分" align="center" prop="enterpriseTaxClassificationInfo" />
  28. <el-table-column label="行政强制信息得分" align="center" prop="administrativeCompulsionInformation" />
  29. <el-table-column label="行政裁决信息得分" align="center" prop="administrativeSanctionInfo" />
  30. <el-table-column label="列入经营异常名录得分" align="center" prop="abnormalBusinessList" />
  31. <el-table-column label="抽查信息得分" align="center" prop="spotCheck" />
  32. <el-table-column label="破产信息得分" align="center" prop="bankruptcyInformation" />
  33. <el-table-column label="海关信用得分" align="center" prop="customsCreditRating" />
  34. <el-table-column label="法院判决信息得分" align="center" prop="judgmentDocumentJudgmentInformation" />
  35. <el-table-column label="失信被执行人信息得分" align="center" prop="dishonestExecutor" />
  36. <el-table-column label="营业执照信息得分" align="center" prop="businessLicenseInformation" />
  37. <el-table-column label="所属行业类型信息" align="center" prop="industryType" />
  38. <el-table-column label="科技研发得分" align="center" prop="enterpriseTechnologyRndSummary" />
  39. <el-table-column label="认证高新技术企业得分" align="center" prop="certifiedTechnologyEnterprise" />
  40. <el-table-column label="“专精特新”企业得分" align="center" prop="newEnterpriseRecognitionDetails" />
  41. <el-table-column label="科技型中小企业得分" align="center" prop="technologyEnterprises" />
  42. <el-table-column label="变更信息得分" align="center" prop="changeRecordInformation" />
  43. <el-table-column label="股东及出资信息得分" align="center" prop="shareholderInformation" />
  44. <el-table-column label="分支机构信息得分" align="center" prop="branchOfficeInformation" />
  45. <el-table-column label="股权出质登记信息得分" align="center" prop="equityPledgeInformation" />
  46. <el-table-column label="海关注册信息得分" align="center" prop="customsRegistrationInformation" />
  47. <el-table-column label="软件著作权得分" align="center" prop="softwareCopyrightInformation" />
  48. <el-table-column label="商标得分" align="center" prop="enterpriseTrademarkInformation" />
  49. <el-table-column label="专利得分" align="center" prop="patentInformation" />
  50. <el-table-column label="社保得分" align="center" prop="enterpriseSocialSecurityInfo" />
  51. <el-table-column label="社保欠缴得分" align="center" prop="enterpriseTaxArrearsInfo1" />
  52. <el-table-column label="非正常纳税户得分" align="center" prop="abnormalTaxInformation" />
  53. <el-table-column label="纳税欠税得分" align="center" prop="enterpriseTaxArrearsInfo2" />
  54. <el-table-column label="公积金汇总得分" align="center" prop="accumulationFundSummary" />
  55. <el-table-column label="水费信息得分" align="center" prop="industrialParkWaterUsageDetail" />
  56. <el-table-column label="电费信息得分" align="center" prop="enterpriseElectricityFeeInfo" />
  57. <el-table-column label="企业名下房产抵押信息" align="center" prop="propertyMortgage" />
  58. <el-table-column label="企业产值得分" align="center" prop="annualOutputValueInfo" />
  59. </el-table>
  60. <div style="position: fixed;bottom: 20px;right: 10px;">
  61. <el-pagination
  62. :page-sizes="[10, 20, 30, 50]"
  63. v-model:page-size = "queryParams.pageSize"
  64. v-model:current-page = "queryParams.pageNum"
  65. layout="total, sizes, prev, pager, next, jumper"
  66. @current-change="getList"
  67. :total="total"
  68. >
  69. </el-pagination>
  70. </div>
  71. </div>
  72. </template>
  73. <script setup name="Enterprises">
  74. import { listEnterprises, getEnterprises, delEnterprises, addEnterprises, updateEnterprises } from "@/api/basicData/enterprises2";
  75. import {likeQueryMethod} from "../../../utils/likeQueryMethod";
  76. const { proxy } = getCurrentInstance();
  77. const enterprisesList = ref([]);
  78. const open = ref(false);
  79. const loading = ref(true);
  80. const showSearch = ref(true);
  81. const ids = ref([]);
  82. const single = ref(true);
  83. const multiple = ref(true);
  84. const total = ref(0);
  85. const title = ref("");
  86. const data = reactive({
  87. form: {},
  88. queryParams: {
  89. pageNum: 1,
  90. pageSize: 20,
  91. enterpriseName: null,
  92. unifiedSocialCreditCode: '',
  93. enterpriseLeader: null,
  94. contactPhone: null,
  95. },
  96. rules: {
  97. enterpriseName: [
  98. { required: true, message: "企业名称不能为空", trigger: "blur" }
  99. ],
  100. }
  101. });
  102. const { queryParams, form, rules } = toRefs(data);
  103. /** 查询高新区企业(119家)列表 */
  104. function getList() {
  105. loading.value = true;
  106. let toServerObj = {
  107. pageNum: queryParams.value.pageNum,
  108. pageSize: queryParams.value.pageSize,
  109. unifiedSocialCreditCode:queryParams.value.unifiedSocialCreditCode
  110. }
  111. listEnterprises(toServerObj).then(response => {
  112. enterprisesList.value = response.data.result;
  113. total.value = response.data.totalSize;
  114. loading.value = false;
  115. });
  116. }
  117. // 取消按钮
  118. function cancel() {
  119. open.value = false;
  120. reset();
  121. }
  122. // 表单重置
  123. function reset() {
  124. form.value = {
  125. id: null,
  126. enterpriseName: null,
  127. unifiedSocialCreditCode: '',
  128. enterpriseLeader: null,
  129. contactPhone: null,
  130. createTime: null,
  131. updateTime: null
  132. };
  133. proxy.resetForm("enterprisesRef");
  134. }
  135. /** 搜索按钮操作 */
  136. function handleQuery() {
  137. queryParams.value.pageNum = 1;
  138. getList();
  139. }
  140. /** 重置按钮操作 */
  141. function resetQuery() {
  142. proxy.resetForm("queryRef");
  143. handleQuery();
  144. }
  145. // 多选框选中数据
  146. function handleSelectionChange(selection) {
  147. ids.value = selection.map(item => item.id);
  148. single.value = selection.length != 1;
  149. multiple.value = !selection.length;
  150. }
  151. /** 新增按钮操作 */
  152. function handleAdd() {
  153. reset();
  154. open.value = true;
  155. title.value = "添加高新区企业(119家)";
  156. }
  157. /** 修改按钮操作 */
  158. function handleUpdate(row) {
  159. reset();
  160. const id = row.id || ids.value
  161. getEnterprises(id).then(response => {
  162. form.value = response.data;
  163. open.value = true;
  164. title.value = "修改高新区企业(119家)";
  165. });
  166. }
  167. /** 提交按钮 */
  168. function submitForm() {
  169. proxy.$refs["enterprisesRef"].validate(valid => {
  170. if (valid) {
  171. if (form.value.id != null) {
  172. updateEnterprises(form.value).then(response => {
  173. proxy.$modal.msgSuccess("修改成功");
  174. open.value = false;
  175. getList();
  176. });
  177. } else {
  178. addEnterprises(form.value).then(response => {
  179. proxy.$modal.msgSuccess("新增成功");
  180. open.value = false;
  181. getList();
  182. });
  183. }
  184. }
  185. });
  186. }
  187. /** 删除按钮操作 */
  188. function handleDelete(row) {
  189. const ids = row.id || ids.value;
  190. proxy.$modal.confirm('是否确认删除高新区企业(119家)编号为"' + ids + '"的数据项?').then(function() {
  191. return delEnterprises(ids);
  192. }).then(() => {
  193. getList();
  194. proxy.$modal.msgSuccess("删除成功");
  195. }).catch(() => {});
  196. }
  197. /** 导出按钮操作 */
  198. function handleExport() {
  199. proxy.download('basicData/enterprises/export', {
  200. ...queryParams.value
  201. }, `enterprises_${new Date().getTime()}.xlsx`)
  202. }
  203. getList();
  204. </script>