Qukatie 7 mesiacov pred
rodič
commit
1010d01b7d

+ 1 - 1
src/components/extractionCost/main.vue

@@ -152,7 +152,7 @@ export default {
                 return this.$message.error("暂无模板数据,请先维护");
             }
                if (!this.templateId) {
-                return this.$message.error("请选择数据");
+                return this.$message.error("请选择左侧数据");
             }
             let obj = {
                 billsIds: this.billsIds,

+ 14 - 3
src/views/boxManagement/agentBox/detailsPage.vue

@@ -169,7 +169,7 @@
                 </dic-select>
                 <span v-else>{{ row.agentName }}</span>
               </tempalte>
-       <template slot="currencyForm" slot-scope="{ row }">
+              <template slot="currencyForm" slot-scope="{ row }">
                 <dic-select v-if="row.$cellEdit" v-model="row.currency" placeholder="币别" label="code"
                   :url="'/blade-los/bcurrency/obtainRate?deptId=' + deptId + '&date=' + form.effectiveDate + '&type=1'"
                   :filterable="true" @selectChange="rowDicChange('currency', $event, row)"></dic-select>
@@ -279,7 +279,7 @@
                   disabledLabel="押金,租箱费"></dic-select>
                 <span v-else>{{ row.feeCnName }}</span>
               </template>
-                <template slot="curCodeForm" slot-scope="{ row }">
+              <template slot="curCodeForm" slot-scope="{ row }">
                 <dic-select v-if="row.$cellEdit" v-model="row.curCode" placeholder="币别" label="code"
                   :url="'/blade-los/bcurrency/obtainRate?deptId=' + deptId + '&date=' + form.effectiveDate + '&type=1'"
                   :filterable="true" @selectChange="rowDicChange('curCodeC', $event, row)"></dic-select>
@@ -1532,7 +1532,7 @@ export default {
       }
     },
     rowDicChange(name, row, el, index) {
-        if (name == 'currency') {
+      if (name == 'currency') {
         if (row) {
           el.exrate = row.exratePayable
         } else {
@@ -2038,6 +2038,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.form.feeCenterList) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -2051,6 +2052,16 @@ export default {
         });
         submitFeeList(this.form.feeCenterList).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.form.feeCenterList = res.data.data
         }).finally(() => {
           loading.close();

+ 11 - 0
src/views/boxManagement/boxAdjustment/detailsPage.vue

@@ -1750,6 +1750,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.form.feeCenterList) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -1763,6 +1764,16 @@ export default {
         });
         submitFeeList(this.form.feeCenterList).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.form.feeCenterList = res.data.data
         }).finally(() => {
           loading.close();

+ 24 - 2
src/views/boxManagement/boxCost/detailsPage.vue

@@ -388,7 +388,7 @@
             </div>
             <div style="width: 30%">
               <div style="display: flex;align-items: center;justify-content: space-around">
-               <div>
+                <div>
                   <div>
                     <span>外币:</span>
                   </div>
@@ -413,7 +413,7 @@
             </div>
             <div style="width: 30%">
               <div style="display: flex;align-items: center;justify-content: space-around">
-                 <div>
+                <div>
                   <div>
                     <span>本币:</span>
                   </div>
@@ -2286,6 +2286,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListD) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -2299,6 +2300,16 @@ export default {
         });
         submitFeeList(this.feeCenterListD).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListD = res.data.data
         }).finally(() => {
           loading.close();
@@ -2363,6 +2374,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListC) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -2376,6 +2388,16 @@ export default {
         });
         submitFeeList(this.feeCenterListC).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListC = res.data.data
         }).finally(() => {
           loading.close();

+ 11 - 0
src/views/boxManagement/boxExit/detailsPage.vue

@@ -1798,6 +1798,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.form.feeCenterList) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -1811,6 +1812,16 @@ export default {
         });
         submitFeeList(this.form.feeCenterList).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.form.feeCenterList = res.data.data
         }).finally(() => {
           loading.close();

+ 12 - 0
src/views/boxManagement/buyContainer/detailsPage.vue

@@ -1181,6 +1181,7 @@ export default {
   },
   methods: {
     countChange(row) {
+      console.log(row.curCode, this.getLocalCurrency())
       if (row.curCode == this.getLocalCurrency()) {
         row.amountCNY = _.round(_.multiply(row.price, row.quantity), 2)
         row.amountUSD = 0
@@ -1701,6 +1702,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.form.feeCenterList) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -1714,6 +1716,16 @@ export default {
         });
         submitFeeList(this.form.feeCenterList).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.form.feeCenterList = res.data.data
         }).finally(() => {
           loading.close();

+ 28 - 23
src/views/boxManagement/rentalBox/detailsPage.vue

@@ -2049,30 +2049,24 @@ export default {
           },
           callback: (res) => {
             res.done()
-            this.$confirm('是否起租?', '提示', {
-              confirmButtonText: '确定',
-              cancelButtonText: '取消',
-              type: 'warning'
-            }).then(() => {
-              let obj = {
-                ...this.form,
-                rentType: 1,
-                rentDate: res.data.value
-              }
-              const loading = this.$loading({
-                lock: true,
-                text: '加载中',
-                spinner: 'el-icon-loading',
-                background: 'rgba(255,255,255,0.7)'
-              });
-              startingRent(obj).then(res => {
-                this.$message.success("操作成功!");
-                this.getDetail(this.form.id)
-              }).finally(() => {
-                loading.close();
-              })
-              res.close()
+            let obj = {
+              ...this.form,
+              rentType: 1,
+              rentDate: res.data.value
+            }
+            const loading = this.$loading({
+              lock: true,
+              text: '加载中',
+              spinner: 'el-icon-loading',
+              background: 'rgba(255,255,255,0.7)'
+            });
+            startingRent(obj).then(res => {
+              this.$message.success("操作成功!");
+              this.getDetail(this.form.id)
+            }).finally(() => {
+              loading.close();
             })
+            res.close()
           }
         })
       }
@@ -2287,6 +2281,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.form.feeCenterList) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -2300,6 +2295,16 @@ export default {
         });
         submitFeeList(this.form.feeCenterList).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.form.feeCenterList = res.data.data
         }).finally(() => {
           loading.close();

+ 22 - 0
src/views/boxManagement/transferCost/detailsPage.vue

@@ -1262,6 +1262,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListD) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -1275,6 +1276,16 @@ export default {
         });
         submitFeeList(this.feeCenterListD).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListD = res.data.data
         }).finally(() => {
           loading.close();
@@ -1331,6 +1342,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListC) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -1344,6 +1356,16 @@ export default {
         });
         submitFeeList(this.feeCenterListC).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListC = res.data.data
         }).finally(() => {
           loading.close();

+ 2 - 2
src/views/iosBasicData/OceanFreightImport/bills/assembly/EntrustmentLnformation.vue

@@ -724,7 +724,7 @@
                                     </span>
                                     <dic-select v-model="assemblyForm.operatorName" placeholder="OP"
                                         :key="assemblyForm.branchId" label="realName"
-                                        :url="'/blade-user/userListAll?roleAlias=操作员&deptId=' + saberUserInfo.dept_pid.split(',')[0]"
+                                        :url="'/blade-user/userListAll?roleAlias=操作员&deptId=' + assemblyForm.branchId"
                                         :filterable="true" dataName="realName"
                                         @selectChange="dicChange('operatorName', $event)"
                                         :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>
@@ -737,7 +737,7 @@
                                     </span>
                                     <dic-select v-model="assemblyForm.accDeptName" placeholder="客服"
                                         :key="assemblyForm.branchId" label="realName"
-                                        :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + saberUserInfo.dept_pid.split(',')[0]"
+                                        :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + assemblyForm.branchId"
                                         :filterable="true" dataName="realName"
                                         @selectChange="dicChange('accDeptName', $event)"
                                         :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>

+ 2 - 2
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation.vue

@@ -690,7 +690,7 @@
                                     </span>
                                     <dic-select v-model="assemblyForm.operatorName" placeholder="OP"
                                         :key="assemblyForm.branchId" label="realName"
-                                        :url="'/blade-user/userListAll?roleAlias=操作员&deptId=' + saberUserInfo.dept_pid.split(',')[0]"
+                                        :url="'/blade-user/userListAll?roleAlias=操作员&deptId=' + assemblyForm.branchId"
                                         :filterable="true" dataName="realName"
                                         @selectChange="dicChange('operatorName', $event)"
                                         :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>
@@ -703,7 +703,7 @@
                                     </span>
                                     <dic-select v-model="assemblyForm.accDeptName" placeholder="客服"
                                         :key="assemblyForm.branchId" label="realName"
-                                        :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + saberUserInfo.dept_pid.split(',')[0]"
+                                        :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + assemblyForm.branchId"
                                         :filterable="true" dataName="realName"
                                         @selectChange="dicChange('accDeptName', $event)"
                                         :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>

+ 2 - 1
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue

@@ -476,7 +476,8 @@ export default {
                 polId: this.assemblyForm.polId,
                 podId: this.assemblyForm.podId,
                 cabinType: this.assemblyForm.cabinType,
-                airlineId: this.assemblyForm.airlineId
+                airlineId: this.assemblyForm.airlineId,
+                etd:this.assemblyForm.etd+' 00:00:00'
             }
             getItemListHY(obj).then(res => {
                 if (res.data.data) {

+ 4 - 1
src/views/iosBasicData/seamends/amendsDetails.vue

@@ -723,7 +723,7 @@ export default {
                 let arr = ['feeCenterList', 'feeCenterListC', 'feeCenterListD']
                 for (let data of arr) {
                     for (let item of this.form[data]) {
-                        if (item.curCode ==this.getLocalCurrency()) {
+                        if (item.curCode == this.getLocalCurrency()) {
                             this.$set(item, 'rmbAmount', Number(item.amount).toFixed(2))
                             this.$set(item, 'usdAmount', '')
                             this.$set(item, 'rmbAmountNet', Number(item.amountNet).toFixed(2))
@@ -1053,6 +1053,9 @@ export default {
             if (!this.form.responsibleParty) {
                 return this.$message.warning('请填写AMEND原因')
             }
+            if (!this.form.branchName) {
+                return this.$message.warning('请填写所属公司')
+            }
             // 判断必填项
             let sum = '请输入'
             for (let item of this.form.feeCenterList) {

+ 3 - 0
src/views/iosBasicData/siamends/amendsDetails.vue

@@ -1028,6 +1028,9 @@ export default {
             if (!this.form.responsibleParty) {
                 return this.$message.warning('请填写AMEND原因')
             }
+              if (!this.form.branchName) {
+                return this.$message.warning('请填写所属公司')
+            }
             // 判断必填项
             let sum = '请输入'
             for (let item of this.form.feeCenterList) {

+ 37 - 8
src/views/ow/owPut/detailsPage.vue

@@ -230,8 +230,9 @@
                 <el-button type="primary" plain size="small"
                   :disabled="editDisabled || (selectionfeedList.length == 0 && selectionfeecList.length == 0)"
                   @click="allClick('D费用申请')">请核费用</el-button>
-                    <!-- <el-button type="primary" plain size="small" :disabled="editDisabled">计算超期箱使费</el-button> -->
-                <el-button type="warning" plain size="small" :disabled="editDisabled"  @click="allClick('批量导入费用')">批量导入费用</el-button>
+                <!-- <el-button type="primary" plain size="small" :disabled="editDisabled">计算超期箱使费</el-button> -->
+                <el-button type="warning" plain size="small" :disabled="editDisabled"
+                  @click="allClick('批量导入费用')">批量导入费用</el-button>
                 <!-- <el-button type="primary" plain size="small" @click="$refs.printC.openDialog()">打印账单</el-button> -->
               </template>
               <template slot="indexHeader" slot-scope="{row,index}">
@@ -250,7 +251,8 @@
                 <span v-else>{{ row.billType }}</span>
               </template>
               <template slot="cntrNoForm" slot-scope="{row,index}">
-                <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
+                <dic-select
+                  v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
                   v-model="row.cntrNo" key="id" label="code" :mockData="form.tradingBoxItemsList"
                   :filterable="true"></dic-select>
                 <span v-else>{{ row.cntrNo }}</span>
@@ -265,7 +267,8 @@
                 <span v-else>{{ row.corpCnName }}</span>
               </template>
               <template slot="feeCnNameForm" slot-scope="{ row }">
-                <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
+                <dic-select
+                  v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
                   v-model="row.feeCnName" key="id" placeholder="费用名称" label="cnName" res="records"
                   url="/blade-los/bfees/list?status=0&current=1&size=20" :filterable="true" :remote="true"
                   dataName="cnName" @selectChange="rowDicChange('feeCnName', $event, row)"
@@ -285,7 +288,8 @@
                 <span v-else>{{ row.exrate }}</span>
               </template>
               <template slot="unitNoForm" slot-scope="{row,index}">
-                <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
+                <dic-select
+                  v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
                   v-model="row.unitNo" label="cnName" url="/blade-los/bunits/listAll?status=0"
                   :filterable="true"></dic-select>
                 <span v-else>{{ row.unitNo }}</span>
@@ -348,7 +352,8 @@
                 <span v-else>{{ row.billType }}</span>
               </template>
               <template slot="cntrNoForm" slot-scope="{row,index}">
-                <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
+                <dic-select
+                  v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
                   v-model="row.cntrNo" key="id" label="code" :mockData="form.tradingBoxItemsList"
                   :filterable="true"></dic-select>
                 <span v-else>{{ row.cntrNo }}</span>
@@ -363,7 +368,8 @@
                 <span v-else>{{ row.corpCnName }}</span>
               </template>
               <template slot="feeCnNameForm" slot-scope="{ row }">
-                <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
+                <dic-select
+                  v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
                   v-model="row.feeCnName" key="id" placeholder="费用名称" label="cnName" res="records"
                   url="/blade-los/bfees/list?status=0&current=1&size=20" :filterable="true" :remote="true"
                   dataName="cnName" @selectChange="rowDicChange('feeCnName', $event, row)"
@@ -383,7 +389,8 @@
                 <span v-else>{{ row.exrate }}</span>
               </template>
               <template slot="unitNoForm" slot-scope="{row,index}">
-                <dic-select v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ'|| row.feeCode == 'Pickup')"
+                <dic-select
+                  v-if="row.$cellEdit && !(row.feeCode == 'BOX-YJ' || row.feeCode == 'BOX-ZJ' || row.feeCode == 'Pickup')"
                   v-model="row.unitNo" label="cnName" url="/blade-los/bunits/listAll?status=0"
                   :filterable="true"></dic-select>
                 <span v-else>{{ row.unitNo }}</span>
@@ -2649,6 +2656,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListD) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row
             .quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
@@ -2663,6 +2671,16 @@ export default {
         });
         submitFeeList(this.feeCenterListD).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListD = res.data.data
         }).finally(() => {
           loading.close();
@@ -2670,6 +2688,7 @@ export default {
       }
       if (name == 'D费用一键编辑') {
         for (let row of this.feeCenterListD) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.stlPid && (row.accStatus == 0 || row.auditStatus == 0)) {
             this.$set(row, "$cellEdit", true);
           }
@@ -2743,6 +2762,16 @@ export default {
         });
         submitFeeList(this.feeCenterListC).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListC = res.data.data
         }).finally(() => {
           loading.close();

+ 22 - 0
src/views/ow/owTask/detailsPage.vue

@@ -2650,6 +2650,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListD) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -2663,6 +2664,16 @@ export default {
         });
         submitFeeList(this.feeCenterListD).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListD = res.data.data
         }).finally(() => {
           loading.close();
@@ -2727,6 +2738,7 @@ export default {
           return this.$message.error("请添加数据");
         }
         for (let row of this.feeCenterListC) {
+          row.amount = row.curCode == this.getLocalCurrency() ? row.amountCNY : row.amountUSD
           if (!row.billType || !row.corpCnName || !row.feeCnName || !row.curCode || !row.price || !row.quantity) {
             this.$refs.crud2.rowCell(row, row.$index)
             return this.$message.error("请完善费用明细");
@@ -2740,6 +2752,16 @@ export default {
         });
         submitFeeList(this.feeCenterListC).then(res => {
           this.$message.success("保存成功");
+          res.data.dataforEach(row => {
+            if (row.curCode == this.getLocalCurrency()) {
+              row.amountCNY = row.amount
+              row.amountUSD = 0
+            }
+            if (row.curCode != this.getLocalCurrency()) {
+              row.amountUSD = row.amount
+              row.amountCNY = 0
+            }
+          })
           this.feeCenterListC = res.data.data
         }).finally(() => {
           loading.close();