tb-supplement-list.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. <script src="../../static/kj/upload-util.js"></script>
  18. </head>
  19. <style>
  20. .complete-modal .c-label,
  21. .confirm-in .c-label,
  22. .confirm-info .c-label {
  23. width: 290px;
  24. }
  25. </style>
  26. <body>
  27. <div class="vue-box" style="display: none;" :style="'display: block;'">
  28. <div class="c-panel">
  29. <!-- ------------- 检索参数 ------------- -->
  30. <div class="c-title">检索参数</div>
  31. <el-form ref="form" :model='p' @submit.native.prevent>
  32. <sa-item type="text" name="业务单号" placeholder="业务单号" v-model="p.no"></sa-item>
  33. <sa-item type="text" name="车牌号" placeholder="车牌号" v-model="p.carNo"></sa-item>
  34. <sa-item type="text" name="客户" placeholder="客户" v-model="p.customerName"></sa-item>
  35. <sa-item type="text" name="货主" placeholder="客户" v-model="p.owner"></sa-item>
  36. <div class="c-item">
  37. <label class="c-label">审批状态:</label>
  38. <el-select v-model="p.oaResult" placeholder="请选择" @change="f5()">
  39. <el-option label="全部" value=""></el-option>
  40. <el-option label="未审核" :value="0"></el-option>
  41. <el-option label="审核通过" :value="1"></el-option>
  42. <el-option label="不通过" :value="2"></el-option>
  43. </el-select>
  44. </div>
  45. <div class="c-item">
  46. <label class="c-label">业务项:</label>
  47. <el-select v-model="p.goodsId">
  48. <el-option v-for="good in goodsList" :key="good.id" :label="good.name" :value="good.id">
  49. </el-option>
  50. </el-select>
  51. </div>
  52. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  53. <el-button type="info" icon="el-icon-search"
  54. @click="p.carNo = '';p.oaResult='';p.customerName='';p.owner='';p.no=''; f5()">重置
  55. </el-button>
  56. <el-button v-if="sa.isAuth('tb-flex-business-add')" size="mini" type="primary" @click="add()">
  57. 新增</el-button>
  58. <el-button v-if="sa.isAuth('tb-flex-business-add')" size="mini"
  59. type="primary" @click="selectFn">选择异常业务单</el-button>
  60. <br />
  61. </el-form>
  62. <!-- ------------- 数据列表 ------------- -->
  63. <el-table class="data-table" ref="data-table" :data="dataList" style="margin-top: 20px;">
  64. <el-table-column type="index" label="序号" width="50"></el-table-column>
  65. <sa-td name="业务单号" prop="no" width="160"></sa-td>
  66. <sa-td name="客户名称" prop="customerName" width="190"></sa-td>
  67. <sa-td name="货主" prop="owner" width="160"></sa-td>
  68. <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
  69. <el-table-column label="车牌号" width="160">
  70. <template slot-scope="s">
  71. <label>{{s.row.carNoStr}}</label>
  72. </template>
  73. </el-table-column>
  74. <sa-td name="作业时间" prop="operateTime" width="140"></sa-td>
  75. <sa-td name="确认" prop="adminConfirmInput" type="enum" :jv="{1: '已确认', 0: '未确认'}"></sa-td>
  76. <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
  77. <sa-td name="业务费用(元)" prop="itemPrice" width="120"></sa-td>
  78. <sa-td name="OA流程" prop="sendOa" type="enum" :jv="{1: '已发起', 0: '未发起'}"></sa-td>
  79. <sa-td name="发起时间" prop="sendTime" width="140"></sa-td>
  80. <sa-td name="发起人" prop="sendBy"></sa-td>
  81. <sa-td name="补录人" prop="supplementBy"></sa-td>
  82. <sa-td name="OA审核" prop="oaResult"></sa-td>
  83. <sa-td width="160" name="创建时间" prop="createTime"></sa-td>
  84. </sa-td>
  85. <el-table-column label="操作" width="415px" fixed="right">
  86. <template slot-scope="s">
  87. <el-button class="c-btn" type="success" @click="get(s.row)">查看</el-button>
  88. <el-button class="c-btn" type="primary"
  89. v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-edit'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
  90. @click="update(s.row)">
  91. 修改</el-button>
  92. <el-button class="c-btn" type="danger"
  93. v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-del'))&&s.row.sendOa==0"
  94. @click="del(s.row)">删除
  95. </el-button>
  96. </template>
  97. </el-table-column>
  98. </el-table>
  99. <!-- ------------- 分页 ------------- -->
  100. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
  101. </sa-item>
  102. <el-dialog title="选择异常业务单" :visible.sync="form.visible" width="90%">
  103. <div class="delect-search">
  104. <sa-item type="text" name="业务单号" placeholder="业务单号" v-model="form.p.no"></sa-item>
  105. <sa-item type="text" name="车牌号" placeholder="车牌号" v-model="form.p.carNo"></sa-item>
  106. <el-button type="primary" @click="getErrorList">搜索</el-button>
  107. <el-button type="info" @click="form.p.carNo='';form.p.no='';getErrorList()">重置</el-button>
  108. </div>
  109. <el-card class="box-card" style="margin-top: 20px;">
  110. <div slot="header">
  111. <span>未支付业务列表</span>
  112. </div>
  113. <el-table :data="form.dataList" ref="errorTable" style="height: 450px;">
  114. <el-table-column type="index" label="序号"></el-table-column>
  115. <sa-td name="业务单号" prop="no" width="160"></sa-td>
  116. <sa-td name="客户名称" prop="customerName" width="190"></sa-td>
  117. <sa-td name="货主" prop="owner" width="160"></sa-td>
  118. <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
  119. <el-table-column label="车牌号" width="160">
  120. <template slot-scope="s">
  121. <label>{{s.row.carNoStr}}</label>
  122. </template>
  123. </el-table-column>
  124. <sa-td name="作业时间" prop="operateTime" width="160"></sa-td>
  125. <sa-td name="确认" prop="adminConfirmInput" type="enum" :jv="{1: '已确认', 0: '未确认'}"></sa-td>
  126. <sa-td name="业务费用(元)" prop="itemPrice" width="120"></sa-td>
  127. <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
  128. <sa-td name="支付时间" prop="payTime" width="140"></sa-td>
  129. <sa-td width="160" name="创建时间" prop="createTime"></sa-td>
  130. </sa-td>
  131. <sa-td name="创建人" prop="createBy" width="100"></sa-td>
  132. <el-table-column label="操作" width="100px" fixed="right">
  133. <template slot-scope="s">
  134. <el-button class="c-btn" type="success" @click="doSelect(s.row)">选择</el-button>
  135. </template>
  136. </el-table-column>
  137. </el-table>
  138. <div class="block">
  139. <el-pagination layout="prev, pager, next" @current-change="businessPageChange"
  140. :page-size="form.p.pageSize" :total="form.dataCount" :current-page="form.p.pageNo">
  141. </el-pagination>
  142. </div>
  143. </el-card>
  144. <span slot="footer" class="dialog-footer">
  145. <el-button @click="form.visible = false">取 消</el-button>
  146. <el-button type="primary" @click="form.visible = false">确 定</el-button>
  147. </span>
  148. </el-dialog>
  149. </div>
  150. </div>
  151. <script>
  152. var app = new Vue({
  153. components: {
  154. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  155. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  156. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  157. },
  158. el: '.vue-box',
  159. data: {
  160. form: {
  161. visible: false,
  162. dataList: [],
  163. dataCount: 0,
  164. p: {
  165. no: '',
  166. carNo: '',
  167. supplement: 0,
  168. pageSize: 10,
  169. pageNo: 1,
  170. error: 1
  171. }
  172. },
  173. value: '',
  174. currentCustomerId: '1',
  175. confirm: {
  176. visible: false,
  177. title: '',
  178. form: {
  179. ids: ''
  180. }
  181. },
  182. p: { // 查询参数
  183. oaResult: '',
  184. customerName: '',
  185. owner: '',
  186. no: '',
  187. supplement: 1,
  188. carNo: '', // 车牌号
  189. goodsId: '',
  190. pageNo: 1, // 当前页
  191. pageSize: 20, // 页大小
  192. sortType: 0 // 排序方式
  193. },
  194. dataCount: 0,
  195. dataList: [], // 数据集合
  196. timmer: null,
  197. fresh: {
  198. value: 60
  199. },
  200. goodsList: [],
  201. },
  202. methods: {
  203. selectFn() {
  204. this.form.visible = true;
  205. this.getErrorList()
  206. },
  207. businessPageChange(pageNo) {
  208. this.form.p.pageNo = pageNo;
  209. this.getErrorList();
  210. },
  211. getErrorList() {
  212. sa.ajaxNoLoading('/TbBusiness/getOtherBusiness', sa.removeNull(this.form.p), function(res) {
  213. this.form.dataList = res.data; // 数据
  214. this.form.dataCount = res.dataCount; // 数据总数
  215. }.bind(this));
  216. },
  217. doSelect(data) {
  218. this.form.visible=false;
  219. sa.showIframe('完善补录单', 'tb-car-supplement-select.html?id=' + data.id, '1280px', '90%');
  220. },
  221. getGoodsList() {
  222. sa.ajax('/TbGoods/getList', function(resp) {
  223. this.goodsList = resp.data;
  224. }.bind(this));
  225. },
  226. getCurrendCustomer() {
  227. sa.ajax('/TbCostomer/getCurrentCustomerId', function(resp) {
  228. this.currentCustomerId = resp.data;
  229. }.bind(this));
  230. },
  231. // 查看
  232. get: function(data) {
  233. sa.showIframe('补录单详情', 'tb-car-disincle-info.html?id=' + data.id, '1050px', '90%');
  234. },
  235. add: function(data) {
  236. sa.showIframe('新增补录单', 'tb-supplement-add.html?id=-1', '1080px', '90%');
  237. },
  238. update(data) {
  239. sa.showIframe('修改补录单', 'tb-car-disincle-edit.html?id=' + data.id, '1080px', '90%');
  240. },
  241. getPcodeByCurrRid() {
  242. sa.ajax('/SpRolePermission/getPcodeByCurrRid', function(resp) {
  243. this.perCode = resp.data;
  244. }.bind(this))
  245. },
  246. // 删除
  247. del: function(data) {
  248. sa.confirm('是否删除,此操作不可撤销', function() {
  249. sa.ajax('/TbBusiness/deleteOtherBusiness?id=' + data.id + '&businessCarId=' +
  250. data.businessCarId,
  251. function(res) {
  252. sa.arrayDelete(this.dataList, data);
  253. sa.ok('删除成功');
  254. sa.f5TableHeight(); // 刷新表格高度
  255. }.bind(this))
  256. }.bind(this));
  257. },
  258. // 刷新
  259. f5: function() {
  260. sa.ajaxNoLoading('/TbBusiness/getOtherBusiness', sa.removeNull(this.p), function(res) {
  261. this.dataList = res.data; // 数据
  262. this.dataCount = res.dataCount; // 数据总数
  263. sa.f5TableHeight(); // 刷新表格高度
  264. }.bind(this));
  265. },
  266. },
  267. created: function() {
  268. sa.onInputEnter();
  269. },
  270. mounted() {
  271. this.getCurrendCustomer();
  272. this.getGoodsList();
  273. this.f5();
  274. },
  275. })
  276. </script>
  277. </body>
  278. </html>