tb-fee-details-list.html 22 KB

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