tb-fee-details-list.html 23 KB

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