于继渤 1 год назад
Родитель
Сommit
5b4cf9a123
2 измененных файлов с 16 добавлено и 1 удалено
  1. 3 0
      i18n/zh-CN.js
  2. 13 1
      package-basic-data/pages/basic-data/basic-data.js

+ 3 - 0
i18n/zh-CN.js

@@ -251,6 +251,7 @@ const basicData = {
   reasonOutboundSys: '基础资料-出库',
   accountCategorySys: '基础资料-账户',
   customerSourceSys: '基础资料-来源',
+  profitLossSys: '基础资料-盈亏原因',
   saleStaff: '销售人员',
   saleOrg: '销售部门',
   initialDebtOwed: '初次欠款',
@@ -261,6 +262,8 @@ const basicData = {
   accountCategory: '账户类别',
   customerSource: '客户来源',
   customerlabel: '客户标签',
+  profitLossName: '原因名称',
+  profitLossCode: '原因编码',
   whCode: '仓库编码',
   whName: '仓库名称',
   supervisor: '仓库主管',

+ 13 - 1
package-basic-data/pages/basic-data/basic-data.js

@@ -62,6 +62,8 @@ Page({
       ],
       '来源': [{ name: 'dataCode', title: mixins.$t('sourceCode') },
       ],
+      '盈亏原因': [{ name: 'dataCode', title: mixins.$t('profitLossCode') },
+    ],
     },
     popContent:
       [
@@ -189,7 +191,17 @@ Page({
           ]
 
       }
-
+      if (dictCode == mixins.$t('profitLossSys')) {
+        //设置新建编辑字段 客户来源
+        popContent =
+          [
+            { code: 'dataCode', type: 'str', title: mixins.$t('profitLossCode'), required: false, readonly: true, },
+            { code: 'dataValue', type: 'str', title: mixins.$t('profitLossName'), required: true },
+          ]
+          this.setData({
+            flgDefault: null
+          })
+      }
       popContent.push({ code: 'remarks', type: 'str', title: mixins.$t('remarks'), required: false })
     }