Pārlūkot izejas kodu

feat: 清单模板编辑器增加计价规则和计价内容。

chenshilong 3 gadi atpakaļ
vecāks
revīzija
5e84292cb6

+ 2 - 0
modules/all_models/bills_template.js

@@ -36,6 +36,8 @@ let BillsTemplateSchema = {
     engineering: Number,
     //计算基数
     calcBase: String,
+    itemCharacterText: String,
+    jobContentText: String,
     //费率ID
     feeRateID:Number
 };

+ 2 - 0
modules/all_models/bills_template_items.js

@@ -34,6 +34,8 @@ let BillsTemplateSchema = {
     libID: {type:String,index:true},
     //计算基数
     calcBase: String,
+    itemCharacterText: String,
+    jobContentText: String,
     //费率ID
     feeRateID:Number,
     quantity: String,

+ 38 - 1
web/maintain/bill_template_lib/js/bills_template_edit.js

@@ -112,7 +112,44 @@ let TEMPLATE_BILLS_SETTING = {
             "hAlign":3,
             "font":"Arail",
         }
-    }, {
+    },
+    {
+      width: 200,
+      readOnly: locked,
+      head: {
+        titleNames: ["计价规则"],
+        spanCols: [1],
+        spanRows: [1],
+        vAlign: [1],
+        hAlign: [1],
+        font: ["Arial"],
+      },
+      data: {
+        field: "itemCharacterText",
+        vAlign: 0,
+        hAlign: 3,
+        font: "Arail",
+      },
+    },
+    {
+      width: 200,
+      readOnly: locked,
+      head: {
+        titleNames: ["计价内容"],
+        spanCols: [1],
+        spanRows: [1],
+        vAlign: [1],
+        hAlign: [1],
+        font: ["Arial"],
+      },
+      data: {
+        field: "jobContentText",
+        vAlign: 0,
+        hAlign: 3,
+        font: "Arail",
+      },
+    },
+    {
         "width":250,
         "readOnly":locked,
         "head":{