Jelajahi Sumber

1.审批数据页面内容不显示
2.生成租金后,租箱条款就不能再编辑了
3.成本中心列表调整默认顺序
4.成本中心列设置增大长度显示不全
5.审批数据,检索条件不好用
6.费用申请,按照业务类型显示打印报表
7.OW 修改币别和汇率

Qukatie 8 bulan lalu
induk
melakukan
dd019e72b8

+ 27 - 2
src/views/approveDataH/configuration/mainList.json

@@ -95,6 +95,14 @@
       "showColumn": false,
       "overHidden": true,
       "width": 100,
+      "type": "select",
+      "filterable": true,
+      "dicUrl": "/api/blade-los/bcorps/list",
+      "props": {
+        "label": "cnName",
+        "value": "id",
+        "res": "data.records"
+      },
       "index": 4
     },
     {
@@ -124,6 +132,8 @@
       "label": "申请人",
       "prop": "sendUserId",
       "overHidden": true,
+      "hide": true,
+      "showColumn": false,
       "search": true,
       "index": 8,
       "width": 100,
@@ -134,11 +144,22 @@
       }
     },
     {
+      "label": "申请人",
+      "prop": "sendRealName",
+      "overHidden": true,
+      "index": 8.1,
+      "width": 100
+    },
+    {
       "label": "申请日期",
       "prop": "sendTime",
       "type": "date",
-      "format": "yyyy-MM-dd HH:mm:ss",
+      "format": "yyyy-MM-dd",
       "valueFormat": "yyyy-MM-dd HH:mm:ss",
+      "searchDefaultTime": [
+        "00:00:00",
+        "23:59:59"
+      ],
       "unlinkPanels": true,
       "searchRange": true,
       "search": true,
@@ -169,8 +190,12 @@
       "label": "业务日期",
       "prop": "billTimeList",
       "type": "date",
-      "format": "yyyy-MM-dd HH:mm:ss",
+      "format": "yyyy-MM-dd",
       "valueFormat": "yyyy-MM-dd HH:mm:ss",
+        "searchDefaultTime": [
+        "00:00:00",
+        "23:59:59"
+      ],
       "hide": true,
       "unlinkPanels": true,
       "searchRange": true,

+ 6 - 5
src/views/approveDataH/index.vue

@@ -4,13 +4,13 @@
       :table-loading="loading" :cell-style="cellStyle" @search-change="searchChange" @search-reset="searchReset"
       @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
       @refresh-change="refreshChange" @on-load="onLoad">
-      <template slot="corpIdSearch">
-        <!--        <select-component v-model="search.corpId" :configuration="configuration"></select-component>-->
+      <!-- <template slot="corpIdSearch">
+        
         <el-select v-model="search.corpId" clearable placeholder="请选择">
           <el-option v-for="item in corpsList" :key="item.id" :label="item.cname" :value="item.id">
           </el-option>
         </el-select>
-      </template>
+      </template> -->
       <template slot-scope="scope" slot="checkType">
         <span v-if="scope.row.checkType == 'HYCK-FFSQ'">付费申请</span>
         <span v-if="scope.row.checkType == 'HYCK-FPSQ'">发票申请</span>
@@ -32,6 +32,7 @@
         <span v-else-if="scope.row.checkType == 'MYDL'">贸易代理单据审核</span>
         <span v-else-if="scope.row.checkType == 'YSQR-C'">贸易代理货款付费确认</span>
         <span v-else-if="scope.row.checkType == 'YSQR-D'">贸易代理货款收费确认</span>
+          <span v-else-if="scope.row.checkType == 'FYSQ'">费用申请</span>
       </template>
       <template slot-scope="scope" slot="billNo">
         <span style="color: #1e9fff;cursor: pointer;" @click="billNoDetails(scope.row)">{{ scope.row.billNo }}</span>
@@ -226,7 +227,7 @@ export default {
       });
     });
     // 供应商
-    // corpsDescListAll({corpType: "GYS"}).then(res => {
+    // corpsDescListAll().then(res => {
     //   this.corpsList = res.data.data
     // })
   },
