Browse Source

1.基础资料 POD场站 对字段 联调接口 完善功能
2.海运进出口 修改单据类型,允许批量
3.海运进出口 分单添加到主单后,分单件重尺允许编辑
4.箱管 放箱号 列表场地盘存字段不对
5.决策分析 不显示所属公司
6.OW拿 OW放 箱管费用 修改合计功能
7.OW拿 OW放 批量修改POD场站
8.商务中心 mkt&slot 成本明细新加一键保存并联调接口

Qukatie 8 months ago
parent
commit
172443814b

+ 7 - 0
src/api/boxManagement/buyContainer/index.js

@@ -237,3 +237,10 @@ export function pleaseVerifyCost(data) {
     data: data
   })
 }
+export function batchUpdatePodStation(data) {
+  return request({
+    url: '/api/blade-los/tradingBox/batchUpdatePodStation',
+    method: 'post',
+    data: data
+  })
+}

+ 8 - 0
src/api/iosBasicData/businessCenter/mkt&slot.js

@@ -61,6 +61,14 @@ export function submitItemList(data) {
         data
     })
 }
+//明细保存
+export function submitList(data) {
+    return request({
+        url: '/api/blade-los/mktslotitem/submitList',
+        method: 'post',
+        data
+    })
+}
 // 请核
 export function pleaseCheck(data) {
     return request({

+ 29 - 0
src/api/iosBasicData/podStation.js

@@ -0,0 +1,29 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+    return request({
+        url: '/api/blade-los/UpdatePodStation/list',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size,
+        }
+    })
+}
+//导出
+export const listExport = (data) => {
+    return request({
+        url: '/api/blade-los/UpdatePodStation/listExport',
+        method: 'get',
+        params: data
+    })
+}
+
+export const batchUpdatePodStation = (data) => {
+    return request({
+        url: '/api/blade-los/UpdatePodStation/batchUpdatePodStation',
+        method: 'get',
+        params: data
+    })
+}

+ 13 - 0
src/router/views/index.js

@@ -4259,5 +4259,18 @@ export default [{
     },
     component: () => import( /* webpackChunkName: "views" */ '@/views/iosBasicData/businessCenter/bookingCabin/index')
   }]
+}, {
+  path: '/iosBasicData/podStation/index',
+  component: Layout,
+  hidden: true,
+  children: [{
+    path: '/iosBasicData/podStation/index',
+    name: 'POD场站(F)',
+    meta: {
+      i18n: '/iosBasicData/podStation/index',
+      keepAlive: true,
+    },
+    component: () => import( /* webpackChunkName: "views" */ '@/views/iosBasicData/podStation/index')
+  }]
 }
 ]

+ 9 - 9
src/views/boxManagement/boxCost/detailsPage.vue

@@ -2711,7 +2711,7 @@ export default {
     goBack(type) {
       this.$emit("goBack");
     },
-    getSum() {
+     getSum() {
       let sumArr = []
       let corpArr = []
       let newArr = []
@@ -2733,20 +2733,20 @@ export default {
         sumArr.forEach(item => {
           if (e == item.shortName) {
             if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-              rmbD += Number(item.amount)
-              sumD += Number(item.amount)
+              rmbD += Number(item.amountCNY ? item.amountCNY : 0)
+              sumD += Number(item.amountCNY ? item.amountCNY : 0)
             }
             if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-              rmbC += Number(item.amount)
-              sumC += Number(item.amount)
+              rmbC += Number(item.amountCNY ? item.amountCNY : 0)
+              sumC += Number(item.amountCNY ? item.amountCNY : 0)
             }
             if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
-              usdD += Number(item.amountLoc)
-              sumD += Number(item.amountLoc) * Number(item.exrate)
+              usdD += Number(item.amountUSD ? item.amountUSD : 0)
+              sumD += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
             }
             if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
-              usdC += Number(item.amountLoc)
-              sumC += Number(item.amountLoc) * Number(item.exrate)
+              usdC += Number(item.amountUSD ? item.amountUSD : 0)
+              sumC += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
             }
           }
         })

+ 1 - 1
src/views/boxManagement/containerNumber/index.vue

@@ -293,7 +293,7 @@ export default {
                     },
                     {
                         label: '场地盘存',
-                        prop: 'totalNum',
+                        prop: 'storageNum',
                         width: 100,
                         overHidden: true,
                     },

