list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <template>
  2. <div>
  3. <!-- 搜索条件 -->
  4. <a-card size="small" :bordered="false" class="searchBoxNormal">
  5. <div ref="tableSearch" class="table-page-search-wrapper">
  6. <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
  7. <a-row :gutter="15">
  8. <a-col :md="6" :sm="24">
  9. <a-form-item label="创建时间">
  10. <rangeDate ref="rangeAuditDate" :value="auditDate" @change="dateAuditChange" />
  11. </a-form-item>
  12. </a-col>
  13. <a-col :md="6" :sm="24">
  14. <a-form-item label="客户名称">
  15. <dealerSubareaScopeList ref="settleClientName" id="salesCollectionList-settleClientName" @change="custChange" />
  16. </a-form-item>
  17. </a-col>
  18. <a-col :md="6" :sm="24">
  19. <a-form-item label="销售单号">
  20. <a-input id="salesCollectionList-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入销售单号"/>
  21. </a-form-item>
  22. </a-col>
  23. <template v-if="advanced">
  24. <a-col :md="6" :sm="24">
  25. <a-form-item label="备货单号">
  26. <a-input id="salesCollectionList-dispatchBillNo" v-model.trim="queryParam.dispatchBillNo" allowClear placeholder="请输入备货单号"/>
  27. </a-form-item>
  28. </a-col>
  29. <a-col :md="6" :sm="24">
  30. <a-form-item label="收货客户名称">
  31. <dealerSubareaScopeList ref="receiverName" id="salesCollectionList-receiverName" @change="receiverChange" />
  32. </a-form-item>
  33. </a-col>
  34. <a-col :md="6" :sm="24">
  35. <a-form-item label="收款类型">
  36. <v-select
  37. v-model="queryParam.keepType"
  38. ref="keepType"
  39. id="salesCollectionList-keepType"
  40. code="KEEP_TYPE"
  41. placeholder="请选择收款类型"
  42. allowClear></v-select>
  43. </a-form-item>
  44. </a-col>
  45. <a-col :md="6" :sm="24">
  46. <a-form-item label="收款时间">
  47. <rangeDate ref="rangeSettleDate" :value="settleDate" @change="dateSettleChange" />
  48. </a-form-item>
  49. </a-col>
  50. <a-col :md="6" :sm="24">
  51. <a-form-item label="收款方式">
  52. <v-select
  53. v-model="queryParam.settleStyle"
  54. ref="settleStyle"
  55. id="salesCollectionList-settleStyle"
  56. code="SETTLE_STYLE"
  57. placeholder="请选择收款方式"
  58. allowClear></v-select>
  59. </a-form-item>
  60. </a-col>
  61. <a-col :md="6" :sm="24">
  62. <a-form-item label="业务状态">
  63. <v-select
  64. v-model="queryParam.billStatus"
  65. ref="billStatus"
  66. id="salesCollectionList-billStatus"
  67. code="DISPATCH_BILL_STATUS"
  68. placeholder="请选择业务状态"
  69. allowClear></v-select>
  70. </a-form-item>
  71. </a-col>
  72. <a-col :md="6" :sm="24">
  73. <a-form-item label="财务状态">
  74. <v-select
  75. v-model="queryParam.settleState"
  76. ref="settleState"
  77. id="salesCollectionList-settleState"
  78. code="FINANCIAL_RECEIVE_STATUS"
  79. placeholder="请选择财务状态"
  80. allowClear></v-select>
  81. </a-form-item>
  82. </a-col>
  83. <a-col :md="6" :sm="24">
  84. <a-form-item label="单据状态">
  85. <v-select
  86. v-model="queryParam.voidFlag"
  87. ref="voidFlag"
  88. id="salesCollectionList-voidFlag"
  89. code="VOID_FLAG"
  90. placeholder="请选择单据状态"
  91. allowClear></v-select>
  92. </a-form-item>
  93. </a-col>
  94. <a-col :md="6" :sm="24">
  95. <a-form-item label="对单状态">
  96. <v-select
  97. v-model="queryParam.checkStatus"
  98. ref="checkStatus"
  99. id="salesCollectionList-checkStatus"
  100. code="CHECK_STATUS"
  101. placeholder="请选择对单状态"
  102. allowClear></v-select>
  103. </a-form-item>
  104. </a-col>
  105. <a-col :md="6" :sm="24">
  106. <a-form-item label="所在区域">
  107. <subarea id="salesCollectionList-subarea" ref="subarea" @change="subareaChange"></subarea>
  108. </a-form-item>
  109. </a-col>
  110. <a-col :md="6" :sm="24">
  111. <a-form-item label="地区" prop="dealerProvinceSn" style="margin: 0;">
  112. <Area id="salesCollectionList-dealerProvinceSn" v-model="queryParam.dealerProvinceSn" placeholder="请选择省"></Area>
  113. </a-form-item>
  114. </a-col>
  115. <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
  116. <a-form-item label="客服">
  117. <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
  118. </a-form-item>
  119. </a-col>
  120. </template>
  121. <a-col :md="6" :sm="24">
  122. <a-button type="primary" @click="searchTable" :disabled="disabled" id="salesCollectionList-refresh">查询</a-button>
  123. <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="salesCollectionList-reset">重置</a-button>
  124. <a @click="advanced=!advanced" style="margin-left: 5px">
  125. {{ advanced ? '收起' : '展开' }}
  126. <a-icon :type="advanced ? 'up' : 'down'"/>
  127. </a>
  128. </a-col>
  129. </a-row>
  130. </a-form>
  131. </div>
  132. </a-card>
  133. <a-card size="small" :bordered="false" class="salesCollectionList-wrap">
  134. <a-spin :spinning="spinning" tip="Loading...">
  135. <!-- 操作按钮 -->
  136. <div class="table-operator" v-if="$hasPermissions('B_salesCollection_receipt')">
  137. <a-button type="primary" @click="handlePlColle()">批量收款</a-button>
  138. <span style="margin-left: 8px">
  139. <template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
  140. </span>
  141. </div>
  142. <!-- 列表 -->
  143. <s-table
  144. class="sTable fixPagination"
  145. ref="table"
  146. :style="{ height: tableHeight+68+'px' }"
  147. size="small"
  148. :row-selection="showSelect?{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.settleState=='FINISH' } })}:null"
  149. @rowSelection="rowSelectionFun"
  150. :rowKey="(record) => record.id"
  151. :columns="columns"
  152. :data="loadData"
  153. :scroll="{ y: tableHeight }"
  154. :defaultLoadData="false"
  155. bordered>
  156. <!-- 单号 -->
  157. <template slot="bizNo" slot-scope="text, record">
  158. <span v-if="$hasPermissions('B_salesDetail')" class="link-bule" @click="handleDetail(record,0)">{{ record.bizNo }}</span>
  159. <span v-else>{{ record.bizNo }}</span>
  160. </template>
  161. <!-- 下推单号 -->
  162. <template slot="dispatchBillNo" slot-scope="text, record">
  163. <span v-if="$hasPermissions('B_dispatchDetail')" class="link-bule" @click="handleDetail(record,1)">{{ record.dispatchBillNo }}</span>
  164. <span v-else>{{ record.dispatchBillNo || '--' }}</span>
  165. </template>
  166. <!-- 操作 -->
  167. <template slot="action" slot-scope="text, record">
  168. <a-button
  169. size="small"
  170. type="link"
  171. v-if="record.settleState=='WAIT' && record.voidFlag!=1 && $hasPermissions('B_salesCollection_receipt')"
  172. class="button-warning"
  173. @click="handleColle(record)"
  174. id="financialCollectionList-audit-btn">收款</a-button>
  175. <a-button
  176. size="small"
  177. type="link"
  178. v-if="record.settleState=='FINISH' && $hasPermissions('B_salesCollection_record')"
  179. class="button-success"
  180. @click="handleVoucher(record)"
  181. id="financialCollectionList-voucher-btn">凭证</a-button>
  182. <span v-if="record.settleState=='WAIT' && record.voidFlag==1">--</span>
  183. </template>
  184. </s-table>
  185. <!-- 销售收款凭证 -->
  186. <voucherModal v-drag ref="voucherModal" modalTit="销售收款凭证" :openModal="showVoucher" @cancel="closeVoucherModal"></voucherModal>
  187. <!-- 销售收款弹框 -->
  188. <commonModal
  189. :openModal="showSkModal"
  190. modalTit="销售收款"
  191. @cancel="closeColleModal"
  192. @ok="handleSaveColle"
  193. >
  194. <div style="text-align: center;line-height: 24px;">
  195. <div v-if="handlePlData.length">{{ handlePlData[0].settleClientName }},共 {{ handlePlData && handlePlData.length }} 个备货单,合计 {{ $hasPermissions('B_salesCollection_receipt_salesPrice') ? toThousands(totalAmount) : '--' }} 元</div>
  196. <div style="padding: 15px 0;font-weight: bold;font-size:14px;">请确认收款类型变更为标记收款吗?</div>
  197. </div>
  198. </commonModal>
  199. <!-- 查看销售单或备货单详情 -->
  200. <commonModal
  201. :modalTit="detailType?'备货单详情':'销售单详情'"
  202. bodyPadding="10px"
  203. width="70%"
  204. :showFooter="false"
  205. :openModal="showDetailModal"
  206. @cancel="cancelDetail">
  207. <salesDetail v-if="detailType==0" ref="salesDetail" :bizSn="bizSn"></salesDetail>
  208. <dispatchDetail v-if="detailType==1" ref="dispatchDetail" :bizSn="bizSn"></dispatchDetail>
  209. </commonModal>
  210. </a-spin>
  211. </a-card>
  212. </div>
  213. </template>
  214. <script>
  215. import { commonMixin } from '@/utils/mixin'
  216. import { STable, VSelect } from '@/components'
  217. import rangeDate from '@/views/common/rangeDate.vue'
  218. import subarea from '@/views/common/subarea.js'
  219. import Area from '@/views/common/area.js'
  220. import commonModal from '@/views/common/commonModal.vue'
  221. import salesDetail from '@/views/salesManagement/salesQueryNew/detailAll.vue'
  222. import dispatchDetail from '@/views/salesManagement/pushOrderManagement/detail.vue'
  223. import voucherModal from './voucherModal.vue'
  224. import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
  225. import { settleReceiptList, settleReceiptBatch } from '@/api/settleReceipt'
  226. import customerService from '@/views/common/customerService'
  227. export default {
  228. name: 'SalesCollectionList',
  229. mixins: [commonMixin],
  230. components: { STable, VSelect, subarea, rangeDate, commonModal, Area, voucherModal, dealerSubareaScopeList, salesDetail, dispatchDetail, customerService },
  231. data () {
  232. return {
  233. spinning: false,
  234. showDetail: false,
  235. showSkModal: false,
  236. showVoucher: false,
  237. showDetailModal: false,
  238. detailType: 2,
  239. bizSn: null,
  240. tableHeight: 0,
  241. queryParam: { // 查询条件
  242. beginDate: '',
  243. endDate: '',
  244. bizNo: '',
  245. dispatchBillNo: '',
  246. beginDateSettle: '',
  247. endDateSettle: '',
  248. settleClientName: '',
  249. receiverName: '',
  250. dealerLevel: undefined,
  251. settleStyle: undefined,
  252. keepType: undefined,
  253. subareaArea: {
  254. subareaSn: undefined,
  255. subareaAreaSn: undefined
  256. },
  257. billStatus: undefined,
  258. settleState: undefined,
  259. voidFlag: undefined,
  260. dealerProvinceSn: undefined,
  261. dealerCitySn: undefined,
  262. dealerCountySn: undefined,
  263. checkStatus: undefined,
  264. bizUserSn: undefined
  265. },
  266. disabled: false, // 查询、重置按钮是否可操作
  267. auditDate: [], // 审核时间
  268. settleDate: [],
  269. advanced: true,
  270. // 加载数据方法 必须为 Promise 对象
  271. loadData: parameter => {
  272. this.disabled = true
  273. this.spinning = true
  274. return settleReceiptList(Object.assign(parameter, this.queryParam)).then(res => {
  275. let data
  276. if (res.status == 200) {
  277. data = res.data
  278. const no = (data.pageNo - 1) * data.pageSize
  279. for (var i = 0; i < data.list.length; i++) {
  280. data.list[i].no = no + i + 1
  281. }
  282. this.total = data.count || 0
  283. this.disabled = false
  284. }
  285. this.spinning = false
  286. return data
  287. })
  288. },
  289. total: 0, // 合计
  290. rowSelectionInfo: null, // 批量选择的数据
  291. handlePlData: [], // 收款临时数据
  292. collectionType: 0 // 收款类型
  293. }
  294. },
  295. // 根据权限显示列表字段
  296. computed: {
  297. // 是否显示table选择框
  298. showSelect () {
  299. return this.$hasPermissions('B_salesCollection_receipt')
  300. },
  301. totalAmount () {
  302. let ret = 0
  303. this.handlePlData.map(item => {
  304. ret = ret + item.totalAmount
  305. })
  306. return ret.toFixed(2)
  307. },
  308. columns () {
  309. const arr = [
  310. { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
  311. { title: '创建时间', dataIndex: 'createDate', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
  312. { title: '销售单号', scopedSlots: { customRender: 'bizNo' }, width: '9%', align: 'center' },
  313. { title: '备货单号', scopedSlots: { customRender: 'dispatchBillNo' }, width: '9%', align: 'center' },
  314. { title: '发货编号', dataIndex: 'sendNo', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  315. { title: '客户名称', dataIndex: 'settleClientName', align: 'left', width: '10%', customRender: function (text) { return text || '--' }, ellipsis: true },
  316. { title: '收货客户名称', dataIndex: 'receiverName', align: 'left', width: '10%', customRender: function (text) { return text || '--' }, ellipsis: true },
  317. { title: '产品款数', dataIndex: 'totalCategory', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  318. { title: '产品数量', dataIndex: 'qty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  319. // { title: '总售价', dataIndex: 'totalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  320. { title: '收款类型', dataIndex: 'keepTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  321. { title: '收款时间', dataIndex: 'settleTime', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
  322. { title: '收款方式', dataIndex: 'settleStyleDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  323. { title: '业务状态', dataIndex: 'billStatusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  324. { title: '财务状态', dataIndex: 'settleStateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  325. { title: '单据状态', dataIndex: 'voidFlagDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  326. { title: '对单状态', dataIndex: 'checkStatusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  327. { title: '操作', scopedSlots: { customRender: 'action' }, width: '4%', align: 'center' }
  328. ]
  329. if (this.$hasPermissions('M_salesCollectionList_salesPrice')) { // 售价权限
  330. arr.splice(9, 0, { title: '总售价', dataIndex: 'totalAmount', width: '6%', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
  331. }
  332. return arr
  333. }
  334. },
  335. methods: {
  336. custChange (val) {
  337. this.queryParam.settleClientName = val.name
  338. },
  339. receiverChange (val) {
  340. this.queryParam.receiverName = val.name
  341. },
  342. // 表格选中项
  343. rowSelectionFun (obj) {
  344. this.rowSelectionInfo = obj || null
  345. },
  346. // 审核时间 change
  347. dateAuditChange (date) {
  348. this.queryParam.beginDate = date[0] ? date[0] : ''
  349. this.queryParam.endDate = date[1] ? date[1] : ''
  350. },
  351. // 收款时间 change
  352. dateSettleChange (date) {
  353. this.queryParam.beginDateSettle = date[0] ? date[0] : ''
  354. this.queryParam.endDateSettle = date[1] ? date[1] : ''
  355. },
  356. searchTable () {
  357. this.$refs.table.refresh(true)
  358. this.$refs.table.clearSelected()
  359. },
  360. subareaChange (val) {
  361. this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
  362. this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
  363. },
  364. // 重置
  365. resetSearchForm () {
  366. this.auditDate = []
  367. this.$refs.rangeAuditDate.resetDate(this.auditDate)
  368. this.$refs.settleClientName.resetForm()
  369. if (this.advanced) { // 查询条件未展开时,该组件未渲染
  370. this.settleDate = []
  371. this.$refs.rangeSettleDate.resetDate()
  372. this.$refs.receiverName.resetForm()
  373. }
  374. this.queryParam.beginDate = ''
  375. this.queryParam.endDate = ''
  376. this.queryParam.bizNo = ''
  377. this.queryParam.dispatchBillNo = ''
  378. this.queryParam.beginDateSettle = ''
  379. this.queryParam.endDateSettle = ''
  380. this.queryParam.settleClientName = ''
  381. this.queryParam.receiverName = ''
  382. this.queryParam.dealerLevel = undefined
  383. this.queryParam.settleStyle = undefined
  384. this.queryParam.keepType = undefined
  385. this.queryParam.subareaArea.subareaSn = undefined
  386. this.queryParam.subareaArea.subareaAreaSn = undefined
  387. this.queryParam.billStatus = undefined
  388. this.queryParam.settleState = undefined
  389. this.queryParam.voidFlag = undefined
  390. this.queryParam.dealerProvinceSn = undefined
  391. this.queryParam.dealerCitySn = undefined
  392. this.queryParam.dealerCountySn = undefined
  393. this.queryParam.checkStatus = undefined
  394. this.queryParam.bizUserSn = undefined
  395. if (this.advanced) {
  396. this.$refs.subarea.clearData()
  397. }
  398. this.$refs.table.refresh(true)
  399. this.$refs.table.clearSelected()
  400. },
  401. handleDetail (row, type) {
  402. this.detailType = type
  403. this.bizSn = type == 0 ? row.bizSn : row.dispatchBillSn
  404. this.$store.state.app.curActionPermission = type == 0 ? 'B_salesDetail' : 'B_dispatchDetail'
  405. this.showDetailModal = true
  406. },
  407. cancelDetail () {
  408. this.showDetailModal = false
  409. this.detailType = 2
  410. this.bizSn = null
  411. this.$store.state.app.curActionPermission = ''
  412. },
  413. // 点击批量收款
  414. handlePlColle () {
  415. const _this = this
  416. const slen = _this.rowSelectionInfo.selectedRowKeys.length
  417. if (!_this.rowSelectionInfo || (_this.rowSelectionInfo && slen < 1)) {
  418. _this.$message.warning('请在列表勾选后再进行批量操作!')
  419. return
  420. }
  421. // 判断是否选择相同的客户
  422. const settleClientName = _this.rowSelectionInfo.selectedRows[0].settleClientName
  423. const haseq = _this.rowSelectionInfo.selectedRows.filter(item => item.settleClientName == settleClientName)
  424. if (haseq.length == slen) {
  425. this.handlePlData = _this.rowSelectionInfo.selectedRows
  426. this.showSkModal = true
  427. } else {
  428. this.$info({
  429. title: '操作提示',
  430. centered: true,
  431. content: '您所选择的备货单,不属于同一个客户,无法收款,请重新选择。只能针对一个客户的备货单进行批量收款。',
  432. onOk () {}
  433. })
  434. }
  435. },
  436. // 凭证
  437. handleVoucher (row) {
  438. this.$store.state.app.curActionPermission = 'B_salesCollection_record'
  439. this.showVoucher = true
  440. this.$nextTick(() => {
  441. this.$refs.voucherModal.getData(row)
  442. })
  443. },
  444. closeVoucherModal () {
  445. this.showVoucher = false
  446. this.$store.state.app.curActionPermission = ''
  447. },
  448. // 点击收款
  449. handleColle (row) {
  450. this.handlePlData = [row]
  451. this.$store.state.app.curActionPermission = 'B_salesCollection_receipt'
  452. this.showSkModal = true
  453. },
  454. closeColleModal () {
  455. this.showSkModal = false
  456. this.$store.state.app.curActionPermission = ''
  457. },
  458. // 批量/单个收款
  459. handleSaveColle (row) {
  460. const _this = this
  461. const snList = []
  462. this.handlePlData.map(item => {
  463. snList.push(item.accountReceiptSn)
  464. })
  465. // 仅标记收款
  466. _this.spinning = true
  467. _this.showSkModal = false
  468. settleReceiptBatch({ snList: snList }).then(res => {
  469. if (res.status == 200) {
  470. _this.$message.success(res.message)
  471. _this.$refs.table.refresh()
  472. _this.$refs.table.clearSelected()
  473. _this.spinning = false
  474. _this.collectionType = 0
  475. } else {
  476. _this.spinning = false
  477. }
  478. })
  479. },
  480. pageInit () {
  481. const _this = this
  482. this.$nextTick(() => { // 页面渲染完成后的回调
  483. _this.setTableH()
  484. })
  485. },
  486. setTableH () {
  487. const tableSearchH = this.$refs.tableSearch.offsetHeight
  488. this.tableHeight = window.innerHeight - tableSearchH - 237
  489. }
  490. },
  491. watch: {
  492. advanced (newValue, oldValue) {
  493. const _this = this
  494. this.$nextTick(() => { // 页面渲染完成后的回调
  495. _this.setTableH()
  496. })
  497. },
  498. '$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
  499. this.setTableH()
  500. }
  501. },
  502. mounted () {
  503. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  504. this.pageInit()
  505. this.resetSearchForm()
  506. }
  507. },
  508. activated () {
  509. // 如果是新页签打开,则重置当前页面
  510. if (this.$store.state.app.isNewTab) {
  511. this.pageInit()
  512. this.resetSearchForm()
  513. }
  514. // 仅刷新列表,不重置页面
  515. if (this.$store.state.app.updateList) {
  516. this.pageInit()
  517. this.$refs.table.refresh()
  518. }
  519. },
  520. beforeRouteEnter (to, from, next) {
  521. next(vm => {})
  522. }
  523. }
  524. </script>