@@ -328,7 +329,7 @@ export default {
       console.log(val, 240)
       if (type == 'FYSQ') {
         reportsGetReportDataBox({
-          billId: this.reportsData.billId,
+          billId: this.reportsData.srcBillId,
           reportCode: val.classifyCode,
           groupCode: val.groupCode,
           type: val.businessType

+ 31 - 9
src/views/boxManagement/boxPoolDynamics/index.vue

@@ -5,9 +5,10 @@
             <!-- <el-button type="primary" plain size="small"
                                 @click="allClick('POL返场(EXCEL)')">POL返场(EXCEL)</el-button> -->
             <el-button type="info" plain size="small" @click="allClick('POD空箱进场(EXCEL)')">POD空箱进场(EXCEL)</el-button>
-            <!-- <el-button type="warning" plain size="small"
-                                @click="allClick('空箱进场(excel)')">空箱进场(excel)</el-button> -->
+
             <el-button type="danger" plain size="small" @click="allClick('POL无货返空(EXCEL)')">POL无货返空(EXCEL)</el-button>
+            <el-button type="warning" plain size="small"
+                @click="allClick('POL空箱提箱进场(EXCEL)')">POL空箱提箱进场(EXCEL)</el-button>
             <el-tabs v-model="activeName" type="card" style="margin-top: 8px;">
                 <el-tab-pane label="按港口" name="1">
                     <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page"
@@ -64,7 +65,7 @@
                 <avue-form :option="excelOption" v-model="excelForm" :table-loading="excelLoading"
                     :upload-before="uploadBefore" :upload-after="onSuccess">
                     <template slot="excelTemplate">
-                        <el-button type="primary" @click="handleGet">
+                        <el-button type="primary" @click="handleGet(excelType)">
                             点击下载<i class="el-icon-download el-icon--right"></i>
                         </el-button>
                     </template>
@@ -87,6 +88,7 @@ import _ from "lodash";
 export default {
     data() {
         return {
+            excelType: 1,
             excelBox: false,
             excelForm: {},
             excelLoading: false,
@@ -577,7 +579,7 @@ export default {
         },
         // 上传成功
         onSuccess(res, done, loading, column) {
-            if(res=='操作成功'){
+            if (res == '操作成功') {
                 this.$message.success("上传成功!");
             }
             loading = false;
@@ -585,11 +587,19 @@ export default {
             this.excelBox = false;
         },
         // 下载模板
-        handleGet() {
-            window.open(
-                `/api/blade-los/boxPool/emptyContainerAppearance/template?${this.website.tokenHeader
-                }=${getToken()}`
-            );
+        handleGet(type) {
+            if (type == 1) {
+                window.open(
+                    `/api/blade-los/boxPool/emptyContainerAppearance/template?${this.website.tokenHeader
+                    }=${getToken()}`
+                );
+            } else {
+                window.open(
+                    `/api/blade-los/boxPool/emptyContainerEntry/template?${this.website.tokenHeader
+                    }=${getToken()}`
+                );
+            }
+
         },
         rowDownload(row) {
             window.open(row.url);
@@ -601,6 +611,7 @@ export default {
                         item.action = "/api/blade-los/boxPool/emptyContainerAppearance"
                     }
                 })
+                this.excelType = 1
                 this.excelBox = true
             }
             if (name == 'POD空箱进场(EXCEL)') {
@@ -609,6 +620,7 @@ export default {
                         item.action = "/api/blade-los/boxPool/giveAnEncore"
                     }
                 })
+                this.excelType = 1
                 this.excelBox = true
             }
             if (name == 'POL无货返空(EXCEL)') {
@@ -617,6 +629,16 @@ export default {
                         item.action = "/api/blade-los/boxPool/returnEmpty"
                     }
                 })
+                this.excelType = 1
+                this.excelBox = true
+            }
+            if (name == 'POL空箱提箱进场(EXCEL)') {
+                this.excelOption.column.forEach(item => {
+                    if (item.prop == 'excelFile') {
+                        item.action = "/api/blade-los/boxPool/emptyContainerEntry"
+                    }
+                })
+                this.excelType = 2
                 this.excelBox = true
             }
         },

+ 15 - 17
src/views/iosBasicData/OceanFreightImport/bills/assembly/feecenter.vue

@@ -1645,23 +1645,21 @@ export default {
                 let sumD = 0
                 let sumC = 0
                 sumArr.forEach(item => {
-                    if (e == item.shortName) {
-                        if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-                            rmbD += Number(item.rmbAmount)
-                            sumD += Number(item.rmbAmount)
-                        }
-                        if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-                            rmbC += Number(item.rmbAmount)
-                            sumC += Number(item.rmbAmount)
-                        }
-                        if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
-                            usdD += Number(item.usdAmount)
-                            sumD += Number(item.usdAmount) * Number(item.exrate)
-                        }
-                        if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
-                            usdC += Number(item.usdAmount)
-                            sumC += Number(item.usdAmount) * Number(item.exrate)
-                        }
+                    if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
+                        rmbD += Number(item.rmbAmount ? item.rmbAmount : 0)
+                        sumD += Number(item.rmbAmount ? item.rmbAmount : 0)
+                    }
+                    if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
+                        rmbC += Number(item.rmbAmount ? item.rmbAmount : 0)
+                        sumC += Number(item.rmbAmount ? item.rmbAmount : 0)
+                    }
+                    if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
+                        usdD += Number(item.usdAmount ? item.usdAmount : 0)
+                        sumD += Number(item.usdAmount ? item.usdAmount : 0) * Number(item.exrate ? item.exrate : 0)
+                    }
+                    if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
+                        usdC += Number(item.usdAmount ? item.usdAmount : 0)
+                        sumC += Number(item.usdAmount ? item.usdAmount : 0) * Number(item.exrate ? item.exrate : 0)
                     }
                 })
                 this.sumData.push({

File diff ditekan karena terlalu besar
+ 1763 - 1785
src/views/iosBasicData/OceanFreightImport/bills/billsDetails.vue


+ 0 - 1
src/views/iosBasicData/OceanFreightImport/bills/index.vue

@@ -51,7 +51,6 @@
                     <el-button type="warning" size="small" @click="outExport">导 出
                     </el-button>
                     <el-button
-                        v-if="roleName.indexOf('admin') >= 0 || roleName.indexOf('应付修改') >= 0 || roleName.indexOf('应付查看') >= 0"
                         type="success" size="small" @click="checkBills" :disabled="!selectionList.length">单据请核
                     </el-button>
                     <div style="margin-top: 10px">

+ 0 - 2
src/views/iosBasicData/SeafreightExportF/bills/approvalDetails.vue

@@ -708,8 +708,6 @@ export default {
         }
     },
     created() {
-        // billId
-        console.log(this.$route.query,711)
         if (this.$route.query.billId) {
             // 从审批里查看跳进来的
             this.billsDetailfun(this.$route.query.billId)

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

@@ -691,11 +691,11 @@
                         </div>
                         <div>
                             <el-col>
-                                <el-form-item label="付款方式" prop="hpayplace" label-width="80px">
+                                <el-form-item label="付款方式" prop="hpaymode" label-width="80px">
                                     <span slot="label">
                                         <span style="color: #1e9fff">付款方式</span>
                                     </span>
-                                    <dic-select v-model="assemblyForm.hpayplace" placeholder="付款方式" key="dictKey"
+                                    <dic-select v-model="assemblyForm.hpaymode" placeholder="付款方式" key="dictKey"
                                         label="dictValue" keyValue="dictKey"
                                         url="/blade-system/dict-biz/dictionary?code=payment_method_los"
                                         :filterable="true" :disabled="detailData.seeDisabled"></dic-select>

+ 8 - 8
src/views/iosBasicData/SeafreightExportF/bills/assembly/feecenter.vue

@@ -1616,20 +1616,20 @@ export default {
                 sumArr.forEach(item => {
                     if (e == item.shortName) {
                         if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
-                            rmbD += Number(item.rmbAmount)
-                            sumD += Number(item.rmbAmount)
+                            rmbD += Number(item.rmbAmount?item.rmbAmount:0)
+                            sumD += Number(item.rmbAmount?item.rmbAmount:0)
                         }
                         if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
-                            rmbC += Number(item.rmbAmount)
-                            sumC += Number(item.rmbAmount)
+                            rmbC += Number(item.rmbAmount?item.rmbAmount:0)
+                            sumC += Number(item.rmbAmount?item.rmbAmount:0)
                         }
                         if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
-                            usdD += Number(item.usdAmount)
-                            sumD += Number(item.usdAmount) * Number(item.exrate)
+                            usdD += Number(item.usdAmount?item.usdAmount:0)
+                            sumD += Number(item.usdAmount?item.usdAmount:0) * Number(item.exrate?item.exrate:0)
                         }
                         if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
-                            usdC += Number(item.usdAmount)
-                            sumC += Number(item.usdAmount) * Number(item.exrate)
+                            usdC += Number(item.usdAmount?item.usdAmount:0)
+                            sumC += Number(item.usdAmount?item.usdAmount:0) * Number(item.exrate?item.exrate:0)
                         }
                     }
                 })

