123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>入境登记-列表</title>
- <meta charset="utf-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <!-- 所有的 css & js 资源 -->
- <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <script src="../../static/kj/upload-util.js"></script>
- </head>
- <style>
- .complete-modal .c-label,
- .confirm-in .c-label,
- .confirm-info .c-label {
- width: 290px;
- }
- </style>
- <body>
- <div class="vue-box" style="display: none;" :style="'display: block;'">
- <div class="c-panel">
- <!-- ------------- 检索参数 ------------- -->
- <div class="c-title">检索参数</div>
- <el-form ref="form" :model='p' @submit.native.prevent>
- <sa-item type="text" name="业务单号" placeholder="业务单号" v-model="p.no"></sa-item>
- <sa-item type="text" name="车牌号" placeholder="车牌号" v-model="p.carNo"></sa-item>
- <sa-item type="text" name="客户" placeholder="客户" v-model="p.customerName"></sa-item>
- <sa-item type="text" name="货主" placeholder="客户" v-model="p.owner"></sa-item>
- <div class="c-item">
- <label class="c-label">审批状态:</label>
- <el-select v-model="p.oaResult" placeholder="请选择" @change="f5()">
- <el-option label="未审核" value=""></el-option>
- <el-option label="审核通过" value="审批通过"></el-option>
- <el-option label="不通过" value="审批驳回"></el-option>
- </el-select>
- </div>
- <div class="c-item">
- <label class="c-label">业务项:</label>
- <el-select v-model="p.goodsId">
- <el-option v-for="good in goodsList" :key="good.id" :label="good.name" :value="good.id">
- </el-option>
- </el-select>
- </div>
- <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
- <el-button type="info" icon="el-icon-search"
- @click="p.carNo = '';p.oaResult='';p.customerName='';p.owner='';p.no=''; f5()">重置
- </el-button>
- <el-button v-if="sa.isAuth('tb-flex-business-add')" size="mini" type="primary" @click="add()">
- 新增</el-button>
- <el-button v-if="sa.isAuth('tb-flex-business-add')" size="mini" type="primary" @click="selectFn">
- 选择异常业务单</el-button>
- <br />
- </el-form>
- <!-- ------------- 数据列表 ------------- -->
- <el-table class="data-table" ref="data-table" :data="dataList" style="margin-top: 20px;">
- <el-table-column type="index" label="序号" width="50"></el-table-column>
- <sa-td name="业务单号" prop="no" width="160"></sa-td>
- <sa-td name="客户名称" prop="customerName" width="190"></sa-td>
- <sa-td name="货主" prop="owner" width="160"></sa-td>
- <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
- <el-table-column label="车牌号" width="160">
- <template slot-scope="s">
- <label>{{s.row.carNoStr}}</label>
- </template>
- </el-table-column>
- <sa-td name="作业时间" prop="operateTime" width="140"></sa-td>
- <sa-td name="确认" prop="adminConfirmInput" type="enum" :jv="{1: '已确认', 0: '未确认'}"></sa-td>
- <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
- <sa-td name="业务费用(元)" prop="itemPrice" width="120"></sa-td>
- <sa-td name="微信支付号" prop="transactionId" width="240"></sa-td>
- <sa-td name="OA流程" prop="sendOa" type="enum" :jv="{1: '已发起', 0: '未发起'}"></sa-td>
- <sa-td name="发起时间" prop="sendTime" width="140"></sa-td>
- <sa-td name="发起人" prop="sendBy"></sa-td>
- <sa-td name="补录人" prop="supplementBy"></sa-td>
- <sa-td name="OA审核" prop="oaResult"></sa-td>
- <sa-td width="160" name="创建时间" prop="createTime"></sa-td>
- </sa-td>
- <el-table-column label="操作" width="415px" fixed="right">
- <template slot-scope="s">
- <el-button class="c-btn" type="primary"
- v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-push'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
- @click="applyFn(s.row)">发起审批</el-button>
- <el-button class="c-btn" type="primary" v-if="sa.isAuth('tb-flex-business-confirm')
- &¤tCustomerId=='1'&&s.row.adminConfirmInput==0" @click="confirmFn(s.row)">账单确认</el-button>
- <el-button class="c-btn" type="primary"
- v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-edit'))&&(s.row.sendOa==0||s.row.oaResult==='审批驳回')"
- @click="update(s.row)">
- 修改</el-button>
- <el-button class="c-btn" type="success" @click="get(s.row)">查看</el-button>
- <el-button v-if="sa.isAuth('tb-flex-business-edit')" class="c-btn" type="primary"
- @click="carFn(s.row)">车辆管理
- </el-button>
- <el-button class="c-btn" type="primary" v-if="(currentCustomerId=='1'||(sa.isAuth('tb-flex-business-pay')))
- &&s.row.payStatus!=3" @click="handlerPay(s.row)">
- 线下收费</el-button>
- <el-button v-if="sa.isAuth('tb-business-car-bind')" class="c-btn" type="primary"
- @click="businessFn(s.row)">绑定车辆
- </el-button>
- <el-button class="c-btn" type="danger"
- v-if="(currentCustomerId=='1'||sa.isAuth('tb-supplement-del'))&&s.row.sendOa==0"
- @click="del(s.row)">删除
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- <!-- ------------- 分页 ------------- -->
- <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
- </sa-item>
- <el-dialog title="选择异常业务单" :visible.sync="form.visible" width="90%">
- <div class="delect-search">
- <sa-item type="text" name="业务单号" placeholder="业务单号" v-model="form.p.no"></sa-item>
- <sa-item type="text" name="车牌号" placeholder="车牌号" v-model="form.p.carNo"></sa-item>
- <el-button type="primary" @click="getErrorList">搜索</el-button>
- <el-button type="info" @click="form.p.carNo='';form.p.no='';getErrorList()">重置</el-button>
- </div>
- <el-card class="box-card" style="margin-top: 20px;">
- <div slot="header">
- <span>未支付业务列表</span>
- </div>
- <el-table :data="form.dataList" ref="errorTable" style="height: 450px;">
- <el-table-column type="index" label="序号"></el-table-column>
- <sa-td name="业务单号" prop="no" width="160"></sa-td>
- <sa-td name="客户名称" prop="customerName" width="190"></sa-td>
- <sa-td name="货主" prop="owner" width="160"></sa-td>
- <sa-td name="业务项" prop="goodsName" width="160"></sa-td>
- <el-table-column label="车牌号" width="160">
- <template slot-scope="s">
- <label>{{s.row.carNoStr}}</label>
- </template>
- </el-table-column>
- <sa-td name="作业时间" prop="operateTime" width="160"></sa-td>
- <sa-td name="确认" prop="adminConfirmInput" type="enum" :jv="{1: '已确认', 0: '未确认'}"></sa-td>
- <sa-td name="业务费用(元)" prop="itemPrice" width="120"></sa-td>
- <sa-td name="已支付(元)" prop="payMoney" width="140"></sa-td>
- <sa-td name="支付时间" prop="payTime" width="140"></sa-td>
- <sa-td width="160" name="创建时间" prop="createTime"></sa-td>
- </sa-td>
- <sa-td name="创建人" prop="createBy" width="100"></sa-td>
- <el-table-column label="操作" width="100px" fixed="right">
- <template slot-scope="s">
- <el-button class="c-btn" type="success" @click="doSelect(s.row)">选择</el-button>
- </template>
- </el-table-column>
- </el-table>
- <div class="block">
- <el-pagination layout="prev, pager, next" @current-change="businessPageChange"
- :page-size="form.p.pageSize" :total="form.dataCount" :current-page="form.p.pageNo">
- </el-pagination>
- </div>
- </el-card>
- <span slot="footer" class="dialog-footer">
- <el-button @click="form.visible = false">取 消</el-button>
- <el-button type="primary" @click="form.visible = false">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- <el-dialog :title="confirm.title" :visible.sync="confirm.visible" width="650px">
- <div class="confirm-info">
- <el-row>
- <sa-info name="订单号" br>{{confirm.form.no}}</sa-info>
- <sa-info :name="item.itemName" br v-for="item in confirm.form.items">
- {{item.itemPrice}}x{{item.num}}={{item.total}}元
- </sa-info>
- <sa-info name="创建时间" br>{{confirm.form.createTime}}</sa-info>
- <sa-info name="总计费用" br>{{confirm.form.itemPrice}}(元)</sa-info>
- </el-row>
- </div>
- <span slot="footer" class="dialog-footer">
- <div v-if="confirm.form.adminConfirmInput==0">
- <el-button @click="confirm.visible = false">取 消</el-button>
- <el-button type="primary" @click="sureConfirmFn">确 认</el-button>
- </div>
- <div v-else>
- <el-button @click="confirm.visible = false">关闭</el-button>
- </div>
- </span>
- </el-dialog>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
- form: {
- visible: false,
- dataList: [],
- dataCount: 0,
- p: {
- no: '',
- carNo: '',
- supplement: 0,
- pageSize: 10,
- pageNo: 1,
- error: 1,
- oaResult: ''
- }
- },
- value: '',
- currentCustomerId: '1',
- confirm: {
- visible: false,
- title: '',
- form: {
- ids: ''
- }
- },
- p: { // 查询参数
- oaResult: '',
- customerName: '',
- owner: '',
- no: '',
- supplement: 1,
- carNo: '', // 车牌号
- goodsId: '',
- pageNo: 1, // 当前页
- pageSize: 23, // 页大小
- sortType: 0 // 排序方式
- },
- dataCount: 0,
- dataList: [], // 数据集合
- timmer: null,
- fresh: {
- value: 60
- },
- goodsList: [],
- },
- methods: {
- applyFn(data) {
- sa.confirm('是否确认发起OA审批流程?', function() {
- sa.ajax('/TbBusiness/applyOA?id=' + data.id, function(res) {
- sa.alert('发起成功', this.f5);
- }.bind(this))
- }.bind(this));
- },
- selectFn() {
- this.form.visible = true;
- this.getErrorList()
- },
- businessPageChange(pageNo) {
- this.form.p.pageNo = pageNo;
- this.getErrorList();
- },
- getErrorList() {
- sa.ajax('/TbBusiness/getOtherBusiness', sa.removeNull(this.form.p), function(res) {
- this.form.dataList = res.data; // 数据
- this.form.dataCount = res.dataCount; // 数据总数
- }.bind(this));
- },
- doSelect(data) {
- this.form.visible = false;
- sa.showIframe('完善补录单', 'tb-car-supplement-select.html?id=' + data.id, '1280px', '90%');
- },
- businessFn(data) {
- sa.ajaxNoLoading('/TbBusinessCar/getOtherBusinessCarByBusinessId', {
- businessId: data.id
- }, function(resp) {
- let list = resp.data;
- let str = list.map(car => car.carNo).join('、');
- let businessCarIds = list.map(car => car.id).join(',');
- sa.showIframe('绑定车辆', 'tb-business-car-business.html?id=' + data.id +
- '&businessCarId=' + data.businessCarId + '&carNo=' + str +
- '&businessCarIds=' + businessCarIds, '90%', "90%");
- }.bind(this))
- },
- carFn(data) {
- sa.showIframe('车辆管理', '../car/tb-business-car-list.html?id=' + data.id + '&payStatus=' + data
- .payStatus + '&confirm=' + data.adminConfirmInput, '1050px', '75%');
- },
- handlerPay(data) {
- sa.showIframe('线下收费', 'tb-car-disincle-pay.html?id=' + data.id, '1050px', '95%');
- },
- getGoodsList() {
- sa.ajax('/TbGoods/getList', function(resp) {
- this.goodsList = resp.data;
- }.bind(this));
- },
- getCurrendCustomer() {
- sa.ajax('/TbCostomer/getCurrentCustomerId', function(resp) {
- this.currentCustomerId = resp.data;
- }.bind(this));
- },
- // 查看
- get: function(data) {
- sa.showIframe('补录单详情', 'tb-car-disincle-info.html?id=' + data.id, '1050px', '90%');
- },
- add: function(data) {
- sa.showIframe('新增补录单', 'tb-supplement-add.html?id=-1', '1280px', '90%');
- },
- update(data) {
- sa.showIframe('修改补录单', 'tb-supplement-edit.html?id=' + data.id, '1280px', '90%');
- },
- getPcodeByCurrRid() {
- sa.ajax('/SpRolePermission/getPcodeByCurrRid', function(resp) {
- this.perCode = resp.data;
- }.bind(this))
- },
- confirmFn(data) {
- sa.ajax('/TbBusinessItem/getList', {
- businessId: data.id
- }, function(resp) {
- data.items = resp.data;
- Object.assign(this.confirm, {
- visible: true,
- title: '账单确认',
- form: data,
- })
- this.confirm.form.ids = data.id;
- }.bind(this));
- },
- sureConfirmFn() {
- sa.ajax('/TbBusiness/confirm', {
- ids: this.confirm.form.ids
- }, function(resp) {
- this.confirm.visible = false;
- this.f5();
- }.bind(this))
- },
- // 删除
- del: function(data) {
- sa.confirm('是否删除,此操作不可撤销', function() {
- sa.ajax('/TbBusiness/deleteOtherBusiness?id=' + data.id + '&businessCarId=' +
- data.businessCarId,
- function(res) {
- sa.arrayDelete(this.dataList, data);
- sa.ok('删除成功');
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this))
- }.bind(this));
- },
- // 刷新
- f5: function() {
- sa.ajaxNoLoading('/TbBusiness/getOtherBusiness', sa.removeNull(this.p), function(res) {
- this.dataList = res.data; // 数据
- this.dataCount = res.dataCount; // 数据总数
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this));
- },
- },
- created: function() {
- sa.onInputEnter();
- },
- mounted() {
- this.getCurrendCustomer();
- this.getGoodsList();
- this.f5();
- },
- })
- </script>
- </body>
- </html>
|