| | |
| | | skin: 'line', |
| | | where: where, |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'name', align: 'left',title: '跟踪项目名称', style: 'color: #1890ff;cursor:pointer', event: 'more', width: 300} |
| | | ,{field: 'uuid', align: 'left',title: '项目代号'} |
| | | ,{field: 'cstmrId$', align: 'left',title: '甲方单位', style: 'color: #1890ff;cursor:pointer', event: 'cstmrMore', templet:function(d){return emptyShow(d.cstmrId$)}} |
| | | ,{field: 'pcd$', align: 'left',title: '所属区域', templet:function(d){return emptyShow(d.pcd$)}} |
| | | ,{field: 'addr', align: 'left',title: '项目地址', templet:function(d){return emptyShow(d.addr)}} |
| | | ,{field: 'money', align: 'right',title: '项目预算金额(万)', templet:function(d){return emptyShow(d.money+"")}} |
| | | ,{field: 'transactionRate', align: 'right',title: '项目预估成交率', templet:function(d){return emptyShow(d.transactionRate+"%")}} |
| | | ,{field: 'director$', align: 'left',title: '项目负责人', templet:function(d){return emptyShow(d.director$)}} |
| | | ,{field: 'remarks', align: 'left',title: '备注', templet:function(d){return emptyShow(d.remarks)}} |
| | | ,{field: 'createTime$', align: 'left',title: '添加时间'} |
| | | ,{field: 'company$', align: 'left',title: '所属公司', hide: false} |
| | | ,{field: 'orderProductTypeId$', align: 'left',title: '产品类型', hide: false} |
| | | ,{field: 'province', align: 'left',title: '省', hide: true} |
| | | ,{field: 'city', align: 'left',title: '市', hide: true} |
| | | ,{field: 'district', align: 'left',title: '县', hide: true} |
| | | ,{field: 'town', align: 'left',title: '镇', hide: true} |
| | | ,{field: 'status$', align: 'left',title: '状态'} |
| | | ,{field: 'files', align: 'left',title: '附件', hide: true} |
| | | ,{field: 'updateBy$', align: 'left',title: '修改人员', hide: true} |
| | | ,{field: 'updateTime$', align: 'left',title: '修改时间', hide: true} |
| | | ,{field: 'memo', align: 'left',title: '注释', hide: true} |
| | | {type: 'checkbox'}, |
| | | {field: 'id', align: 'left',title: '项目号',hide: false}, |
| | | { |
| | | field: 'name', |
| | | align: 'left', |
| | | title: '跟踪项目名称', |
| | | style: 'color: #1890ff;cursor:pointer', |
| | | event: 'more', |
| | | width: 300 |
| | | }, |
| | | {field: 'uuid', align: 'left',title: '项目代号',hide: false}, |
| | | { |
| | | field: 'cstmrId$', |
| | | align: 'left', |
| | | title: '客户信息', |
| | | style: 'color: #1890ff;cursor:pointer', |
| | | event: 'cstmrMore', |
| | | templet:function(d){ |
| | | return emptyShow(d.cstmrId$) |
| | | } |
| | | }, |
| | | { |
| | | field: 'pcd$', |
| | | align: 'left', |
| | | title: '所属区域', |
| | | templet:function(d){ |
| | | return emptyShow(d.pcd$) |
| | | } |
| | | }, |
| | | { |
| | | field: 'addr', |
| | | align: 'left', |
| | | title: '项目地址', |
| | | templet:function(d){ |
| | | return emptyShow(d.addr) |
| | | } |
| | | }, |
| | | { |
| | | field: 'money', |
| | | align: 'right', |
| | | title: '项目预算金额(万)', |
| | | templet:function(d){ |
| | | return emptyShow(d.money+"") |
| | | } |
| | | }, |
| | | { |
| | | field: 'transactionRate', |
| | | align: 'right', |
| | | title: '项目预估成交率', |
| | | templet:function(d){ |
| | | return emptyShow(d.transactionRate+"%") |
| | | } |
| | | }, |
| | | {field: 'director$', align: 'left',title: '项目负责人', templet:function(d){return emptyShow(d.director$)}}, |
| | | {field: 'remarks', align: 'left',title: '备注', templet:function(d){return emptyShow(d.remarks)}}, |
| | | {field: 'createTime$', align: 'left',title: '添加时间', hide: false}, |
| | | {field: 'company$', align: 'left',title: '所属公司', hide: false}, |
| | | {field: 'orderProductTypeId$', align: 'left',title: '产品类型', hide: false}, |
| | | {field: 'province', align: 'left',title: '省', hide: true}, |
| | | {field: 'city', align: 'left',title: '市', hide: true}, |
| | | {field: 'district', align: 'left',title: '县', hide: true}, |
| | | {field: 'town', align: 'left',title: '镇', hide: true}, |
| | | {field: 'status$', align: 'left',title: '状态', hide: false}, |
| | | {field: 'status', align: 'left',title: '状态', hide: true}, |
| | | {field: 'files', align: 'left',title: '附件', hide: true}, |
| | | {field: 'updateBy$', align: 'left',title: '修改人员', hide: true}, |
| | | {field: 'updateTime$', align: 'left',title: '修改时间', hide: true}, |
| | | {field: 'memo', align: 'left',title: '注释', hide: true}, |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:180} |
| | | {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:180} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.closeAll() |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | |
| | | } |
| | | |
| | | /* 弹窗 - 其它出差 */ |
| | | function businessOther(mData) { |
| | | function businessOther(orderId) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '1500px', |
| | |
| | | data.field.orderId=orderId |
| | | console.log(orderId) |
| | | $.ajax({ |
| | | url: baseUrl+"/businessTripOther/order/add/auth", |
| | | url: baseUrl+"/businessTripOther/add/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |
| | |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.closeAll() |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | |
| | | return false; |
| | | } |
| | | if (!data.field.cstmrId) { |
| | | layer.msg("甲方单位不能为空", {icon: 2}); |
| | | layer.msg("客户信息不能为空", {icon: 2}); |
| | | return false; |
| | | } |
| | | if (!data.field.transactionRate) { |