index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  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="shopSn">
  5. <el-input
  6. v-model="queryParams.shopName"
  7. placeholder="请输入门店名称"
  8. clearable
  9. size="small"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <!-- <el-form-item label="商户编号" prop="merchSn">-->
  14. <!-- <el-input-->
  15. <!-- v-model="queryParams.merchSn"-->
  16. <!-- placeholder="请输入商户编号"-->
  17. <!-- clearable-->
  18. <!-- size="small"-->
  19. <!-- @keyup.enter.native="handleQuery"-->
  20. <!-- />-->
  21. <!-- </el-form-item>-->
  22. <!-- <el-form-item label="商户名称" prop="merchName">-->
  23. <!-- <el-input-->
  24. <!-- v-model="queryParams.merchName"-->
  25. <!-- placeholder="请输入商户名称"-->
  26. <!-- clearable-->
  27. <!-- size="small"-->
  28. <!-- @keyup.enter.native="handleQuery"-->
  29. <!-- />-->
  30. <!-- </el-form-item>-->
  31. <!-- <el-form-item label="第三方商户代码" prop="thirdPartyMerchCode">-->
  32. <!-- <el-input-->
  33. <!-- v-model="queryParams.thirdPartyMerchCode"-->
  34. <!-- placeholder="请输入第三方商户代码"-->
  35. <!-- clearable-->
  36. <!-- size="small"-->
  37. <!-- @keyup.enter.native="handleQuery"-->
  38. <!-- />-->
  39. <!-- </el-form-item>-->
  40. <!-- <el-form-item label="第三方商户名称" prop="thirdPartyMerchName">-->
  41. <!-- <el-input-->
  42. <!-- v-model="queryParams.thirdPartyMerchName"-->
  43. <!-- placeholder="请输入第三方商户名称"-->
  44. <!-- clearable-->
  45. <!-- size="small"-->
  46. <!-- @keyup.enter.native="handleQuery"-->
  47. <!-- />-->
  48. <!-- </el-form-item>-->
  49. <el-form-item label="SKU" prop="sku">
  50. <el-input
  51. v-model="queryParams.sku"
  52. placeholder="请输入SKU"
  53. clearable
  54. size="small"
  55. @keyup.enter.native="handleQuery"
  56. />
  57. </el-form-item>
  58. <!-- <el-form-item label="海关代码" prop="cusCode">-->
  59. <!-- <el-select v-model="queryParams.cusCode" placeholder="请选择海关代码" clearable size="small">-->
  60. <!-- <el-option-->
  61. <!-- v-for="dict in cusCodeOptions"-->
  62. <!-- :key="dict.dictValue"-->
  63. <!-- :label="dict.dictLabel"-->
  64. <!-- :value="dict.dictValue"-->
  65. <!-- />-->
  66. <!-- </el-select>-->
  67. <!-- </el-form-item>-->
  68. <!-- <el-form-item label="保税仓代码" prop="bondedCode">-->
  69. <!-- <el-select v-model="queryParams.bondedCode" placeholder="请选择保税仓代码" clearable size="small">-->
  70. <!-- <el-option-->
  71. <!-- v-for="dict in bondedCodeOptions"-->
  72. <!-- :key="dict.dictValue"-->
  73. <!-- :label="dict.dictLabel"-->
  74. <!-- :value="dict.dictValue"-->
  75. <!-- />-->
  76. <!-- </el-select>-->
  77. <!-- </el-form-item>-->
  78. <!-- <el-form-item label="仓库编号" prop="wareSn">-->
  79. <!-- <el-input-->
  80. <!-- v-model="queryParams.wareSn"-->
  81. <!-- placeholder="请输入仓库编号"-->
  82. <!-- clearable-->
  83. <!-- size="small"-->
  84. <!-- @keyup.enter.native="handleQuery"-->
  85. <!-- />-->
  86. <!-- </el-form-item>-->
  87. <!-- <el-form-item label="货品业务类型" prop="goodsBizType">-->
  88. <!-- <el-select v-model="queryParams.goodsBizType" placeholder="请选择货品业务类型" clearable size="small">-->
  89. <!-- <el-option-->
  90. <!-- v-for="dict in goodsBizTypeOptions"-->
  91. <!-- :key="dict.dictValue"-->
  92. <!-- :label="dict.dictLabel"-->
  93. <!-- :value="dict.dictValue"-->
  94. <!-- />-->
  95. <!-- </el-select>-->
  96. <!-- </el-form-item>-->
  97. <!-- <el-form-item label="是否有效" prop="isValid">-->
  98. <!-- <el-select v-model="queryParams.isValid" placeholder="请选择是否有效" clearable size="small">-->
  99. <!-- <el-option-->
  100. <!-- v-for="dict in isValidOptions"-->
  101. <!-- :key="dict.dictValue"-->
  102. <!-- :label="dict.dictLabel"-->
  103. <!-- :value="dict.dictValue"-->
  104. <!-- />-->
  105. <!-- </el-select>-->
  106. <!-- </el-form-item>-->
  107. <el-form-item>
  108. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  109. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  110. </el-form-item>
  111. </el-form>
  112. <el-row :gutter="10" class="mb8">
  113. <!-- <el-col :span="1.5">-->
  114. <!-- <el-button-->
  115. <!-- type="primary"-->
  116. <!-- icon="el-icon-plus"-->
  117. <!-- size="mini"-->
  118. <!-- @click="handleAdd"-->
  119. <!-- v-hasPermi="['biz:shopinve:add']"-->
  120. <!-- >新增</el-button>-->
  121. <!-- </el-col>-->
  122. <!-- <el-col :span="1.5">-->
  123. <!-- <el-button-->
  124. <!-- type="success"-->
  125. <!-- icon="el-icon-edit"-->
  126. <!-- size="mini"-->
  127. <!-- :disabled="single"-->
  128. <!-- @click="handleUpdate"-->
  129. <!-- v-hasPermi="['biz:shopinve:edit']"-->
  130. <!-- >修改</el-button>-->
  131. <!-- </el-col>-->
  132. <!-- <el-col :span="1.5">-->
  133. <!-- <el-button-->
  134. <!-- type="danger"-->
  135. <!-- icon="el-icon-delete"-->
  136. <!-- size="mini"-->
  137. <!-- :disabled="multiple"-->
  138. <!-- @click="handleDelete"-->
  139. <!-- v-hasPermi="['biz:shopinve:remove']"-->
  140. <!-- >删除</el-button>-->
  141. <!-- </el-col>-->
  142. <el-col :span="1.5">
  143. <el-button
  144. type="warning"
  145. icon="el-icon-download"
  146. size="mini"
  147. @click="handleExport"
  148. v-hasPermi="['biz:shopinve:export']"
  149. >导出</el-button>
  150. </el-col>
  151. <el-col :span="1.5">
  152. <el-button
  153. type="warning"
  154. icon="el-icon-download"
  155. size="mini"
  156. @click="openPullDialog"
  157. v-hasPermi="['biz:storeinvemng:pull']"
  158. >拉取</el-button>
  159. </el-col>
  160. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  161. </el-row>
  162. <el-table v-loading="loading" :data="shopinveList" @selection-change="handleSelectionChange">
  163. <el-table-column type="selection" width="55" align="center" />
  164. <!-- <el-table-column label="门店库存编号" align="center" prop="shopInveSn" />-->
  165. <el-table-column label="门店序号" align="center" prop="shopSn" />
  166. <el-table-column label="门店名称" align="center" prop="shopName" />
  167. <!-- <el-table-column label="商户编号" align="center" prop="merchSn" />-->
  168. <!-- <el-table-column label="商户名称" align="center" prop="merchName" />-->
  169. <!-- <el-table-column label="第三方商户代码" align="center" prop="thirdPartyMerchCode" />-->
  170. <!-- <el-table-column label="第三方商户名称" align="center" prop="thirdPartyMerchName" />-->
  171. <el-table-column label="SKU" align="center" prop="sku" />
  172. <!-- <el-table-column label="海关代码" align="center" prop="cusCode" :formatter="cusCodeFormat" />-->
  173. <!-- <el-table-column label="保税仓代码" align="center" prop="bondedCode" :formatter="bondedCodeFormat" />-->
  174. <!-- <el-table-column label="仓库编号" align="center" prop="wareSn" />-->
  175. <!-- <el-table-column label="货品业务类型" align="center" prop="goodsBizType" :formatter="goodsBizTypeFormat" />-->
  176. <el-table-column label="门店库存" align="center" prop="shopInve" />
  177. <el-table-column label="门店可用数" align="center" prop="shopValid" />
  178. <el-table-column label="门店冻结数" align="center" prop="shopFreezeNum" />
  179. <el-table-column label="门店破损数" align="center" prop="shopDamageNum" />
  180. <el-table-column label="门店灭失数" align="center" prop="shopDestroyLostNum" />
  181. <el-table-column label="门店过期数" align="center" prop="shopExpireNum" />
  182. <el-table-column label="样品展示冻结数" align="center" prop="shopSampleFreezeNum" />
  183. <el-table-column label="门店减扣数" align="center" prop="shopMinus" />
  184. <el-table-column label="门店增补数" align="center" prop="shopSupp" />
  185. <el-table-column label="进场数量" align="center" prop="inQty" />
  186. <el-table-column label="出场数量" align="center" prop="outQty" />
  187. <el-table-column label="退货数量" align="center" prop="returnQty" />
  188. <el-table-column label="销售数量" align="center" prop="saleQty" />
  189. <el-table-column label="移仓转入数量" align="center" prop="locInQty" />
  190. <el-table-column label="移仓转出数量" align="center" prop="locOutQty" />
  191. <!-- <el-table-column label="是否有效" align="center" prop="isValid" :formatter="isValidFormat" />-->
  192. <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
  193. <!-- <template slot-scope="scope">-->
  194. <!-- <el-button-->
  195. <!-- size="mini"-->
  196. <!-- type="text"-->
  197. <!-- icon="el-icon-edit"-->
  198. <!-- @click="handleUpdate(scope.row)"-->
  199. <!-- v-hasPermi="['biz:shopinve:edit']"-->
  200. <!-- >修改</el-button>-->
  201. <!-- <el-button-->
  202. <!-- size="mini"-->
  203. <!-- type="text"-->
  204. <!-- icon="el-icon-delete"-->
  205. <!-- @click="handleDelete(scope.row)"-->
  206. <!-- v-hasPermi="['biz:shopinve:remove']"-->
  207. <!-- >删除</el-button>-->
  208. <!-- </template>-->
  209. <!-- </el-table-column>-->
  210. </el-table>
  211. <pagination
  212. v-show="total>0"
  213. :total="total"
  214. :page.sync="queryParams.pageNum"
  215. :limit.sync="queryParams.pageSize"
  216. @pagination="getList"
  217. />
  218. <!-- 添加或修改商户店面库存,包括跨境,一般贸易对话框 -->
  219. <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
  220. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  221. <el-form-item label="门店序号" prop="shopSn">
  222. <el-input v-model="form.shopSn" placeholder="请输入门店序号" />
  223. </el-form-item>
  224. <el-form-item label="商户编号" prop="merchSn">
  225. <el-input v-model="form.merchSn" placeholder="请输入商户编号" />
  226. </el-form-item>
  227. <el-form-item label="商户名称" prop="merchName">
  228. <el-input v-model="form.merchName" placeholder="请输入商户名称" />
  229. </el-form-item>
  230. <el-form-item label="第三方商户代码" prop="thirdPartyMerchCode">
  231. <el-input v-model="form.thirdPartyMerchCode" placeholder="请输入第三方商户代码" />
  232. </el-form-item>
  233. <el-form-item label="第三方商户名称" prop="thirdPartyMerchName">
  234. <el-input v-model="form.thirdPartyMerchName" placeholder="请输入第三方商户名称" />
  235. </el-form-item>
  236. <el-form-item label="SKU" prop="sku">
  237. <el-input v-model="form.sku" placeholder="请输入SKU" />
  238. </el-form-item>
  239. <el-form-item label="海关代码" prop="cusCode">
  240. <el-select v-model="form.cusCode" placeholder="请选择海关代码">
  241. <el-option
  242. v-for="dict in cusCodeOptions"
  243. :key="dict.dictValue"
  244. :label="dict.dictLabel"
  245. :value="dict.dictValue"
  246. ></el-option>
  247. </el-select>
  248. </el-form-item>
  249. <el-form-item label="保税仓代码" prop="bondedCode">
  250. <el-select v-model="form.bondedCode" placeholder="请选择保税仓代码">
  251. <el-option
  252. v-for="dict in bondedCodeOptions"
  253. :key="dict.dictValue"
  254. :label="dict.dictLabel"
  255. :value="dict.dictValue"
  256. ></el-option>
  257. </el-select>
  258. </el-form-item>
  259. <el-form-item label="仓库编号" prop="wareSn">
  260. <el-input v-model="form.wareSn" placeholder="请输入仓库编号" />
  261. </el-form-item>
  262. <el-form-item label="货品业务类型" prop="goodsBizType">
  263. <el-select v-model="form.goodsBizType" placeholder="请选择货品业务类型">
  264. <el-option
  265. v-for="dict in goodsBizTypeOptions"
  266. :key="dict.dictValue"
  267. :label="dict.dictLabel"
  268. :value="dict.dictValue"
  269. ></el-option>
  270. </el-select>
  271. </el-form-item>
  272. </el-form>
  273. <div slot="footer" class="dialog-footer">
  274. <el-button type="primary" @click="submitForm">确 定</el-button>
  275. <el-button @click="cancel">取 消</el-button>
  276. </div>
  277. </el-dialog>
  278. <!-- 拉取 dialog -->
  279. <el-dialog title="拉取库存" :visible.sync="pullDialog" width="500px" append-to-body>
  280. <el-form ref="pullForm" :model="pullForm" :rules="rules" label-width="80px">
  281. <el-form-item label="门店编号" prop="shopSn">
  282. <el-input v-model="pullForm.shopSn" placeholder="请输入门店编号" />
  283. </el-form-item>
  284. <el-form-item label="SKU" prop="sku">
  285. <el-input v-model="pullForm.sku" placeholder="请输入SKU" />
  286. </el-form-item>
  287. </el-form>
  288. <div slot="footer" class="dialog-footer">
  289. <el-button type="primary" @click="handlePull">确 定</el-button>
  290. <el-button @click="closePullDialog">取 消</el-button>
  291. </div>
  292. </el-dialog>
  293. </div>
  294. </template>
  295. <script>
  296. import { listShopinve, getShopinve, delShopinve, addShopinve, updateShopinve, exportShopinve,pullStoreInvemng } from "@/api/warehouse/shopinve";
  297. export default {
  298. name: "Shopinve",
  299. components: {
  300. },
  301. data() {
  302. return {
  303. // 拉取表单
  304. pullForm: {},
  305. // 拉取数据弹框
  306. pullDialog: false,
  307. // 遮罩层
  308. loading: true,
  309. // 选中数组
  310. ids: [],
  311. // 非单个禁用
  312. single: true,
  313. // 非多个禁用
  314. multiple: true,
  315. // 显示搜索条件
  316. showSearch: true,
  317. // 总条数
  318. total: 0,
  319. // 商户店面库存,包括跨境,一般贸易表格数据
  320. shopinveList: [],
  321. // 弹出层标题
  322. title: "",
  323. // 是否显示弹出层
  324. open: false,
  325. // 海关代码字典
  326. cusCodeOptions: [],
  327. // 保税仓代码字典
  328. bondedCodeOptions: [],
  329. // 货品业务类型字典
  330. goodsBizTypeOptions: [],
  331. // 是否有效字典
  332. isValidOptions: [],
  333. // 查询参数
  334. queryParams: {
  335. pageNum: 1,
  336. pageSize: 10,
  337. shopSn: null,
  338. merchSn: null,
  339. merchName: null,
  340. thirdPartyMerchCode: null,
  341. thirdPartyMerchName: null,
  342. sku: null,
  343. cusCode: null,
  344. bondedCode: null,
  345. wareSn: null,
  346. goodsBizType: null,
  347. isValid: null,
  348. shopName:null
  349. },
  350. // 表单参数
  351. form: {},
  352. // 表单校验
  353. rules: {
  354. }
  355. };
  356. },
  357. created() {
  358. this.getList();
  359. this.getDicts("cus_code").then(response => {
  360. this.cusCodeOptions = response.data;
  361. });
  362. this.getDicts("bonded_code").then(response => {
  363. this.bondedCodeOptions = response.data;
  364. });
  365. this.getDicts("goods_biz_type").then(response => {
  366. this.goodsBizTypeOptions = response.data;
  367. });
  368. this.getDicts("valid").then(response => {
  369. this.isValidOptions = response.data;
  370. });
  371. },
  372. methods: {
  373. /**
  374. * 打开拉取库存对话框
  375. */
  376. openPullDialog() {
  377. this.resetPullForm();
  378. this.pullDialog = true;
  379. },
  380. /**
  381. * 关闭拉取库存对话框
  382. */
  383. closePullDialog() {
  384. this.pullDialog = false;
  385. this.resetPullForm();
  386. },
  387. /**
  388. * 清除表单数据
  389. */
  390. resetPullForm() {
  391. this.pullForm = {
  392. merchId: null,
  393. sku: null
  394. };
  395. this.resetForm("pullForm");
  396. },
  397. /** 查询商户店面库存,包括跨境,一般贸易列表 */
  398. getList() {
  399. this.loading = true;
  400. listShopinve(this.queryParams).then(response => {
  401. this.shopinveList = response.rows;
  402. this.total = response.total;
  403. this.loading = false;
  404. });
  405. },
  406. // 海关代码字典翻译
  407. cusCodeFormat(row, column) {
  408. return this.selectDictLabel(this.cusCodeOptions, row.cusCode);
  409. },
  410. // 保税仓代码字典翻译
  411. bondedCodeFormat(row, column) {
  412. return this.selectDictLabel(this.bondedCodeOptions, row.bondedCode);
  413. },
  414. // 货品业务类型字典翻译
  415. goodsBizTypeFormat(row, column) {
  416. return this.selectDictLabel(this.goodsBizTypeOptions, row.goodsBizType);
  417. },
  418. // 是否有效字典翻译
  419. isValidFormat(row, column) {
  420. return this.selectDictLabel(this.isValidOptions, row.isValid);
  421. },
  422. // 取消按钮
  423. cancel() {
  424. this.open = false;
  425. this.reset();
  426. },
  427. // 表单重置
  428. reset() {
  429. this.form = {
  430. shopInveSn: null,
  431. shopSn: null,
  432. merchSn: null,
  433. merchName: null,
  434. thirdPartyMerchCode: null,
  435. thirdPartyMerchName: null,
  436. sku: null,
  437. cusCode: null,
  438. bondedCode: null,
  439. wareSn: null,
  440. goodsBizType: null,
  441. shopInve: null,
  442. shopValid: null,
  443. shopFreezeNum: null,
  444. shopDamageNum: null,
  445. shopDestroyLostNum: null,
  446. shopExpireNum: null,
  447. shopSampleFreezeNum: null,
  448. shopMinus: null,
  449. shopSupp: null,
  450. inQty: null,
  451. outQty: null,
  452. returnQty: null,
  453. saleQty: null,
  454. locInQty: null,
  455. locOutQty: null,
  456. isValid: null,
  457. createrSn: null,
  458. createTime: null,
  459. moderSn: null,
  460. modTime: null,
  461. tstm: null
  462. };
  463. this.resetForm("form");
  464. },
  465. /** 搜索按钮操作 */
  466. handleQuery() {
  467. this.queryParams.pageNum = 1;
  468. this.getList();
  469. },
  470. /** 重置按钮操作 */
  471. resetQuery() {
  472. this.resetForm("queryForm");
  473. this.handleQuery();
  474. },
  475. // 多选框选中数据
  476. handleSelectionChange(selection) {
  477. this.ids = selection.map(item => item.shopInveSn)
  478. this.single = selection.length!==1
  479. this.multiple = !selection.length
  480. },
  481. /** 新增按钮操作 */
  482. handleAdd() {
  483. this.reset();
  484. this.open = true;
  485. this.title = "添加商户店面库存,包括跨境,一般贸易";
  486. },
  487. /** 修改按钮操作 */
  488. handleUpdate(row) {
  489. this.reset();
  490. const shopInveSn = row.shopInveSn || this.ids
  491. getShopinve(shopInveSn).then(response => {
  492. this.form = response.data;
  493. this.open = true;
  494. this.title = "修改商户店面库存,包括跨境,一般贸易";
  495. });
  496. },
  497. /** 提交按钮 */
  498. submitForm() {
  499. this.$refs["form"].validate(valid => {
  500. if (valid) {
  501. if (this.form.shopInveSn != null) {
  502. updateShopinve(this.form).then(response => {
  503. this.msgSuccess("修改成功");
  504. this.open = false;
  505. this.getList();
  506. });
  507. } else {
  508. addShopinve(this.form).then(response => {
  509. this.msgSuccess("新增成功");
  510. this.open = false;
  511. this.getList();
  512. });
  513. }
  514. }
  515. });
  516. },
  517. /** 删除按钮操作 */
  518. handleDelete(row) {
  519. const shopInveSns = row.shopInveSn || this.ids;
  520. this.$confirm('是否确认删除商户店面库存,包括跨境,一般贸易编号为"' + shopInveSns + '"的数据项?', "警告", {
  521. confirmButtonText: "确定",
  522. cancelButtonText: "取消",
  523. type: "warning"
  524. }).then(function() {
  525. return delShopinve(shopInveSns);
  526. }).then(() => {
  527. this.getList();
  528. this.msgSuccess("删除成功");
  529. })
  530. },
  531. /** 导出按钮操作 */
  532. handleExport() {
  533. const queryParams = this.queryParams;
  534. this.$confirm('是否确认导出所有商户店面库存?', "警告", {
  535. confirmButtonText: "确定",
  536. cancelButtonText: "取消",
  537. type: "warning"
  538. }).then(function() {
  539. return exportShopinve(queryParams);
  540. }).then(response => {
  541. this.download(response.msg);
  542. })
  543. },
  544. /** 拉取按钮操作 */
  545. handlePull() {
  546. let queryParams = this.pullForm;
  547. console.log("传入的拉取参数 => ", queryParams);
  548. // 添加遮罩
  549. let _this = this;
  550. let that = this;
  551. this.$confirm('是否确认拉取门店库存?', "警告", {
  552. confirmButtonText: "确定",
  553. cancelButtonText: "取消",
  554. type: "warning"
  555. }).then(function() {
  556. return pullStoreInvemng(queryParams).then(res => {
  557. // 关闭弹出框
  558. that.closePullDialog();
  559. _this.$alert("拉取库存成功...");
  560. }).catch(err => {
  561. // 关闭弹出框
  562. that.closePullDialog();
  563. _this.$alert("拉取库存异常...");
  564. })
  565. }).then(function(){
  566. _this.handleQuery();
  567. })
  568. }
  569. }
  570. };
  571. </script>