diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 3d379b07..832deddf 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -1056,6 +1056,7 @@ var table = { $.modal.loading("正在处理中,请稍候..."); }, success: function (result) { + let isDetail = window.localStorage.getItem('getDetail') if (typeof callback == "function") { callback(result); } @@ -1063,6 +1064,10 @@ var table = { $.modal.closeLoading(); return } + if (isDetail) { + $.modal.closeLoading(); + return + } $.operate.ajaxSuccess(result); } }; diff --git a/ruoyi-admin/src/main/resources/templates/project/info/add.html b/ruoyi-admin/src/main/resources/templates/project/info/add.html index 0103ebdf..130d61d2 100644 --- a/ruoyi-admin/src/main/resources/templates/project/info/add.html +++ b/ruoyi-admin/src/main/resources/templates/project/info/add.html @@ -461,7 +461,10 @@ return; } $('[name="customerCode"]').val(rows[0].customerCode); - $(' [name="customerName"]').val(rows[0].customerName); + $('[name="customerName"]').val(rows[0].customerName); + $('[name="customerUserName"]').val(rows[0].contactPerson); + $('[name="contactPhone"]').val(rows[0].contactPhone); + $.modal.close(index); } diff --git a/ruoyi-admin/src/main/resources/templates/project/info/edit.html b/ruoyi-admin/src/main/resources/templates/project/info/edit.html index f4801146..119cea5e 100644 --- a/ruoyi-admin/src/main/resources/templates/project/info/edit.html +++ b/ruoyi-admin/src/main/resources/templates/project/info/edit.html @@ -500,7 +500,9 @@ return; } $('[name="customerCode"]').val(rows[0].customerCode); - $(' [name="customerName"]').val(rows[0].customerName); + $('[name="customerName"]').val(rows[0].customerName); + $('[name="customerUserName"]').val(rows[0].contactPerson); + $('[name="contactPhone"]').val(rows[0].contactPhone); $.modal.close(index); } diff --git a/ruoyi-admin/src/main/resources/templates/project/info/project.html b/ruoyi-admin/src/main/resources/templates/project/info/project.html index 326e522f..92975eaf 100644 --- a/ruoyi-admin/src/main/resources/templates/project/info/project.html +++ b/ruoyi-admin/src/main/resources/templates/project/info/project.html @@ -239,7 +239,7 @@ } }, { - field: 'hzSupportUser', + field: 'hzSupportUserName', title: '汇智负责人' }, { @@ -414,15 +414,11 @@ full: true, index: 1000, width: 1050, + btn: ['确定', '关闭'], yes: function (index, layero) { let body = parent.layer.getChildFrame('body', index) if ($(body.find('#form-order-add').get(0)).validate().form()) { layero.find('iframe')[0].contentWindow.saveSelect() - // $.operate.save( ctx + "project/order/add", body.find('#form-order-add').serialize(), function (res) { - // if (res.code == web_status.SUCCESS) { - // parent.layer.close(index) - // } - // }); }else{ $.modal.alertWarning("请完善表单"); diff --git a/ruoyi-admin/src/main/resources/templates/project/order/add.html b/ruoyi-admin/src/main/resources/templates/project/order/add.html index dfa6eb10..c064406b 100644 --- a/ruoyi-admin/src/main/resources/templates/project/order/add.html +++ b/ruoyi-admin/src/main/resources/templates/project/order/add.html @@ -436,7 +436,6 @@