浏览代码

标的物新增字段

maxiaoshan 3 年之前
父节点
当前提交
3fa8dfc180
共有 3 个文件被更改,包括 24 次插入2 次删除
  1. 8 0
      src/config.json
  2. 2 0
      src/front/front.go
  3. 14 2
      src/web/templates/detail.html

+ 8 - 0
src/config.json

@@ -231,6 +231,14 @@
             {
                 "key": "totalprice",
                 "descript": "小计"
+            },
+            {
+                "key": "dimensions",
+                "descript": "尺寸"
+            },
+            {
+                "key": "blackboard_or_screen",
+                "descript": "黑板/大屏"
             }
         ],
         "package": [

+ 2 - 0
src/front/front.go

@@ -1100,6 +1100,8 @@ func BzBDXX(content []interface{}, set, unset, errset map[string]interface{}, is
 						} else {
 							isNull = true
 						}
+					} else if key == "blackboard_or_screen" {
+						input = tmpMap["select"]
 					}
 					if !isNull { //避免数字类型的字段在没有填写值的情况默认给0
 						result[key] = input

+ 14 - 2
src/web/templates/detail.html

@@ -420,6 +420,10 @@
             tmp.input=purchasinglist[k][i].value
             tmp.key=purchasinglist[k][i].key
             tmp.status=purchasinglist[k][i].status
+            if(purchasinglist[k][i].key== "blackboard_or_screen"){
+              tmp.select=purchasinglist[k][i].value
+              tmp.selectArr=['黑板','大屏','黑板/大屏']
+            }
             c_uInput[i]=tmp
         }
         var content={};
@@ -501,14 +505,22 @@
     var pclfInput = []
     for(i in pclf){
         for(key in pclf[i]){
-            pclfInput.push({
+            var tempNode = {
                 input:"",
                 key:key,
                 status:"2",
                 title:pclf[i][key]
-            })
+            }
+            if(key== "blackboard_or_screen"){
+              tempNode.select= ''
+              tempNode.selectArr=['黑板','大屏','黑板/大屏']
+            }
+            pclfInput.push(tempNode)
+            
+          
         }
     }
+    
 
     var wodf = {{.T.WinnerorderField}};
     var wodfInput = []