中扬CRM客户关系管理系统
LSH
2023-09-09 469712af22140dfffbb67d9d7ceff2a2b5f1b803
src/main/webapp/static/js/order/order.js
@@ -145,7 +145,8 @@
            ,{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: '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: '添加时间'}
@@ -285,6 +286,22 @@
                        layer.msg("甲方单位不能为空", {icon: 2});
                        return false;
                    }
                    if (!data.field.transactionRate) {
                        layer.msg("预计成交率不能为空", {icon: 2});
                        return false;
                    }
                    if (!data.field.status) {
                        layer.msg("项目状态不能为空", {icon: 2});
                        return false;
                    }
                    if (!data.field.pcd) {
                        layer.msg("省市区不能为空", {icon: 2});
                        return false;
                    }
                    if (!data.field.director) {
                        layer.msg("负责人不能为空", {icon: 2});
                        return false;
                    }
                    var loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/order/"+(mData?'update':'add')+"/auth",