Browse Source

注释 用不上的js代码

Qukatie 9 tháng trước cách đây
mục cha
commit
a0c8f4a0ce

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

@@ -143,6 +143,7 @@ export default {
                         prop: "cntrTypeCode",
                         formslot: true,
                         cell: true,
+                        width: '120',
                         rules: [{
                             required: true,
                             message: "请选择箱型",
@@ -156,6 +157,7 @@ export default {
                         cell: true,
                         controls: false,
                         precision: 0,
+                        width: '120',
                         rules: [{
                             required: true,
                             message: "请输入箱量",

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

@@ -189,7 +189,7 @@
                             label="shortName" res="records"
                             url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船代" :filterable="true"
                             :remote="true" dataName="shortName" @selectChange="dicChange('shippingAgencyCname', $event)"
-                            :slotRight="true" rightLabel="code" :disabled="editDisabled"></dic-select>
+                            :slotRight="true" rightLabel="code" :disabled="detailData.seeDisabled"></dic-select>
                     </el-form-item>
                 </el-col>
                 <el-col :span="6">
@@ -333,7 +333,7 @@
                         </span>
                         <el-col :span="12">
                             <dic-select v-model="assemblyForm.cabinType" placeholder="舱位类型" key="id" label="dictValue"
-                                url="/blade-system/dict-biz/dictionary?code=cabinType" :disabled="editDisabled"
+                                url="/blade-system/dict-biz/dictionary?code=cabinType" :disabled="detailData.seeDisabled"
                                 @selectChange="dicChange('cabinType', $event)"></dic-select>
                         </el-col>
                         <el-col :span="11" :offset="1">

+ 261 - 275
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -101,7 +101,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"-->
@@ -227,8 +227,9 @@
                         <basic-container :showBtn="true">
                             <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
                                 <el-tab-pane label="委托详情" name="first">
-                                    <entrustment-lnformation :assemblyForm="form" :saberUserInfo="saberUserInfo" :detailData="detailData"
-                                        :disabled="showLock" :generateBillsfalse="generateBillsfalse"
+                                    <entrustment-lnformation :assemblyForm="form" :saberUserInfo="saberUserInfo"
+                                        :detailData="detailData" :disabled="showLock"
+                                        :generateBillsfalse="generateBillsfalse"
                                         @billsDetailfun="billsDetailfun(form.id)">
                                     </entrustment-lnformation>
                                 </el-tab-pane>
@@ -415,7 +416,7 @@ export default {
                 feeCenterListC: [], // 付
                 preContainersList: [], // 箱
                 feeCenterAmendList: [],
-                containerNumberItemList:[],
+                containerNumberItemList: [],
                 placeReceiptName: '',
                 placeReceiptNamePrint: '',
                 polEnName: '',
@@ -456,7 +457,7 @@ export default {
                 feeCenterListC: [], // 付
                 preContainersList: [], // 箱
                 feeCenterAmendList: [],
-                containerNumberItemList:[],
+                containerNumberItemList: [],
                 placeReceiptName: '',
                 placeReceiptNamePrint: '',
                 polEnName: '',
@@ -503,31 +504,12 @@ export default {
                         prop: "bookingNo",
                         disabled: false,
                     },
-                    [
-                        {
-                            label: "MB/L NO",
-                            text: "请输入MB/L NO",
-                            prop: "mblno",
-                            span: 18,
-                            disabled: false,
-
-                        },
-                        {
-                            label: "",  // MB/L 付款方式 PP=预付, CC=到付, FPA, Other
-                            text: "请选择付款方式",
-                            prop: "mpaymode",
-                            type: 'select',
-                            labelWidth: '30px',
-                            disabled: false,
-                            span: 6,
-                            dicData: [],
-                            forParameter: {
-                                key: 'dictKey',
-                                label: 'dictValue',
-                                value: 'dictKey',
-                            },
-                        },
-                    ],
+                    {
+                        label: "MB/L NO",
+                        text: "请输入MB/L NO",
+                        prop: "mblno",
+                        disabled: false,
+                    },
                     // [
                     //     {
                     //         label: "OP",  // 操作id 用户管理下拉 模糊搜索
@@ -1099,26 +1081,26 @@ export default {
         },
         // 获取用户管理数据
         userGetListfun(account = undefined, type = false,) {
-            userGetList(1, 10, { account }, this.saberUserInfo.dept_pid.split(',')[0]).then(res => {
-                this.columnforfun('operatorName').dicData = res.data.data.records
-                if (type) {
-                    // 核算部门 默认登录人的部门
-                    for (let item of this.columnforfun('operatorName').dicData) {
-                        if (item.name == this.form.operatorName) {
-                            this.$set(this.form, 'accDeptName', item.deptName)
-                            this.$set(this.form, 'accDept', item.deptId)
-                            this.$set(this.form, 'operatorDept', item.deptId.split(',').pop())
-                            this.$set(this.form, 'operatorDeptName', item.deptId)
-                        }
-                    }
-                }
+            // userGetList(1, 10, { account }, this.saberUserInfo.dept_pid.split(',')[0]).then(res => {
+            //     this.columnforfun('operatorName').dicData = res.data.data.records
+            //     if (type) {
+            //         // 核算部门 默认登录人的部门
+            //         for (let item of this.columnforfun('operatorName').dicData) {
+            //             if (item.name == this.form.operatorName) {
+            //                 this.$set(this.form, 'accDeptName', item.deptName)
+            //                 this.$set(this.form, 'accDept', item.deptId)
+            //                 this.$set(this.form, 'operatorDept', item.deptId.split(',').pop())
+            //                 this.$set(this.form, 'operatorDeptName', item.deptId)
+            //             }
+            //         }
+            //     }
 
-            })
+            // })
         },
         // 获取所属岗位数据
         postSelectByUserfun() {
             postSelectByUser(JSON.parse(localStorage.getItem("saber-userInfo")).content.user_id).then(res => {
-                this.columnforfun('teamName').dicData = res.data.data
+                // this.columnforfun('teamName').dicData = res.data.data
                 // 判断是否有值,没有的话默认第一个
                 if (!this.form.teamName) {
                     this.$set(this.form, 'teamId', res.data.data[0].id)
@@ -1128,16 +1110,16 @@ export default {
         },
         // 获取付款方式字典数据
         mpaymodeWorkDictsfun() {
-            getWorkDicts('payment_method_los').then((res) => {
-                this.columnforfun('mpaymode').dicData = res.data.data
-                this.columnforfun('hpaymode').dicData = res.data.data
-            })
+            // getWorkDicts('payment_method_los').then((res) => {
+            //     this.columnforfun('mpaymode').dicData = res.data.data
+            //     this.columnforfun('hpaymode').dicData = res.data.data
+            // })
         },
         // 获取核算部分数据 // 机构管理接口
         getLazylistfun() {
-            getDeptTree().then(res => {
-                this.columnforfun('accDeptName').dicData = res.data.data
-            })
+            // getDeptTree().then(res => {
+            //     this.columnforfun('accDeptName').dicData = res.data.data
+            // })
         },
         // 获取客户名称数据 往来单位数据
         getBcorpsListfun(cnName) {
@@ -1147,66 +1129,66 @@ export default {
         },
         // 获取客户联系人 客户OP
         getBcorpsattnListfun(cname) {
-            getBcorpsattnList(1, 10, { pid: this.form.corpId, cname }).then(res => {
-                this.columnforfun('corpAttnName').dicData = res.data.data.records
-                // if (res.data.data.records.length == 0) {
-                //     this.form.corpAttnName = ''
-                //     this.form.corpAttnId = ''
-                //     this.$set(this.form, 'corpAttnTel', '')
-                //     this.$set(this.form, 'corpAttnEmail', '')
-                //     return
-                // }
-                // this.form.corpAttnName = res.data.data.records[0].cname
-                // this.form.corpAttnId = res.data.data.records[0].id
-                // this.$set(this.form, 'corpAttnTel', res.data.data.records[0].tel)
-                // this.$set(this.form, 'corpAttnEmail', res.data.data.records[0].email)
-            })
+            // getBcorpsattnList(1, 10, { pid: this.form.corpId, cname }).then(res => {
+            //     this.columnforfun('corpAttnName').dicData = res.data.data.records
+            //     // if (res.data.data.records.length == 0) {
+            //     //     this.form.corpAttnName = ''
+            //     //     this.form.corpAttnId = ''
+            //     //     this.$set(this.form, 'corpAttnTel', '')
+            //     //     this.$set(this.form, 'corpAttnEmail', '')
+            //     //     return
+            //     // }
+            //     // this.form.corpAttnName = res.data.data.records[0].cname
+            //     // this.form.corpAttnId = res.data.data.records[0].id
+            //     // this.$set(this.form, 'corpAttnTel', res.data.data.records[0].tel)
+            //     // this.$set(this.form, 'corpAttnEmail', res.data.data.records[0].email)
+            // })
         },
         // 获取地点信息
         getBlocationsListfun(cnName) {
-            getBlocationsList(1, 10, { cnName }).then(res => {
-                this.columnforfun('mPayplace').dicData = res.data.data.records
-            })
+            // getBlocationsList(1, 10, { cnName }).then(res => {
+            //     this.columnforfun('mPayplace').dicData = res.data.data.records
+            // })
         },
         // 获取业务来源数据
         srcTypeWorkDictsfun() {
-            getWorkDicts('src_type_los').then(res => {
-                this.columnforfun('srcType').dicData = res.data.data
-            })
+            // getWorkDicts('src_type_los').then(res => {
+            //     this.columnforfun('srcType').dicData = res.data.data
+            // })
         },
         // 获取业务来源代理数据
         agentBcorpsListfun(cnName) {
-            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-            getBcorpslistByType(1, 20, { cnName, status: 0, corpTypeName }).then(res => {
-                this.columnforfun('srcCnName').dicData = res.data.data.records
-            })
+            // let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            // getBcorpslistByType(1, 20, { cnName, status: 0, corpTypeName }).then(res => {
+            //     this.columnforfun('srcCnName').dicData = res.data.data.records
+            // })
         },
         // 获取业务来源业务员数据
         salesUserGetListfun(account) {
-            if (this.$store.getters.userInfo.tenant_id === "263057") {
-                userGetList(1, 10, { roleId: '业务员' }).then(res => {
-                    this.columnforfun('srcCnName').dicData = res.data.data.records
-                })
-            } else {
-                selectListLos('业务员', account).then(res => {
-                    this.columnforfun('srcCnName').dicData = res.data.data
-                })
-            }
+            // if (this.$store.getters.userInfo.tenant_id === "263057") {
+            //     userGetList(1, 10, { roleId: '业务员' }).then(res => {
+            //         this.columnforfun('srcCnName').dicData = res.data.data.records
+            //     })
+            // } else {
+            //     selectListLos('业务员', account).then(res => {
+            //         this.columnforfun('srcCnName').dicData = res.data.data
+            //     })
+            // }
 
         },
         // 获取公司名称 用户管理左侧
         ownDeptLazyTreefun() {
-            getDeptLazyTree(0).then(res => {
-                this.columnforfun('srcCnName').dicData = res.data.data
-                // 来源 内容 默认登录人所属公司
-                for (let item of this.columnforfun('srcCnName').dicData) {
-                    if (item.id == JSON.parse(localStorage.getItem('saber-userInfo')).content.dept_pid.split(',')[0]) {
-                        this.$set(this.form, 'srcId', item.id)
-                        this.$set(this.form, 'srcCnName', item.title)
-                        this.$set(this.form, 'srcEnName', item.title)
-                    }
-                }
-            })
+            // getDeptLazyTree(0).then(res => {
+            //     this.columnforfun('srcCnName').dicData = res.data.data
+            //     // 来源 内容 默认登录人所属公司
+            //     for (let item of this.columnforfun('srcCnName').dicData) {
+            //         if (item.id == JSON.parse(localStorage.getItem('saber-userInfo')).content.dept_pid.split(',')[0]) {
+            //             this.$set(this.form, 'srcId', item.id)
+            //             this.$set(this.form, 'srcCnName', item.title)
+            //             this.$set(this.form, 'srcEnName', item.title)
+            //         }
+            //     }
+            // })
         },
         // 申请B/L NO
         billsGetBillNofun() {
@@ -1222,7 +1204,7 @@ export default {
                 businessTypeCode: 'HYCK',
                 billNoFormat: billNoFormat
             }).then(res => {
-                this.columnforfun('hpaymode').disabled = false
+                // this.columnforfun('hpaymode').disabled = false
                 this.$set(this.form, 'hblno', res.data.data)
                 this.billsSubmitfun()
             })
@@ -1244,8 +1226,8 @@ export default {
                     this.$set(this.form, 'srcId', this.$refs.bcorps[0].selectionList[0].srcId)
                     this.$set(this.form, 'srcCnName', this.$refs.bcorps[0].selectionList[0].srcCnName)
                     this.$set(this.form, 'srcEnName', this.$refs.bcorps[0].selectionList[0].srcEnName)
-                    this.columnforfun('srcType').disabled = false
-                    this.columnforfun('srcCnName').disabled = false
+                    // this.columnforfun('srcType').disabled = false
+                    // this.columnforfun('srcCnName').disabled = false
                     // 航线带出往来单位的优势航线
                     this.$set(this.form, 'lineCnName', this.$refs.bcorps[0].selectionList[0].advantageRoute)
                     // 带出发货人数据
@@ -1256,9 +1238,9 @@ export default {
                     this.$set(this.form.detail, 'hshipperDetails', this.$refs.bcorps[0].selectionList[0].details)
                     this.$set(this.form.detail, 'hshipperCntyName', this.$refs.bcorps[0].selectionList[0].cntyName)
                     this.$set(this.form.detail, 'hshipperCntyCode', this.$refs.bcorps[0].selectionList[0].cntyCode)
-                    this.columnforfun('corpAttnName').disabled = false
-                    this.columnforfun('corpAttnTel').disabled = false
-                    this.columnforfun('corpAttnEmail').disabled = false
+                    // this.columnforfun('corpAttnName').disabled = false
+                    // this.columnforfun('corpAttnTel').disabled = false
+                    // this.columnforfun('corpAttnEmail').disabled = false
                 } else {
                     console.log('详情确认')
                     console.log(this.$refs.bcorps, 962)
@@ -1275,8 +1257,8 @@ export default {
                     this.$set(this.form, 'srcId', this.$refs.bcorps[0].$refs.detail.formData.srcId)
                     this.$set(this.form, 'srcCnName', this.$refs.bcorps[0].$refs.detail.formData.srcCnName)
                     this.$set(this.form, 'srcEnName', this.$refs.bcorps[0].$refs.detail.formData.srcEnName)
-                    this.columnforfun('srcType').disabled = false
-                    this.columnforfun('srcCnName').disabled = false
+                    // this.columnforfun('srcType').disabled = false
+                    // this.columnforfun('srcCnName').disabled = false
                     // 航线带出往来单位的优势航线
                     this.$set(this.form, 'lineCnName', this.$refs.bcorps[0].$refs.detail.formData.advantageRoute)
                     // 带出发货人数据
@@ -1287,9 +1269,9 @@ export default {
                     this.$set(this.form.detail, 'hshipperDetails', this.$refs.bcorps[0].$refs.detail.formData.details)
                     this.$set(this.form.detail, 'hshipperCntyName', this.$refs.bcorps[0].$refs.detail.formData.cntyName)
                     this.$set(this.form.detail, 'hshipperCntyCode', this.$refs.bcorps[0].$refs.detail.formData.cntyCode)
-                    this.columnforfun('corpAttnName').disabled = false
-                    this.columnforfun('corpAttnTel').disabled = false
-                    this.columnforfun('corpAttnEmail').disabled = false
+                    // this.columnforfun('corpAttnName').disabled = false
+                    // this.columnforfun('corpAttnTel').disabled = false
+                    // this.columnforfun('corpAttnEmail').disabled = false
                 }
             }
             this.$refs.searchQueryRef[0].corpVisible = false
@@ -1310,62 +1292,66 @@ export default {
         },
         /* 远程模糊查询操作用户 */
         remoteMethod(value, name) {
-            if (name == 'operatorName') {
-                this.userGetListfun(value)
-            } else if (name == 'accDeptName') {
-                this.getLazylistfun(value)
-            } else if (name == 'corpCnName') {
+            // if (name == 'operatorName') {
+            //     this.userGetListfun(value)
+            // } 
+            // else if (name == 'accDeptName') {
+            //     this.getLazylistfun(value)
+            // } 
+            if (name == 'corpCnName') {
                 this.getBcorpsListfun(value)
-            } else if (name == 'mPayplace') {
-                this.getBlocationsListfun(value)
-            } else if (name == 'corpAttnName') {
-                this.getBcorpsattnListfun(value)
-            } else if (name == 'srcType') {
-                this.srcTypeWorkDictsfun()
-            } else if (name == 'srcCnName') {
-                if (this.form.srcType == 'SALES') {
-                    // 业务员
-                    this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'name', value: 'name' }
-                    this.salesUserGetListfun(value)
-                } else if (this.form.srcType == 'AGENT') {
-                    // 代理
-                    this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'cnName', value: 'cnName' }
-                    this.agentBcorpsListfun(value)
-                } else if (this.form.srcType == 'OWN') {
-                    // 公司
-                    this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'title', value: 'title' }
-                    this.ownDeptLazyTreefun()
-                } else { }
-            } else if (name == 'teamName') {
-                this.postSelectByUserfun()
-            } else {
-
             }
+            // else if (name == 'mPayplace') {
+            //     this.getBlocationsListfun(value)
+            // } 
+            // else if (name == 'corpAttnName') {
+            //     this.getBcorpsattnListfun(value)
+            // } 
+            // else if (name == 'srcType') {
+            //     this.srcTypeWorkDictsfun()
+            // } 
+            // else if (name == 'srcCnName') {
+            //     if (this.form.srcType == 'SALES') {
+            //         // 业务员
+            //         this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'name', value: 'name' }
+            //         this.salesUserGetListfun(value)
+            //     } else if (this.form.srcType == 'AGENT') {
+            //         // 代理
+            //         this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'cnName', value: 'cnName' }
+            //         this.agentBcorpsListfun(value)
+            //     } else if (this.form.srcType == 'OWN') {
+            //         // 公司
+            //         this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'title', value: 'title' }
+            //         this.ownDeptLazyTreefun()
+            //     }
+            // } else if (name == 'teamName') {
+            //     this.postSelectByUserfun()
+            // }
 
         },
         // 下拉的监听事件
         corpChange(value, name) {
-            if (name == 'operatorName') {
-                // OP 下拉赋值 用户管理列表
-                for (let item of this.columnforfun('operatorName').dicData) {
-                    if (item.name == value) {
-                        this.form.operatorName = item.name
-                        this.form.operatorId = item.id
-                        this.form.operatorDept = item.deptId.split(',').pop()
-                        this.form.operatorDeptName = item.deptName
-                    }
-                }
-            }
-            else if (name == 'accDeptName') {
-                // OP 下拉赋值 用户管理列表
-                for (let item of this.columnforfun('accDeptName').dicData) {
-                    if (item.title == value) {
-                        this.form.accDeptName = item.title
-                        this.form.accDept = item.id
-                    }
-                }
-            }
-            else if (name == 'corpCnName') {
+            // if (name == 'operatorName') {
+            //     // OP 下拉赋值 用户管理列表
+            //     for (let item of this.columnforfun('operatorName').dicData) {
+            //         if (item.name == value) {
+            //             this.form.operatorName = item.name
+            //             this.form.operatorId = item.id
+            //             this.form.operatorDept = item.deptId.split(',').pop()
+            //             this.form.operatorDeptName = item.deptName
+            //         }
+            //     }
+            // }
+            // else if (name == 'accDeptName') {
+            //     // OP 下拉赋值 用户管理列表
+            //     for (let item of this.columnforfun('accDeptName').dicData) {
+            //         if (item.title == value) {
+            //             this.form.accDeptName = item.title
+            //             this.form.accDept = item.id
+            //         }
+            //     }
+            // }
+            if (name == 'corpCnName') {
                 if (value) {
                     // this.columnforfun('corpAttnName').disabled = false
                     // this.columnforfun('corpAttnTel').disabled = false
@@ -1425,109 +1411,109 @@ export default {
                     }
                 }
             }
-            else if (name == 'corpAttnName') {
-                if (this.columnforfun('corpAttnName').dicData.length) {
-                    for (let item of this.columnforfun('corpAttnName').dicData) {
-                        if (item.cname == value) {
-                            this.form.corpAttnName = item.cname
-                            this.form.corpAttnId = item.id
-                            this.$set(this.form, 'corpAttnTel', item.tel)
-                            this.$set(this.form, 'corpAttnEmail', item.email)
-                        }
-                    }
-                } else {
-                    if (value) {
-                        this.form.corpAttnName = value
-                        this.form.corpAttnId = null
-                    }
-                }
-            }
-            else if (name == 'srcType') {
-                if (!value) {
-                    this.$set(this.form, 'srcType', '')
-                    // this.columnforfun('srcCnName').disabled = true
-                    return
-                }
-                this.$set(this.form, 'srcId', '')
-                this.$set(this.form, 'srcCnName', '')
-                this.$set(this.form, 'srcEnName', '')
-                this.form[name] = value
-                if (value == 'OWN') {
-                    // 公司
-                    this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'title', value: 'title' }
-                    this.ownDeptLazyTreefun()
-                } else if (value == 'AGENT') {
-                    // 代理
-                    this.columnforfun('srcCnName').type = 'select'
-                    this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'cnName', value: 'cnName' }
-                    this.columnforfun('srcCnName').disabled = false
-                    this.agentBcorpsListfun()
-                } else if (value == 'SALES') {
-                    // 业务员
-                    this.columnforfun('srcCnName').type = 'select'
-                    this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'name', value: 'name' }
-                    this.columnforfun('srcCnName').disabled = false
-                    this.salesUserGetListfun()
-                }
-            }
-            else if (name == 'srcCnName') {
-                for (let item of this.columnforfun('srcCnName').dicData) {
-                    if (item[this.columnforfun('srcCnName').forParameter.value] == value) {
-                        if (this.form.srcType == 'SALES') {
-                            // 业务员
-                            this.$set(this.form, 'srcId', item.id)
-                            this.$set(this.form, 'srcCnName', item.name)
-                            this.$set(this.form, 'srcEnName', item.name)
-                            this.$set(this.form, 'srcDeptId', item.deptId.split(',').pop())
-                            this.$set(this.form, 'srcDeptName', item.deptName)
-                        } else if (this.form.srcType == 'AGENT') {
-                            // 代理
-                            this.$set(this.form, 'srcId', item.id)
-                            this.$set(this.form, 'srcCnName', item.cnName)
-                            this.$set(this.form, 'srcEnName', item.enName)
-                        }
-                    }
-                }
-            }
-            else if (name == 'coloaderCnName') {
-                for (let item of this.columnforfun('coloaderCnName').dicData) {
-                    if (item.cnName == value) {
-                        this.$set(this.form, 'coloaderId', item.id)
-                        this.$set(this.form, 'coloaderCnName', item.cnName)
-                        this.$set(this.form, 'coloaderEnName', item.enName)
-                    }
-                }
-            }
-            else if (name == 'mpaymode') {
-                // 主单付费方式
-                this.form[name] = value
-                if (value == 'PP') {
-                    this.$set(this.form, 'mpayplace', this.form.polEnName ? this.form.polEnName.split(' - ')[0] : '')
-                } else {
-                    this.$set(this.form, 'mpayplace', this.form.podEnName ? this.form.podEnName.split(' - ')[0] : '')
-                }
-            }
-            else if (name == 'hpaymode') {
-                // 分单付费方式
-                this.form[name] = value
-                if (value == 'PP') {
-                    this.$set(this.form, 'hpayplace', this.form.polEnName.split(' - ')[0])
-                } else {
-                    this.$set(this.form, 'hpayplace', this.form.podEnName.split(' - ')[0])
-                }
-            }
-            else if (name == 'teamName') {
-                if (!value) {
-                    this.$set(this.form, 'teamId', '')
-                    this.$set(this.form, 'teamName', '')
-                }
-                for (let item of this.columnforfun('teamName').dicData) {
-                    if (item.id == value) {
-                        this.$set(this.form, 'teamId', item.id)
-                        this.$set(this.form, 'teamName', item.postName)
-                    }
-                }
-            }
+            // else if (name == 'corpAttnName') {
+            //     if (this.columnforfun('corpAttnName').dicData.length) {
+            //         for (let item of this.columnforfun('corpAttnName').dicData) {
+            //             if (item.cname == value) {
+            //                 this.form.corpAttnName = item.cname
+            //                 this.form.corpAttnId = item.id
+            //                 this.$set(this.form, 'corpAttnTel', item.tel)
+            //                 this.$set(this.form, 'corpAttnEmail', item.email)
+            //             }
+            //         }
+            //     } else {
+            //         if (value) {
+            //             this.form.corpAttnName = value
+            //             this.form.corpAttnId = null
+            //         }
+            //     }
+            // }
+            // else if (name == 'srcType') {
+            //     if (!value) {
+            //         this.$set(this.form, 'srcType', '')
+            //         // this.columnforfun('srcCnName').disabled = true
+            //         return
+            //     }
+            //     this.$set(this.form, 'srcId', '')
+            //     this.$set(this.form, 'srcCnName', '')
+            //     this.$set(this.form, 'srcEnName', '')
+            //     this.form[name] = value
+            //     if (value == 'OWN') {
+            //         // 公司
+            //         this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'title', value: 'title' }
+            //         this.ownDeptLazyTreefun()
+            //     } else if (value == 'AGENT') {
+            //         // 代理
+            //         this.columnforfun('srcCnName').type = 'select'
+            //         this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'cnName', value: 'cnName' }
+            //         this.columnforfun('srcCnName').disabled = false
+            //         this.agentBcorpsListfun()
+            //     } else if (value == 'SALES') {
+            //         // 业务员
+            //         this.columnforfun('srcCnName').type = 'select'
+            //         this.columnforfun('srcCnName').forParameter = { key: 'id', label: 'name', value: 'name' }
+            //         this.columnforfun('srcCnName').disabled = false
+            //         this.salesUserGetListfun()
+            //     }
+            // }
+            // else if (name == 'srcCnName') {
+            //     for (let item of this.columnforfun('srcCnName').dicData) {
+            //         if (item[this.columnforfun('srcCnName').forParameter.value] == value) {
+            //             if (this.form.srcType == 'SALES') {
+            //                 // 业务员
+            //                 this.$set(this.form, 'srcId', item.id)
+            //                 this.$set(this.form, 'srcCnName', item.name)
+            //                 this.$set(this.form, 'srcEnName', item.name)
+            //                 this.$set(this.form, 'srcDeptId', item.deptId.split(',').pop())
+            //                 this.$set(this.form, 'srcDeptName', item.deptName)
+            //             } else if (this.form.srcType == 'AGENT') {
+            //                 // 代理
+            //                 this.$set(this.form, 'srcId', item.id)
+            //                 this.$set(this.form, 'srcCnName', item.cnName)
+            //                 this.$set(this.form, 'srcEnName', item.enName)
+            //             }
+            //         }
+            //     }
+            // }
+            // else if (name == 'coloaderCnName') {
+            //     for (let item of this.columnforfun('coloaderCnName').dicData) {
+            //         if (item.cnName == value) {
+            //             this.$set(this.form, 'coloaderId', item.id)
+            //             this.$set(this.form, 'coloaderCnName', item.cnName)
+            //             this.$set(this.form, 'coloaderEnName', item.enName)
+            //         }
+            //     }
+            // }
+            // else if (name == 'mpaymode') {
+            //     // 主单付费方式
+            //     this.form[name] = value
+            //     if (value == 'PP') {
+            //         this.$set(this.form, 'mpayplace', this.form.polEnName ? this.form.polEnName.split(' - ')[0] : '')
+            //     } else {
+            //         this.$set(this.form, 'mpayplace', this.form.podEnName ? this.form.podEnName.split(' - ')[0] : '')
+            //     }
+            // }
+            // else if (name == 'hpaymode') {
+            //     // 分单付费方式
+            //     this.form[name] = value
+            //     if (value == 'PP') {
+            //         this.$set(this.form, 'hpayplace', this.form.polEnName.split(' - ')[0])
+            //     } else {
+            //         this.$set(this.form, 'hpayplace', this.form.podEnName.split(' - ')[0])
+            //     }
+            // }
+            // else if (name == 'teamName') {
+            //     if (!value) {
+            //         this.$set(this.form, 'teamId', '')
+            //         this.$set(this.form, 'teamName', '')
+            //     }
+            //     for (let item of this.columnforfun('teamName').dicData) {
+            //         if (item.id == value) {
+            //             this.$set(this.form, 'teamId', item.id)
+            //             this.$set(this.form, 'teamName', item.postName)
+            //         }
+            //     }
+            // }
             else {
                 this.form[name] = value
             }
@@ -2159,10 +2145,10 @@ export default {
                     // 判断是否生成了账单
                     if (item.accStatus == 1) {
                         this.columnforfun('corpCnName').disabled = true
-                        this.columnforfun('srcType').disabled = true
+                        // this.columnforfun('srcType').disabled = true
                         this.columnforfun('mblno').disabled = true
                         this.columnforfun('bookingNo').disabled = true
-                        this.columnforfun('refno').disabled = true
+                        // this.columnforfun('refno').disabled = true
                         this.generateBillsfalse = true
                     }
                     if (item.curCode == 'CNY') {
@@ -2184,10 +2170,10 @@ export default {
                     if (item.accStatus == 1) {
                         this.generateBillsfalse = true
                         this.columnforfun('corpCnName').disabled = true
-                        this.columnforfun('srcType').disabled = true
+                        // this.columnforfun('srcType').disabled = true
                         this.columnforfun('mblno').disabled = true
                         this.columnforfun('bookingNo').disabled = true
-                        this.columnforfun('refno').disabled = true
+                        // this.columnforfun('refno').disabled = true
                     }
                     if (item.curCode == 'CNY') {
                         this.$set(item, 'rmbAmount', item.amount)
@@ -2226,30 +2212,30 @@ export default {
             // }else {
             //     this.detailData.seeDisabled = false
             // }
-            this.columnforfun('teamName').disabled = true
+            // this.columnforfun('teamName').disabled = true
 
-            this.columnforfun('operatorName').disabled = true
-            this.columnforfun('accDeptName').disabled = true
+            // this.columnforfun('operatorName').disabled = true
+            // this.columnforfun('accDeptName').disabled = true
             if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
                 this.columnforfun('corpCnName').disabled = true
-                this.columnforfun('srcType').disabled = true
+                // this.columnforfun('srcType').disabled = true
                 this.columnforfun('mblno').disabled = true
                 this.columnforfun('bookingNo').disabled = true
-                this.columnforfun('refno').disabled = true
+                // this.columnforfun('refno').disabled = true
                 // this.columnforfun('teamId').disabled = true
                 this.generateBillsfalse = true
                 this.pleasereviewType = true // 请核禁用
             } else {
                 // 判断是否可以编辑
                 this.columnforfun('corpCnName').disabled = false
-                this.columnforfun('srcType').disabled = false
+                // this.columnforfun('srcType').disabled = false
                 this.columnforfun('mblno').disabled = false
                 this.columnforfun('bookingNo').disabled = false
-                this.columnforfun('refno').disabled = false
-                if (this.saberTenantId == '607913') {
-                    this.columnforfun('operatorName').disabled = false
-                    this.columnforfun('accDeptName').disabled = false
-                }
+                // this.columnforfun('refno').disabled = false
+                // if (this.saberTenantId == '607913') {
+                // this.columnforfun('operatorName').disabled = false
+                // this.columnforfun('accDeptName').disabled = false
+                // }
                 // this.columnforfun('teamId').disabled = false
                 this.generateBillsfalse = false
                 this.pleasereviewType = false