中扬CRM客户关系管理系统
#
Junjie
2023-09-11 e88205f5a9a1a1be5eb721c122d74bf9a626fab2
#
1个文件已修改
20 ■■■■■ 已修改文件
src/main/webapp/static/js/plan/plan.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/plan/plan.js
@@ -850,6 +850,7 @@
            autoRow: true,
            filterable: true,
            remoteSearch: true,
            clickClose: true,
            radio: true,
            remoteMethod: function (val, cb, show) {
                $.ajax({
@@ -868,6 +869,25 @@
                        }
                    }
                });
            },
            on: function (data){
                if (data.change.length > 0) {
                    let orderId = data.change[0].value;
                    $.ajax({
                        url: baseUrl + "/order/" + orderId + "/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: {},
                        method: 'GET',
                        success: function (res) {
                            if (res.code === 200) {
                                let cstmrSel = loadCstmrSel();
                                cstmrSel.setValue([{name: res.data.cstmrId$, value: res.data.cstmrId}]);
                            } else {
                                layer.msg(res.msg, {icon: 2});
                            }
                        }
                    });
                }
            }
        });
    }