index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. size="small"
  7. :inline="true"
  8. v-show="showSearch"
  9. label-width="68px"
  10. >
  11. <!-- <el-form-item>
  12. <el-button
  13. type="primary"
  14. icon="el-icon-search"
  15. size="mini"
  16. @click="handleQuery"
  17. >搜索</el-button
  18. >
  19. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  20. >重置</el-button
  21. >
  22. </el-form-item> -->
  23. </el-form>
  24. <el-row :gutter="10" class="mb8">
  25. <el-col :span="1.5">
  26. <el-button
  27. type="primary"
  28. plain
  29. icon="el-icon-plus"
  30. size="mini"
  31. @click="handleAdd"
  32. v-hasPermi="['business:ECONOMICSINDEX:add']"
  33. >新增</el-button
  34. >
  35. </el-col>
  36. <el-col :span="1.5">
  37. <el-button
  38. type="success"
  39. plain
  40. icon="el-icon-edit"
  41. size="mini"
  42. :disabled="single"
  43. @click="handleUpdate"
  44. v-hasPermi="['business:ECONOMICSINDEX:edit']"
  45. >修改</el-button
  46. >
  47. </el-col>
  48. <el-col :span="1.5">
  49. <el-button
  50. type="danger"
  51. plain
  52. icon="el-icon-delete"
  53. size="mini"
  54. :disabled="multiple"
  55. @click="handleDelete"
  56. v-hasPermi="['business:ECONOMICSINDEX:remove']"
  57. >删除</el-button
  58. >
  59. </el-col>
  60. <!-- <el-col :span="1.5">
  61. <el-button
  62. type="warning"
  63. plain
  64. icon="el-icon-download"
  65. size="mini"
  66. @click="handleExport"
  67. v-hasPermi="['business:ECONOMICSINDEX:export']"
  68. >导出</el-button
  69. >
  70. </el-col> -->
  71. <right-toolbar
  72. :showSearch.sync="showSearch"
  73. @queryTable="getList"
  74. ></right-toolbar>
  75. </el-row>
  76. <el-table
  77. :data="ECONOMICSINDEXList"
  78. @selection-change="handleSelectionChange"
  79. >
  80. <el-table-column type="selection" width="55" align="center" />
  81. <!-- <el-table-column
  82. label="综合保税区经济运行主要指标表主键"
  83. align="center"
  84. prop="id"
  85. >
  86. </el-table-column> -->
  87. <el-table-column label="进出口总值" align="center" prop="jckzz">
  88. </el-table-column>
  89. <el-table-column label="加工贸易进出口值 " align="center" prop="jgmyjckz">
  90. </el-table-column>
  91. <el-table-column label="物流货物进出口值 " align="center" prop="wlhwjckz">
  92. </el-table-column>
  93. <el-table-column label="一般贸易进出口值 " align="center" prop="ybmyjckz">
  94. </el-table-column>
  95. <el-table-column label="经营总收入 " align="center" prop="jyzsr">
  96. </el-table-column>
  97. <el-table-column label="海关税收 " align="center" prop="hgss">
  98. </el-table-column>
  99. <el-table-column label="税务部门税收 " align="center" prop="swbmss">
  100. </el-table-column>
  101. <el-table-column
  102. label="货物贸易涉外收支总额 "
  103. align="center"
  104. prop="hwmyswszze"
  105. >
  106. </el-table-column>
  107. <el-table-column label="期末企业从业人员 " align="center" prop="qmqycyry">
  108. </el-table-column>
  109. <el-table-column label="活跃企业数 " align="center" prop="hyqys">
  110. </el-table-column>
  111. <el-table-column label="单位面积进出口值 " align="center" prop="dwmjjckz">
  112. </el-table-column>
  113. <el-table-column
  114. label="单位面积经营总收入 "
  115. align="center"
  116. prop="dwmjjyzsr"
  117. >
  118. </el-table-column>
  119. <el-table-column label="单位面积海关税收 " align="center" prop="dwmjhgss">
  120. </el-table-column>
  121. <el-table-column
  122. label="单位面积税务部门税收 "
  123. align="center"
  124. prop="dwmjswbmss"
  125. >
  126. </el-table-column>
  127. <el-table-column
  128. label="单位面积货物贸易涉外收支额 "
  129. align="center"
  130. prop="dwmjhwmyswsze"
  131. >
  132. </el-table-column>
  133. <el-table-column
  134. label="期末单位面积企业从业人员 "
  135. align="center"
  136. prop="qmdwmjqycyry"
  137. >
  138. </el-table-column>
  139. <el-table-column label="进出口总值增幅 " align="center" prop="jckzzzf">
  140. </el-table-column>
  141. <el-table-column
  142. label="同期活跃企业数增幅 "
  143. align="center"
  144. prop="tqhyqyszf"
  145. >
  146. </el-table-column>
  147. <el-table-column
  148. label="期末批准规划面积验收率 "
  149. align="center"
  150. prop="qmpzghmjysl"
  151. >
  152. </el-table-column>
  153. <el-table-column
  154. label="期末封闭围网面积开发率 "
  155. align="center"
  156. prop="qmfbwwmjkfl"
  157. >
  158. </el-table-column>
  159. <el-table-column label="实际使用外资金额 " align="center" prop="sjsywzje">
  160. </el-table-column>
  161. <el-table-column label="进出区货物总值" align="center" prop="jcqhwzz">
  162. </el-table-column>
  163. <el-table-column
  164. label="进出口总值占其所在省"
  165. align="center"
  166. prop="jckzzzqszstqjckbz"
  167. >
  168. </el-table-column>
  169. <el-table-column label="维修业务进出口值 " align="center" prop="wxywjckz">
  170. </el-table-column>
  171. <el-table-column label="研发业务进出口值 " align="center" prop="yfywjckz">
  172. </el-table-column>
  173. <el-table-column label="租赁贸易进出口值 " align="center" prop="zlmyjckz">
  174. </el-table-column>
  175. <el-table-column
  176. label="跨境电商业务进出口值 "
  177. align="center"
  178. prop="kjdsywjckz"
  179. >
  180. </el-table-column>
  181. <el-table-column label="规模以上工业产值 " align="center" prop="gmysgycz">
  182. </el-table-column>
  183. <el-table-column label="固定资产投资 " align="center" prop="gdtzcz">
  184. </el-table-column>
  185. <el-table-column
  186. label="占同期所在市进出口值比重 "
  187. align="center"
  188. prop="ztqszsjckzbz"
  189. >
  190. </el-table-column>
  191. <el-table-column label="时间" align="center" prop="createTime">
  192. </el-table-column>
  193. <el-table-column
  194. fixed="right"
  195. label="操作"
  196. align="center"
  197. class-name="small-padding fixed-width"
  198. >
  199. <template slot-scope="scope">
  200. <el-button
  201. size="mini"
  202. type="text"
  203. icon="el-icon-edit"
  204. @click="handleUpdate(scope.row)"
  205. v-hasPermi="['business:ECONOMICSINDEX:edit']"
  206. >修改</el-button
  207. >
  208. <el-button
  209. size="mini"
  210. type="text"
  211. icon="el-icon-delete"
  212. @click="handleDelete(scope.row)"
  213. v-hasPermi="['business:ECONOMICSINDEX:remove']"
  214. >删除</el-button
  215. >
  216. </template>
  217. </el-table-column>
  218. </el-table>
  219. <pagination
  220. v-show="total > 0"
  221. :total="total"
  222. :page.sync="queryParams.pageNum"
  223. :limit.sync="queryParams.pageSize"
  224. @pagination="getList"
  225. />
  226. <!-- 添加或修改综合保税区经济运行主要指标对话框 -->
  227. <el-dialog
  228. :title="title"
  229. :visible.sync="open"
  230. :close-on-click-modal="false"
  231. width="65%"
  232. append-to-body
  233. >
  234. <el-form ref="form" :model="form" :rules="rules" label-width="220px">
  235. <el-row>
  236. <el-col :span="12">
  237. <el-form-item label="进出口总值" prop="jckzz">
  238. <el-input v-model="form.jckzz"></el-input>
  239. </el-form-item>
  240. </el-col>
  241. <el-col :span="12">
  242. <el-form-item label="加工贸易进出口值" prop="jgmyjckz">
  243. <el-input v-model="form.jgmyjckz"></el-input>
  244. </el-form-item>
  245. </el-col>
  246. <el-col :span="12">
  247. <el-form-item label="物流货物进出口值" prop="wlhwjckz">
  248. <el-input v-model="form.wlhwjckz"></el-input>
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="12">
  252. <el-form-item label="一般贸易进出口值" prop="ybmyjckz">
  253. <el-input v-model="form.ybmyjckz"></el-input>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :span="12">
  257. <el-form-item label="经营总收入 " prop="jyzsr">
  258. <el-input v-model="form.jyzsr"></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="12">
  262. <el-form-item label="海关税收 " prop="hgss">
  263. <el-input v-model="form.hgss"></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="12">
  267. <el-form-item label="税务部门税收 " prop="swbmss">
  268. <el-input v-model="form.swbmss"></el-input>
  269. </el-form-item>
  270. </el-col>
  271. <el-col :span="12">
  272. <el-form-item label="货物贸易涉外收支总额 " prop="hwmyswszze">
  273. <el-input v-model="form.hwmyswszze"></el-input>
  274. </el-form-item>
  275. </el-col>
  276. <el-col :span="12">
  277. <el-form-item label="期末企业从业人员 " prop="qmqycyry">
  278. <el-input v-model="form.qmqycyry"></el-input>
  279. </el-form-item>
  280. </el-col>
  281. <el-col :span="12">
  282. <el-form-item label="活跃企业数 " prop="hyqys">
  283. <el-input v-model="form.hyqys"></el-input>
  284. </el-form-item>
  285. </el-col>
  286. <el-col :span="12">
  287. <el-form-item label="单位面积进出口值 " prop="dwmjjckz">
  288. <el-input v-model="form.dwmjjckz"></el-input>
  289. </el-form-item>
  290. </el-col>
  291. <el-col :span="12">
  292. <el-form-item label="单位面积经营总收入 " prop="dwmjjyzsr">
  293. <el-input v-model="form.dwmjjyzsr"></el-input>
  294. </el-form-item>
  295. </el-col>
  296. <el-col :span="12">
  297. <el-form-item label="单位面积海关税收 " prop="dwmjhgss">
  298. <el-input v-model="form.dwmjhgss"></el-input>
  299. </el-form-item>
  300. </el-col>
  301. <el-col :span="12">
  302. <el-form-item label="单位面积税务部门税收 " prop="dwmjswbmss">
  303. <el-input v-model="form.dwmjswbmss"></el-input>
  304. </el-form-item>
  305. </el-col>
  306. <el-col :span="12">
  307. <el-form-item
  308. label="单位面积货物贸易涉外收支额 "
  309. prop="dwmjhwmyswsze"
  310. >
  311. <el-input v-model="form.dwmjhwmyswsze"></el-input>
  312. </el-form-item>
  313. </el-col>
  314. <el-col :span="12">
  315. <el-form-item label="期末单位面积企业从业人员 " prop="qmdwmjqycyry">
  316. <el-input v-model="form.qmdwmjqycyry"></el-input>
  317. </el-form-item>
  318. </el-col>
  319. <el-col :span="12">
  320. <el-form-item label="进出口总值增幅 " prop="jckzzzf">
  321. <el-input v-model="form.jckzzzf"></el-input>
  322. </el-form-item>
  323. </el-col>
  324. <el-col :span="12">
  325. <el-form-item label="同期活跃企业数增幅 " prop="tqhyqyszf">
  326. <el-input v-model="form.tqhyqyszf"></el-input>
  327. </el-form-item>
  328. </el-col>
  329. <el-col :span="12">
  330. <el-form-item label="期末批准规划面积验收率 " prop="qmpzghmjysl">
  331. <el-input v-model="form.qmpzghmjysl"></el-input>
  332. </el-form-item>
  333. </el-col>
  334. <el-col :span="12">
  335. <el-form-item label="期末封闭围网面积开发率 " prop="qmfbwwmjkfl">
  336. <el-input v-model="form.qmfbwwmjkfl"></el-input>
  337. </el-form-item>
  338. </el-col>
  339. <el-col :span="12">
  340. <el-form-item label="实际使用外资金额 " prop="sjsywzje">
  341. <el-input v-model="form.sjsywzje"></el-input>
  342. </el-form-item>
  343. </el-col>
  344. <el-col :span="12">
  345. <el-form-item label="进出区货物总值 " prop="jcqhwzz">
  346. <el-input v-model="form.jcqhwzz"></el-input>
  347. </el-form-item>
  348. </el-col>
  349. <el-col :span="12">
  350. <el-form-item
  351. label="进出口总值占其所在省 "
  352. prop="jckzzzqszstqjckbz"
  353. >
  354. <el-input v-model="form.jckzzzqszstqjckbz"></el-input>
  355. </el-form-item>
  356. </el-col>
  357. <el-col :span="12">
  358. <el-form-item label="维修业务进出口值 " prop="wxywjckz">
  359. <el-input v-model="form.wxywjckz"></el-input>
  360. </el-form-item>
  361. </el-col>
  362. <el-col :span="12">
  363. <el-form-item label="研发业务进出口值 " prop="yfywjckz">
  364. <el-input v-model="form.yfywjckz"></el-input>
  365. </el-form-item>
  366. </el-col>
  367. <el-col :span="12">
  368. <el-form-item label="租赁贸易进出口值 " prop="zlmyjckz">
  369. <el-input v-model="form.zlmyjckz"></el-input>
  370. </el-form-item>
  371. </el-col>
  372. <el-col :span="12">
  373. <el-form-item label="跨境电商业务进出口值 " prop="kjdsywjckz">
  374. <el-input v-model="form.kjdsywjckz"></el-input>
  375. </el-form-item>
  376. </el-col>
  377. <el-col :span="12">
  378. <el-form-item label="规模以上工业产值 " prop="gmysgycz">
  379. <el-input v-model="form.gmysgycz"></el-input>
  380. </el-form-item>
  381. </el-col>
  382. <el-col :span="12">
  383. <el-form-item label="固定资产投资 " prop="gdtzcz">
  384. <el-input v-model="form.gdtzcz"></el-input>
  385. </el-form-item>
  386. </el-col>
  387. <el-col :span="12">
  388. <el-form-item
  389. label="占同期所在市进出口值比重 "
  390. prop="ztqszsjckzbz"
  391. >
  392. <el-input v-model="form.ztqszsjckzbz"></el-input>
  393. </el-form-item>
  394. </el-col>
  395. </el-row>
  396. </el-form>
  397. <div slot="footer" class="dialog-footer">
  398. <el-button type="primary" @click="submitForm">确 定</el-button>
  399. <el-button @click="cancel">取 消</el-button>
  400. </div>
  401. </el-dialog>
  402. </div>
  403. </template>
  404. <script>
  405. import {
  406. listECONOMICSINDEX,
  407. getECONOMICSINDEX,
  408. delECONOMICSINDEX,
  409. addECONOMICSINDEX,
  410. updateECONOMICSINDEX,
  411. } from "@/api/portal/ECONOMICSINDEX/ECONOMICSINDEX";
  412. export default {
  413. name: "ECONOMICSINDEX",
  414. data() {
  415. return {
  416. // 根路径
  417. baseURL: process.env.VUE_APP_BASE_API,
  418. // 遮罩层
  419. loading: true,
  420. // 选中数组
  421. ids: [],
  422. // 非单个禁用
  423. single: true,
  424. // 非多个禁用
  425. multiple: true,
  426. // 显示搜索条件
  427. showSearch: true,
  428. // 总条数
  429. total: 0,
  430. // 综合保税区经济运行主要指标表格数据
  431. ECONOMICSINDEXList: [],
  432. // 弹出层标题
  433. title: "",
  434. // 是否显示弹出层
  435. open: false,
  436. // 查询参数
  437. queryParams: {
  438. pageNum: 1,
  439. pageSize: 10,
  440. id: null,
  441. jckzz: null,
  442. jgmyjckz: null,
  443. wlhwjckz: null,
  444. ybmyjckz: null,
  445. jyzsr: null,
  446. hgss: null,
  447. swbmss: null,
  448. hwmyswszze: null,
  449. qmqycyry: null,
  450. hyqys: null,
  451. dwmjjckz: null,
  452. dwmjjyzsr: null,
  453. dwmjhgss: null,
  454. dwmjswbmss: null,
  455. dwmjhwmyswsze: null,
  456. qmdwmjqycyry: null,
  457. jckzzzf: null,
  458. tqhyqyszf: null,
  459. qmpzghmjysl: null,
  460. qmfbwwmjkfl: null,
  461. sjsywzje: null,
  462. jcqhwzz: null,
  463. jckzzzqszstqjckbz: null,
  464. wxywjckz: null,
  465. yfywjckz: null,
  466. zlmyjckz: null,
  467. kjdsywjckz: null,
  468. gmysgycz: null,
  469. gdtzcz: null,
  470. ztqszsjckzbz: null,
  471. createTime: null,
  472. },
  473. // 表单参数
  474. form: {},
  475. // 表单校验
  476. rules: {
  477. jckzz: [
  478. { required: true, message: "进出口总值 不能为空", trigger: "blur" },
  479. {
  480. pattern: /^-?(([0-9]*(\.[0-9]{1,100})$)|([0-9]+$))/,
  481. message: "值需为数字或小数",
  482. trigger: "blur",
  483. },
  484. ],
  485. jgmyjckz: [
  486. {
  487. required: true,
  488. message: "加工贸易进出口值 不能为空",
  489. trigger: "blur",
  490. },
  491. {
  492. pattern: /^-?(([0-9]*(\.[0-9]{1,100})$)|([0-9]+$))/,
  493. message: "值需为数字或小数",
  494. trigger: "blur",
  495. },
  496. ],
  497. wlhwjckz: [
  498. {
  499. required: true,
  500. message: "物流货物进出口值 不能为空",
  501. trigger: "blur",
  502. },
  503. {
  504. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  505. message: "值需为数字或小数",
  506. trigger: "blur",
  507. },
  508. ],
  509. ybmyjckz: [
  510. {
  511. required: true,
  512. message: "一般贸易进出口值 不能为空",
  513. trigger: "blur",
  514. },
  515. {
  516. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  517. message: "值需为数字或小数",
  518. trigger: "blur",
  519. },
  520. ],
  521. jyzsr: [
  522. { required: true, message: "经营总收入 不能为空", trigger: "blur" },
  523. {
  524. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  525. message: "值需为数字或小数",
  526. trigger: "blur",
  527. },
  528. ],
  529. hgss: [
  530. { required: true, message: "海关税收 不能为空", trigger: "blur" },
  531. {
  532. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  533. message: "值需为数字或小数",
  534. trigger: "blur",
  535. },
  536. ],
  537. swbmss: [
  538. { required: true, message: "税务部门税收 不能为空", trigger: "blur" },
  539. {
  540. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  541. message: "值需为数字或小数",
  542. trigger: "blur",
  543. },
  544. ],
  545. hwmyswszze: [
  546. {
  547. required: true,
  548. message: "货物贸易涉外收支总额 不能为空",
  549. trigger: "blur",
  550. },
  551. {
  552. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  553. message: "值需为数字或小数",
  554. trigger: "blur",
  555. },
  556. ],
  557. qmqycyry: [
  558. {
  559. required: true,
  560. message: "期末企业从业人员 不能为空",
  561. trigger: "blur",
  562. },
  563. {
  564. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  565. message: "值需为数字或小数",
  566. trigger: "blur",
  567. },
  568. ],
  569. hyqys: [
  570. { required: true, message: "活跃企业数 不能为空", trigger: "blur" },
  571. {
  572. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  573. message: "值需为数字或小数",
  574. trigger: "blur",
  575. },
  576. ],
  577. dwmjjckz: [
  578. {
  579. required: true,
  580. message: "单位面积进出口值 不能为空",
  581. trigger: "blur",
  582. },
  583. {
  584. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  585. message: "值需为数字或小数",
  586. trigger: "blur",
  587. },
  588. ],
  589. dwmjjyzsr: [
  590. {
  591. required: true,
  592. message: "单位面积经营总收入 不能为空",
  593. trigger: "blur",
  594. },
  595. {
  596. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  597. message: "值需为数字或小数",
  598. trigger: "blur",
  599. },
  600. ],
  601. dwmjhgss: [
  602. {
  603. required: true,
  604. message: "单位面积海关税收 不能为空",
  605. trigger: "blur",
  606. },
  607. {
  608. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  609. message: "值需为数字或小数",
  610. trigger: "blur",
  611. },
  612. ],
  613. dwmjswbmss: [
  614. {
  615. required: true,
  616. message: "单位面积税务部门税收 不能为空",
  617. trigger: "blur",
  618. },
  619. {
  620. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  621. message: "值需为数字或小数",
  622. trigger: "blur",
  623. },
  624. ],
  625. dwmjhwmyswsze: [
  626. {
  627. required: true,
  628. message: "单位面积货物贸易涉外收支额 不能为空",
  629. trigger: "blur",
  630. },
  631. {
  632. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  633. message: "值需为数字或小数",
  634. trigger: "blur",
  635. },
  636. ],
  637. qmdwmjqycyry: [
  638. {
  639. required: true,
  640. message: "期末单位面积企业从业人员 不能为空",
  641. trigger: "blur",
  642. },
  643. {
  644. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  645. message: "值需为数字或小数",
  646. trigger: "blur",
  647. },
  648. ],
  649. jckzzzf: [
  650. {
  651. required: true,
  652. message: "进出口总值增幅 不能为空",
  653. trigger: "blur",
  654. },
  655. {
  656. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  657. message: "值需为数字或小数",
  658. trigger: "blur",
  659. },
  660. ],
  661. tqhyqyszf: [
  662. {
  663. required: true,
  664. message: "同期活跃企业数增幅 不能为空",
  665. trigger: "blur",
  666. },
  667. {
  668. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  669. message: "值需为数字或小数",
  670. trigger: "blur",
  671. },
  672. ],
  673. qmpzghmjysl: [
  674. {
  675. required: true,
  676. message: "期末批准规划面积验收率 不能为空",
  677. trigger: "blur",
  678. },
  679. {
  680. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  681. message: "值需为数字或小数",
  682. trigger: "blur",
  683. },
  684. ],
  685. qmfbwwmjkfl: [
  686. {
  687. required: true,
  688. message: "期末封闭围网面积开发率 不能为空",
  689. trigger: "blur",
  690. },
  691. {
  692. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  693. message: "值需为数字或小数",
  694. trigger: "blur",
  695. },
  696. ],
  697. sjsywzje: [
  698. {
  699. required: true,
  700. message: "实际使用外资金额 不能为空",
  701. trigger: "blur",
  702. },
  703. {
  704. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  705. message: "值需为数字或小数",
  706. trigger: "blur",
  707. },
  708. ],
  709. jcqhwzz: [
  710. {
  711. required: true,
  712. message: "进出区货物总值不能为空",
  713. trigger: "blur",
  714. },
  715. {
  716. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  717. message: "值需为数字或小数",
  718. trigger: "blur",
  719. },
  720. ],
  721. jckzzzqszstqjckbz: [
  722. {
  723. required: true,
  724. message: "进出口总值占其所在省不能为空",
  725. trigger: "blur",
  726. },
  727. {
  728. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  729. message: "值需为数字或小数",
  730. trigger: "blur",
  731. },
  732. ],
  733. wxywjckz: [
  734. {
  735. required: true,
  736. message: "维修业务进出口值 不能为空",
  737. trigger: "blur",
  738. },
  739. {
  740. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  741. message: "值需为数字或小数",
  742. trigger: "blur",
  743. },
  744. ],
  745. yfywjckz: [
  746. {
  747. required: true,
  748. message: "研发业务进出口值 不能为空",
  749. trigger: "blur",
  750. },
  751. {
  752. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  753. message: "值需为数字或小数",
  754. trigger: "blur",
  755. },
  756. ],
  757. zlmyjckz: [
  758. {
  759. required: true,
  760. message: "租赁贸易进出口值 不能为空",
  761. trigger: "blur",
  762. },
  763. {
  764. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  765. message: "值需为数字或小数",
  766. trigger: "blur",
  767. },
  768. ],
  769. kjdsywjckz: [
  770. {
  771. required: true,
  772. message: "跨境电商业务进出口值 不能为空",
  773. trigger: "blur",
  774. },
  775. {
  776. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  777. message: "值需为数字或小数",
  778. trigger: "blur",
  779. },
  780. ],
  781. gmysgycz: [
  782. {
  783. required: true,
  784. message: "规模以上工业产值 不能为空",
  785. trigger: "blur",
  786. },
  787. {
  788. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  789. message: "值需为数字或小数",
  790. trigger: "blur",
  791. },
  792. ],
  793. gdtzcz: [
  794. { required: true, message: "固定资产投资 不能为空", trigger: "blur" },
  795. {
  796. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  797. message: "值需为数字或小数",
  798. trigger: "blur",
  799. },
  800. ],
  801. ztqszsjckzbz: [
  802. {
  803. required: true,
  804. message: "占同期所在市进出口值比重 不能为空",
  805. trigger: "blur",
  806. },
  807. {
  808. pattern: /^-?(([0-9]*(\.[0-9]{1,3})$)|([0-9]+$))/,
  809. message: "值需为数字或小数",
  810. trigger: "blur",
  811. },
  812. ],
  813. },
  814. };
  815. },
  816. created() {
  817. this.getList();
  818. },
  819. methods: {
  820. /** 查询综合保税区经济运行主要指标列表 */
  821. getList() {
  822. this.loading = true;
  823. listECONOMICSINDEX(this.queryParams).then((response) => {
  824. this.ECONOMICSINDEXList = response.rows;
  825. this.total = response.total;
  826. this.loading = false;
  827. });
  828. },
  829. // 取消按钮
  830. cancel() {
  831. this.open = false;
  832. this.reset();
  833. },
  834. // 表单重置
  835. reset() {
  836. this.form = {
  837. id: null,
  838. jckzz: null,
  839. jgmyjckz: null,
  840. wlhwjckz: null,
  841. ybmyjckz: null,
  842. jyzsr: null,
  843. hgss: null,
  844. swbmss: null,
  845. hwmyswszze: null,
  846. qmqycyry: null,
  847. hyqys: null,
  848. dwmjjckz: null,
  849. dwmjjyzsr: null,
  850. dwmjhgss: null,
  851. dwmjswbmss: null,
  852. dwmjhwmyswsze: null,
  853. qmdwmjqycyry: null,
  854. jckzzzf: null,
  855. tqhyqyszf: null,
  856. qmpzghmjysl: null,
  857. qmfbwwmjkfl: null,
  858. sjsywzje: null,
  859. jcqhwzz: null,
  860. jckzzzqszstqjckbz: null,
  861. wxywjckz: null,
  862. yfywjckz: null,
  863. zlmyjckz: null,
  864. kjdsywjckz: null,
  865. gmysgycz: null,
  866. gdtzcz: null,
  867. ztqszsjckzbz: null,
  868. };
  869. this.resetForm("form");
  870. },
  871. /** 搜索按钮操作 */
  872. handleQuery() {
  873. this.queryParams.pageNum = 1;
  874. this.getList();
  875. },
  876. /** 重置按钮操作 */
  877. resetQuery() {
  878. this.resetForm("queryForm");
  879. this.handleQuery();
  880. },
  881. // 多选框选中数据
  882. handleSelectionChange(selection) {
  883. this.ids = selection.map((item) => item.id);
  884. this.single = selection.length !== 1;
  885. this.multiple = !selection.length;
  886. },
  887. /** 新增按钮操作 */
  888. handleAdd() {
  889. this.reset();
  890. this.open = true;
  891. this.title = "添加综合保税区经济运行主要指标";
  892. },
  893. /** 修改按钮操作 */
  894. handleUpdate(row) {
  895. this.reset();
  896. const id = row.id || this.ids;
  897. getECONOMICSINDEX(id).then((response) => {
  898. this.form = response.data;
  899. this.open = true;
  900. this.title = "修改综合保税区经济运行主要指标";
  901. });
  902. },
  903. /** 提交按钮 */
  904. submitForm() {
  905. this.$refs["form"].validate((valid) => {
  906. if (valid) {
  907. if (this.form.id != null) {
  908. updateECONOMICSINDEX(this.form).then((response) => {
  909. this.$modal.msgSuccess("修改成功");
  910. this.open = false;
  911. this.getList();
  912. });
  913. } else {
  914. addECONOMICSINDEX(this.form).then((response) => {
  915. this.$modal.msgSuccess("新增成功");
  916. this.open = false;
  917. this.getList();
  918. });
  919. }
  920. }
  921. });
  922. },
  923. /** 删除按钮操作 */
  924. handleDelete(row) {
  925. const ids = row.id || this.ids;
  926. this.$modal
  927. .confirm(
  928. '是否确认删除综合保税区经济运行主要指标编号为"' + ids + '"的数据项?'
  929. )
  930. .then(function () {
  931. return delECONOMICSINDEX(ids);
  932. })
  933. .then(() => {
  934. this.getList();
  935. this.$modal.msgSuccess("删除成功");
  936. })
  937. .catch(() => {});
  938. },
  939. /** 导出按钮操作 */
  940. handleExport() {
  941. this.download(
  942. "/ECONOMICSINDEX/export",
  943. {
  944. ...this.queryParams,
  945. },
  946. `ECONOMICSINDEX_${new Date().getTime()}.xlsx`
  947. );
  948. },
  949. },
  950. };
  951. </script>