From 8bbebba0b2c3f9d43671f6d7eb5fe35f8cfdca05 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 10 十月 2023 09:17:52 +0800
Subject: [PATCH] #相关

---
 src/main/webapp/static/js/priOnline2/priOnline.js |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 55 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/priOnline2/priOnline.js b/src/main/webapp/static/js/priOnline2/priOnline.js
index 925d0e5..d8f706b 100644
--- a/src/main/webapp/static/js/priOnline2/priOnline.js
+++ b/src/main/webapp/static/js/priOnline2/priOnline.js
@@ -92,9 +92,9 @@
             ,{field: 'createTime$', align: 'center',title: '鍒涘缓鏃堕棿'}
             ,{field: 'updateTime$', align: 'center',title: '鏇存柊鏃堕棿'}
             ,{field: 'status$', align: 'center',title: '鐘舵��'}
-            ,{field: 'memberId$', align: 'center',title: '涓氬姟鍛�'}
+            // ,{field: 'memberId$', align: 'center',title: ''}
             ,{field: 'settle$', align: 'center',title: '杩涘害', style: 'color: #1890ff;cursor:pointer', event: 'more',hide: false}
-            // ,{field: 'user$', align: 'center',title: '鍒涘缓浜哄憳'}
+            ,{field: 'user$', align: 'center',title: '涓氬姟鍛�'}
             ,{field: 'updateUserId$', align: 'center',title: '鏇存柊浜哄憳'}
             ,{field: 'checkDataStatus$', align: 'center',title: '鎶ヤ环鏁版嵁'}
             ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:350}
@@ -244,7 +244,59 @@
                     title: data.name
                 }, function (i) {
                     layer.close(i);
-                    approval(data.id);
+                    // 鎸囧畾瑙勫垝鍛�
+                    if (data.settle === 2) {
+                        admin.open({
+                            type: 1,
+                            area: '300px',
+                            title: '閫夋嫨瑙勫垝鍛�',
+                            content: $('#plannerListDialog').html(),
+                            success: function (layero, dIndex) {
+                                let plannerSel = xmSelect.render({
+                                    el: '#plannerXmlSel',
+                                    autoRow: true,
+                                    filterable: true,
+                                    remoteSearch: true,
+                                    clickClose: true,
+                                    radio: true,
+                                    remoteMethod: function (val, cb, show) {
+                                        let loadIndex = layer.load(2);
+                                        $.ajax({
+                                            url: baseUrl+"/priOnline2/priQuoteAdd/list/auth",
+                                            headers: {'token': localStorage.getItem('token')},
+                                            data: {
+                                                planId: data.id
+                                            },
+                                            method: 'POST',
+                                            success: function (res) {
+                                                layer.close(loadIndex);
+                                                if (res.code === 200) {
+                                                    cb(res.data)
+                                                } else {
+                                                    layer.close(dIndex);
+                                                    layer.msg(res.msg, {icon: 2});
+                                                }
+                                            }
+                                        })
+                                    }
+                                });
+
+                                form.on('submit(editSubmit)', function () {
+                                    let plannerId = plannerSel.getValue()[0] ? plannerSel.getValue()[0].value : null;
+                                    if (!plannerId) {
+                                        layer.msg("璇烽�夋嫨瑙勫垝鍛�", {icon: 2});
+                                        top.requireTip($('#plannerXmlSel'));
+                                        return false;
+                                    }
+                                    approval(data.id, plannerId, dIndex);
+                                });
+
+                                $(layero).children('.layui-layer-content').css('overflow', 'visible');
+                            }
+                        })
+                    } else {
+                        approval(data.id);
+                    }
                 });
                 break;
             case 'moreCstmr':

--
Gitblit v1.9.1