index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item label="单元号" prop="unit">
  5. <el-input
  6. v-model="queryParams.unit"
  7. placeholder="请输入单元号"
  8. clearable
  9. size="small"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item label="设备电机位号" prop="devNo">
  14. <el-input
  15. v-model="queryParams.devNo"
  16. placeholder="请输入设备电机位号"
  17. clearable
  18. size="small"
  19. @keyup.enter.native="handleQuery"
  20. />
  21. </el-form-item>
  22. <el-form-item>
  23. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  24. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  25. </el-form-item>
  26. </el-form>
  27. <el-row :gutter="10" class="mb8">
  28. <el-col :span="1.5">
  29. <el-button
  30. type="primary"
  31. icon="el-icon-plus"
  32. size="mini"
  33. @click="handleAdd"
  34. v-hasPermi="['pssr:motor:add']"
  35. v-if="isApprove==0"
  36. >新增</el-button>
  37. </el-col>
  38. <el-col :span="1.5">
  39. <el-button
  40. type="success"
  41. icon="el-icon-edit"
  42. size="mini"
  43. :disabled="single"
  44. @click="handleUpdate"
  45. v-hasPermi="['pssr:motor:edit']"
  46. v-if="isApprove==0"
  47. >修改</el-button>
  48. </el-col>
  49. <el-col :span="1.5">
  50. <el-button
  51. type="danger"
  52. icon="el-icon-delete"
  53. size="mini"
  54. :disabled="multiple"
  55. @click="handleDelete"
  56. v-hasPermi="['pssr:motor:remove']"
  57. v-if="isApprove==0"
  58. >删除</el-button>
  59. </el-col>
  60. <el-col :span="1.5">
  61. <el-button
  62. type="info"
  63. icon="el-icon-upload2"
  64. size="mini"
  65. @click="handleImport"
  66. v-hasPermi="['pssr:motor:edit']"
  67. v-if="isApprove==0"
  68. >导入</el-button>
  69. </el-col>
  70. <el-col :span="1.5">
  71. <el-button
  72. type="warning"
  73. icon="el-icon-download"
  74. size="mini"
  75. @click="handleExport"
  76. v-hasPermi="['pssr:motor:export']"
  77. v-if="isApprove==0"
  78. >导出</el-button>
  79. </el-col>
  80. <el-col :span="1.5">
  81. <el-button
  82. type="success"
  83. icon="el-icon-s-promotion"
  84. size="mini"
  85. @click="handleApprove"
  86. v-if="isApprove==0"
  87. v-hasPermi="['pssr:motor:edit']"
  88. >发起审批
  89. </el-button>
  90. </el-col>
  91. <el-col :span="1.5">
  92. <el-button
  93. type="primary"
  94. icon="el-icon-check"
  95. size="mini"
  96. v-if="isApprove==4||isApprove==5"
  97. @click="handleConfirmApprove"
  98. v-hasPermi="['pssr:motor:edit']"
  99. >确认
  100. </el-button>
  101. </el-col>
  102. <el-col :span="1.5">
  103. <el-button
  104. type="danger"
  105. icon="el-icon-refresh-left"
  106. size="mini"
  107. v-if="isApprove==2"
  108. :disabled="multiple"
  109. @click="handleTurnDown"
  110. v-hasPermi="['pssr:motor:edit']"
  111. >驳回
  112. </el-button>
  113. </el-col>
  114. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  115. </el-row>
  116. <div style="width: 100%;text-align: center;margin-bottom: 15px">
  117. <H2>现场设备电机检查确认清单</H2>
  118. <br>
  119. 检查要求:<br>
  120. 1.外观检查:设备的电机外观检查无变形锈蚀,设备完整良好;电机电缆完好,敷设合理,连接正确。现场检查符合要求的,在“外观检查”项中打”✔“,不符合打“×”。<br>
  121. 2.功能检查:设备的电机试验合格;送电完成,具备投用条件。现场检查符合要求的,在“功能检查”项中打”✔“,不符合打“×”。<br>
  122. 以上检查中不符合要求的,必须按照该条检查内容的要求立即整改。如不能立即整改的,请立即汇报相关负责人并采取临时应对措施。
  123. </div>
  124. <el-table v-loading="loading" :data="motorList" @selection-change="handleSelectionChange" :height="clientHeight" border>
  125. <el-table-column type="selection" width="55" align="center" />
  126. <el-table-column label="审批状态" align="center" prop="approveStatus" width="100">
  127. <template slot-scope="scope">
  128. <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
  129. <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
  130. <el-tag v-if="scope.row.approveStatus==3" type="success">已确认1</el-tag>
  131. <el-tag v-if="scope.row.approveStatus==2" type="success">已确认2</el-tag>
  132. </template>
  133. </el-table-column>
  134. <el-table-column label="单元号" align="center" prop="unit" :show-overflow-tooltip="true"/>
  135. <el-table-column label="设备电机位号" align="center" prop="devNo" :show-overflow-tooltip="true"/>
  136. <el-table-column label="外观检查" align="center" prop="visualInspection" :show-overflow-tooltip="true"/>
  137. <el-table-column label="功能检查" align="center" prop="functionalCheck" :show-overflow-tooltip="true"/>
  138. <el-table-column label="确认人1" align="center" prop="confirm1" :show-overflow-tooltip="true"
  139. width="150">
  140. <template slot-scope="scope">
  141. <span>{{ userFormat(scope.row.confirm1) }}</span>
  142. </template>
  143. </el-table-column>
  144. <el-table-column label="确认人2" align="center" prop="confirm2" :show-overflow-tooltip="true"
  145. width="150">
  146. <template slot-scope="scope">
  147. <span>{{ userFormat(scope.row.confirm2) }}</span>
  148. </template>
  149. </el-table-column>
  150. <el-table-column label="确认时间" align="center" prop="confirmationDate" width="100">
  151. <template slot-scope="scope">
  152. <span>{{ parseTime(scope.row.confirmationDate, '{y}-{m}-{d}') }}</span>
  153. </template>
  154. </el-table-column>
  155. <el-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true"/>
  156. <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
  157. <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
  158. <template slot-scope="scope">
  159. <el-button
  160. size="mini"
  161. type="text"
  162. icon="el-icon-folder"
  163. v-if="scope.row.approveStatus!=2"
  164. @click="handleDoc(scope.row)"
  165. >附件
  166. </el-button>
  167. <el-button
  168. size="mini"
  169. type="text"
  170. icon="el-icon-edit"
  171. @click="handleUpdate(scope.row)"
  172. v-hasPermi="['pssr:motor:edit']"
  173. >修改</el-button>
  174. <el-button
  175. size="mini"
  176. type="text"
  177. icon="el-icon-delete"
  178. @click="handleDelete(scope.row)"
  179. v-hasPermi="['pssr:motor:remove']"
  180. >删除</el-button>
  181. </template>
  182. </el-table-column>
  183. </el-table>
  184. <pagination
  185. v-show="total>0"
  186. :total="total"
  187. :page.sync="queryParams.pageNum"
  188. :limit.sync="queryParams.pageSize"
  189. @pagination="getList"
  190. />
  191. <!-- 添加或修改电机设备对话框 -->
  192. <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="500px" append-to-body>
  193. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  194. <el-form-item label="单元号" prop="unit">
  195. <el-input v-model="form.unit" placeholder="请输入单元号" />
  196. </el-form-item>
  197. <el-form-item label="设备电机位号" prop="devNo">
  198. <el-input v-model="form.devNo" placeholder="请输入设备电机位号" />
  199. </el-form-item>
  200. <el-form-item label="外观检查" prop="visualInspection">
  201. <el-radio v-model="form.visualInspection" label="✔" border>✔</el-radio>
  202. <el-radio v-model="form.visualInspection" label="✖" border>✖</el-radio>
  203. </el-form-item>
  204. <el-form-item label="功能检查" prop="functionalCheck">
  205. <el-radio v-model="form.functionalCheck" label="✔" border>✔</el-radio>
  206. <el-radio v-model="form.functionalCheck" label="✖" border>✖</el-radio>
  207. </el-form-item>
  208. <el-form-item label="确认人1" prop="confirm1">
  209. <el-select v-model="form.confirm1" clearable filterable style="width: 100%;"
  210. placeholder="请选择确认人1">
  211. <el-option v-for="user in userOptions"
  212. :label="user.nickName"
  213. :value="user.userId+''"
  214. :key="user.userId"/>
  215. </el-select>
  216. </el-form-item>
  217. <el-form-item label="确认人2" prop="confirm2">
  218. <el-select v-model="form.confirm2" clearable filterable style="width: 100%;"
  219. placeholder="请选择确认人2">
  220. <el-option v-for="user in userOptions"
  221. :label="user.nickName"
  222. :value="user.userId+''"
  223. :key="user.userId"/>
  224. </el-select>
  225. </el-form-item>
  226. <el-form-item label="检查时间" prop="confirmationDate">
  227. <el-date-picker clearable size="small" style="width: 200px"
  228. v-model="form.confirmationDate"
  229. type="date"
  230. value-format="yyyy-MM-dd"
  231. placeholder="选择检查时间">
  232. </el-date-picker>
  233. </el-form-item>
  234. <el-form-item label="备注" prop="remarks">
  235. <el-input v-model="form.remarks" placeholder="请输入备注" />
  236. </el-form-item>
  237. </el-form>
  238. <div slot="footer" class="dialog-footer">
  239. <el-button type="primary" @click="submitForm">确 定</el-button>
  240. <el-button @click="cancel">取 消</el-button>
  241. </div>
  242. </el-dialog>
  243. <!-- 用户导入对话框 -->
  244. <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  245. <el-upload
  246. ref="upload"
  247. :limit="1"
  248. accept=".xlsx, .xls"
  249. :headers="upload.headers"
  250. :action="upload.url"
  251. :disabled="upload.isUploading"
  252. :on-progress="handleFileUploadProgress"
  253. :on-success="handleFileSuccess"
  254. :auto-upload="false"
  255. drag
  256. >
  257. <i class="el-icon-upload"></i>
  258. <div class="el-upload__text">
  259. 将文件拖到此处,或
  260. <em>点击上传</em>
  261. </div>
  262. <div class="el-upload__tip" slot="tip">
  263. <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
  264. <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
  265. <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
  266. <input name="type" :value="upload.type" hidden />
  267. </form>
  268. </div>
  269. <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
  270. </el-upload>
  271. <div slot="footer" class="dialog-footer">
  272. <el-button type="primary" @click="submitFileForm">确 定</el-button>
  273. <el-button @click="upload.open = false">取 消</el-button>
  274. </div>
  275. </el-dialog>
  276. <!-- 附件对话框 -->
  277. <el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="doc.open" append-to-body title="现场照片"
  278. width="1000px">
  279. <el-image v-for="file in doc.fileList" :key="file.id" :src="file.fileUrl" lazy></el-image>
  280. </el-dialog>
  281. <!-- 驳回原因对话框 -->
  282. <el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="reason.open" append-to-body title="驳回"
  283. width="1000px">
  284. <el-table :data="items" border>
  285. <el-table-column label="设备电机位号" align="center" prop="devNo" :show-overflow-tooltip="true"/>
  286. <el-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true">
  287. <template slot-scope="scope">
  288. <el-input v-model="scope.row.reason" placeholder="请输入驳回原因"/>
  289. </template>
  290. </el-table-column>
  291. </el-table>
  292. <div slot="footer" class="dialog-footer">
  293. <el-button type="primary" @click="submitReasonForm">确 定</el-button>
  294. <el-button @click="reasonCancel">取 消</el-button>
  295. </div>
  296. </el-dialog>
  297. </div>
  298. </template>
  299. <script>
  300. import {
  301. addMotor,
  302. delMotor,
  303. exportMotor,
  304. getMotor,
  305. handleConfirmMotor,
  306. handleTurnDownMotor,
  307. importTemplate,
  308. listMotor,
  309. updateMotor,
  310. updateMotorBatch,
  311. } from "@/api/pssr/motor";
  312. import {treeselect} from "@/api/system/dept";
  313. import {getToken} from "@/utils/auth";
  314. import Treeselect from "@riophae/vue-treeselect";
  315. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  316. import {listUserNoPage} from "@/api/system/user";
  317. import {listFile} from "@/api/pssr/file";
  318. import {doApprove} from "@/api/pssr/approve";
  319. export default {
  320. dicts:['pssr_approve_status'],
  321. name: "Motor",
  322. components: { Treeselect },
  323. props: {
  324. subId: {
  325. type: Number,
  326. default: 0
  327. },
  328. isApprove: {
  329. type: Number,
  330. default: 0
  331. },
  332. },
  333. data() {
  334. return {
  335. reason: {
  336. open: false
  337. },
  338. doc: {
  339. file: "",
  340. // 是否显示弹出层(报告附件)
  341. open: false,
  342. fileList: [],
  343. queryParams: {
  344. itemId: null,
  345. subId: this.subId,
  346. forShort: 'djsb'
  347. },
  348. },
  349. userOptions: [],
  350. // 遮罩层
  351. loading: true,
  352. // 选中数组
  353. ids: [],
  354. items: [],
  355. // 非单个禁用
  356. single: true,
  357. // 非多个禁用
  358. multiple: true,
  359. // 显示搜索条件
  360. showSearch: false,
  361. // 总条数
  362. total: 0,
  363. // 电机设备表格数据
  364. motorList: [],
  365. // 弹出层标题
  366. title: "",
  367. // 部门树选项
  368. deptOptions: undefined,
  369. clientHeight:300,
  370. // 是否显示弹出层
  371. open: false,
  372. openBatch: false,
  373. // 用户导入参数
  374. upload: {
  375. //下载模板请求地址
  376. downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
  377. //下载模板类型
  378. type: 'motor',
  379. // 是否显示弹出层(用户导入)
  380. open: false,
  381. // 弹出层标题(用户导入)
  382. title: "",
  383. // 是否禁用上传
  384. isUploading: false,
  385. // 是否更新已经存在的用户数据
  386. updateSupport: 0,
  387. // 设置上传的请求头部
  388. headers: { Authorization: "Bearer " + getToken() },
  389. // 上传的地址
  390. url: process.env.VUE_APP_BASE_API + "/pssr/motor/importData?subId=" + this.subId
  391. },
  392. // 查询参数
  393. queryParams: {
  394. pageNum: 1,
  395. pageSize: 20,
  396. subId: this.subId,
  397. approveId: null,
  398. unit: null,
  399. devNo: null,
  400. visualInspection: null,
  401. functionalCheck: null,
  402. motorChecker: null,
  403. processValidator: null,
  404. confirmationDate: null,
  405. createrCode: null,
  406. createdate: null,
  407. updaterCode: null,
  408. updatedate: null,
  409. deptId: null,
  410. remarks: null
  411. },
  412. // 表单参数
  413. form: {},
  414. // 表单校验
  415. rules: {
  416. confirm1: [{required: true, message: "人员不可为空", trigger: "blur"}],
  417. confirm2: [{required: true, message: "人员不可为空", trigger: "blur"}],
  418. }
  419. };
  420. },
  421. watch: {
  422. // 根据名称筛选部门树
  423. deptName(val) {
  424. this.$refs.tree.filter(val);
  425. }
  426. },
  427. created() {
  428. //设置表格高度对应屏幕高度
  429. this.$nextTick(() => {
  430. this.clientHeight = document.body.clientHeight - 350
  431. })
  432. this.getList();
  433. this.getTreeselect();
  434. listUserNoPage({}).then(res => {
  435. this.userOptions = res.data
  436. });
  437. },
  438. methods: {
  439. /** 查询电机设备列表 */
  440. getList() {
  441. this.loading = true;
  442. listMotor(this.queryParams).then(response => {
  443. this.motorList = response.rows;
  444. this.total = response.total;
  445. this.loading = false;
  446. });
  447. },
  448. /** 查询部门下拉树结构 */
  449. getTreeselect() {
  450. treeselect().then(response => {
  451. this.deptOptions = response.data;
  452. });
  453. },
  454. // 取消按钮
  455. cancel() {
  456. this.open = false;
  457. this.reset();
  458. },
  459. // 表单重置
  460. reset() {
  461. this.form = {
  462. id: null,
  463. subId: this.subId,
  464. approveId: null,
  465. unit: null,
  466. devNo: null,
  467. visualInspection: null,
  468. functionalCheck: null,
  469. motorChecker: null,
  470. processValidator: null,
  471. confirmationDate: null,
  472. delFlag: null,
  473. createrCode: null,
  474. createdate: null,
  475. updaterCode: null,
  476. updatedate: null,
  477. deptId: null,
  478. remarks: null
  479. };
  480. this.resetForm("form");
  481. },
  482. /** 搜索按钮操作 */
  483. handleQuery() {
  484. this.queryParams.pageNum = 1;
  485. this.getList();
  486. },
  487. /** 重置按钮操作 */
  488. resetQuery() {
  489. this.resetForm("queryForm");
  490. this.handleQuery();
  491. },
  492. // 多选框选中数据
  493. handleSelectionChange(selection) {
  494. this.items=selection;
  495. this.ids = selection.map(item => item.id)
  496. this.single = selection.length!==1
  497. this.multiple = !selection.length
  498. },
  499. /** 新增按钮操作 */
  500. handleAdd() {
  501. this.reset();
  502. this.open = true;
  503. this.title = "添加电机设备";
  504. },
  505. /** 修改按钮操作 */
  506. handleUpdate(row) {
  507. this.reset();
  508. const id = row.id || this.ids
  509. getMotor(id).then(response => {
  510. this.form = response.data;
  511. this.open = true;
  512. this.title = "修改电机设备";
  513. });
  514. },
  515. /** 提交按钮 */
  516. submitForm() {
  517. this.$refs["form"].validate(valid => {
  518. if (valid) {
  519. if (this.form.id != null) {
  520. updateMotor(this.form).then(response => {
  521. this.msgSuccess("修改成功");
  522. this.open = false;
  523. this.getList();
  524. });
  525. } else {
  526. addMotor(this.form).then(response => {
  527. this.msgSuccess("新增成功");
  528. this.open = false;
  529. this.getList();
  530. });
  531. }
  532. }
  533. });
  534. },
  535. /** 删除按钮操作 */
  536. handleDelete(row) {
  537. const ids = row.id || this.ids;
  538. this.$confirm('是否确认删除?', "警告", {
  539. confirmButtonText: "确定",
  540. cancelButtonText: "取消",
  541. type: "warning"
  542. }).then(function() {
  543. return delMotor(ids);
  544. }).then(() => {
  545. this.getList();
  546. this.msgSuccess("删除成功");
  547. })
  548. },
  549. /** 导出按钮操作 */
  550. handleExport() {
  551. const queryParams = this.queryParams;
  552. this.$confirm('是否确认导出所有电机设备数据项?', "警告", {
  553. confirmButtonText: "确定",
  554. cancelButtonText: "取消",
  555. type: "warning"
  556. }).then(function() {
  557. return exportMotor(queryParams);
  558. }).then(response => {
  559. this.download(response.msg);
  560. })
  561. },
  562. /** 导入按钮操作 */
  563. handleImport() {
  564. this.upload.title = "用户导入";
  565. this.upload.open = true;
  566. },
  567. /** 下载模板操作 */
  568. importTemplate() {
  569. this.$refs['downloadFileForm'].submit()
  570. },
  571. // 文件上传中处理
  572. handleFileUploadProgress(event, file, fileList) {
  573. this.upload.isUploading = true;
  574. },
  575. // 文件上传成功处理
  576. handleFileSuccess(response, file, fileList) {
  577. this.upload.open = false;
  578. this.upload.isUploading = false;
  579. this.$refs.upload.clearFiles();
  580. this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
  581. this.getList();
  582. },
  583. // 提交上传文件
  584. submitFileForm() {
  585. this.$refs.upload.submit();
  586. },
  587. /** 确认按钮操作*/
  588. handleApprove() {
  589. doApprove(this.subId).then(res => {
  590. this.msgSuccess("已发起确认流程");
  591. this.getList();
  592. })
  593. },
  594. handleConfirmApprove() {
  595. let data = {
  596. ids: this.ids,
  597. subId: this.subId,
  598. taskType: this.isApprove
  599. }
  600. handleConfirmMotor(data).then(res => {
  601. this.msgSuccess("确认成功");
  602. this.getList()
  603. this.$emit('refreshHisList');
  604. })
  605. },
  606. handleTurnDown(val) {
  607. this.reason.open=true;
  608. },
  609. userFormat(userId) {
  610. for (let item of this.userOptions) {
  611. if (item.userId == userId) {
  612. return item.nickName
  613. }
  614. }
  615. },
  616. /** 报告附件按钮操作 */
  617. handleDoc(row) {
  618. this.doc.fileList=[]
  619. this.doc.open = true;
  620. this.doc.queryParams.itemId = row.id
  621. this.getFileList()
  622. },
  623. getFileList() {
  624. listFile(this.doc.queryParams).then(response => {
  625. this.doc.fileList = response.rows;
  626. this.doc.fileList.forEach(item => {
  627. item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
  628. });
  629. });
  630. },
  631. reasonCancel() {
  632. this.reason.open = false;
  633. },
  634. submitReasonForm(){
  635. handleTurnDownMotor(this.items).then(res => {
  636. this.msgSuccess("驳回成功");
  637. this.reason.open = false;
  638. this.$emit('refreshHisList');
  639. })
  640. }
  641. }
  642. };
  643. </script>