Преглед на файлове

1、修改销售出库新建

zhoux преди 2 години
родител
ревизия
594ae54fd3
променени са 2 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 7 7
      package-sales/pages/sales-outbound/add/add.js
  2. 1 1
      package-sales/pages/sales-outbound/add/add.wxml

+ 7 - 7
package-sales/pages/sales-outbound/add/add.js

@@ -61,8 +61,8 @@ Page({
     ],
     ],
     contentSaveList: [
     contentSaveList: [
       { code: 'flag', title: mixins.$t("autoSaleOutBoundFlag"), type: 'checkbox' },
       { code: 'flag', title: mixins.$t("autoSaleOutBoundFlag"), type: 'checkbox' },
-      { code: 'need', title: mixins.$t("saleCollection"), type: 'str' },
-      { code: 'receivable', content: 0, type: 'number' }
+      // { code: 'need', title: mixins.$t("saleCollection"), type: 'str' },
+      { code: 'receivable', content: 0, type: 'number',title: mixins.$t("saleCollection") }
     ],
     ],
     popContent: [
     popContent: [
       { code: 'outQty', type: 'step', title: mixins.$t("count"), required: true },
       { code: 'outQty', type: 'step', title: mixins.$t("count"), required: true },
@@ -372,7 +372,7 @@ Page({
 
 
       })
       })
       //组件显示 需收款
       //组件显示 需收款
-      contentSaveList[2]['content'] = Number(formData.sumAmount)
+      contentSaveList[0]['content'] = Number(formData.sumAmount)
       this.setData({
       this.setData({
         formData: JSON.stringify(formData),
         formData: JSON.stringify(formData),
         contentSaveList: contentSaveList
         contentSaveList: contentSaveList
@@ -569,9 +569,9 @@ Page({
     cardList[2].saleDiscount = formData.saleDiscount
     cardList[2].saleDiscount = formData.saleDiscount
     //详情 办理
     //详情 办理
     if (this.data.formMode == Constants.formMode.detail) {
     if (this.data.formMode == Constants.formMode.detail) {
-      contentSaveList[1].content = formData.sumAmount
+      contentSaveList[0].content = formData.sumAmount
     } else {
     } else {
-      contentSaveList[2].content = formData.sumAmount
+      contentSaveList[1].content = formData.sumAmount
     }
     }
 
 
     this.setData({
     this.setData({
@@ -649,8 +649,8 @@ Page({
         { code: 'save', title: mixins.$t("outProcessing"), width: '120rpx', color: '#1B365D' }
         { code: 'save', title: mixins.$t("outProcessing"), width: '120rpx', color: '#1B365D' }
       ]
       ]
       contentSaveList = [
       contentSaveList = [
-        { code: 'need', title: mixins.$t("saleCollection"), type: 'str' },
-        { code: 'receivable', content: 0, type: 'number' }
+        // { code: 'need', title: mixins.$t("saleCollection"), type: 'str' },
+        { code: 'receivable', content: 0, type: 'number',title: mixins.$t("saleCollection") }
       ]
       ]
       popContent = [
       popContent = [
         { code: 'outQty', type: 'step', title: mixins.$t("count"), required: true, readonly: true },
         { code: 'outQty', type: 'step', title: mixins.$t("count"), required: true, readonly: true },

+ 1 - 1
package-sales/pages/sales-outbound/add/add.wxml

@@ -3,7 +3,7 @@
 <loading wx:if="{{loading}}"></loading>
 <loading wx:if="{{loading}}"></loading>
 
 
 
 
-<dk-form-bill type="saleOut" id="dk-form-bill" routeObjName="{{routeObjName}}" cardList="{{cardList}}" titleTagCol="shortName" titleCol="skuCode"  subCol="skuCode" descCol="skuModel" priceCol="priceOut" quantityCol="outQty" sumAmountCol="sumAmount" discountStandardCol="saleDiscount" contentObj="{{contentObj}}" model:value="{{formData}}" popContent="{{popContent}}" bind:chooseData="chooseData" bind:setGoods="setGoods"   table="{{table}}"
+<dk-form-bill type="saleOut" id="{{formName}}" routeObjName="{{routeObjName}}" cardList="{{cardList}}" titleTagCol="shortName" titleCol="skuCode"  subCol="skuCode" descCol="skuModel" priceCol="priceOut" quantityCol="outQty" sumAmountCol="sumAmount" discountStandardCol="saleDiscount" contentObj="{{contentObj}}" model:value="{{formData}}" popContent="{{popContent}}" bind:chooseData="chooseData" bind:setGoods="setGoods"   table="{{table}}"
 bind:editItems="editItems"  bind:openChoosedItemInfo="openChoosedItemInfo" deleteName="deleteItemList"
 bind:editItems="editItems"  bind:openChoosedItemInfo="openChoosedItemInfo" deleteName="deleteItemList"
 bind:customersChoose="customersChoose"   popType="sale" priceTitle="标价:" staff="staff" org="org"
 bind:customersChoose="customersChoose"   popType="sale" priceTitle="标价:" staff="staff" org="org"
 popupTopObj="{{popupTopObj}}"
 popupTopObj="{{popupTopObj}}"