+ 10 - 6
src/views/iosBasicData/OceanFreightImport/bills/index.vue

@@ -141,7 +141,7 @@
                 <template slot="eta" slot-scope="scope">
                     <span>{{
                         scope.row.eta ? scope.row.eta.slice(0, 10) : ""
-                    }}</span>
+                        }}</span>
                 </template>
                 <template slot="updateTime" slot-scope="scope">
                     <span>{{
@@ -2000,10 +2000,10 @@ export default {
         },
         allClick(name) {
             if (name == '修改单据类型') {
-                if (this.selectionList.length !== 1) {
-                    this.$message.warning("请选择一条数据");
-                    return;
-                }
+                // if (this.selectionList.length !== 1) {
+                //     this.$message.warning("请选择一条数据");
+                //     return;
+                // }
                 for (let item of this.selectionList) {
                     if (item.status != 0) {
                         return this.$message.error("请选择未审核的单据");
@@ -2048,8 +2048,12 @@ export default {
                         // this.detailData.seeDisabled = false;
                         // this.detailData.id = this.selectionList[0].id;
                         // this.isShow = false;
+                        let ids = []
+                        for (let item of this.selectionList) {
+                            ids.push(item.id)
+                        }
                         let obj = {
-                            ids: this.selectionList[0].id,
+                            ids: ids.join(','),
                             billType: res.data.billType
                         }
                         updateBillType(obj).then(res => {

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

@@ -549,7 +549,7 @@
                                     </span>
                                     <el-input ref="quantityRef" style="width: 100%;" v-model="assemblyForm.quantity"
                                         size="small" autocomplete="off" min="1"
-                                        :disabled="detailData.seeDisabled || (assemblyForm.masterBillNo && assemblyForm.billType == 'MH')"
+                                        :disabled="detailData.seeDisabled || assemblyForm.billType == 'MH'"
                                         @input="quantityInput" @focus="quantityFocus" clearable
                                         placeholder="请输入件数"></el-input>
                                 </el-form-item>
@@ -589,7 +589,7 @@
                                     </span>
                                     <el-input ref="grossWeightRef" step="0.01" style="width: 100%;"
                                         v-model="assemblyForm.grossWeight" size="small" autocomplete="off"
-                                        :disabled="detailData.seeDisabled || (assemblyForm.masterBillNo && assemblyForm.billType == 'MH')"
+                                        :disabled="detailData.seeDisabled || assemblyForm.billType == 'MH'"
                                         @input="floatingInput($event, 'grossWeight')" @focus="quantityFocus" clearable
                                         placeholder="请输入毛重"></el-input>
                                 </el-form-item>
@@ -602,7 +602,7 @@
                                     </span>
                                     <el-input ref="measurementRef" step="0.01" style="width: 106%;"
                                         v-model="assemblyForm.measurement" size="small" autocomplete="off"
-                                        :disabled="detailData.seeDisabled || (assemblyForm.masterBillNo && assemblyForm.billType == 'MH')"
+                                        :disabled="detailData.seeDisabled || assemblyForm.billType == 'MH'"
                                         @input="floatingInput($event, 'measurement')" @focus="quantityFocus" clearable
                                         placeholder="请输入尺码/体积"></el-input>
                                 </el-form-item>

+ 9 - 5
src/views/iosBasicData/SeafreightExportF/bills/index.vue

@@ -2287,10 +2287,10 @@ export default {
         },
         allClick(name) {
             if (name == '修改单据类型') {
-                if (this.selectionList.length !== 1) {
-                    this.$message.warning("请选择一条数据");
-                    return;
-                }
+                // if (this.selectionList.length !== 1) {
+                //     this.$message.warning("请选择一条数据");
+                //     return;
+                // }
                 for (let item of this.selectionList) {
                     if (item.status != 0) {
                         return this.$message.error("请选择未审核的单据");
@@ -2335,8 +2335,12 @@ export default {
                         // this.detailData.seeDisabled = false;
                         // this.detailData.id = this.selectionList[0].id;
                         // this.isShow = false;
+                        let ids=[]
+                        for(let item of this.selectionList){
+                            ids.push(item.id)
+                        }
                         let obj = {
-                            ids: this.selectionList[0].id,
+                            ids: ids.join(','),
                             billType: res.data.billType
                         }
                         updateBillType(obj).then(res => {

+ 8 - 8
src/views/iosBasicData/UnpaidPaymentsDetails/index.vue

@@ -113,8 +113,8 @@ export default {
                         prop: "branchId",
                         width: "120",
                         overHidden: true,
-                        hide: true,
-                        showColumn: false,
+                        // hide: true,
+                        // showColumn: false,
                         type: "select",
                         filterable: true,
                         dicUrl: "/api/blade-system/dept/lazy-list",
@@ -124,12 +124,12 @@ export default {
                         },
                         search: false,
                     },
-                     {
-                        label: "所属公司",
-                        prop: "branchName",
-                        width: "120",
-                        overHidden: true,
-                    },
+                    //  {
+                    //     label: "所属公司",
+                    //     prop: "branchName",
+                    //     width: "120",
+                    //     overHidden: true,
+                    // },
                     {
                         label: "业务类型",
                         prop: "businessType",

+ 19 - 2
src/views/iosBasicData/businessCenter/mkt&slot/detailsPage.vue

@@ -73,6 +73,8 @@
           @saveColumn="saveColumn('crud', 'option', 'optionBack', 496)" @row-click="handleRowClick">
           <template slot="menuLeft">
             <el-button type="info" plain size="small" :disabled="editDisabled"
+              @click="allClick('成本一键保存')">一键保存</el-button>
+            <el-button type="info" plain size="small" :disabled="editDisabled"
               @click="allClick('成本一键编辑')">一键编辑</el-button>
             <el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
               @click="allClick('批量删除')">批量删除</el-button>
@@ -138,7 +140,8 @@ import {
   submitItemList,
   submitMktSlot,
   revokeMktSlot,
-  copyAgent
+  copyAgent,
+  submitList
 } from "@/api/iosBasicData/businessCenter/mkt&slot.js";
 import dicSelect from "@/components/dicSelect/main";
 import checkSchedule from "@/components/checkH/checkSchedule.vue";
@@ -278,7 +281,7 @@ export default {
           {
             label: '排序',
             prop: 'sort',
-            cell:true,
+            cell: true,
             overHidden: true,
             width: 60
           },
@@ -765,6 +768,20 @@ export default {
           })
         })
       }
+       if (name == '成本一键保存') {
+        const loading = this.$loading({
+          lock: true,
+          text: '加载中',
+          spinner: 'el-icon-loading',
+          background: 'rgba(255,255,255,0.7)'
+        });
+        submitList(this.form.mktSlotItemList).then(res => {
+          this.$message.success("保存成功");
+          this.form.mktSlotItemList = res.data.data
+        }).finally(() => {
+          loading.close();
+        })
+      }
       if (name == '一键保存') {
         const loading = this.$loading({
           lock: true,

+ 8 - 8
src/views/iosBasicData/financeProfit/index.vue

@@ -201,8 +201,8 @@ export default {
                         prop: "branchId",
                         width: "120",
                         overHidden: true,
-                        hide: true,
-                        showColumn: false,
+                        // hide: true,
+                        // showColumn: false,
                         type: "select",
                         filterable: true,
                         dicUrl: "/api/blade-system/dept/lazy-list",
@@ -213,12 +213,12 @@ export default {
                         search: false,
                         searchOrder: 1,
                     },
-                     {
-                        label: "所属公司",
-                        prop: "branchName",
-                        width: "120",
-                        overHidden: true,
-                    },
+                    //  {
+                    //     label: "所属公司",
+                    //     prop: "branchName",
+                    //     width: "120",
+                    //     overHidden: true,
+                    // },
                     {
                         label: "业务类型",
                         prop: "billType",

+ 8 - 8
src/views/iosBasicData/paymentDetail/index.vue

@@ -129,8 +129,8 @@ export default {
                         prop: "branchId",
                         width: "120",
                         overHidden: true,
-                        hide: true,
-                        showColumn: false,
+                        // hide: true,
+                        // showColumn: false,
                         type: "select",
                         filterable: true,
                         dicUrl: "/api/blade-system/dept/lazy-list",
@@ -140,12 +140,12 @@ export default {
                         },
                         search: false,
                     },
-                     {
-                        label: "所属公司",
-                        prop: "branchName",
-                        width: "120",
-                        overHidden: true,
-                    },
+                    //  {
+                    //     label: "所属公司",
+                    //     prop: "branchName",
+                    //     width: "120",
+                    //     overHidden: true,
+                    // },
                     {
                         label: "业务类型",
                         prop: "businessType",

+ 8 - 8
src/views/iosBasicData/paymentSummary/index.vue

@@ -135,8 +135,8 @@ export default {
                         prop: "branchId",
                         width: "120",
                         overHidden: true,
-                        hide: true,
-                        showColumn: false,
+                        // hide: true,
+                        // showColumn: false,
                         type: "select",
                         filterable: true,
                         dicUrl: "/api/blade-system/dept/lazy-list",
@@ -146,12 +146,12 @@ export default {
                         },
                         search: false,
                     },
-                    {
-                        label: "所属公司",
-                        prop: "branchName",
-                        width: "120",
-                        overHidden: true,
-                    },
+                    // {
+                    //     label: "所属公司",
+                    //     prop: "branchId",
+                    //     width: "120",
+                    //     overHidden: true,
+                    // },
                     {
                         label: "结算单位",
                         prop: "corpName",

+ 101 - 12
src/views/ow/owPut/detailsPage.vue

@@ -121,6 +121,10 @@
                   @click="allClick('一键编辑')">一键编辑</el-button>
                 <el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
                   @click="allClick('批量删除')">批量删除</el-button>
+                <el-button type="primary" size="small" :disabled="editDisabled || selectionList.length == 0"
+                  @click="allClick('批量修改POD场站')">
+                  批量修改POD场站
+                </el-button>
                 <!-- <el-button type="success" size="small">导入</el-button> -->
                 <!-- <el-button type="info" size="small" @click="allClick('启用')">启用</el-button> -->
                 <!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
@@ -555,6 +559,22 @@
           :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">保 存</el-button>
       </span>
     </el-dialog>
+    <el-dialog append-to-body title="批量修改POD场站" :visible.sync="podDialog" width="30%" v-dialog-drag>
+      <span>
+        <avue-form v-if='podDialog' ref="form3" v-model="podForm" :option="podOption">
+          <tempalte slot="podStationCname">
+            <dic-select v-model="podForm.podStationCname" placeholder="场站" label="cnName" res="records"
+              :slotRight="true" rightLabel="code"
+              url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=场站&status=0" :filterable="true"
+              :remote="true" dataName="cnName" @selectChange="dicChange('podStationCname3', $event)"></dic-select>
+          </tempalte>
+        </avue-form>
+      </span>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="podDialog = false" size="mini">取 消</el-button>
+        <el-button type="primary" @click.stop="podSubmit" size="mini">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -574,7 +594,8 @@ import {
   countRent,
   revokeCountRent,
   submitRtList,
-  pleaseVerifyCost
+  pleaseVerifyCost,
+  batchUpdatePodStation
 } from "@/api/boxManagement/buyContainer";
 import dicSelect from "@/components/dicSelect/main";
 import checkSchedule from "@/components/checkH/checkSchedule.vue";
@@ -598,6 +619,25 @@ export default {
   name: "detailsPage",
   data() {
     return {
+      podDialog: false,
+      podForm: {},
+      podOption: {
+        menuBtn: false,
+        span: 6,
+        disabled: false,
+        column: [
+          {
+            label: 'POD场站',
+            prop: 'podStationCname',
+            span: 24,
+            rules: [{
+              required: true,
+              message: " ",
+              trigger: "blur"
+            }],
+          }
+        ]
+      },
       rtDialog: false,
       excelBox: false,
       excelForm: {},
@@ -2092,7 +2132,7 @@ export default {
           corpArr.push(e.shortName)
         }
       })
-      newArr = [...new Set(corpArr)]
+      newArr = [... new Set(corpArr)]
       newArr.forEach(e => {
         let rmbD = 0
         let rmbC = 0
@@ -2103,20 +2143,20 @@ export default {
         sumArr.forEach(item => {
           if (e == item.shortName) {
             if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-              rmbD += Number(item.amount ? item.amount : 0)
-              sumD += Number(item.amount ? item.amount : 0)
+              rmbD += Number(item.amountCNY ? item.amountCNY : 0)
+              sumD += Number(item.amountCNY ? item.amountCNY : 0)
             }
             if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-              rmbC += Number(item.amount ? item.amount : 0)
-              sumC += Number(item.amount ? item.amount : 0)
+              rmbC += Number(item.amountCNY ? item.amountCNY : 0)
+              sumC += Number(item.amountCNY ? item.amountCNY : 0)
             }
-            if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-              usdD += Number(item.amountLoc ? item.amountLoc : 0)
-              sumD += Number(item.amountLoc ? item.amountLoc : 0) * Number(item.exrate ? item.exrate : 0)
+            if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
+              usdD += Number(item.amountUSD ? item.amountUSD : 0)
+              sumD += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
             }
-            if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-              usdC += Number(item.amountLoc ? item.amountLoc : 0)
-              sumC += Number(item.amountLoc ? item.amountLoc : 0) * Number(item.exrate ? item.exrate : 0)
+            if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
+              usdC += Number(item.amountUSD ? item.amountUSD : 0)
+              sumC += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
             }
           }
         })
@@ -2314,6 +2354,19 @@ export default {
           this.activationForm.podCname = null
         }
       }
+            if (name == 'podStationCname3') {
+        if (row) {
+          this.podForm.podStationId = row.id
+          this.podForm.podStationCode = row.code
+          this.podForm.podStationEname = row.enName
+          console.log(this.podForm)
+        } else {
+          this.podForm.podStationId = null
+          this.podForm.podStationCode = null
+          this.podForm.podStationEname = null
+          this.podForm.podStationCname = null
+        }
+      }
     },
     rowDicChange(name, row, el) {
       if (name == 'boxEastName') {
@@ -3129,6 +3182,42 @@ export default {
           }
         })
       }
+      if (name == '批量修改POD场站') {
+        this.podForm = {}
+        this.podDialog = true
+      }
+    },
+    podSubmit() {
+      this.$refs["form3"].validate((valid, done) => {
+        done();
+        if (valid) {
+          let ids = []
+          for (let item of this.selectionList) {
+            ids.push(item.id)
+          }
+          let obj = {
+            id: this.form.id,
+            sysNo: this.form.sysNo,
+            ...this.podForm,
+            tradingBoxItemsList: this.selectionList
+          }
+          const loading = this.$loading({
+            lock: true,
+            text: '加载中',
+            spinner: 'el-icon-loading',
+            background: 'rgba(255,255,255,0.7)'
+          });
+          batchUpdatePodStation(obj).then(res => {
+            this.$message.success("操作成功!");
+            this.getDetail(this.form.id)
+            this.podDialog = false
+          }).finally(() => {
+            loading.close();
+          })
+        } else {
+          return false;
+        }
+      });
     },
     submit(type) {
       this.$refs["form"].validate((valid, done) => {

+ 99 - 11
src/views/ow/owTask/detailsPage.vue

@@ -126,6 +126,10 @@
                 <el-button type="success" size="small"
                   :disabled="editDisabled || !form.id || form.tradingBoxItemsList.length == 0"
                   @click="allClick('导出')">导出</el-button>
+                <el-button type="primary" size="small" :disabled="editDisabled || selectionList.length == 0"
+                  @click="allClick('批量修改POD场站')">
+                  批量修改POD场站
+                </el-button>
                 <!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
                 <!-- <el-button size="small" style="margin-right: 8px" :disabled="!form.id || true"
                   @click="$refs.print.openDialog()">打印报表
@@ -558,6 +562,22 @@
           :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">保 存</el-button>
       </span>
     </el-dialog>
+    <el-dialog append-to-body title="批量修改POD场站" :visible.sync="podDialog" width="30%" v-dialog-drag>
+      <span>
+        <avue-form v-if='podDialog' ref="form3" v-model="podForm" :option="podOption">
+          <tempalte slot="podStationCname">
+            <dic-select v-model="podForm.podStationCname" placeholder="场站" label="cnName" res="records"
+              :slotRight="true" rightLabel="code"
+              url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=场站&status=0" :filterable="true"
+              :remote="true" dataName="cnName" @selectChange="dicChange('podStationCname3', $event)"></dic-select>
+          </tempalte>
+        </avue-form>
+      </span>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="podDialog = false" size="mini">取 消</el-button>
+        <el-button type="primary" @click.stop="podSubmit" size="mini">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -577,7 +597,8 @@ import {
   countRent,
   revokeCountRent,
   submitRtList,
-  pleaseVerifyCost
+  pleaseVerifyCost,
+  batchUpdatePodStation
 } from "@/api/boxManagement/buyContainer";
 import dicSelect from "@/components/dicSelect/main";
 import checkSchedule from "@/components/checkH/checkSchedule.vue";
@@ -593,6 +614,25 @@ export default {
   name: "detailsPage",
   data() {
     return {
+      podDialog: false,
+      podForm: {},
+      podOption: {
+        menuBtn: false,
+        span: 6,
+        disabled: false,
+        column: [
+          {
+            label: 'POD场站',
+            prop: 'podStationCname',
+            span: 24,
+            rules: [{
+              required: true,
+              message: " ",
+              trigger: "blur"
+            }],
+          }
+        ]
+      },
       rtDialog: false,
       excelBox: false,
       excelForm: {},
@@ -2082,20 +2122,20 @@ export default {
         sumArr.forEach(item => {
           if (e == item.shortName) {
             if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-              rmbD += Number(item.amount ? item.amount : 0)
-              sumD += Number(item.amount ? item.amount : 0)
+              rmbD += Number(item.amountCNY ? item.amountCNY : 0)
+              sumD += Number(item.amountCNY ? item.amountCNY : 0)
             }
             if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-              rmbC += Number(item.amount ? item.amount : 0)
-              sumC += Number(item.amount ? item.amount : 0)
+              rmbC += Number(item.amountCNY ? item.amountCNY : 0)
+              sumC += Number(item.amountCNY ? item.amountCNY : 0)
             }
-            if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-              usdD += Number(item.amountLoc ? item.amountLoc : 0)
-              sumD += Number(item.amountLoc ? item.amountLoc : 0) * Number(item.exrate ? item.exrate : 0)
+            if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
+              usdD += Number(item.amountUSD ? item.amountUSD : 0)
+              sumD += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
             }
-            if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-              usdC += Number(item.amountLoc ? item.amountLoc : 0)
-              sumC += Number(item.amountLoc ? item.amountLoc : 0) * Number(item.exrate ? item.exrate : 0)
+            if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
+              usdC += Number(item.amountUSD ? item.amountUSD : 0)
+              sumC += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
             }
           }
         })
@@ -2293,6 +2333,18 @@ export default {
           this.activationForm.podCname = null
         }
       }
+      if (name == 'podStationCname3') {
+        if (row) {
+          this.podForm.podStationId = row.id
+          this.podForm.podStationCode = row.code
+          this.podForm.podStationEname = row.enName
+        } else {
+          this.podForm.podStationId = null
+          this.podForm.podStationCode = null
+          this.podForm.podStationEname = null
+          this.podForm.podStationCname = null
+        }
+      }
     },
     rowDicChange(name, row, el) {
       if (name == 'boxEastName') {
@@ -3109,6 +3161,42 @@ export default {
           }
         })
       }
+      if (name == '批量修改POD场站') {
+        this.podForm = {}
+        this.podDialog = true
+      }
+    },
+    podSubmit() {
+      this.$refs["form3"].validate((valid, done) => {
+        done();
+        if (valid) {
+          let ids = []
+          for (let item of this.selectionList) {
+            ids.push(item.id)
+          }
+          let obj = {
+            id: this.form.id,
+            sysNo: this.form.sysNo,
+            ...this.podForm,
+            tradingBoxItemsList: this.selectionList
+          }
+          const loading = this.$loading({
+            lock: true,
+            text: '加载中',
+            spinner: 'el-icon-loading',
+            background: 'rgba(255,255,255,0.7)'
+          });
+          batchUpdatePodStation(obj).then(res => {
+            this.$message.success("操作成功!");
+            this.getDetail(this.form.id)
+            this.podDialog = false
+          }).finally(() => {
+            loading.close();
+          })
+        } else {
+          return false;
+        }
+      });
     },
     submit(type) {
       this.$refs["form"].validate((valid, done) => {