tb-fee-details-list.html 27 KB

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