tb-deduction-record-list.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="https://unpkg.com/vue@2.6.10/dist/vue.js"></script>
  11. <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
  12. <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
  13. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
  14. <script src="https://www.layuicdn.com/layer-v3.1.1/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. </head>
  17. <body>
  18. <div class="vue-box" style="display: none;" :style="'display: block;'">
  19. <div class="c-panel">
  20. <!-- ------------- 检索参数 ------------- -->
  21. <div class="c-title">检索参数</div>
  22. <el-form ref="form" :model='p' @submit.native.prevent>
  23. <sa-item type="text" name="客户名称" v-model="p.customerName"></sa-item>
  24. <sa-item type="text" name="业务单号" v-model="p.businessNo"></sa-item>
  25. <sa-item type="text" name="车牌号" v-model="p.carNo"></sa-item>
  26. <sa-item type="enum" name="收费项目" >
  27. <el-select v-model="p.feeType" clearable placeholder="请选择" filterable>
  28. <el-option label="核酸检测" value="1"></el-option>
  29. <el-option label="消杀作业" value="2"></el-option>
  30. <el-option label="装卸作业" value="3"></el-option>
  31. <el-option label="停车费" value="4"></el-option>
  32. <el-option label="过磅费" value="5"></el-option>
  33. <el-option label="入场管理费" value="6"></el-option>
  34. <el-option label="充电打冷作业" value="7"></el-option>
  35. </el-select>
  36. </sa-item>
  37. <sa-item type="enum" name="业务类型" >
  38. <el-select v-model="p.itemTypeName" clearable placeholder="请选择" filterable>
  39. <el-option v-for="item in itemTypeList" :key="item.id"
  40. :label="item.name" :value="item.name">
  41. </el-option>
  42. </el-select>
  43. </sa-item>
  44. <sa-item type="text" name="支付时间">
  45. <el-date-picker
  46. v-model="p.payTime"
  47. type="daterange"
  48. align="right"
  49. unlink-panels
  50. value-format="yyyy-MM-dd"
  51. range-separator="至"
  52. start-placeholder="开始日期"
  53. end-placeholder="结束日期"
  54. :picker-options="pickerOptions">
  55. </el-date-picker>
  56. </sa-item>
  57. <!-- <sa-item type="enum" name="支付方式" v-model="p.payType" -->
  58. <!-- :jv="{3: '微信支付'}" jtype="2" def="不限"></sa-item>-->
  59. <sa-item type="text" name="复核状态">
  60. <el-select v-model="p.reviewStatus" clearable placeholder="请选择">
  61. <el-option
  62. v-for="item in reviewStatusList"
  63. :key="item.id"
  64. :label="item.name"
  65. :value="item.id">
  66. </el-option>
  67. </el-select>
  68. </sa-item>
  69. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  70. <sa-item type="fast-btn" show="reset" style="display: inline;"></sa-item>
  71. </el-form>
  72. <!-- ------------- 快捷按钮 ------------- -->
  73. <!-- ------------- 数据列表 ------------- -->
  74. <el-table class="data-table" ref="data-table" :data="dataList" >
  75. <sa-td type="index" name="序号"></sa-td>
  76. <sa-td name="客户名称" prop="customerName" width="150"></sa-td>
  77. <sa-td name="合作伙伴" prop="pickCustomerName" width="150"></sa-td>
  78. <sa-td name="业务单号" prop="businessNo" width="150"></sa-td>
  79. <sa-td name="车牌号" prop="carNo" width="100"></sa-td>
  80. <sa-td name="收费项目" prop="feeType" type="enum"
  81. :jv="{1: '核酸检测',2: '消杀作业', 3: '装卸作业', 4: '停车业务', 5: '过磅费', 6: '入场管理费', 7: '充电打冷作业'}"></sa-td>
  82. <sa-td name="业务类型id" prop="itemTypeId" v-if="false"></sa-td>
  83. <sa-td name="业务类型" prop="itemTypeName" width="150"></sa-td>
  84. <!-- <sa-td name="业务项" prop="itemName" ></sa-td>-->
  85. <sa-td name="原金额" prop="originalMoney" width="120"></sa-td>
  86. <sa-td name="扣除金额" prop="deductMoney" width="90"></sa-td>
  87. <sa-td name="余额" prop="totalMoney" width="150"></sa-td>
  88. <sa-td name="结算状态" prop="isSettle" type="enum" :jv="{0: '未结算',1: '已结算'}"></sa-td>
  89. <sa-td name="复核状态" prop="reviewStatus" type="enum" :jv="{0: '未复核',1: '已复核'}"></sa-td>
  90. <sa-td name="税率%" >
  91. <template slot-scope="s">
  92. <span>{{s.row.taxRate * 100}}</span>
  93. </template>
  94. </sa-td>
  95. <el-table-column label="税额(元)">
  96. <template slot-scope="s">
  97. <span>{{Number(s.row.taxPrice).toFixed(2)}}</span>
  98. </template>
  99. </el-table-column>
  100. <el-table-column label="不含税(元)" width="100">
  101. <template slot-scope="s">
  102. <span>{{Number(s.row.noTaxPrice).toFixed(2)}}</span>
  103. </template>
  104. </el-table-column>
  105. <sa-td name="生成时间" prop="createTime" width="150px"></sa-td>
  106. <sa-td name="付款时间" prop="payTime" width="150px"></sa-td>
  107. <el-table-column label="操作" fixed="right" width="240px">
  108. <template slot-scope="s">
  109. <el-button class="c-btn" type="primary" icon="el-icon-edit"
  110. v-if="s.row.reviewStatus!=1 && sa.isAuth('tb-deduction-record-list-review')"
  111. @click="toReview(s.row)">复审</el-button>
  112. </template>
  113. </el-table-column>
  114. </el-table>
  115. <!-- ------------- 分页 ------------- -->
  116. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  117. </div>
  118. </div>
  119. <script>
  120. var app = new Vue({
  121. components: {
  122. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  123. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  124. },
  125. el: '.vue-box',
  126. data: {
  127. p: { // 查询参数
  128. id: '', // 主键
  129. businessId: '', // 业务id
  130. businessNo: '', // 业务单号
  131. carNo: '', // 车牌号
  132. feeType: '', // 收费类型
  133. itemTypeId: '', // 业务类型id
  134. itemTypeName: '', // 业务类型
  135. itemId: '', //
  136. itemName: '', // 业务项
  137. itemPrice: '', // 项目金额(元)
  138. unitPrice: '', //
  139. payDay: '', // 支付日期
  140. payTime: '', // 支付时间
  141. payType: '', // 支付方式(3=微信支付)
  142. payMode: '', //
  143. createTime: '', // 创建时间
  144. updateTime: '', // 更新时间
  145. businessItemId: '', //
  146. businessItemNo: '', // 业务项单号
  147. pickCustomerName: '', //
  148. customerName: '', // 客户名称
  149. entityName: '', // 主体名称
  150. taxRate: '', //
  151. noTaxPrice: '', //
  152. taxPrice: '', //
  153. weight: '', //
  154. num: '', //
  155. isSettle: '', // 是否结算
  156. remark: '', // 备注
  157. invoice: '', // 发票
  158. transactionId: '', // 微信交易单号
  159. outTradeNo: '', // 支付单号
  160. businessCarId: '', //
  161. businessCarNo: '', //
  162. kaiDanPerson: '', // 开单员
  163. diaoDuPerson: '', // 调度员
  164. jiChaPerson: '', // 稽查员
  165. customerId: '', // 客户id
  166. deductMoney: '', // 扣除金额
  167. feeDetailsId: '', // 收费明细id
  168. reviewBy: '', // 复核人员
  169. reviewTime: '', // 复核时间
  170. reviewStatus: '', // 复核状态,0-未复核、1-已复核
  171. partner: '', // 合作伙伴
  172. originalMoney: '', // 原金额
  173. totalMoney: '', // 余额
  174. pageNo: 1, // 当前页
  175. pageSize: 10, // 页大小
  176. sortType: 0 // 排序方式
  177. },
  178. pickerOptions: {
  179. shortcuts: [{
  180. text: '最近一周',
  181. onClick(picker) {
  182. const end = new Date();
  183. const start = new Date();
  184. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  185. picker.$emit('pick', [start, end]);
  186. }
  187. }, {
  188. text: '最近一个月',
  189. onClick(picker) {
  190. const end = new Date();
  191. const start = new Date();
  192. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  193. picker.$emit('pick', [start, end]);
  194. }
  195. }, {
  196. text: '最近三个月',
  197. onClick(picker) {
  198. const end = new Date();
  199. const start = new Date();
  200. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  201. picker.$emit('pick', [start, end]);
  202. }
  203. }]
  204. },
  205. reviewStatusList:[
  206. {id:2,name:'全部'},
  207. {id:0,name:'未复核'},
  208. {id:1,name:'已复核'}
  209. ],
  210. dataCount: 0,
  211. dataList: [], // 数据集合
  212. itemTypeList:[],
  213. },
  214. methods: {
  215. // 刷新
  216. f5: function() {
  217. sa.ajax('/TbDeductionRecord/getList', sa.removeNull(this.p), function(res) {
  218. this.dataList = res.data; // 数据
  219. this.dataCount = res.dataCount; // 数据总数
  220. sa.f5TableHeight(); // 刷新表格高度
  221. }.bind(this));
  222. },
  223. // 查看
  224. get: function(data) {
  225. sa.showIframe('数据详情', 'tb-deduction-record-info.html?id=' + data.id, '1050px', '90%');
  226. },
  227. // 查看 - 根据选中的
  228. getBySelect: function(data) {
  229. var selection = this.$refs['data-table'].selection;
  230. if(selection.length == 0) {
  231. return sa.msg('请选择一条数据')
  232. }
  233. this.get(selection[0]);
  234. },
  235. // 修改
  236. update: function(data) {
  237. sa.showIframe('修改数据', 'tb-deduction-record-add.html?id=' + data.id, '1000px', '90%');
  238. },
  239. // 新增
  240. add: function(data) {
  241. sa.showIframe('新增数据', 'tb-deduction-record-add.html?id=-1', '1000px', '90%');
  242. },
  243. //复审
  244. toReview(data) {
  245. let ss = ',业务单号:'+data.businessNo+')';
  246. sa.confirm('您确认对('+data.customerName+ss+'复审吗?', function() {
  247. sa.ajax('/TbDeductionRecord/review?id=' + data.id, function(res) {
  248. sa.ok('复审成功');
  249. this.f5();
  250. sa.f5TableHeight(); // 刷新表格高度
  251. }.bind(this))
  252. }.bind(this));
  253. },
  254. getItemTypeList() {
  255. sa.ajax('/TbItemType/getList', {
  256. pageNo: 1,
  257. pageSize: 100
  258. }, function (resp) {
  259. this.itemTypeList = resp.data;
  260. }.bind(this));
  261. },
  262. },
  263. created: function() {
  264. this.f5();
  265. this.getItemTypeList();
  266. sa.onInputEnter();
  267. }
  268. })
  269. </script>
  270. </body>
  271. </html>