wangyingjie hace 2 años
padre
commit
d37b08f9c3

+ 9 - 1
i18n/zh-CN.js

@@ -237,7 +237,15 @@ const goodsSku = {
   SellableQuantityAsc: '可售量升序',
   SellableQuantityDesc: '可售量降序',
 }
+const fund ={
+  openingBalance : "期初余额",
+  commodityPicture : "商品图片",
+  defaultAccount : "默认账户",
+  balanceDate : "余额日期",
+  newFundAccount : "新建资金账户",
+  editFundAccount : "编辑资金账户",
 
+}
 module.exports = {
-  items: Object.assign({}, home, basicData, columns, saleOrder, button, messages, others, accountsManage, org, supplier, goodsSku)
+  items: Object.assign({}, fund,home, basicData, columns, saleOrder, button, messages, others, accountsManage, org, supplier, goodsSku)
 }

+ 6 - 6
package-inventory/pages/fund-account/add/add.js

@@ -40,21 +40,21 @@ Page({
                 { //收款码
                     code: 'file',
                     type: 'uploader',
-                    title: '商品图片'
+                    title: mixins.$t('commodityPicture')
                   },
                 { //默认账户
                     code: 'flgDefault',
                     type: 'switch',
-                    title: '默认账户', 
+                    title: mixins.$t('defaultAccount')
                 } 
             ],
             center: [
                   { //期初余额
                     code: 'balance',
                     type: 'number',
-                    title: '期初余额',
+                    title: mixins.$t('openingBalance')
                   },
-                  { code: 'deliveryDate', type: 'date', title: '余额日期' }
+                  { code: 'deliveryDate', type: 'date', title: mixins.$t('balanceDate') }
             ],
             other: [ //备注
                 { code: 'remarks', type: 'textarea', title: mixins.$t('remarks') }
@@ -149,11 +149,11 @@ Page({
     loadInit() {
         if (this.data.formMode == Constants.formMode.edit) {
             wx.setNavigationBarTitle({
-                title: "编辑资金账户",
+                title: mixins.$t('editFundAccount'),
             })
         } else {
             wx.setNavigationBarTitle({
-                title: "新建资金账户",
+                title: mixins.$t('newFundAccount'),
             })
         }
     },

+ 1 - 1
package-inventory/pages/fund-account/add/add.wxml

@@ -7,6 +7,6 @@
 </dk-form>
 <!--  保存 -->
 <view class="bottom-class">
-  <van-button custom-class="save-button-class" disabled="{{loading}}" loading="{{loading}}" bind:click="save" type="default">保存
+  <van-button custom-class="save-button-class" disabled="{{loading}}" loading="{{loading}}" bind:click="save" type="default">{{$t['save']}}
   </van-button>
 </view>

+ 1 - 1
package-inventory/pages/fund-account/fund-account.wxml

@@ -42,7 +42,7 @@
     </view>
   </view>
 </view>
-<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">到底了~</van-divider>
+<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
 <view style="height: 200rpx;"></view>