From c8ec928e26cdf8efc51a576547ebcfbe3cb71f6d Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 16 三月 2023 16:28:24 +0800
Subject: [PATCH] 新增核价管理-上传询价后可进行下载功能

---
 src/main/webapp/views/planType/planType.html |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/planType/planType.html b/src/main/webapp/views/planType/planType.html
index aa86ebb..87cd3d9 100644
--- a/src/main/webapp/views/planType/planType.html
+++ b/src/main/webapp/views/planType/planType.html
@@ -91,6 +91,16 @@
                 </div>
             </div>
             <div class="layui-form-item">
+                <label class="layui-form-label layui-form-required">鍖哄垎: </label>
+                <div class="layui-input-block">
+                    <select name="type" lay-verType="tips" lay-verify="required" required>
+                        <option value="">璇烽�夋嫨鍖哄垎</option>
+                        <option value="1">璐ф灦</option>
+                        <option value="2">闆嗘垚</option>
+                    </select>
+                </div>
+            </div>
+            <div class="layui-form-item">
                 <label class="layui-form-label">绫诲瀷鏍囪瘑</label>
                 <div class="layui-input-block">
                     <input class="layui-input" name="flag" placeholder="璇疯緭鍏ユ爣璇�"/>
@@ -156,7 +166,7 @@
         var insTb = table.render({
             elem: '#planTypeTable',
             headers: {token: localStorage.getItem('token')},
-            url: baseUrl+'/planType/list/auth',
+            url: baseUrl+'/planType/page/auth',
             page: true,
             limit: 16,
             limits: [16, 30, 50, 100, 200, 500],
@@ -165,7 +175,8 @@
                 {type: 'numbers', title: '#'}
                 // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
                 ,{field: 'name', align: 'center',title: '绫诲瀷鍚嶇О'}
-                ,{field: 'flag', align: 'center',title: '绫诲瀷鏍囪瘑'}
+                ,{field: 'type$', align: 'center',title: '鍖哄垎'}
+                // ,{field: 'flag', align: 'center',title: '绫诲瀷鏍囪瘑'}
                 // ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
                 // ,{field: 'status$', align: 'center',title: '鐘舵��'}
                 // ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
@@ -219,13 +230,14 @@
                             elem:'#formDesigner'
                         });
                         form.on('submit(forEditSubmit)', function () {
-                            var loadIndex = layer.load(2);
+                            let loadIndex = layer.load(2);
                             $.ajax({
                                 url: baseUrl+"/planType/update/auth",
                                 headers: {'token': localStorage.getItem('token')},
                                 data: {
                                     id: data.id,
-                                    data: JSON.stringify(formDesIdx.getData())
+                                    data: JSON.stringify(formDesIdx.getData()),
+                                    html: formDesIdx.getHtmlData()
                                 },
                                 method: 'POST',
                                 success: function (res) {

--
Gitblit v1.9.1