tb-fee-details-list.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>收费明细表-列表</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <!-- 所有的 css & js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. </head>
  18. <style>
  19. .keyButton.el-button {
  20. width: 100%;
  21. overflow: hidden;
  22. text-align: left;
  23. text-overflow: ellipsis;
  24. white-space: nowrap;
  25. border: 0 !important;
  26. background: transparent;
  27. padding: 0 !important;
  28. }
  29. .keyButton.el-button:hover {
  30. border: 0 !important;
  31. background: transparent;
  32. padding: 0 !important;
  33. }
  34. .price-t {
  35. font-size: 14px;
  36. font-weight: bold;
  37. line-height: 2em;
  38. margin-bottom: 3px;
  39. float: right;
  40. }
  41. </style>
  42. <body>
  43. <div class="vue-box" style="display: none;" :style="'display: block;'">
  44. <div class="c-panel">
  45. <!-- ------------- 检索参数 ------------- -->
  46. <div class="c-title">检索参数</div>
  47. <el-form ref="form" :model='p' @submit.native.prevent>
  48. <div class="c-item">
  49. <label class="c-label">类型:</label>
  50. <el-select v-model="p.type" placeholder="请选择" filterable>
  51. <el-option label="停车费" value="4"></el-option>
  52. <el-option label="业务费" value="1,2,3,5,6,7"></el-option>
  53. </el-select>
  54. </div>
  55. <sa-item type="text" name="车型" v-model="p.itemName"></sa-item>
  56. <sa-item type="text" name="车牌号" v-model="p.carNo"></sa-item>
  57. <sa-item type="text" name="业务单号" v-model="p.businessNo"></sa-item>
  58. <div class="c-item">
  59. <label class="c-label">收费项目:</label>
  60. <el-select v-model="p.feeType" placeholder="请选择" filterable>
  61. <el-option label="核酸检测" value="1"></el-option>
  62. <el-option label="消杀作业" value="2"></el-option>
  63. <el-option label="装卸作业" value="3"></el-option>
  64. <el-option label="停车业务" value="4"></el-option>
  65. <el-option label="过磅费" value="5"></el-option>
  66. <el-option label="入场管理费" value="6"></el-option>
  67. <el-option label="充电打冷作业" value="7"></el-option>
  68. </el-select>
  69. </div>
  70. <div class="c-item">
  71. <label class="c-label">业务类型:</label>
  72. <el-select v-model="p.itemTypeName" placeholder="请选择" filterable>
  73. <el-option v-for="item in itemTypeList" :key="item.id" :label="item.name"
  74. :value="item.name">
  75. </el-option>
  76. </el-select>
  77. </div>
  78. <div class="c-item">
  79. <label class="c-label">日期范围:</label>
  80. <el-date-picker size="mini" v-model="selectTime" type="daterange" unlink-panels="false"
  81. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
  82. format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd">
  83. </el-date-picker>
  84. </div>
  85. <div class="c-item">
  86. <label class="c-label">是否开票:</label>
  87. <el-select v-model="p.isInvoice" placeholder="请选择" filterable>
  88. <el-option label="全部" value=""></el-option>
  89. <el-option label="未开票" value="0"></el-option>
  90. <el-option label="已开票" value="1"></el-option>
  91. </el-select>
  92. </div>
  93. <sa-item type="text" name="微信支付号" v-model="p.transactionId"></sa-item>
  94. <sa-item type="text" name="作业公司" v-model="p.pickCustomerName"></sa-item>
  95. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  96. <el-button type="info" @click="sa.f5()">刷新</el-button>
  97. <el-button type="warning" v-if="sa.isAuth('tb-statistics-export')"
  98. @click="exportFn()">导出</el-button>
  99. <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-statistics-print')"
  100. @click="print()">打印</el-button>
  101. <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-kaidan-confirm')"
  102. @click="kaiDanConfirm()">开单确认</el-button>
  103. <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-diaodu-confirm')"
  104. @click="diaoDuConfirm()">复核确认</el-button>
  105. <el-button class="c-btn" type="success" icon="el-icon" v-if="sa.isAuth('tb-jicha-confirm')"
  106. @click="jiChaConfirm()">稽查确认</el-button>
  107. <el-button class="c-btn" type="danger" icon="el-icon" v-if="sa.isAuth('tb-jicha-cancel')"
  108. @click="jiChaCancel()">取消确认</el-button>
  109. <slot></slot>
  110. <div class="price-t">
  111. 总共<span
  112. style="color: #ff6600">&nbsp&nbsp{{dataCount}}&nbsp&nbsp</span>条&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
  113. 总金额<span style="color: #ff6600">&nbsp&nbsp{{totalPrice}}&nbsp&nbsp</span>元
  114. </div>
  115. <br />
  116. </el-form>
  117. <!-- ------------- 数据列表 ------------- -->
  118. <el-table class="data-table" ref="data-table" :data="dataList" show-summary :summary-method="getSumRol" style="margin-top: 10px;">
  119. <sa-td type="selection"></sa-td>
  120. <sa-td name="收费项目" prop="feeType" type="enum"
  121. :jv="{1: '核酸检测',2: '消杀作业', 3: '装卸作业', 4: '停车业务', 5: '过磅费', 6: '入场管理费', 7: '充电打冷作业'}"></sa-td>
  122. <sa-td name="业务类型" prop="itemTypeName"></sa-td>
  123. <sa-td name="车型" prop="itemName"></sa-td>
  124. <sa-td name="车牌号" prop="carNo" width="90px"></sa-td>
  125. <sa-td name="重量(kg)" prop="weight"></sa-td>
  126. <sa-td name="数量" prop="num"></sa-td>
  127. <sa-td name="单价(元)" prop="unitPrice"></sa-td>
  128. <sa-td name="总价(元)" prop="itemPrice"></sa-td>
  129. <sa-td name="缴费方式" prop="module"></sa-td>
  130. <sa-td name="结算状态" prop="isSettle" type="enum" :jv="{0: '未结算',1: '已结算'}"></sa-td>
  131. <sa-td name="复核状态" prop=""></sa-td>
  132. <!-- <sa-td name="税率(%)" prop="taxRate" ></sa-td>-->
  133. <el-table-column label="税率(%)">
  134. <template slot-scope="s">
  135. <span>{{s.row.taxRate * 100}}</span>
  136. </template>
  137. </el-table-column>
  138. <!-- <sa-td name="税款(元)" prop="taxPrice" ></sa-td>-->
  139. <el-table-column label="税款(元)">
  140. <template slot-scope="s">
  141. <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
  142. </template>
  143. </el-table-column>
  144. <!-- <sa-td name="不含税金额(元)" prop="noTaxPrice" ></sa-td>-->
  145. <el-table-column label="不含税金额(元)">
  146. <template slot-scope="s">
  147. <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
  148. </template>
  149. </el-table-column>
  150. <!-- <sa-td name="收款方式" prop="payType" type="enum" :jv="{3: '微信支付'}"></sa-td>
  151. <sa-td name="收款种类" prop="payMode" type="enum" :jv="{1: '直接收款'}"></sa-td> -->
  152. <el-table-column label="业务单号" width="140px">
  153. <template slot-scope="s">
  154. <span v-if="s.row.businessNo != null && s.row.businessNo != ''">{{s.row.businessNo}}</span>
  155. <span v-else>{{s.row.businessCarNo}}</span>
  156. </template>
  157. </el-table-column>
  158. <!-- <sa-td name="订单编号" prop="transactionId" width="220px" ></sa-td>-->
  159. <el-table-column label="微信支付业务单号" width="220px">
  160. <template slot-scope="s">
  161. <el-tooltip :content="s.row.transactionId" placement="bottom" effect="light">
  162. <el-button class="keyButton">{{ s.row.transactionId }}</el-button>
  163. </el-tooltip>
  164. </template>
  165. </el-table-column>
  166. <sa-td name="作业编号" prop="businessItemNo" width="145px"></sa-td>
  167. <sa-td name="作业公司" prop="pickCustomerName"></sa-td>
  168. <sa-td name="客户名称" prop="customerName"></sa-td>
  169. <sa-td name="发票号" prop="invoice" width="145px"></sa-td>
  170. <sa-td name="主体名称" prop="entityName"></sa-td>
  171. <sa-td name="生成时间" prop="createTime" width="150px"></sa-td>
  172. <sa-td name="付款时间" prop="payTime" width="150px"></sa-td>
  173. <sa-td name="更新时间" prop="updateTime" width="150px"></sa-td>
  174. <sa-td name="备注" prop="remark"></sa-td>
  175. <sa-td name="开单员" prop="kaiDanPerson" width="80px"></sa-td>
  176. <sa-td name="复核员" prop="diaoDuPerson" width="80px"></sa-td>
  177. <sa-td name="统计稽查员" prop="jiChaPerson" width="80px"></sa-td>
  178. </el-table>
  179. <!-- ------------- 分页 ------------- -->
  180. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
  181. </sa-item>
  182. </div>
  183. <el-dialog title="提示" :visible.sync="emodel.visible" width="38%">
  184. <div class="c-item">
  185. <label class="c-label">收费项目:</label>
  186. <el-select v-model="emodel.form.feeType" placeholder="请选择" filterable>
  187. <el-option label="核酸检测" value="1"></el-option>
  188. <el-option label="消杀作业" value="2"></el-option>
  189. <el-option label="装卸作业" value="3"></el-option>
  190. <el-option label="停车费" value="4"></el-option>
  191. <el-option label="过磅费" value="5"></el-option>
  192. <el-option label="入场管理费" value="6"> </el-option>
  193. <el-option label="充电打冷作业" value="7"> </el-option>
  194. </el-select>
  195. </div>
  196. <div class="c-item">
  197. <label class="c-label">业务类型:</label>
  198. <el-select v-model="emodel.form.itemTypeName" placeholder="请选择" filterable>
  199. <el-option v-for="item in itemTypeList" :key="item.id" :label="item.name" :value="item.name">
  200. </el-option>
  201. </el-select>
  202. </div>
  203. <div class="c-item">
  204. <label class="c-label"><span style="color: red;">*</span>日期范围:</label>
  205. <el-date-picker size="mini" v-model="exportTime" type="daterange" unlink-panels="false"
  206. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy 年 MM 月 dd 日"
  207. value-format="yyyy-MM-dd">
  208. </el-date-picker>
  209. </div>
  210. <span slot="footer" class="dialog-footer">
  211. <el-button @click="emodel.visible = false">取 消</el-button>
  212. <el-button type="primary" @click="">确 定</el-button>
  213. </span>
  214. </el-dialog>
  215. </div>
  216. <script>
  217. var app = new Vue({
  218. components: {
  219. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  220. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  221. },
  222. el: '.vue-box',
  223. data: {
  224. p: { // 查询参数
  225. id: '', // 主键
  226. businessNo: '', // 业务单号
  227. transactionId: '', //微信支付号
  228. pickCustomerName: '',
  229. carNo: '', // 车牌号
  230. feeType: '', //收费类型
  231. itemTypeId: '', // 业务类型id
  232. itemTypeName: '', // 业务类型
  233. itemName: '', // 业务项
  234. itemPrice: '', // 项目金额(元)
  235. payDay: '', // 支付日期
  236. payType: '', // 支付方式(3=微信支付)
  237. createTime: '', // 创建时间
  238. pageNo: 1, // 当前页
  239. pageSize: 10, // 页大小
  240. sortType: 11, // 排序方式
  241. type: '',
  242. isInvoice: '', //是否开票
  243. },
  244. dataCount: 0,
  245. dataList: [], // 数据集合
  246. itemTypeList: [],
  247. selectTime: [],
  248. selectTimeRange: {
  249. beginTime: '', //查询开始时间
  250. endTime: '', //查询结束时间
  251. },
  252. exportTime: [],
  253. emodel: {
  254. visible: false,
  255. form: {
  256. // payDay: ''
  257. feeType: '',
  258. itemTypeName: '',
  259. beginTime: '', //查询开始时间
  260. endTime: '', //查询结束时间
  261. }
  262. },
  263. totalPrice: 0,
  264. tableSum: {
  265. itemPriceSum: 0,
  266. taxPriceSum: 0,
  267. noTaxPriceSum: 0,
  268. },
  269. },
  270. methods: {
  271. getSumRol(param) {
  272. const columns = param.columns;
  273. const sums = [];
  274. columns.forEach((column, index) => {
  275. if (index === 0) {
  276. sums[index] = "合计";
  277. return;
  278. }
  279. //根据当前列绑定的字段名进行判断,根据字段名决定展示什么内容
  280. switch (column.label) {
  281. //金额;
  282. case "总价(元)":
  283. //在这里你就可以根据需要对数据进行一些处理(保留小数位数,加上单位等)
  284. sums[index] = this.tableSum.itemPriceSum;
  285. break;
  286. //人数
  287. case "税款(元)":
  288. sums[index] = this.tableSum.taxPriceSum;
  289. break;
  290. //件数;
  291. case "不含税金额(元)":
  292. sums[index] = this.tableSum.noTaxPriceSum;
  293. break;
  294. //不需要计算合计的列就展示‘--’
  295. default:
  296. sums[index] = "";
  297. break;
  298. }
  299. });
  300. return sums;
  301. },
  302. calcuSum() {
  303. var itemPriceSum = 0;
  304. var taxPriceSum = 0;
  305. var noTaxPriceSum = 0;
  306. var len = this.dataList.length;
  307. for (var i = 0; i < len; i++) {
  308. itemPriceSum = (itemPriceSum * 100 + this.dataList[i].itemPrice * 100) / 100;
  309. taxPriceSum = (taxPriceSum * 100 + this.dataList[i].taxPrice * 100) / 100;
  310. noTaxPriceSum = (noTaxPriceSum * 100 + this.dataList[i].noTaxPrice * 100) / 100;
  311. }
  312. this.tableSum.itemPriceSum = itemPriceSum;
  313. this.tableSum.taxPriceSum = Number(taxPriceSum).toFixed(2);
  314. this.tableSum.noTaxPriceSum = Number(noTaxPriceSum).toFixed(2);
  315. },
  316. getTotalPrice() {
  317. if (this.selectTime != null && this.selectTime.length != 0) {
  318. this.selectTimeRange.beginTime = this.selectTime[0];
  319. this.selectTimeRange.endTime = this.selectTime[1];
  320. }
  321. sa.ajax('/TbFeeDetails/getTotalMoney?beginTime=' + this.selectTimeRange.beginTime + '&endTime=' +
  322. this.selectTimeRange.endTime,
  323. sa.removeNull(this.p),
  324. function(res) {
  325. this.totalPrice = res.data.itemPriceSum;
  326. this.tableSum.itemPriceSum = res.data.itemPriceSum;
  327. this.tableSum.taxPriceSum = res.data.taxPriceSum;
  328. this.tableSum.noTaxPriceSum = res.data.noTaxPriceSum;
  329. }.bind(this));
  330. },
  331. kaiDanConfirm() {
  332. let selection = this.$refs['data-table'].selection;
  333. let ids = sa.getArrayField(selection, 'id');
  334. if (selection.length == 0) {
  335. return sa.msg('请至少选择一条数据')
  336. }
  337. this.$confirm('确定进行开单确认操作?', '提示', {
  338. confirmButtonText: '确定',
  339. cancelButtonText: '取消',
  340. }).then(() => {
  341. sa.ajax('/TbFeeDetails/kaiDanConfirm', {
  342. ids: ids.join(',')
  343. }, function(res) {
  344. this.f5();
  345. }.bind(this))
  346. }).catch(() => {
  347. });
  348. },
  349. diaoDuConfirm() {
  350. let selection = this.$refs['data-table'].selection;
  351. let ids = sa.getArrayField(selection, 'id');
  352. if (selection.length == 0) {
  353. return sa.msg('请至少选择一条数据')
  354. }
  355. this.$confirm('确定进行复核确认操作?', '提示', {
  356. confirmButtonText: '确定',
  357. cancelButtonText: '取消',
  358. }).then(() => {
  359. sa.ajax('/TbFeeDetails/diaoDuConfirm', {
  360. ids: ids.join(',')
  361. }, function(res) {
  362. this.f5();
  363. }.bind(this))
  364. }).catch(() => {
  365. });
  366. },
  367. jiChaConfirm() {
  368. let selection = this.$refs['data-table'].selection;
  369. let ids = sa.getArrayField(selection, 'id');
  370. if (selection.length == 0) {
  371. return sa.msg('请至少选择一条数据')
  372. }
  373. this.$confirm('确定进行稽查确认操作?', '提示', {
  374. confirmButtonText: '确定',
  375. cancelButtonText: '取消',
  376. }).then(() => {
  377. sa.ajax('/TbFeeDetails/jiChaConfirm', {
  378. ids: ids.join(',')
  379. }, function(res) {
  380. this.f5();
  381. }.bind(this))
  382. }).catch(() => {
  383. });
  384. },
  385. jiChaCancel() {
  386. let selection = this.$refs['data-table'].selection;
  387. let ids = sa.getArrayField(selection, 'id');
  388. if (selection.length == 0) {
  389. return sa.msg('请至少选择一条数据')
  390. }
  391. this.$confirm('确定进行开单确认操作?', '提示', {
  392. confirmButtonText: '确定',
  393. cancelButtonText: '取消',
  394. type: 'warning'
  395. }).then(() => {
  396. sa.ajax('/TbFeeDetails/jiChaCancel', {
  397. ids: ids.join(',')
  398. }, function(res) {
  399. this.f5();
  400. }.bind(this))
  401. }).catch(() => {
  402. });
  403. },
  404. print: function() {
  405. if (this.selectTime != null && this.selectTime.length != 0) {
  406. this.selectTimeRange.beginTime = this.selectTime[0];
  407. this.selectTimeRange.endTime = this.selectTime[1];
  408. }
  409. var beginTime = this.selectTimeRange.beginTime;
  410. var endTime = this.selectTimeRange.endTime;
  411. var feeType = this.p.feeType;
  412. var itemTypeName = this.p.itemTypeName;
  413. var str = '';
  414. if (beginTime === '' && endTime === '') {
  415. str += '所有时间';
  416. } else {
  417. str += beginTime + "至" + endTime
  418. }
  419. if (feeType === '') {
  420. str += "、所有收费项目";
  421. } else {
  422. var feeTypeName = '';
  423. if (feeType == 1) {
  424. feeTypeName = "核酸检测";
  425. } else if (feeType == 2) {
  426. feeTypeName = "消杀作业";
  427. } else if (feeType == 3) {
  428. feeTypeName = "装卸作业";
  429. } else if (feeType == 4) {
  430. feeTypeName = "停车费";
  431. } else if (feeType == 5) {
  432. feeTypeName = "过磅费";
  433. } else if (feeType == 6) {
  434. feeTypeName = "入场管理费";
  435. } else if (feeType == 7) {
  436. feeTypeName = "充电打冷作业";
  437. }
  438. str += "、收费项目为" + feeTypeName;
  439. }
  440. if (itemTypeName === '') {
  441. str += "、所有业务类型";
  442. } else {
  443. str += "、业务类型为" + itemTypeName;
  444. }
  445. let itemName=this.p.itemName;
  446. if(itemName){
  447. str+='车型为:'+itemName;
  448. }
  449. this.$confirm('确定打印' + str + '的数据?', '提示', {
  450. confirmButtonText: '确定',
  451. cancelButtonText: '取消',
  452. type: 'warning'
  453. }).then(() => {
  454. sa.showIframe('打印申报信息表', 'detailPrint.html?beginTime=' + beginTime +
  455. "&endTime=" + endTime + "&feeType=" + feeType + "&itemTypeName=" +
  456. itemTypeName, '1000px', '100%');
  457. }).catch(() => {
  458. });
  459. },
  460. exportFn() {
  461. if (this.selectTime != null && this.selectTime.length != 0) {
  462. this.selectTimeRange.beginTime = this.selectTime[0];
  463. this.selectTimeRange.endTime = this.selectTime[1];
  464. }
  465. var beginTime = this.selectTimeRange.beginTime;
  466. var endTime = this.selectTimeRange.endTime;
  467. var feeType = this.p.feeType;
  468. var itemTypeName = this.p.itemTypeName;
  469. var str = '';
  470. if (beginTime === '' && endTime === '') {
  471. str += '所有时间';
  472. } else {
  473. str += beginTime + "至" + endTime
  474. }
  475. if (feeType === '') {
  476. str += "、所有收费项目";
  477. } else {
  478. var feeTypeName = '';
  479. if (feeType == 1) {
  480. feeTypeName = "核酸检测";
  481. } else if (feeType == 2) {
  482. feeTypeName = "消杀作业";
  483. } else if (feeType == 3) {
  484. feeTypeName = "装卸作业";
  485. } else if (feeType == 4) {
  486. feeTypeName = "停车费";
  487. } else if (feeType == 5) {
  488. feeTypeName = "过磅费";
  489. } else if (feeType == 6) {
  490. feeTypeName = "入场管理费";
  491. } else if (feeType == 7) {
  492. feeTypeName = "充电打冷作业";
  493. }
  494. str += "、收费项目为" + feeTypeName;
  495. }
  496. if (itemTypeName === '') {
  497. str += "、所有业务类型";
  498. } else {
  499. str += "、业务类型为" + itemTypeName;
  500. }
  501. let itemName=this.p.itemName;
  502. if(itemName){
  503. str+='车型为:'+itemName;
  504. }
  505. this.$confirm('确定导出' + str + '的数据?', '提示', {
  506. confirmButtonText: '确定',
  507. cancelButtonText: '取消',
  508. type: 'warning'
  509. }).then(() => {
  510. sa.ajax('/TbFeeDetails/export/details?beginTime=' + this.selectTimeRange.beginTime +
  511. '&endTime=' + this.selectTimeRange.endTime, sa.removeNull(this.p),
  512. function(resp) {
  513. window.open(resp.data);
  514. }.bind(this));
  515. }).catch(() => {
  516. });
  517. },
  518. // 刷新
  519. f5: function() {
  520. if (this.selectTime != null && this.selectTime.length != 0) {
  521. this.selectTimeRange.beginTime = this.selectTime[0];
  522. this.selectTimeRange.endTime = this.selectTime[1];
  523. }
  524. if (!this.selectTime) {
  525. this.selectTimeRange.beginTime = '';
  526. this.selectTimeRange.endTime = '';
  527. }
  528. sa.ajax('/TbFeeDetails/getList?beginTime=' + this.selectTimeRange.beginTime + '&endTime=' +
  529. this.selectTimeRange.endTime,
  530. sa.removeNull(this.p),
  531. function(res) {
  532. this.dataList = res.data; // 数据
  533. this.dataCount = res.dataCount; // 数据总数
  534. sa.f5TableHeight(); // 刷新表格高度
  535. }.bind(this));
  536. this.getTotalPrice();
  537. },
  538. // 查看
  539. get: function(data) {
  540. sa.showIframe('数据详情', 'tb-fee-details-info.html?id=' + data.id, '1050px', '90%');
  541. },
  542. // 查看 - 根据选中的
  543. getBySelect: function(data) {
  544. var selection = this.$refs['data-table'].selection;
  545. if (selection.length == 0) {
  546. return sa.msg('请选择一条数据')
  547. }
  548. this.get(selection[0]);
  549. },
  550. getItemTypeList() {
  551. sa.ajax('/TbItemType/getList', {
  552. pageNo: 1,
  553. pageSize: 100
  554. }, function(resp) {
  555. this.itemTypeList = resp.data;
  556. }.bind(this));
  557. },
  558. },
  559. created: function() {
  560. this.f5();
  561. this.getItemTypeList();
  562. sa.onInputEnter();
  563. }
  564. })
  565. </script>
  566. </body>
  567. </html>