tb-fee-details-list.html 22 KB

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