中扬CRM客户关系管理系统
Junjie
2023-09-06 a07cbc9c54891faef8c356ff1ac53a4b71b28271
src/main/webapp/static/js/order/order.js
@@ -59,7 +59,7 @@
                case 1:
                    // 模板下载
                    layer.load(1, {shade: [0.1,'#fff']});
                    location.href = baseUrl + "/mould/甲方单位导入模板.xls";
                    location.href = baseUrl + "/mould/跟踪项目导入模板.xls";
                    layer.closeAll('loading');
                    break
                case 2:
@@ -136,10 +136,10 @@
            {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: '甲方单位', templet:function(d){return emptyShow(d.cstmrId$)}}
            ,{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: 'money', align: 'right',title: '项目预算金额', templet:function(d){return emptyShow(d.money)}}
            ,{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: '添加时间'}
@@ -148,6 +148,7 @@
            ,{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}
@@ -228,6 +229,18 @@
                    }
                })
                break;
            case 'cstmrMore':
                top.cstmrByMore = data.cstmrId;
                admin.popupRight({
                    type: 1,
                    window: "top",
                    area: "1250px",
                    url: "../cstmr/cstmr_more.html",
                    end: function () {
                        // $(".layui-laypage-btn")[0].click();
                    }
                })
                break;
            case 'edit':
                showEditModel(data);
                break;
@@ -262,6 +275,10 @@
                        layer.msg("所属公司不能为空", {icon: 2});
                        return false;
                    }
                    if (!data.field.cstmrId) {
                        layer.msg("甲方单位不能为空", {icon: 2});
                        return false;
                    }
                    var loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/order/"+(mData?'update':'add')+"/auth",