|
|
@@ -58,7 +58,7 @@ Page({
|
|
|
code: 'flgNegative',
|
|
|
type: 'switch',
|
|
|
title: mixins.$t('negativeBalance'),
|
|
|
- tip:mixins.$t("flgNegativetip"),
|
|
|
+ tip: mixins.$t("flgNegativetip"),
|
|
|
}
|
|
|
],
|
|
|
center: [{ //期初余额
|
|
|
@@ -153,7 +153,7 @@ Page({
|
|
|
contentObj.center.forEach(element => {
|
|
|
element.readonly = true
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
this.setData({
|
|
|
contentObj: contentObj,
|
|
|
formData: JSON.stringify(data)
|
|
|
@@ -174,6 +174,47 @@ Page({
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: mixins.$t('newFundAccount'),
|
|
|
})
|
|
|
+ //新建的时候 不显示账户编码 编辑的时候在显示
|
|
|
+ let contentObj = this.data.contentObj
|
|
|
+ contentObj.main = [{ //账户类别
|
|
|
+ code: 'macType',
|
|
|
+ name: 'macTypeName',
|
|
|
+ title: mixins.$t("accountCategory"),
|
|
|
+ type: 'choose',
|
|
|
+ urlKey: 'accountCategory',
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
+ { //账户名称
|
|
|
+ code: 'macName',
|
|
|
+ type: 'str',
|
|
|
+ required: true,
|
|
|
+ title: mixins.$t('accountName')
|
|
|
+ },
|
|
|
+ { //收款码
|
|
|
+ code: 'file',
|
|
|
+ type: 'uploader',
|
|
|
+ title: mixins.$t('commodityPicture')
|
|
|
+ },
|
|
|
+ { //默认账户
|
|
|
+ code: 'flgDefault',
|
|
|
+ type: 'switch',
|
|
|
+ title: mixins.$t('defaultAccount')
|
|
|
+ },
|
|
|
+ { //余额负数
|
|
|
+ code: 'flgNegative',
|
|
|
+ type: 'switch',
|
|
|
+ title: mixins.$t('negativeBalance'),
|
|
|
+ tip: mixins.$t("flgNegativetip"),
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ this.setData({
|
|
|
+ contentObj: contentObj
|
|
|
+ })
|
|
|
}
|
|
|
+
|
|
|
+ // 加载完毕
|
|
|
+ this.setData({
|
|
|
+ okFlag: true
|
|
|
+ })
|
|
|
},
|
|
|
})
|