| | |
| | | function showEditModel(mData, obj) { |
| | | admin.open({ |
| | | type: 1, |
| | | title: (mData ? '修改' : '添加') + '字典', |
| | | title: (mData ? '修改' : '添加') + '单据类型', |
| | | content: $('#docTypeEditDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | // 回显表单数据 |
| | |
| | | |
| | | /* 删除 */ |
| | | function doDel(obj) { |
| | | layer.confirm('确定要删除此字典吗?', { |
| | | layer.confirm('确定要删除此单据类型吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | |
| | | // ,{field: 'updateBy$', align: 'center',title: '修改人员',event: 'updateBy', style: 'cursor:pointer'} |
| | | // ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | // ,{field: 'memo', align: 'center',title: '备注'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ]], |
| | | request: { |
| | |
| | | } |
| | | }); |
| | | /* 表格2搜索 */ |
| | | form.on('submit(orderTable)', function (data) { |
| | | form.on('submit(orderTbSearch)', function (data) { |
| | | insTb2.reload({where: data.field, page: {curr: 1}}); |
| | | return false; |
| | | }); |
| | |
| | | |
| | | |
| | | |
| | | // // 数据渲染 |
| | | // tableIns = table.render({ |
| | | // elem: '#order', |
| | | // headers: {token: localStorage.getItem('token')}, |
| | | // url: baseUrl+'/order/list/auth', |
| | | // page: true, |
| | | // limit: 16, |
| | | // limits: [16, 30, 50, 100, 200, 500], |
| | | // even: true, |
| | | // toolbar: '#toolbar', |
| | | // cellMinWidth: 50, |
| | | // cols: [[ |
| | | // {type: 'checkbox'} |
| | | // // ,{field: 'id', align: 'center',title: 'ID'} |
| | | // // ,{field: 'uuid', align: 'center',title: '编号'} |
| | | // ,{field: 'orderNo', align: 'center',title: '订单编号'} |
| | | // ,{field: 'orderTime', align: 'center',title: '单据日期'} |
| | | // ,{field: 'docType$', align: 'center',title: '单据类型'} |
| | | // ,{field: 'itemId$', align: 'center',title: '项目编号'} |
| | | // ,{field: 'allotItemId$', align: 'center',title: '调拨项目编号', hide: true} |
| | | // ,{field: 'defNumber', align: 'center',title: '初始票据号', hide: true} |
| | | // ,{field: 'number', align: 'center',title: '票据号'} |
| | | // // ,{field: 'cstmr$', align: 'center',title: '客户编号'} |
| | | // ,{field: 'cstmrName', align: 'center',title: '客户', hide: true} |
| | | // ,{field: 'tel', align: 'center',title: '联系方式', hide: true} |
| | | // ,{field: 'operMemb', align: 'center',title: '操作人员'} |
| | | // ,{field: 'totalFee', align: 'center',title: '合计金额'} |
| | | // ,{field: 'discount', align: 'center',title: '优惠率', hide: true} |
| | | // ,{field: 'discountFee', align: 'center',title: '优惠金额', hide: true} |
| | | // ,{field: 'otherFee', align: 'center',title: '销售或采购费用合计', hide: true} |
| | | // ,{field: 'actFee', align: 'center',title: '实付金额', hide: true} |
| | | // ,{field: 'payType$', align: 'center',title: '付款类型'} |
| | | // ,{field: 'salesman', align: 'center',title: '业务员', hide: true} |
| | | // ,{field: 'accountDay', align: 'center',title: '结算天数', hide: true} |
| | | // ,{field: 'postFeeType$', align: 'center',title: '邮费支付类型', hide: true} |
| | | // ,{field: 'postFee', align: 'center',title: '邮费', hide: true} |
| | | // ,{field: 'payTime$', align: 'center',title: '付款时间', hide: true} |
| | | // ,{field: 'sendTime$', align: 'center',title: '发货时间', hide: true} |
| | | // ,{field: 'shipName', align: 'center',title: '物流名称', hide: true} |
| | | // ,{field: 'shipCode', align: 'center',title: '物流单号', hide: true} |
| | | // ,{field: 'settle$', align: 'center',title: '订单状态'} |
| | | // // ,{field: 'status$', align: 'center',title: '状态'} |
| | | // // ,{field: 'createBy$', align: 'center',title: '添加人员',event: 'createBy', style: 'cursor:pointer'} |
| | | // // ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | // // ,{field: 'updateBy$', align: 'center',title: '修改人员',event: 'updateBy', style: 'cursor:pointer'} |
| | | // // ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | // // ,{field: 'memo', align: 'center',title: '备注'} |
| | | // |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | // ]], |
| | | // request: { |
| | | // pageName: 'curr', |
| | | // pageSize: 'limit' |
| | | // }, |
| | | // parseData: function (res) { |
| | | // return { |
| | | // 'code': res.code, |
| | | // 'msg': res.msg, |
| | | // 'count': res.data.total, |
| | | // 'data': res.data.records |
| | | // } |
| | | // }, |
| | | // response: { |
| | | // statusCode: 200 |
| | | // }, |
| | | // done: function(res, curr, count) { |
| | | // if (res.code === 403) { |
| | | // top.location.href = baseUrl+"/"; |
| | | // } |
| | | // pageCurr=curr; |
| | | // limit(); |
| | | // form.on('checkbox(tableCheckbox)', function (data) { |
| | | // var _index = $(data.elem).attr('table-index')||0; |
| | | // if(data.elem.checked){ |
| | | // res.data[_index][data.value] = 'Y'; |
| | | // }else{ |
| | | // res.data[_index][data.value] = 'N'; |
| | | // } |
| | | // }); |
| | | // } |
| | | // }); |
| | | // |
| | | // // 监听排序事件 |
| | | // table.on('sort(locMast)', function (obj) { |
| | | // var searchData = {}; |