+ 6 - 2
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -86,7 +86,7 @@
                     <el-dropdown-menu slot="dropdown">
                         <el-dropdown-item @click.native="checkScheduleDialog = true, checkId = form.id">审核进度
                         </el-dropdown-item>
-                    </el-dropdown-menu>
+                    </el-dropdown-menu>0
                 </el-dropdown>
             </div>
         </div>
@@ -114,7 +114,7 @@
                                                                 }} {{ item[0].label }}
                                                             </span>
                                                             <span v-else style="color: #1e9fff">{{ item[0].label
-                                                                }}</span>
+                                                            }}</span>
                                                         </span>
                                                         <span v-if="item[0].type == 'button'"></span>
                                                         <!--<el-button v-if="item[0].type == 'button'" :disabled="detailData.seeDisabled || item[0].disabled"-->
@@ -517,6 +517,8 @@ export default {
             copyFormData: {}, // 详情的备份数据
             // 详情数据
             form: {
+                branchId: JSON.parse(localStorage.getItem('sysitemData')).deptId,
+                branchName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
                 billDate: dateFormat(new Date(), "yyyy-MM-dd") + ' 00:00', // 单据日期 默认 当天
                 operatorName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name, // OP 默认登录人
                 operatorId: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人
@@ -560,6 +562,8 @@ export default {
                 hmmEdi: {},
             },
             oldForm: {
+                branchId: JSON.parse(localStorage.getItem('sysitemData')).deptId,
+                branchName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
                 billDate: dateFormat(new Date(), "yyyy-MM-dd") + ' 00:00', // 单据日期 默认 当天
                 operatorName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name, // OP 默认登录人
                 operatorId: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人

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

@@ -36,20 +36,20 @@
                     <el-button type="warning" size="small" @click="outExport">导 出
                     </el-button>
                     <el-button
-                        v-if="roleName.indexOf('admin') >= 0   || roleName.indexOf('应收修改') >= 0 || roleName.indexOf('应收查看') >= 0"
+                        v-if="roleName.indexOf('admin') >= 0 || roleName.indexOf('应收修改') >= 0 || roleName.indexOf('应收查看') >= 0"
                         type="primary" size="small" @click="templateImport('D')" :disabled="!selectionList.length">收费模板
                     </el-button>
                     <el-button
                         v-if="roleName.indexOf('admin') >= 0 || roleName.indexOf('应付修改') >= 0 || roleName.indexOf('应付查看') >= 0"
                         type="warning" size="small" @click="templateImport('C')" :disabled="!selectionList.length">付费模板
                     </el-button>
-                    <el-button type="primary" plain size="small" @click="costSubmit"
-                        :disabled="!selectionList.length">提取成本</el-button>
                     <el-button
                         v-if="roleName.indexOf('admin') >= 0 || roleName.indexOf('应付修改') >= 0 || roleName.indexOf('应付查看') >= 0"
-                        type="success" size="small" @click="checkBills" :disabled="!selectionList.length">单据请核
+                        type="primary" plain size="small" @click="costSubmit"
+                        :disabled="!selectionList.length">提取成本</el-button>
+                    <el-button type="success" size="small" @click="checkBills" :disabled="!selectionList.length">单据请核
                     </el-button>
-                    
+
                     <!-- <el-dropdown style="line-height: 0">
                         <el-button size="small" type="success" style="margin-right: 8px"
                             :disabled="selectionList.length == 0">
@@ -269,7 +269,8 @@
                     saveColumnTwo('mawbOptionCrud', mawbOptionBack, 309.7)
                     ">
                 <template slot="radio" slot-scope="{ row }">
-                    <el-radio style="margin-left: 8px;" v-model="dialogRadio" :label="row.id" @input="radioInput(row)">&nbsp;</el-radio>
+                    <el-radio style="margin-left: 8px;" v-model="dialogRadio" :label="row.id"
+                        @input="radioInput(row)">&nbsp;</el-radio>
                 </template>
             </avue-crud>
             <span slot="footer" class="dialog-footer">
@@ -1581,7 +1582,7 @@ export default {
             let shippingCompanyId = []
             let voyag = []
             let obj = {}
-            let billsIds=[]
+            let billsIds = []
             for (let item of this.selectionList) {
                 if (item.polId) podId.push(item.polId)
                 if (item.podId) destinationId.push(item.podId)
@@ -1616,7 +1617,7 @@ export default {
                 destinationId: destinationId[0],
                 shippingCompanyId: shippingCompanyId[0],
             }
-            this.$refs.extractionCost.inTemplate(obj,billsIds.join(','))
+            this.$refs.extractionCost.inTemplate(obj, billsIds.join(','))
         },
         checkBills() {
             for (let item of this.selectionList) {

+ 1 - 1
src/views/iosBasicData/bcorps/detailsPage.vue

@@ -113,7 +113,7 @@
             <el-form-item label="所属公司" prop="branchName">
               <dic-select v-model="formData.branchName" placeholder="所属公司" key="id" label="deptName"
                 url="/blade-system/dept/top-list" :filterable="true" :remote="true" dataName="deptName" :multiple="true"
-                :collapseTags="true" dataType="string"  @selectChange="dicChange('branchName', $event)"></dic-select>
+                 dataType="string"  @selectChange="dicChange('branchName', $event)"></dic-select>
             </el-form-item>
           </el-col>
         </el-row>

+ 31 - 23
src/views/iosBasicData/costcenter/coc/index.vue

@@ -146,22 +146,17 @@ export default {
                             res: 'data.records'
                         },
                     },
+                     {
+                        label: "利润20GP",
+                        prop: "profit20",
+                        width: "100",
+                        overHidden: true,
+                    },
                     {
-                        label: "航线",
-                        prop: "airlineCname",
-                        width: "80",
+                        label: "利润40GP",
+                        prop: "profit40",
+                        width: "100",
                         overHidden: true,
-                        search: true,
-                        searchOrder: 3,
-                        type: 'select',
-                        filterable: true,
-                        remote: true,
-                        dicUrl: "/api/blade-los/blines/list?cnName={{key}}",
-                        props: {
-                            label: 'cnName',
-                            value: 'cnName',
-                            res: 'data.records'
-                        },
                     },
                     {
                         label: "船公司",
@@ -242,16 +237,21 @@ export default {
                         valueFormat: "yyyy-MM-dd 23:59:59",
                     },
                     {
-                        label: "利润20GP",
-                        prop: "profit20",
-                        width: "100",
-                        overHidden: true,
-                    },
-                    {
-                        label: "利润40GP",
-                        prop: "profit40",
-                        width: "100",
+                        label: "航线",
+                        prop: "airlineCname",
+                        width: "80",
                         overHidden: true,
+                        search: true,
+                        searchOrder: 3,
+                        type: 'select',
+                        filterable: true,
+                        remote: true,
+                        dicUrl: "/api/blade-los/blines/list?cnName={{key}}",
+                        props: {
+                            label: 'cnName',
+                            value: 'cnName',
+                            res: 'data.records'
+                        },
                     },
                     {
                         label: "状态",
@@ -443,6 +443,10 @@ export default {
                 this.$refs[ref].$refs.dialogColumn.columnBox = false;
                 this.selectionList = []
                 this.searchReset()
+                this.$nextTick(() => {
+                    this.$refs.crud.refreshTable();
+                    this.$refs.crud.dicInit();
+                });
             }
         },
         //自定义列重置
@@ -454,6 +458,10 @@ export default {
                 this.$refs[ref].$refs.dialogColumn.columnBox = false;
                 this.selectionList = []
                 this.searchReset()
+                this.$nextTick(() => {
+                    this.$refs.crud.refreshTable();
+                    this.$refs.crud.dicInit();
+                });
             }
         },
         // 更改表格颜色

+ 43 - 35
src/views/iosBasicData/costcenter/soc/index.vue

@@ -148,21 +148,28 @@ export default {
                         },
                     },
                     {
-                        label: "航线",
-                        prop: "airlineCname",
-                        width: "80",
+                        label: "20利润",
+                        prop: "profit20",
+                        width: "100",
+                        overHidden: true,
+                    },
+                    {
+                        label: "40利润",
+                        prop: "profit40",
+                        width: "100",
+                        overHidden: true,
+                    },
+                    {
+                        label: "40HC利润",
+                        prop: "profitHc",
+                        width: "100",
+                        overHidden: true,
+                    },
+                    {
+                        label: "其他利润",
+                        prop: "otherProfit",
+                        width: "100",
                         overHidden: true,
-                        search: true,
-                        searchOrder: 3,
-                        type: 'select',
-                        filterable: true,
-                        remote: true,
-                        dicUrl: "/api/blade-los/blines/list?cnName={{key}}",
-                        props: {
-                            label: 'cnName',
-                            value: 'cnName',
-                            res: 'data.records'
-                        },
                     },
                     {
                         label: "承运人",
@@ -244,28 +251,21 @@ export default {
                         valueFormat: "yyyy-MM-dd 23:59:59",
                     },
                     {
-                        label: "20利润",
-                        prop: "profit20",
-                        width: "100",
-                        overHidden: true,
-                    },
-                    {
-                        label: "40利润",
-                        prop: "profit40",
-                        width: "100",
-                        overHidden: true,
-                    },
-                    {
-                        label: "40HC利润",
-                        prop: "profitHc",
-                        width: "100",
-                        overHidden: true,
-                    },
-                    {
-                        label: "其他利润",
-                        prop: "otherProfit",
-                        width: "100",
+                        label: "航线",
+                        prop: "airlineCname",
+                        width: "80",
                         overHidden: true,
+                        search: true,
+                        searchOrder: 3,
+                        type: 'select',
+                        filterable: true,
+                        remote: true,
+                        dicUrl: "/api/blade-los/blines/list?cnName={{key}}",
+                        props: {
+                            label: 'cnName',
+                            value: 'cnName',
+                            res: 'data.records'
+                        },
                     },
                     {
                         label: "状态",
@@ -460,6 +460,10 @@ export default {
                 this.$refs[ref].$refs.dialogColumn.columnBox = false;
                 this.selectionList = []
                 this.searchReset()
+                this.$nextTick(() => {
+                    this.$refs.crud.refreshTable();
+                    this.$refs.crud.dicInit();
+                });
             }
         },
         //自定义列重置
@@ -471,6 +475,10 @@ export default {
                 this.$refs[ref].$refs.dialogColumn.columnBox = false;
                 this.selectionList = []
                 this.searchReset()
+                this.$nextTick(() => {
+                    this.$refs.crud.refreshTable();
+                    this.$refs.crud.dicInit();
+                });
             }
         },
         // 更改表格颜色

+ 9 - 74
src/views/iosBasicData/feeApplication/detailsPage.vue

@@ -42,7 +42,11 @@
               </div>
             </template>
             <template slot="remarks" slot-scope="{ row }">
-              <el-input v-model="row.remarks" placeholder="请输入 备注" size="small" style="width: 100%;"></el-input>
+              <el-input v-if="row.feeCnName != '租箱费'" v-model="row.remarks" placeholder="请输入 备注" size="small"
+                style="width: 100%;"></el-input>
+              <span v-if="row.feeCnName == '租箱费'">
+                {{ row.remarks }}
+              </span>
             </template>
           </avue-crud>
         </el-card>
@@ -132,7 +136,7 @@
             </div> -->
       </trade-card>
     </div>
-    <business-reports :id="form.id" :itemIds="itemIds" ref="print" businessValue="FYSQ" :type="true"></business-reports>
+    <business-reports :id="form.id" :itemIds="itemIds" ref="print" businessValue="FYSQ" :classifyCode="form.srcType" :type="true"></business-reports>
     <reports :id="form.id" :assemblyForm="form" businessValue="FYSQ" ref="report"></reports>
   </div>
 </template>
@@ -342,43 +346,20 @@ export default {
         column: [
           {
             label: "类别",
-            prop: "billType",
+            prop: "corpType",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
-            rules: [
-              {
-                required: true,
-                message: '请选择类别',
-                trigger: 'blur'
-              }
-            ]
           },
           {
             label: "收费对象",
             prop: "corpCnName",
             width: "100",
-            overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
-            rules: [
-              {
-                required: true,
-                message: '请选择付费对象',
-                trigger: 'blur'
-              }
-            ]
+            overHidden: true
           },
           {
             label: "箱号",
             prop: "cntrNo",
             width: 140,
-            cell: true,
-            slot: true,
-            formslot: true,
             overHidden: true,
           },
           {
@@ -386,50 +367,24 @@ export default {
             prop: "feeCnName",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
-            rules: [
-              {
-                required: true,
-                message: '请选择费用名称',
-                trigger: 'blur'
-              }
-            ]
           },
           {
             label: "计量单位",
             prop: "unitNo",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
           },
           {
             label: "币别",
             prop: "curCode",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
-            rules: [
-              {
-                required: true,
-                message: '请选择币别',
-                trigger: 'blur'
-              }
-            ]
           },
           {
             label: "汇率",
             prop: "exrate",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true
           },
 
           {
@@ -437,32 +392,12 @@ export default {
             prop: "price",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
-            rules: [
-              {
-                required: true,
-                message: '请输入单价',
-                trigger: 'blur'
-              }
-            ]
           },
           {
             label: "数量",
             prop: "quantity",
             width: "100",
             overHidden: true,
-            cell: true,
-            slot: true,
-            formslot: true,
-            rules: [
-              {
-                required: true,
-                message: '请输入数量',
-                trigger: 'blur'
-              }
-            ]
           },
           {
             label: "金额",
@@ -542,7 +477,7 @@ export default {
         column: [
           {
             label: "类别",
-            prop: "billType",
+            prop: "corpType",
             width: 100,
             overHidden: true,
           },

File diff ditekan karena terlalu besar
+ 730 - 700
src/views/ow/owPut/detailsPage.vue


+ 67 - 48
src/views/ow/owTask/detailsPage.vue

@@ -277,8 +277,8 @@
               </template>
               <template slot="curCodeForm" slot-scope="{ row }">
                 <dic-select v-if="row.$cellEdit" v-model="row.curCode" placeholder="币别" label="code"
-                  :url="'/blade-los/bcurrency/getExrate?date=' + form.effectiveDate + '&dc=D'" :filterable="true"
-                  @selectChange="rowDicChange('curCode', $event, row)"></dic-select>
+                  :url="'/blade-los/bcurrency/obtainRate?deptId=' + deptId + '&date=1' + form.effectiveDate + '&type=1'"
+                  :filterable="true" @selectChange="rowDicChange('curCodeD', $event, row)"></dic-select>
                 <span v-else>{{ row.curCode }}</span>
               </template>
               <template slot="exrateForm" slot-scope="{ row }">
@@ -370,8 +370,8 @@
               </template>
               <template slot="curCodeForm" slot-scope="{ row }">
                 <dic-select v-if="row.$cellEdit" v-model="row.curCode" placeholder="币别" label="code"
-                  :url="'/blade-los/bcurrency/getExrate?date=' + form.effectiveDate + '&dc=C'" :filterable="true"
-                  @selectChange="rowDicChange('curCode', $event, row)"></dic-select>
+                  :url="'/blade-los/bcurrency/obtainRate?deptId=' + deptId + '&date=1' + form.effectiveDate + '&type=1'"
+                  :filterable="true" @selectChange="rowDicChange('curCodeC', $event, row)"></dic-select>
                 <span v-else>{{ row.curCode }}</span>
               </template>
               <template slot="exrateForm" slot-scope="{ row }">
@@ -534,21 +534,26 @@
         :header-cell-class-name="headerClassName" :row-style="{ height: '20px', padding: '0px' }"
         :cell-style="{ height: '20px', padding: '0px' }">
         <template slot="indexHeader" slot-scope="{row,index}">
-          <el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled" circle @click="rtAddRow()">
+          <el-button type="primary" size="mini" icon="el-icon-plus"
+            :disabled="editDisabled || feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0" circle
+            @click="rtAddRow()">
           </el-button>
         </template>
         <template slot="index" slot-scope="{row,index}">
           <span>{{ index + 1 }}</span>
         </template>
         <template slot="menu" slot-scope="{ row, index }">
-          <el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row, index)">{{ row.$cellEdit ? '保存' :
-            '编辑'
-          }}</el-button>
-          <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)">删除</el-button>
+          <el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row, index)"
+            :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">{{ row.$cellEdit ? '保存' :
+              '编辑'
+            }}</el-button>
+          <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
+            :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">删除</el-button>
         </template>
       </avue-crud>
       <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="rtSubmit" size="mini">保 存</el-button>
+        <el-button type="primary" @click="rtSubmit" size="mini"
+          :disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">保 存</el-button>
       </span>
     </el-dialog>
   </div>
@@ -1277,6 +1282,15 @@ export default {
             width: 120
           },
           {
+            label: 'POL空箱提箱进场日期',
+            prop: 'polPickUpDate',
+            overHidden: true,
+            type: "date",
+            format: "yyyy-MM-dd",
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
+            width: 130
+          },
+          {
             label: 'POD场站',
             prop: "podStationCname",
             cell: true,
@@ -1537,7 +1551,7 @@ export default {
             ]
           },
           {
-            label: "CNY",
+            label: "本币",
             prop: "amountCNY",
             width: "100",
             overHidden: true,
@@ -1769,7 +1783,7 @@ export default {
             ]
           },
           {
-            label: "CNY",
+            label: "本币",
             prop: "amountCNY",
             width: "100",
             overHidden: true,
@@ -1845,19 +1859,19 @@ export default {
             prop: 'corpCnName',
             overHidden: true,
           }, {
-            label: 'RMB应收',
+            label: '本币应收',
             prop: 'rmbD',
             overHidden: true,
           }, {
-            label: 'RMB应付',
+            label: '本币应付',
             prop: 'rmbC',
             overHidden: true,
           }, {
-            label: 'USD应收',
+            label: '外币应收',
             prop: 'usdD',
             overHidden: true,
           }, {
-            label: 'USD应付',
+            label: '外币应付',
             prop: 'usdC',
             overHidden: true,
           }, {
@@ -1940,6 +1954,7 @@ export default {
       updateSearchKey: new Date().getTime(),
       updateFormKey: new Date().getTime(),
       updateStationKey: new Date().getTime(),
+      deptId: JSON.parse(localStorage.getItem('sysitemData')).deptId
     }
   },
   components: {
@@ -1968,6 +1983,8 @@ export default {
     if (this.detailData.copyId) {
       this.getCopydate(this.detailData.copyId)
     }
+    this.saveLocalCurrency(this.deptId)
+
   },
   methods: {
     openRtDialog() {
@@ -1997,21 +2014,21 @@ export default {
         let sumC = 0
         sumArr.forEach(item => {
           if (e == item.shortName) {
-            if (item.curCode == 'CNY' && item.dc == 'D') {
-              rmbD += Number(item.amount)
-              sumD += Number(item.amount)
+            if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
+              rmbD += Number(item.amount?item.amount:0)
+              sumD += Number(item.amount?item.amount:0)
             }
-            if (item.curCode == 'CNY' && item.dc == 'C') {
-              rmbC += Number(item.amount)
-              sumC += Number(item.amount)
+            if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
+              rmbC += Number(item.amount?item.amount:0)
+              sumC += Number(item.amount?item.amount:0)
             }
-            if (item.curCode == 'USD' && item.dc == 'D') {
-              usdD += Number(item.amountLoc)
-              sumD += Number(item.amountLoc) * Number(item.exrate)
+            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 == 'USD' && item.dc == 'C') {
-              usdC += Number(item.amountLoc)
-              sumC += Number(item.amountLoc) * Number(item.exrate)
+            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)
             }
           }
         })
@@ -2027,7 +2044,7 @@ export default {
       })
     },
     countChange(row) {
-      if (row.curCode == 'CNY') {
+      if (row.curCode == this.getLocalCurrency()) {
         row.amountCNY = _.round(_.multiply(row.price, row.quantity), 2)
         row.amountUSD = 0
       } else {
@@ -2263,16 +2280,16 @@ export default {
           el.podStationCname = null
         }
       }
-      if (name == 'curCode') {
+      if (name == 'curCodeD') {
         if (row) {
-          bcurrencyGetExrate({ date: this.form.purchaseDate, dc: 'C' }).then(res => {
-            res.data.data.forEach(e => {
-              if (el.curCode == e.code) {
-                this.$set(el, 'exrate', e.exrate)
-                this.countChange(el)
-              }
-            })
-          })
+          el.exrate = row.exrateReceivable
+        } else {
+          el.exrate = null
+        }
+      }
+      if (name == 'curCodeC') {
+        if (row) {
+          el.exrate = row.exratePayable
         } else {
           el.exrate = null
         }
@@ -2363,10 +2380,11 @@ export default {
         loading.close();
       })
     },
-    feedAddRow() {
+    async feedAddRow() {
       if (!this.form.id) {
         return this.$message.error("请保存数据");
       }
+      await this.checkRate(null, this.form.effectiveDate, null, 1, this.deptId)
       this.feeCenterListD.push({
         pid: this.form.id,
         feesType: 1,
@@ -2375,15 +2393,16 @@ export default {
         corpId: this.form.purchaseCompanyId,
         shortName: this.form.purchaseCompanyName,
         corpCnName: this.form.purchaseCompanyName,
-        curCode: 'CNY',
-        exrate: 1,
+        curCode: this.getLocalCurrency(),
+        exrate: this.getExchangeRate(this.getLocalCurrency(), 'D', 1),
         $cellEdit: true
       })
     },
-    feecAddRow() {
+    async feecAddRow() {
       if (!this.form.id) {
         return this.$message.error("请保存数据");
       }
+      await this.checkRate(null, this.form.effectiveDate, null, 1, this.deptId)
       this.feeCenterListC.push({
         pid: this.form.id,
         feesType: 1,
@@ -2392,8 +2411,8 @@ export default {
         corpId: this.form.purchaseCompanyId,
         shortName: this.form.purchaseCompanyName,
         corpCnName: this.form.purchaseCompanyName,
-        curCode: 'CNY',
-        exrate: 1,
+        curCode: this.getLocalCurrency(),
+        exrate: this.getExchangeRate(this.getLocalCurrency(), 'C', 1),
         $cellEdit: true
       })
     },
@@ -2433,11 +2452,11 @@ export default {
       });
       detail({ id: id }).then(res => {
         res.data.data.feeCenterList.forEach(row => {
-          if (row.curCode == 'CNY') {
+          if (row.curCode == this.getLocalCurrency()) {
             row.amountCNY = row.amount
             row.amountUSD = 0
           }
-          if (row.curCode == 'USD') {
+          if (row.curCode != this.getLocalCurrency()) {
             row.amountUSD = row.amount
             row.amountCNY = 0
           }
@@ -2932,14 +2951,14 @@ export default {
             }
           }
           for (let row of this.feeCenterListD) {
-            row.amount = row.curCode == 'CNY' ? row.amountCNY : row.amountUSD
+            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("请完善应收费用明细");
             }
           }
           for (let row of this.feeCenterListC) {
-            row.amount = row.curCode == 'CNY' ? row.amountCNY : row.amountUSD
+            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.crud3.rowCell(row, row.$index)
               return this.$message.error("请完善应付费用明细");

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini