|
|
@@ -1,13 +1,14 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basic-container v-show="isShow">
|
|
|
- <avue-crud :option="optionBack" :table-loading="loading" :data="data" :page.sync="page" id="out-table"
|
|
|
+ <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" id="out-table"
|
|
|
:header-cell-class-name="headerClassName" :permission="permissionList" :before-open="beforeOpen"
|
|
|
v-model="form" ref="crud" :search.sync="query" @row-update="rowUpdate" @row-save="rowSave"
|
|
|
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset"
|
|
|
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
|
|
|
@refresh-change="refreshChange" @on-load="onLoad" :row-style="rowStyle" :summary-method="summaryMethod"
|
|
|
- @resetColumn="resetColumnTwo('crud', 309)" @saveColumn="saveColumnTwo('crud', optionBack, 309)">
|
|
|
+ @resetColumn="resetColumn('crud', 'option', 'optionBack', 309)"
|
|
|
+ @saveColumn="saveColumn('crud', 'option', 'optionBack', 309)">
|
|
|
<template slot-scope="{ disabled, size }" slot="billSortSearch">
|
|
|
<el-radio-group v-model="query.billSort">
|
|
|
<el-radio label="1">ETD</el-radio>
|
|
|
@@ -636,8 +637,7 @@ export default {
|
|
|
type: "select",
|
|
|
filterable: true,
|
|
|
remote: true,
|
|
|
- dicUrl:
|
|
|
- "/api/blade-los/bcorps/listByType?shortName={{key}}",
|
|
|
+ dicUrl: "/api/blade-los/bcorps/listByType?shortName={{key}}",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
value: "cnName",
|
|
|
@@ -646,12 +646,6 @@ export default {
|
|
|
span: 6,
|
|
|
searchOrder: 1.1
|
|
|
},
|
|
|
- /* {
|
|
|
- label: "客户英文",
|
|
|
- prop: "corpEnName",
|
|
|
- width: "160",
|
|
|
- overHidden: true
|
|
|
- },*/
|
|
|
{
|
|
|
label: '箱属',
|
|
|
prop: 'boxBelongsTo',
|
|
|
@@ -668,13 +662,6 @@ export default {
|
|
|
span: 6,
|
|
|
searchOrder: 2
|
|
|
},
|
|
|
-
|
|
|
- /* {
|
|
|
- label: "M/PayMode",
|
|
|
- prop: "mpaymode",
|
|
|
- width: "100",
|
|
|
- overHidden: true
|
|
|
- },*/
|
|
|
{
|
|
|
label: "HB/L NO",
|
|
|
prop: "hblno",
|
|
|
@@ -684,12 +671,6 @@ export default {
|
|
|
span: 6,
|
|
|
searchOrder: 3
|
|
|
},
|
|
|
- /* {
|
|
|
- label: "H/PayMode",
|
|
|
- prop: "hpaymode",
|
|
|
- width: "100",
|
|
|
- overHidden: true
|
|
|
- },*/
|
|
|
{
|
|
|
label: "主业务编号",
|
|
|
prop: "masterBillNo",
|
|
|
@@ -824,8 +805,7 @@ export default {
|
|
|
type: "select",
|
|
|
filterable: true,
|
|
|
remote: true,
|
|
|
- dicUrl:
|
|
|
- "/api/blade-los/bcorps/listByType?cnName={{key}}",
|
|
|
+ dicUrl: "/api/blade-los/bcorps/listByType?cnName={{key}}",
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
value: "cnName",
|
|
|
@@ -835,7 +815,6 @@ export default {
|
|
|
span: 6,
|
|
|
searchOrder: 10,
|
|
|
hide: true,
|
|
|
- //showColumn: false
|
|
|
},
|
|
|
{
|
|
|
label: "承运人",
|
|
|
@@ -896,12 +875,6 @@ export default {
|
|
|
span: 6,
|
|
|
searchOrder: 11
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "交货地",
|
|
|
- // prop: "placeDeliveryName",
|
|
|
- // width: "120",
|
|
|
- // overHidden: true,
|
|
|
- // },
|
|
|
{
|
|
|
label: "航线",
|
|
|
prop: "lineCnName",
|
|
|
@@ -945,12 +918,6 @@ export default {
|
|
|
width: "120",
|
|
|
overHidden: true
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "箱量",
|
|
|
- // prop: "CntrDescr",
|
|
|
- // width:"120",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
{
|
|
|
label: "物流状态",
|
|
|
prop: "logisticsStatus",
|
|
|
@@ -1022,22 +989,6 @@ export default {
|
|
|
span: 6,
|
|
|
searchOrder: 15
|
|
|
},
|
|
|
- /* {
|
|
|
- label: "装箱方式",
|
|
|
- prop: "loadType",
|
|
|
- type: "select",
|
|
|
- dicData: [
|
|
|
- {
|
|
|
- label: "整箱",
|
|
|
- value: "FCL"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "拼箱",
|
|
|
- value: "LCL"
|
|
|
- }
|
|
|
- ],
|
|
|
- overHidden: true
|
|
|
- },*/
|
|
|
{
|
|
|
label: "货物类别",
|
|
|
prop: "cargoType",
|
|
|
@@ -1058,22 +1009,6 @@ export default {
|
|
|
],
|
|
|
overHidden: true
|
|
|
},
|
|
|
- /* {
|
|
|
- label: "创建部门",
|
|
|
- prop: "createDeptName",
|
|
|
- width: "120",
|
|
|
- overHidden: true,
|
|
|
- type: "tree",
|
|
|
- dicUrl: "/api/blade-system/dept/tree",
|
|
|
- props: {
|
|
|
- label: "title",
|
|
|
- value: "title",
|
|
|
- children: "children"
|
|
|
- },
|
|
|
- search: true,
|
|
|
- span: 6,
|
|
|
- searchOrder: 16
|
|
|
- },*/
|
|
|
{
|
|
|
label: "订舱代理",
|
|
|
prop: "bookingAgentCnName",
|
|
|
@@ -1085,16 +1020,6 @@ export default {
|
|
|
prop: "receivingAndShipping",
|
|
|
width: "120",
|
|
|
overHidden: true,
|
|
|
- // type: "select",
|
|
|
- // filterable: true,
|
|
|
- // remote: true,
|
|
|
- // dicUrl:
|
|
|
- // "/api/blade-los/bcorps/listByType?cnName={{key}}",
|
|
|
- // props: {
|
|
|
- // label: "cnName",
|
|
|
- // value: "cnName",
|
|
|
- // res: "data.records"
|
|
|
- // },
|
|
|
search: true,
|
|
|
span: 6,
|
|
|
searchOrder: 18
|
|
|
@@ -1105,9 +1030,7 @@ export default {
|
|
|
width: "120",
|
|
|
overHidden: true,
|
|
|
type: "select",
|
|
|
- // audit_status_los
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=issue_type_F",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=issue_type_F",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictKey"
|
|
|
@@ -1133,12 +1056,6 @@ export default {
|
|
|
width: "120",
|
|
|
overHidden: true
|
|
|
},
|
|
|
- /* {
|
|
|
- label: "净重 (KGM)",
|
|
|
- prop: "netWeight",
|
|
|
- width: "120",
|
|
|
- overHidden: true
|
|
|
- },*/
|
|
|
{
|
|
|
label: "体积 (CBM)",
|
|
|
prop: "measurement",
|
|
|
@@ -1187,112 +1104,12 @@ export default {
|
|
|
width: "100",
|
|
|
overHidden: true
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "需陆运",
|
|
|
- // prop: "isNeedLand",
|
|
|
- // type: 'select',
|
|
|
- // dicData: [{
|
|
|
- // label: '否',
|
|
|
- // value: 0
|
|
|
- // }, {
|
|
|
- // label: '是',
|
|
|
- // value: 1
|
|
|
- // }],
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "需报关",
|
|
|
- // prop: "isNeedDeclare",
|
|
|
- // type: 'select',
|
|
|
- // dicData: [{
|
|
|
- // label: '否',
|
|
|
- // value: 0
|
|
|
- // }, {
|
|
|
- // label: '是',
|
|
|
- // value: 1
|
|
|
- // }],
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "需三检",
|
|
|
- // prop: "isNeedIq",
|
|
|
- // type: 'select',
|
|
|
- // dicData: [{
|
|
|
- // label: '否',
|
|
|
- // value: 0
|
|
|
- // }, {
|
|
|
- // label: '是',
|
|
|
- // value: 1
|
|
|
- // }],
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "应收",
|
|
|
- // prop: "amountDr",
|
|
|
- // width: "160",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "应付",
|
|
|
- // prop: "amountCr",
|
|
|
- // width: "160",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "利润",
|
|
|
- // prop: "amountProfit",
|
|
|
- // width: "160",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // // label: "综合 USD 应付 - 非 USD 外币转换为 USD",
|
|
|
- // label: "综合应付",
|
|
|
- // prop: "amountCrUsd",
|
|
|
- // width: "120",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "综合利润",
|
|
|
- // prop: "amountProfitUsd",
|
|
|
- // width: "120",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
{
|
|
|
label: "合计应收(CNY )",
|
|
|
prop: "amountDrLoc",
|
|
|
width: "160",
|
|
|
overHidden: true
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "合计应付",
|
|
|
- // prop: "amountCrLoc",
|
|
|
- // width: "160",
|
|
|
- // overHidden: true
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "合计利润",
|
|
|
- // prop: "amountProfitLoc",
|
|
|
- // width: "160",
|
|
|
- // overHidden: true
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "应收海运费",
|
|
|
- // prop: "oceanFreightDr",
|
|
|
- // width: "160",
|
|
|
- // overHidden: true
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "应付海运费",
|
|
|
- // prop: "oceanFreightCr",
|
|
|
- // width: "160",
|
|
|
- // overHidden: true
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "海运费利润",
|
|
|
- // prop: "oceanFreightProfit",
|
|
|
- // width: "160",
|
|
|
- // overHidden: true
|
|
|
- // },
|
|
|
{
|
|
|
label: "付费申请状态",
|
|
|
prop: "checkCrStatusDescr",
|
|
|
@@ -1305,12 +1122,6 @@ export default {
|
|
|
width: "160",
|
|
|
overHidden: true
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "应付对账状态",
|
|
|
- // prop: "checkCrStatusDescr",
|
|
|
- // width:"160",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
{
|
|
|
label: "应收结算状态",
|
|
|
prop: "stlDrStatusDescr",
|
|
|
@@ -1377,28 +1188,6 @@ export default {
|
|
|
value: "dictKey"
|
|
|
}
|
|
|
},
|
|
|
- /* {
|
|
|
- label: "客户OP",
|
|
|
- prop: "operatorName",
|
|
|
- width: 140,
|
|
|
- overHidden: true,
|
|
|
- search: true,
|
|
|
- type: "select",
|
|
|
- filterable: true,
|
|
|
- remote: true,
|
|
|
- dicUrl: "/api/blade-los/bcorpsattn/list?cname={{key}}",
|
|
|
- props: {
|
|
|
- label: "cname",
|
|
|
- value: "cname",
|
|
|
- res: "data.records"
|
|
|
- }
|
|
|
- },*/
|
|
|
- // {
|
|
|
- // label: "进项发票状态",
|
|
|
- // prop: "invoiceCrStatusDescr",
|
|
|
- // width:"160",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
{
|
|
|
label: "创建人",
|
|
|
prop: "createUserName",
|
|
|
@@ -1422,46 +1211,16 @@ export default {
|
|
|
label: "排序方式",
|
|
|
prop: "billSort",
|
|
|
hide: true,
|
|
|
- //showColumn: false,
|
|
|
search: true,
|
|
|
searchValue: "1",
|
|
|
searchSpan: 12,
|
|
|
overHidden: true
|
|
|
},
|
|
|
- // {
|
|
|
- // label: "更新人",
|
|
|
- // prop: "updateUserName",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: "更新时间",
|
|
|
- // prop: "updateTime",
|
|
|
- // width:"160",
|
|
|
- // overHidden:true,
|
|
|
- // },
|
|
|
- /* {
|
|
|
- label: "edi发送状态",
|
|
|
- prop: "ediStatus",
|
|
|
- type: "select",
|
|
|
- dicData: [
|
|
|
- {
|
|
|
- label: "未发送",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "已发送",
|
|
|
- value: "1"
|
|
|
- }
|
|
|
- ],
|
|
|
- width: "100",
|
|
|
- overHidden: true
|
|
|
- },*/
|
|
|
{
|
|
|
label: "业务状态",
|
|
|
prop: "billStatus",
|
|
|
type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=bill_status",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=bill_status",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictKey"
|
|
|
@@ -1473,8 +1232,7 @@ export default {
|
|
|
label: "财务状态",
|
|
|
prop: "accountStatus",
|
|
|
type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=account_status",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=account_status",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
value: "dictKey"
|
|
|
@@ -1486,8 +1244,7 @@ export default {
|
|
|
label: "审核状态",
|
|
|
prop: "status",
|
|
|
type: "select",
|
|
|
- dicUrl:
|
|
|
- "/api/blade-system/dict-biz/dictionary?code=audit_status_los",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=audit_status_los",
|
|
|
width: "120",
|
|
|
props: {
|
|
|
label: "dictValue",
|
|
|
@@ -1628,7 +1385,7 @@ export default {
|
|
|
// 财务状态
|
|
|
accountStatusData: [],
|
|
|
saberUserInfo: {}, // 当前登录人个人信息
|
|
|
- pageIds:[]
|
|
|
+ pageIds: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -1662,16 +1419,16 @@ export default {
|
|
|
// if (this.$route.query.id) {
|
|
|
// this.rowCellfun(this.$route.query.id)
|
|
|
// }
|
|
|
- // this.option = await this.getColumnData(this.getColumnName(309), this.optionBack);
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(309), this.optionBack);
|
|
|
// this.mawbOption = await this.getColumnData(this.getColumnName(309.7), this.mawbOptionBack); // 主单列表
|
|
|
- if (localStorage.getItem(this.getColumnName(309))) {
|
|
|
- this.optionBack = JSON.parse(
|
|
|
- localStorage.getItem(this.getColumnName(309))
|
|
|
- );
|
|
|
- }
|
|
|
+ // if (localStorage.getItem(this.getColumnName(309))) {
|
|
|
+ // this.optionBack = JSON.parse(
|
|
|
+ // localStorage.getItem(this.getColumnName(309))
|
|
|
+ // );
|
|
|
+ // }
|
|
|
if (this.saberUserInfo.role_name.indexOf('admin') != -1 || this.saberUserInfo.role_name.indexOf('总部') != -1) {
|
|
|
- this.optionBack.searchMenuSpan = 12
|
|
|
- this.optionBack.column.forEach(item => {
|
|
|
+ this.option.searchMenuSpan = 12
|
|
|
+ this.option.column.forEach(item => {
|
|
|
if (item.prop == 'branchId') {
|
|
|
item.search = true
|
|
|
}
|
|
|
@@ -1716,10 +1473,10 @@ export default {
|
|
|
let all = values.length !== 0 ? sums[index] = values.reduce((a, b) => {
|
|
|
return a + b;
|
|
|
}) : 0
|
|
|
- if (prop == 'grossWeight' || prop == 'measurement' ) {
|
|
|
+ if (prop == 'grossWeight' || prop == 'measurement') {
|
|
|
sums[index] = all.toFixed(3)
|
|
|
}
|
|
|
- if (prop == 'quantity'|| prop == 'teu' || prop == 'quantityV20' || prop == 'quantityV40' || prop == 'quantityV40hc' || prop == 'quantityV45' || prop == 'quantityV48') {
|
|
|
+ if (prop == 'quantity' || prop == 'teu' || prop == 'quantityV20' || prop == 'quantityV40' || prop == 'quantityV40hc' || prop == 'quantityV45' || prop == 'quantityV48') {
|
|
|
sums[index] = all
|
|
|
}
|
|
|
} else {
|
|
|
@@ -2325,7 +2082,7 @@ export default {
|
|
|
// 详情的返回列表
|
|
|
goBack() {
|
|
|
// 初始化数据
|
|
|
- this.pageIds=[]
|
|
|
+ this.pageIds = []
|
|
|
// this.detailData = this.$options.data().detailData;
|
|
|
if (JSON.stringify(this.$route.query) != "{}") {
|
|
|
this.$router.$avueRouter.closeTag();
|
|
|
@@ -2339,7 +2096,7 @@ export default {
|
|
|
},
|
|
|
// 新增弹窗开启
|
|
|
addbtnfun(type) {
|
|
|
- this.pageIds=[]
|
|
|
+ this.pageIds = []
|
|
|
this.detailData.seeDisabled = false;
|
|
|
this.detailData.billType = type;
|
|
|
this.isShow = false;
|
|
|
@@ -2508,7 +2265,7 @@ export default {
|
|
|
},
|
|
|
// 编辑详情打开
|
|
|
rowCellfun(id, row) {
|
|
|
- this.pageIds=[]
|
|
|
+ this.pageIds = []
|
|
|
this.data.forEach(item => {
|
|
|
this.pageIds.push(item.id)
|
|
|
})
|
|
|
@@ -2743,30 +2500,29 @@ export default {
|
|
|
this.mawbOnLoad(this.mawbPage, params);
|
|
|
done();
|
|
|
},
|
|
|
-
|
|
|
//自定义列保存
|
|
|
- saveColumnTwo(ref, option, code) {
|
|
|
+ async saveColumn(ref, option, optionBack, code) {
|
|
|
/**
|
|
|
* 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
|
|
|
* 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
|
|
|
* 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
|
|
|
*/
|
|
|
- console.log(ref, option, code);
|
|
|
- localStorage.setItem(
|
|
|
- this.getColumnName(code),
|
|
|
- JSON.stringify(option)
|
|
|
- );
|
|
|
- this.$message.success("保存成功");
|
|
|
- //关闭窗口
|
|
|
- this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ this.selectionList = []
|
|
|
+ this.searchReset()
|
|
|
+ }
|
|
|
},
|
|
|
//自定义列重置
|
|
|
- resetColumnTwo(ref, code) {
|
|
|
- this.optionBack = this.$options.data().optionBack;
|
|
|
- localStorage.removeItem(this.getColumnName(code));
|
|
|
+ async resetColumn(ref, option, optionBack, code) {
|
|
|
+ this[option] = this[optionBack];
|
|
|
+ const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
|
|
|
if (this.saberUserInfo.role_name.indexOf('admin') != -1 || this.saberUserInfo.role_name.indexOf('总部') != -1) {
|
|
|
- this.optionBack.searchMenuSpan = 12
|
|
|
- this.optionBack.column.forEach(item => {
|
|
|
+ this.option.searchMenuSpan = 12
|
|
|
+ this.option.column.forEach(item => {
|
|
|
if (item.prop == 'branchId') {
|
|
|
item.search = true
|
|
|
}
|
|
|
@@ -2776,10 +2532,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- this.$message.success("重置成功");
|
|
|
- this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("重置成功");
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ this.selectionList = []
|
|
|
+ this.searchReset()
|
|
|
+ }
|
|
|
},
|
|
|
-
|
|
|
// 更改表格颜色
|
|
|
headerClassName(tab) {
|
|
|
// //颜色间隔
|