Browse Source

修改bug

Qukatie 1 year ago
parent
commit
324f9cd153

+ 16 - 0
src/api/tradeAgency/tradeAgency.js

@@ -149,4 +149,20 @@ export const balancePayment = (data) => {
         method: 'post',
         data: data
     })
+}
+//生成申请付款/收款-列表
+export const applyForPaymentList = (data) => {
+    return request({
+        url: '/api/blade-los/agent/applyForPaymentList',
+        method: 'get',
+        params: data
+    })
+}
+//生成申请付款/收款
+export const generate = (data) => {
+    return request({
+        url: '/api/blade-los/agent/generate',
+        method: 'post',
+        data: data
+    })
 }

+ 16 - 8
src/views/landTransportation/placeAnOrder/detailPage.vue

@@ -152,8 +152,8 @@
     </trade-card>
     <trade-card title="箱信息" v-if="goodsForm.status === 0 || !goodsForm.status">
       <avue-crud :data="entrustList" :option="entrustOptionTwo"
-        @row-save="(row, done, loading) => { rowSave(row, 0, done, loading) }" @row-update="rowSave" ref="crudBox" v-if="KeyBox > 0"
-        @resetColumn="resetColumnBox" @saveColumn="saveColumnBox" @row-del="rowDel">
+        @row-save="(row, done, loading) => { rowSave(row, 0, done, loading) }" @row-update="rowSave" ref="crudBox"
+        v-if="KeyBox > 0" @resetColumn="resetColumnBox" @saveColumn="saveColumnBox" @row-del="rowDel">
         <template slot="headerSerial" slot-scope="{column}">
           <el-tooltip class="item" effect="dark" content="录入明细" placement="top">
             <el-button type="primary" icon="el-icon-circle-plus-outline" circle size="mini"
@@ -189,8 +189,8 @@
       </avue-crud>
     </trade-card>
     <trade-card title="起止地信息">
-      <el-table ref="singleTable" :data="tableData" size="mini" :header-cell-style="{ color: '#000', background: '#fafafa' }"
-        style="width: 100%">
+      <el-table ref="singleTable" :data="tableData" size="mini"
+        :header-cell-style="{ color: '#000', background: '#fafafa' }" style="width: 100%">
         <el-table-column align="center" v-if="goodsForm.status === 0" width="40">
           <template slot-scope="scope">
             <el-tooltip className="item" v-if="scope.$index === tableData.length - 1" effect="dark" content="增加途径地址"
