Browse Source

进口 财务

qinbai 3 years ago
parent
commit
cb7c01dd84

+ 6 - 0
src/views/financialManagement/paymentSettle/configuration/detailsPage.json

@@ -68,6 +68,12 @@
       "index": 7
     },
     {
+      "label": "币别",
+      "prop": "currency",
+      "index": 7,
+      "width": 120
+    },
+    {
       "label": "备注",
       "prop": "remark",
       "overHidden": true,

+ 6 - 0
src/views/financialManagement/paymentSettle/paymentSettleDetailsPage.vue

@@ -84,6 +84,12 @@
             >删除
             </el-button>
           </template>
+          <template slot-scope="{ row }" slot="currency">
+            <el-select  v-if="row.$cellEdit" v-model="row.currency" size="small" placeholder="请选择 币别" clearable filterable>
+              <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue"  :value="item.dictValue"></el-option>
+            </el-select>
+            <span v-else>{{ row.currency }}</span>
+          </template>
           <template slot="thisAmount" slot-scope="{ row }">
             <el-input
               v-if="row.$cellEdit"

+ 6 - 0
src/views/financialManagement/receiptSettle/configuration/detailsPage.json

@@ -68,6 +68,12 @@
       "index": 7
     },
     {
+      "label": "币别",
+      "prop": "currency",
+      "index": 7,
+      "width": 120
+    },
+    {
       "label": "备注",
       "prop": "remark",
       "overHidden": true,

+ 6 - 0
src/views/financialManagement/receiptSettle/receiptSettleDetailsPage.vue

@@ -71,6 +71,12 @@
             >选择销售合同
             </el-button>
           </template>
+          <template slot-scope="{ row }" slot="currency">
+            <el-select  v-if="row.$cellEdit" v-model="row.currency" size="small" placeholder="请选择 币别" clearable filterable>
+              <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue"  :value="item.dictValue"></el-option>
+            </el-select>
+            <span v-else>{{ row.currency }}</span>
+          </template>
           <template slot="thisAmount" slot-scope="{ row }">
             <el-input
               v-if="row.$cellEdit"

+ 8 - 6
src/views/purchase/contract/detailsPage.vue

@@ -861,12 +861,14 @@ export default {
           }
 
 
-          let invoiceList =  this.contactsData.map(item => {
-            if(item.amount){
-              return parseFloat(item.amount);
-            }else return 0
-          });
-          this.form.invoiceAmount = invoiceList.reduce((n,m) => n + m)
+          if(this.contactsData.length !==0){
+            let invoiceList =  this.contactsData.map(item => {
+              if(item.amount){
+                return parseFloat(item.amount);
+              }else return 0
+            });
+            this.form.invoiceAmount = invoiceList.reduce((n,m) => n + m)
+          }
 
           this.form.billNo = this.contactsData.map(item =>{return item.billNo}).join(",")
           let submitDto = {

+ 14 - 8
src/views/salesManagement/salesContract/detailsPage.vue

@@ -841,6 +841,7 @@ export default {
             }
           }
           let orderUpLoadList = this.$refs.uploadFile.submitData();
+
           for (let j = 0; j < this.importInventoryData.length; j++) {
             if (this.importInventoryData[j].billNo === (null || "")) {
               return this.$message.error(`请输入销售明细第${j + 1}行的提单号`);
@@ -868,15 +869,20 @@ export default {
             }
           }
           this.buttonLoading = true;
-          this.form.billNo = this.importInventoryData.map(item =>{return item.billNo}).join(",")
 
-          //发票金额合计  存入主表
-          let invoiceList =  this.importInventoryData.map(item => {
-            if(item.amount){
-              return parseFloat(item.amount);
-            }else return 0
-          });
-          this.form.invoiceAmount = invoiceList.reduce((n,m) => n + m)
+          if(this.importInventoryData.length !== 0){
+            //提单号
+            this.form.billNo = this.importInventoryData.map(item =>{return item.billNo}).join(",")
+
+            //发票金额合计  存入主表
+            let invoiceList =  this.importInventoryData.map(item => {
+              if(item.amount){
+                return parseFloat(item.amount);
+              }else return 0
+            });
+            this.form.invoiceAmount = invoiceList.reduce((n,m) => n + m)
+          }
+
 
           let submitDto = {
             ...this.form,