MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
57a21303d0

+ 1 - 1
app/public/js/ledger.js

@@ -1555,7 +1555,7 @@ $(document).ready(function() {
                 if (!dealBills) {
                     dealBills = new DealBills('#deal-bills-spread', {
                         cols: [
-                            {title: '清单编号', field: 'code', hAlign: 0, width: 120, formatter: '@', readOnly: true},
+                            {title: '清单编号', field: 'code', hAlign: 0, width: 85, formatter: '@', readOnly: true},
                             {title: '名称', field: 'name', hAlign: 0, width: 150, formatter: '@', readOnly: true},
                             {title: '单位', field: 'unit', hAlign: 1, width: 50, formatter: '@', readOnly: true},
                             {title: '单价', field: 'unit_price', hAlign: 2, width: 50, readOnly: true},

+ 1 - 1
app/public/js/ledger_audit.js

@@ -154,7 +154,7 @@ $(document).ready(() => {
             if (tab.attr('content') === '#deal-bills' && !dealBills) {
                 dealBills = new DealBills($('#deal-bills-spread')[0], {
                     cols: [
-                        {title: '清单编号', field: 'code', width: 120, formatter: '@', readOnly: true},
+                        {title: '清单编号', field: 'code', width: 85, formatter: '@', readOnly: true},
                         {title: '名称', field: 'name', width: 150, formatter: '@', readOnly: true},
                         {title: '单位', field: 'unit', width: 50, formatter: '@', readOnly: true},
                         {title: '单价', field: 'unit_price', width: 50, readOnly: true},

+ 1 - 1
app/public/js/revise.js

@@ -1324,7 +1324,7 @@ $(document).ready(() => {
     }
     const dealBills = new DealBills('#deal-bills-spread', {
         cols: [
-            {title: '清单编号', field: 'code', hAlign: 0, width: 120, formatter: '@', readOnly: true},
+            {title: '清单编号', field: 'code', hAlign: 0, width: 85, formatter: '@', readOnly: true},
             {title: '名称', field: 'name', hAlign: 0, width: 150, formatter: '@', readOnly: true},
             {title: '单位', field: 'unit', hAlign: 1, width: 50, formatter: '@', readOnly: true},
             {title: '单价', field: 'unit_price', hAlign: 2, width: 50, readOnly: true},

+ 1 - 0
app/public/js/tender_list.js

@@ -192,6 +192,7 @@ function initTenderTree () {
         let cate = findCategoryNode(category.id, value, array);
         if (!cate) {
             const cateValue = findNode('id', value, category.value);
+            if (!cateValue) return null;
             cate = {
                 cid: category.id,
                 vid: value,

+ 1 - 0
app/public/js/tender_list_info.js

@@ -192,6 +192,7 @@ function initTenderTree () {
         let cate = findCategoryNode(category.id, value, array);
         if (!cate) {
             const cateValue = findNode('id', value, category.value);
+            if (!cateValue) return null;
             cate = {
                 cid: category.id,
                 vid: value,

+ 1 - 0
app/public/js/tender_list_manage.js

@@ -192,6 +192,7 @@ function initTenderTree () {
         let cate = findCategoryNode(category.id, value, array);
         if (!cate) {
             const cateValue = findNode('id', value, category.value);
+            if (!cateValue) return null;
             cate = {
                 cid: category.id,
                 vid: value,

+ 1 - 0
app/public/js/tender_list_progress.js

@@ -192,6 +192,7 @@ function initTenderTree () {
         let cate = findCategoryNode(category.id, value, array);
         if (!cate) {
             const cateValue = findNode('id', value, category.value);
+            if (!cateValue) return null;
             cate = {
                 cid: category.id,
                 vid: value,

+ 3 - 0
app/service/tender_info.js

@@ -43,6 +43,9 @@ module.exports = app => {
             for (const pi of parseInfo) {
                 info[pi] = JSON.stringify(info[pi])
             }
+            for (const pi of arrayInfo) {
+                info[pi] = JSON.stringify(info[pi])
+            }
 
             if (transaction) {
                 await transaction.insert(this.tableName, info);