@@ -445,7 +445,7 @@ export default {
     entrustOptionTwo: {
       handler(newValue, oldValue) {
         if (this.roleName == "平台,调度派单") {
-           this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
+          this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
           this.findObject(this.entrustOptionTwo.column, "landAmountD").showColumn = false
         }
       }
@@ -1531,7 +1531,7 @@ export default {
       this.initData();
     }
     // console.log(this.roleName)
-    if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1||this.roleName.indexOf('调度派单') !== -1 ) {
+    if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1 || this.roleName.indexOf('调度派单') !== -1) {
       this.findObject(this.entrustOptionTwoT.column, "landAmountD").hide = true
       this.findObject(this.entrustOptionTwoT.column, "landAmountD").showColumn = false
       this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
@@ -1654,12 +1654,16 @@ export default {
     },
     //自定义列重置
     async resetColumnBox() {
+      if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1 || this.roleName.indexOf('调度派单') !== -1) {
+        this.findObject(this.entrustOptionTwoTBackup.column, "landAmountD").hide = true
+        this.findObject(this.entrustOptionTwoTBackup.column, "landAmountD").showColumn = false
+      }
       this.entrustOptionTwo = this.entrustOptionTwoBackup;
       const inSave = await this.delColumnData(this.getColumnName(85.1), this.entrustOptionTwoBackup);
       if (inSave) {
         this.$message.success("重置成功");
         this.$refs.crudBox.$refs.dialogColumn.columnBox = false;
-        if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1||this.roleName.indexOf('调度派单') !== -1) {
+        if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1 || this.roleName.indexOf('调度派单') !== -1) {
           this.findObject(this.entrustOptionTwoT.column, "landAmountD").hide = true
           this.findObject(this.entrustOptionTwoT.column, "landAmountD").showColumn = false
           this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
@@ -1683,12 +1687,16 @@ export default {
     },
     //自定义列重置
     async resetColumnBoxTwo() {
+      if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1 || this.roleName.indexOf('调度派单') !== -1) {
+        this.findObject(this.entrustOptionTwoTBackup.column, "landAmountD").hide = true
+        this.findObject(this.entrustOptionTwoTBackup.column, "landAmountD").showColumn = false
+      }
       this.entrustOptionTwoT = this.entrustOptionTwoTBackup;
       const inSave = await this.delColumnData(this.getColumnName(85.2), this.entrustOptionTwoTBackup);
       if (inSave) {
         this.$message.success("重置成功");
         this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
-        if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1||this.roleName.indexOf('调度派单') !== -1) {
+        if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1 || this.roleName.indexOf('调度派单') !== -1) {
           this.findObject(this.entrustOptionTwoT.column, "landAmountD").hide = true
           this.findObject(this.entrustOptionTwoT.column, "landAmountD").showColumn = false
           this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true

+ 2 - 0
src/views/tirePartsMall/financialManagement/paymentSettlement/index.vue

@@ -100,6 +100,8 @@ export default {
             searchOrder:1,
           search: true,
           type: "select",
+          filterable: true,
+          remote: true,
           props: {
             label: 'cname',
             value: 'id'

+ 114 - 39
src/views/tradeAgency/tradeAgency/detailsPage.vue

@@ -115,7 +115,8 @@
             </trade-card>
             <trade-card title="货物明细">
                 <avue-crud :option="option" :data="form.agentItemsList" id="out-table" ref="crud"
-                    @selection-change="selectionChange" @resetColumn="resetColumn('crud', 'option', 'optionBack', 376)"
+                    @selection-change="selectionChange" @select="selectHandle"
+                    @resetColumn="resetColumn('crud', 'option', 'optionBack', 376)"
                     @saveColumn="saveColumn('crud', 'option', 'optionBack', 376)">
                     <template slot="menuLeft">
                         <el-button type="primary" size="small" icon="el-icon-plus" :disabled="editDisabled"
@@ -163,6 +164,12 @@
                         <!-- <el-input v-if="row.$cellEdit" v-model="row.billNo" placeholder="请输入 提单号"></el-input> -->
                         <span v-if="!row.$cellEdit" style="color: #1e9fff" @click="rowJump(row)">{{ row.billNo }}</span>
                     </template>
+                    <template slot="boxType" slot-scope="{ row }">
+                        <dic-select v-if="row.$cellEdit" v-model="row.boxType" placeholder="箱型" key="id" res="records"
+                            label="cnName" url="/blade-los/bcntrtypes/list" :filterable="true" :remote="true"
+                            dataName="cnName"></dic-select>
+                        <span v-else>{{ row.boxType }}</span>
+                    </template>
                     <tempalte slot="orderReleaseMethod" slot-scope="{ row }">
                         <dic-select v-if="row.$cellEdit" v-model="row.orderReleaseMethod" placeholder="放单方式" key="dictKey"
                             label="dictValue" url="/blade-system/dict-biz/dictionary?code=release_method"
@@ -231,14 +238,19 @@
             <check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun"></check-schedule>
         </el-dialog>
         <el-dialog append-to-body title="尾款账单" class="el-dialogDeep" :visible.sync="wkDialog" width="50%" top="30vh"
-            :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
+            :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" @closed="wkClosed"
+            v-dialog-drag>
             <avue-form v-model="wkForm" :option="wkOption"></avue-form>
-            <avue-crud :data="wkData" :option="wkOptionList"></avue-crud>
+            <avue-crud :data="wkForm.agentItemsRList" :option="wkOptionList">
+                <tempalte slot="thisSettlementAmount" slot-scope="{ row }">
+                    <el-input-number v-if="row.$cellEdit" v-model="row.thisSettlementAmount" @change="wkChange(row)"
+                        :controls="false" placeholder="请输入 本次金额" size="small" style="width: 100%;"></el-input-number>
+                </tempalte>
+            </avue-crud>
             <span slot="footer" class="dialog-footer">
                 <el-button size="mini" @click="wkDialog = false">取 消</el-button>
-                <el-button size="mini" type="primary" @click="wkDialog = false">提 交</el-button>
+                <el-button size="mini" type="primary" @click="wkSubmit">提 交</el-button>
             </span>
-
         </el-dialog>
     </div>
 </template>
@@ -257,8 +269,9 @@ export default {
 
     data() {
         return {
-            wkData: [],
-            wkForm: {},
+            wkForm: {
+                agentItemsRList: []
+            },
             wkOption: {
                 menuBtn: false,
                 span: 8,
@@ -266,22 +279,22 @@ export default {
                 column: [
                     {
                         label: '总货值',
-                        prop: '',
+                        prop: 'goodsValue',
                         disabled: true,
                     },
                     {
                         label: '预付金额',
-                        prop: '',
+                        prop: 'prepaidAmount',
                         disabled: true,
                     },
                     {
                         label: '应收金额',
-                        prop: '',
+                        prop: 'amountD',
                         disabled: true,
                     },
                     {
                         label: '汇率',
-                        prop: ''
+                        prop: 'exchangeRate'
                     }
                 ]
             },
@@ -294,7 +307,7 @@ export default {
                 column: [
                     {
                         label: '提单号',
-                        prop: 'invoiceHeader',
+                        prop: 'billNo',
                         overHidden: true
                     },
                     {
@@ -304,10 +317,7 @@ export default {
                     },
                     {
                         label: '本次金额',
-                        prop: 'taxRate',
-                        cell: true,
-                        type: 'number',
-                        controls: false
+                        prop: 'thisSettlementAmount',
                     }
                 ]
             },
@@ -946,13 +956,23 @@ export default {
         countChange(row) {
             row.amount = _.multiply(Number(row.quantity ? row.quantity : 0), Number(row.price ? row.price : 0))
         },
+        wkChange(row) {
+            let sum = 0
+            this.wkForm.agentItemsRList.forEach(e => {
+                sum = _.add(sum, e.thisSettlementAmount)
+            })
+            if (sum > this.wkForm.unresolvedAmount) {
+                setTimeout(() => {
+                    row.thisSettlementAmount = 0
+                    this.$message.error("本次金额总数不能超过未结算金额");
+                }, 200);
+            }
+        },
         addRow() {
             if (!this.form.corpId) {
                 return this.$message.error("请选择客户名称");
             }
             this.form.agentItemsList.push({ $cellEdit: true })
-            // this.$refs.crud.rowAdd()
-
         },
         rowCell(row, index) {
             if (row.$cellEdit == true) {
@@ -979,7 +999,37 @@ export default {
             });
         },
         selectionChange(list) {
-            this.selectionList = list
+            this.selectionList = list;
+        },
+        selectHandle(selection, row) {
+            // 取消其中一个选中的时候 默认取消同单号的选中
+            if (!selection.includes(row)) {
+                this.pickUp(false,row.billNo);
+            } else {
+                this.pickUp(true,row.billNo);
+            }
+        },
+        // 需要默认勾选/取消的数据
+        pickUp(bool,billNo) {
+            let arr = [];
+            this.form.agentItemsList.forEach(e=>{
+                if(billNo==e.billNo){
+                    arr.push(e)
+                }
+            })
+            this.toggleSelection(arr, bool);
+        },
+        // 默认选择/取消中的行
+        toggleSelection(rows, bool) {
+            if (rows) {
+                this.$nextTick(() => {
+                    rows.forEach(row => {
+                        this.$refs.crud.toggleRowSelection(row, bool);
+                    });
+                });
+            } else {
+                this.$refs.crud.clearSelection();
+            }
         },
         getDetails(id) {
             const loading = this.$loading({
@@ -1054,34 +1104,49 @@ export default {
                 })
             }
             if (name == '尾款账单') {
+
                 if (!this.form.domesticConsigneeCname) return this.$message.error("请选择国内收货人");
-                this.wkDialog = true
+
+                for (let index in this.selectionList) {
+                    if (this.selectionList[index].whetherBalancePayment == 1) {
+                        return this.$message.error("第" + Number(this.selectionList[index].$index + 1) + "行已生成尾款");
+                    }
+                    // if (this.selectionList.filter(row => this.selectionList[index].billNo == row.billNo).length != this.form.agentItemsList.filter(row => this.selectionList[index].billNo == row.billNo).length) {
+                    //     this.$confirm("是否收取所选择相同提单号所有明细尾款?", {
+                    //         confirmButtonText: "确定",
+                    //         cancelButtonText: "取消",
+                    //         type: "warning"
+                    //     }).then(() => {
+                    //         console.log(index)
+                    //         this.form.agentItemsList.forEach(row=>{
+                    //             if(row.billNo==this.selectionList[index].billNo){
+                    //                 this.$refs.crud.toggleRowSelection(row, true);
+                    //             }
+                    //         }) 
+                    //     });
+                    // }
+                }
                 let obj = {}
                 obj = {
                     ...this.form,
                     agentItemsList: this.selectionList
                 }
                 balancePayment(obj).then(res => {
-                    // res.data.data.forEach(e => {
-                    // if (this.form.currency == e.code) {
-                    //     this.$prompt('请输入汇率', '尾款账单', {
-                    //         confirmButtonText: '确定',
-                    //         cancelButtonText: '取消',
-                    //         inputValue: e.exrate
-                    //     }).then(({ value }) => {
-                    //         let obj = {}
-                    //         obj = {
-                    //             ...this.form,
-                    //             exchangeRate: value
-                    //         }
-                    //         generateBalancePaymentBill(obj).then(res => {
-                    //             this.$message.success("成功生成首款账单");
-                    //             this.getDetails(this.form.id)
-                    //         })
-                    //     })
-                    // }
-                    // })
+                    this.wkForm = res.data.data
+                    this.wkForm.amountD = _.subtract(res.data.data.goodsValue, res.data.data.prepaidAmount)
+                    res.data.data.agentItemsRList.forEach(e => {
+                        e.$cellEdit = true
+                    })
+                    this.wkForm.agentItemsRList = res.data.data.agentItemsRList
+                    bcurrencyGetExrate({ date: this.form.contractDate, dc: 'D' }).then(res => {
+                        res.data.data.forEach(e => {
+                            if (this.form.currency == e.code) {
+                                this.wkForm.exchangeRate = e.exrate
+                            }
+                        })
+                    })
                 })
+                this.wkDialog = true
             }
             if (name == '生成首款应付') {
                 if (this.form.applyForPayment == 1) return this.$message.error("请勿重复生成");
@@ -1232,6 +1297,16 @@ export default {
                 }
             });
         },
+        wkSubmit() {
+            generateBalancePaymentBill(this.wkForm).then(res => {
+                this.$message.success("成功生成尾款账单");
+                this.getDetails(this.form.id)
+                this.wkDialog = false
+            })
+        },
+        wkClosed() {
+            this.wkForm = this.$options.data().wkForm
+        },
         application() {
             if (this.form.downPayment != 1) return this.$message.error("未申请首款账单");
             if (this.form.balancePayment != 1) return this.$message.error("未申请尾款账单");

+ 159 - 2
src/views/tradeAgency/tradeAgency/index.vue

@@ -17,10 +17,17 @@
                 <template slot="menuLeft">
                     <el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">新 增
                     </el-button>
+                    <el-button type="success" size="small" :disabled="selectionList.length == 0"
+                        @click="allClick('生成申请付款')">生成申请付款
+                    </el-button>
+                    <el-button type="info" size="small" :disabled="selectionList.length == 0"
+                        @click="allClick('生成申请收款')">生成申请收款
+                    </el-button>
                 </template>
                 <template slot="menu" slot-scope="{ row, index }">
                     <el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row)">编辑</el-button>
-                    <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)" :disabled="row.orderStatus!='录入'">删 除</el-button>
+                    <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
+                        :disabled="row.orderStatus != '录入'">删 除</el-button>
                 </template>
                 <template slot="contractNo" slot-scope="{ row }">
                     <span style="color: #1e9fff" @click="rowEdit(row)">{{ row.contractNo }}</span>
@@ -28,17 +35,77 @@
             </avue-crud>
         </basic-container>
         <detailsPage v-if="!isShow" :detailData="detailData" @goBack="goBack"></detailsPage>
+        <el-dialog append-to-body title="申请费用" class="el-dialogDeep" :visible.sync="applyDialog" width="50%" top="30vh"
+            :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" @closed="applyClosed"
+            v-dialog-drag>
+            <avue-crud ref="applyCrud" :data="applyData" :option="applyOptionList" @selection-change="applySelectionChange"
+                @select="applySelectHandle">
+                <tempalte slot="thisSettlementAmount" slot-scope="{ row }">
+                    <el-input-number v-if="row.$cellEdit" v-model="row.thisSettlementAmount" @change="applyChange(row)"
+                        :controls="false" placeholder="请输入 本次金额" size="small" style="width: 100%;"></el-input-number>
+                </tempalte>
+            </avue-crud>
+            <span slot="footer" class="dialog-footer">
+                <el-button size="mini" @click="applyDialog = false">取 消</el-button>
+                <el-button size="mini" :disabled="applySelectList.length == 0" type="primary" @click="applySubmit">提
+                    交</el-button>
+            </span>
+        </el-dialog>
     </div>
 </template>
   
 <script>
-import { getList, remove, copyAgent } from "@/api/tradeAgency/tradeAgency";
+import { getList, remove, copyAgent, applyForPaymentList, generate } from "@/api/tradeAgency/tradeAgency";
 import detailsPage from "./detailsPage";
 
 export default {
     data() {
         return {
+            applyDialog: false,
+            applyData: [],
+            applySelectList: [],
             detailData: {},
+            applyOptionList: {
+                header: false,
+                tip: false,
+                border: true,
+                index: true,
+                menu: false,
+                selection: true,
+                align: 'center',
+                column: [
+                    {
+                        label: "往来单位",
+                        prop: "corpCnName",
+                        overHidden: true,
+                    },
+                    {
+                        label: "费用名称",
+                        prop: "feeCnName",
+                        overHidden: true,
+                    },
+                    {
+                        label: "收费标准",
+                        prop: "unitNo",
+                        overHidden: true,
+                    },
+                    {
+                        label: "单价",
+                        prop: "price",
+                        overHidden: true,
+                    },
+                    {
+                        label: "数量",
+                        prop: "quantity",
+                        overHidden: true,
+                    },
+                    {
+                        label: "金额",
+                        prop: "amount",
+                        overHidden: true,
+                    },
+                ]
+            },
             isShow: true,
             form: {},
             query: {
@@ -401,9 +468,99 @@ export default {
                 })
             }
         },
+        applySelectionChange(list) {
+            this.applySelectList = list;
+        },
+        applySelectHandle(selection, row) {
+            if (row.feeType) {
+                // 取消其中一个选中的时候 默认取消同单号的选中
+                if (!selection.includes(row)) {
+                    this.pickUp(false, row.feeType);
+                } else {
+                    this.pickUp(true, row.feeType);
+                }
+            }
+
+        },
+        // 需要默认勾选/取消的数据
+        pickUp(bool, feeType) {
+            let arr = [];
+            this.applyData.forEach(e => {
+                if (feeType == e.feeType) {
+                    arr.push(e)
+                }
+            })
+            this.toggleSelection(arr, bool);
+        },
+        // 默认选择/取消中的行
+        toggleSelection(rows, bool) {
+            if (rows) {
+                this.$nextTick(() => {
+                    rows.forEach(row => {
+                        this.$refs.applyCrud.toggleRowSelection(row, bool);
+                    });
+                });
+            } else {
+                this.$refs.applyCrud.clearSelection();
+            }
+        },
+        applyClosed() {
+            this.applyData = []
+        },
+        applySubmit() {
+            const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+            });
+            generate(this.applySelectList).then(res => {
+                this.$message.success("生成成功");
+                this.applyDialog = false;
+                this.onLoad(this.page);
+            }).finally(() => {
+                loading.close();
+            })
+        },
         addButton() {
             this.isShow = false
         },
+        allClick(name) {
+            if (name == '生成申请付款') {
+                let ids = []
+                this.selectionList.forEach(item => {
+                    ids.push(item.id)
+                })
+                this.$confirm('是否生成申请付款?', '提示', {
+                    confirmButtonText: '确定',
+                    cancelButtonText: '取消',
+                    type: 'warning'
+                }).then(() => {
+                    applyForPaymentList({ ids: ids.join(','), dc: 'C' }).then(res => {
+                        this.applyDialog = true
+                        this.applyData = res.data.data
+                    })
+                })
+
+            }
+            if (name == '生成申请收款') {
+                let ids = []
+                this.selectionList.forEach(item => {
+                    ids.push(item.id)
+                })
+                this.$confirm('是否生成申请收款?', '提示', {
+                    confirmButtonText: '确定',
+                    cancelButtonText: '取消',
+                    type: 'warning'
+                }).then(() => {
+                    applyForPaymentList({ ids: ids.join(','), dc: 'D' }).then(res => {
+                        this.applyDialog = true
+                        this.applyData = res.data.data
+                    })
+                })
+
+            }
+        },
         rowEdit(row) {
             this.detailData = {
                 id: row.id

+ 28 - 1
src/views/wel/home/landTransportation/components/sales-trend.vue

@@ -627,6 +627,10 @@ export default {
                     this.findObject(this.option.column, "extraAmountC").showColumn = false
                     this.findObject(this.option.column, "extraAmountD").hide = true
                     this.findObject(this.option.column, "extraAmountD").showColumn = false
+                    this.findObject(this.optionTwo.column, "freightCollect").hide = true
+                    this.findObject(this.optionTwo.column, "freightCollect").showColumn = false
+                    this.findObject(this.optionTwo.column, "extraAmountD").hide = true
+                    this.findObject(this.optionTwo.column, "extraAmountD").showColumn = false
                 }
             this.reset()
         }
@@ -873,7 +877,18 @@ export default {
                         }
                     )
                 }
-
+                if (localStorage.getItem("roleName") == "平台,调度派单") {
+                    this.findObject(this.option.column, "landAmountD").hide = true
+                    this.findObject(this.option.column, "landAmountD").showColumn = false
+                    this.findObject(this.option.column, "extraAmountC").hide = true
+                    this.findObject(this.option.column, "extraAmountC").showColumn = false
+                    this.findObject(this.option.column, "extraAmountD").hide = true
+                    this.findObject(this.option.column, "extraAmountD").showColumn = false
+                    this.findObject(this.optionTwo.column, "freightCollect").hide = true
+                    this.findObject(this.optionTwo.column, "freightCollect").showColumn = false
+                    this.findObject(this.optionTwo.column, "extraAmountD").hide = true
+                    this.findObject(this.optionTwo.column, "extraAmountD").showColumn = false
+                }
                 if (this.mold == 3) {
                     this.findObject(this.option.column, "billNo").label = "业务号"
                     this.findObject(this.option.column, "ctnDetail").label = "车型车数"
@@ -901,6 +916,18 @@ export default {
             if (inSave) {
                 this.$message.success("重置成功");
                 this.$refs[ref].$refs.dialogColumn.columnBox = false;
+                if (localStorage.getItem("roleName") == "平台,调度派单") {
+                    this.findObject(this.option.column, "landAmountD").hide = true
+                    this.findObject(this.option.column, "landAmountD").showColumn = false
+                    this.findObject(this.option.column, "extraAmountC").hide = true
+                    this.findObject(this.option.column, "extraAmountC").showColumn = false
+                    this.findObject(this.option.column, "extraAmountD").hide = true
+                    this.findObject(this.option.column, "extraAmountD").showColumn = false
+                    this.findObject(this.optionTwo.column, "freightCollect").hide = true
+                    this.findObject(this.optionTwo.column, "freightCollect").showColumn = false
+                    this.findObject(this.optionTwo.column, "extraAmountD").hide = true
+                    this.findObject(this.optionTwo.column, "extraAmountD").showColumn = false
+                }
                 this.reset()
             }
         },