tb-supplement-list.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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" type="primary" @click="selectFn">
  59. 选择异常业务单</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-push'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
  90. @click="applyFn(s.row)">发起审批</el-button>
  91. <el-button class="c-btn" type="primary"
  92. v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-edit'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
  93. @click="update(s.row)">
  94. 修改</el-button>
  95. <el-button class="c-btn" type="danger"
  96. v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-del'))&&s.row.sendOa==0"
  97. @click="del(s.row)">删除
  98. </el-button>
  99. </template>
  100. </el-table-column>
  101. </el-table>
  102. <!-- ------------- 分页 ------------- -->
  103. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
  104. </sa-item>
  105. <el-dialog title="选择异常业务单" :visible.sync="form.visible" width="90%">
  106. <div class="delect-search">
  107. <sa-item type="text" name="业务单号" placeholder="业务单号" v-model="form.p.no"></sa-item>
  108. <sa-item type="text" name="车牌号" placeholder="车牌号" v-model="form.p.carNo"></sa-item>
  109. <el-button type="primary" @click="getErrorList">搜索</el-button>
  110. <el-button type="info" @click="form.p.carNo='';form.p.no='';getErrorList()">重置</el-button>
  111. </div>
  112. <el-card class="box-card" style="margin-top: 20px;">
  113. <div slot="header">
  114. <span>未支付业务列表</span>
  115. </div>
  116. <el-table :data="form.dataList" ref="errorTable" style="height: 450px;">
  117. <el-table-column type="index" label="序号"></el-table-column>
  118. <sa-td name="业务单号" prop="no" width="160"></sa-td>
  119. <sa-td name="客户名称" prop="customerName" width="190"></sa-td>
  120. <sa-td name="货主" prop="owner" width="160"></sa-td>
  121. <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
  122. <el-table-column label="车牌号" width="160">
  123. <template slot-scope="s">
  124. <label>{{s.row.carNoStr}}</label>
  125. </template>
  126. </el-table-column>
  127. <sa-td name="作业时间" prop="operateTime" width="160"></sa-td>
  128. <sa-td name="确认" prop="adminConfirmInput" type="enum" :jv="{1: '已确认', 0: '未确认'}"></sa-td>
  129. <sa-td name="业务费用(元)" prop="itemPrice" width="120"></sa-td>
  130. <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
  131. <sa-td name="支付时间" prop="payTime" width="140"></sa-td>
  132. <sa-td width="160" name="创建时间" prop="createTime"></sa-td>
  133. </sa-td>
  134. <sa-td name="创建人" prop="createBy" width="100"></sa-td>
  135. <el-table-column label="操作" width="100px" fixed="right">
  136. <template slot-scope="s">
  137. <el-button class="c-btn" type="success" @click="doSelect(s.row)">选择</el-button>
  138. </template>
  139. </el-table-column>
  140. </el-table>
  141. <div class="block">
  142. <el-pagination layout="prev, pager, next" @current-change="businessPageChange"
  143. :page-size="form.p.pageSize" :total="form.dataCount" :current-page="form.p.pageNo">
  144. </el-pagination>
  145. </div>
  146. </el-card>
  147. <span slot="footer" class="dialog-footer">
  148. <el-button @click="form.visible = false">取 消</el-button>
  149. <el-button type="primary" @click="form.visible = false">确 定</el-button>
  150. </span>
  151. </el-dialog>
  152. </div>
  153. </div>
  154. <script>
  155. var app = new Vue({
  156. components: {
  157. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  158. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  159. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  160. },
  161. el: '.vue-box',
  162. data: {
  163. form: {
  164. visible: false,
  165. dataList: [],
  166. dataCount: 0,
  167. p: {
  168. no: '',
  169. carNo: '',
  170. supplement: 0,
  171. pageSize: 10,
  172. pageNo: 1,
  173. error: 1
  174. }
  175. },
  176. value: '',
  177. currentCustomerId: '1',
  178. confirm: {
  179. visible: false,
  180. title: '',
  181. form: {
  182. ids: ''
  183. }
  184. },
  185. p: { // 查询参数
  186. oaResult: '',
  187. customerName: '',
  188. owner: '',
  189. no: '',
  190. supplement: 1,
  191. carNo: '', // 车牌号
  192. goodsId: '',
  193. pageNo: 1, // 当前页
  194. pageSize: 23, // 页大小
  195. sortType: 0 // 排序方式
  196. },
  197. dataCount: 0,
  198. dataList: [], // 数据集合
  199. timmer: null,
  200. fresh: {
  201. value: 60
  202. },
  203. goodsList: [],
  204. },
  205. methods: {
  206. applyFn(data) {
  207. sa.confirm('是否确认发起OA审批流程?', function() {
  208. sa.ajax('/TbBusiness/applyOA?id=' + data.id, function(res) {
  209. sa.ok('发起成功');
  210. this.getErrorList();
  211. }.bind(this))
  212. }.bind(this));
  213. },
  214. selectFn() {
  215. this.form.visible = true;
  216. this.getErrorList()
  217. },
  218. businessPageChange(pageNo) {
  219. this.form.p.pageNo = pageNo;
  220. this.getErrorList();
  221. },
  222. getErrorList() {
  223. sa.ajax('/TbBusiness/getOtherBusiness', sa.removeNull(this.form.p), function(res) {
  224. this.form.dataList = res.data; // 数据
  225. this.form.dataCount = res.dataCount; // 数据总数
  226. }.bind(this));
  227. },
  228. doSelect(data) {
  229. this.form.visible = false;
  230. sa.showIframe('完善补录单', 'tb-car-supplement-select.html?id=' + data.id, '1280px', '90%');
  231. },
  232. getGoodsList() {
  233. sa.ajax('/TbGoods/getList', function(resp) {
  234. this.goodsList = resp.data;
  235. }.bind(this));
  236. },
  237. getCurrendCustomer() {
  238. sa.ajax('/TbCostomer/getCurrentCustomerId', function(resp) {
  239. this.currentCustomerId = resp.data;
  240. }.bind(this));
  241. },
  242. // 查看
  243. get: function(data) {
  244. sa.showIframe('补录单详情', 'tb-car-disincle-info.html?id=' + data.id, '1050px', '90%');
  245. },
  246. add: function(data) {
  247. sa.showIframe('新增补录单', 'tb-supplement-add.html?id=-1', '1280px', '90%');
  248. },
  249. update(data) {
  250. sa.showIframe('修改补录单', 'tb-car-disincle-edit.html?id=' + data.id, '1080px', '90%');
  251. },
  252. getPcodeByCurrRid() {
  253. sa.ajax('/SpRolePermission/getPcodeByCurrRid', function(resp) {
  254. this.perCode = resp.data;
  255. }.bind(this))
  256. },
  257. // 删除
  258. del: function(data) {
  259. sa.confirm('是否删除,此操作不可撤销', function() {
  260. sa.ajax('/TbBusiness/deleteOtherBusiness?id=' + data.id + '&businessCarId=' +
  261. data.businessCarId,
  262. function(res) {
  263. sa.arrayDelete(this.dataList, data);
  264. sa.ok('删除成功');
  265. sa.f5TableHeight(); // 刷新表格高度
  266. }.bind(this))
  267. }.bind(this));
  268. },
  269. // 刷新
  270. f5: function() {
  271. sa.ajaxNoLoading('/TbBusiness/getOtherBusiness', sa.removeNull(this.p), function(res) {
  272. this.dataList = res.data; // 数据
  273. this.dataCount = res.dataCount; // 数据总数
  274. sa.f5TableHeight(); // 刷新表格高度
  275. }.bind(this));
  276. },
  277. },
  278. created: function() {
  279. sa.onInputEnter();
  280. },
  281. mounted() {
  282. this.getCurrendCustomer();
  283. this.getGoodsList();
  284. this.f5();
  285. },
  286. })
  287. </script>
  288. </body>
  289. </html>