|
@@ -1,37 +1,16 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basic-container v-show="isShow">
|
|
|
- <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"
|
|
|
- :row-style="rowStyle"
|
|
|
- @selection-change="selectionChange"
|
|
|
- @current-change="currentChange"
|
|
|
- @size-change="sizeChange"
|
|
|
- @refresh-change="refreshChange"
|
|
|
- @on-load="onLoad"
|
|
|
- @expand-change="expandChange"
|
|
|
- @resetColumn="
|
|
|
+ <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" :row-style="rowStyle"
|
|
|
+ @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
|
|
|
+ @refresh-change="refreshChange" @on-load="onLoad" @expand-change="expandChange" @resetColumn="
|
|
|
resetColumnTwo('crud', 'option', 'optionBack', 309.11)
|
|
|
- "
|
|
|
- @saveColumn="
|
|
|
+ " @saveColumn="
|
|
|
saveColumnTwo('crud', 'option', 'optionBack', 309.11)
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
<template slot-scope="{ disabled, size }" slot="billSortSearch">
|
|
|
<el-radio-group v-model="query.billSort">
|
|
|
<el-radio label="1">ETD</el-radio>
|
|
@@ -334,71 +313,30 @@
|
|
|
<!--#endregion-->
|
|
|
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="addbtnfun('DD')"
|
|
|
- >新建直单
|
|
|
+ <el-button type="primary" size="small" @click="addbtnfun('DD')">新建直单
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
- @click="addbtnfun('MM')"
|
|
|
- >新建主单
|
|
|
+ <el-button type="success" size="small" @click="addbtnfun('MM')">新建主单
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- size="small"
|
|
|
- @click="addbtnfun('MH')"
|
|
|
- >新建分单
|
|
|
+ <el-button type="warning" size="small" @click="addbtnfun('MH')">新建分单
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- plain
|
|
|
- @click="CopyDocumentsfun"
|
|
|
- >复制单据
|
|
|
+ <el-button type="primary" size="small" plain @click="CopyDocumentsfun">复制单据
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
- plain
|
|
|
- @click="increaseMawb"
|
|
|
- >分单->主单
|
|
|
+ <el-button type="success" size="small" plain @click="increaseMawb">分单->主单
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- size="small"
|
|
|
- plain
|
|
|
- v-if="query.billStatus == 0"
|
|
|
- @click="Disembarkingfun"
|
|
|
- >退 舱
|
|
|
+ <el-button type="warning" size="small" plain v-if="query.billStatus == 0" @click="Disembarkingfun">退
|
|
|
+ 舱
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- plain
|
|
|
- v-if="query.billStatus == 1"
|
|
|
- @click="revokeWithdrawalfun"
|
|
|
- >撤销退舱
|
|
|
+ <el-button type="primary" size="small" plain v-if="query.billStatus == 1"
|
|
|
+ @click="revokeWithdrawalfun">撤销退舱
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- size="small"
|
|
|
- plain
|
|
|
- v-if="query.billStatus != 3"
|
|
|
- @click="handleDelete"
|
|
|
- >删 除
|
|
|
+ <el-button type="danger" size="small" plain v-if="query.billStatus != 3" @click="handleDelete">删 除
|
|
|
</el-button>
|
|
|
- <el-button type="warning" size="small" @click="outExport"
|
|
|
- >导 出
|
|
|
+ <el-button type="warning" size="small" @click="outExport">导 出
|
|
|
</el-button>
|
|
|
<div style="margin-top: 10px">
|
|
|
- <el-tabs
|
|
|
- type="card"
|
|
|
- v-model="query.billStatus"
|
|
|
- @tab-click="handleClick"
|
|
|
- >
|
|
|
+ <el-tabs type="card" v-model="query.billStatus" @tab-click="handleClick">
|
|
|
+
|
|
|
+ <el-tab-pane label="全部" name="7"></el-tab-pane>
|
|
|
<el-tab-pane label="接单" name="0">
|
|
|
<span slot="label">接单</span>
|
|
|
</el-tab-pane>
|
|
@@ -412,52 +350,35 @@
|
|
|
</span>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="完成" name="3"></el-tab-pane>
|
|
|
- <el-tab-pane label="全部" name="7"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
<!--:disabled="saberUserInfo.role_name.indexOf('允许修改他人业务') == -1?saberUserInfo.user_id != scope.row.createUser:false"-->
|
|
|
- <el-button
|
|
|
- :type="scope.type"
|
|
|
- :size="scope.size"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click.stop="rowCellfun(scope.row.id, scope.row)"
|
|
|
- >编辑
|
|
|
+ <el-button :type="scope.type" :size="scope.size" icon="el-icon-edit"
|
|
|
+ @click.stop="rowCellfun(scope.row.id, scope.row)">编辑
|
|
|
</el-button>
|
|
|
</template>
|
|
|
|
|
|
<template slot="expand" slot-scope="{ row }">
|
|
|
- <SplitList
|
|
|
- :typeMenu="true"
|
|
|
- :data="row.billsListAllData"
|
|
|
- :loading="SplitLoading"
|
|
|
- @corpfun="rowCellfun"
|
|
|
- >
|
|
|
+ <SplitList :typeMenu="true" :data="row.billsListAllData" :loading="SplitLoading"
|
|
|
+ @corpfun="rowCellfun">
|
|
|
</SplitList>
|
|
|
</template>
|
|
|
<temolate slot="billStatus" slot-scope="{ row }">
|
|
|
<div>
|
|
|
- <span
|
|
|
- v-if="row.billStatus == item.dictKey"
|
|
|
- v-for="(item, index) in billStatusData"
|
|
|
- :key="index"
|
|
|
+ <span v-if="row.billStatus == item.dictKey" v-for="(item, index) in billStatusData" :key="index"
|
|
|
:style="{ 'background-color': item.colour }"
|
|
|
- style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;"
|
|
|
- >
|
|
|
+ style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;">
|
|
|
{{ item.dictValue }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</temolate>
|
|
|
<template slot="accountStatus" slot-scope="{ row }">
|
|
|
<div>
|
|
|
- <span
|
|
|
- v-if="row.accountStatus == item.dictKey"
|
|
|
- v-for="(item, index) in accountStatusData"
|
|
|
- :key="index"
|
|
|
- :style="{ 'background-color': item.colour }"
|
|
|
- style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;"
|
|
|
- >
|
|
|
+ <span v-if="row.accountStatus == item.dictKey" v-for="(item, index) in accountStatusData"
|
|
|
+ :key="index" :style="{ 'background-color': item.colour }"
|
|
|
+ style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;">
|
|
|
{{ item.dictValue }}
|
|
|
</span>
|
|
|
</div>
|
|
@@ -475,23 +396,21 @@
|
|
|
<template slot="corpCnName" slot-scope="scope">
|
|
|
<span
|
|
|
style="color: #1e9fff;cursor: pointer;width: 100%;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;"
|
|
|
- @click.stop="rowCellfun(scope.row.id, scope.row)"
|
|
|
- >
|
|
|
+ @click.stop="rowCellfun(scope.row.id, scope.row)">
|
|
|
{{ scope.row.shortName }}
|
|
|
</span>
|
|
|
</template>
|
|
|
<template slot="billNo" slot-scope="scope">
|
|
|
<span
|
|
|
style="color: #1e9fff;cursor: pointer;width: 100%;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;"
|
|
|
- @click.stop="rowCellfun(scope.row.id, scope.row)"
|
|
|
- >
|
|
|
+ @click.stop="rowCellfun(scope.row.id, scope.row)">
|
|
|
{{ scope.row.billNo }}
|
|
|
</span>
|
|
|
</template>
|
|
|
<template slot="eta" slot-scope="scope">
|
|
|
<span>{{
|
|
|
scope.row.eta ? scope.row.eta.slice(0, 10) : ""
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
<template slot="updateTime" slot-scope="scope">
|
|
|
<span>{{
|
|
@@ -503,34 +422,13 @@
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
|
|
|
- <bills-details
|
|
|
- ref="billsDetails"
|
|
|
- v-if="!isShow"
|
|
|
- :detailData="detailData"
|
|
|
- @goBack="goBack"
|
|
|
- @toAddEdit="toAddEdit"
|
|
|
- :key="datekey"
|
|
|
- ></bills-details>
|
|
|
+ <bills-details ref="billsDetails" v-if="!isShow" :detailData="detailData" @goBack="goBack"
|
|
|
+ @toAddEdit="toAddEdit" :key="datekey"></bills-details>
|
|
|
|
|
|
- <el-dialog
|
|
|
- title="主单列表"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- append-to-body
|
|
|
- width="60%"
|
|
|
- :before-close="handleClose"
|
|
|
- >
|
|
|
- <avue-crud
|
|
|
- :option="mawbOption"
|
|
|
- :table-loading="mawbloading"
|
|
|
- :data="mawbData"
|
|
|
- :page.sync="mawbPage"
|
|
|
- :search="mawbQuery"
|
|
|
- ref="mawbOptionCrud"
|
|
|
- id="out-table"
|
|
|
- :header-cell-class-name="headerClassName"
|
|
|
- @search-change="mawbSearch"
|
|
|
- @size-change="mawbSizeChange"
|
|
|
- @current-change="mawbCurrentChange"
|
|
|
+ <el-dialog title="主单列表" :visible.sync="dialogVisible" append-to-body width="60%" :before-close="handleClose">
|
|
|
+ <avue-crud :option="mawbOption" :table-loading="mawbloading" :data="mawbData" :page.sync="mawbPage"
|
|
|
+ :search="mawbQuery" ref="mawbOptionCrud" id="out-table" :header-cell-class-name="headerClassName"
|
|
|
+ @search-change="mawbSearch" @size-change="mawbSizeChange" @current-change="mawbCurrentChange"
|
|
|
@resetColumn="
|
|
|
resetColumnTwo(
|
|
|
'mawbOptionCrud',
|
|
@@ -538,35 +436,24 @@
|
|
|
'mawbOptionBack',
|
|
|
309.7
|
|
|
)
|
|
|
- "
|
|
|
- @saveColumn="
|
|
|
+ " @saveColumn="
|
|
|
saveColumnTwo(
|
|
|
'mawbOptionCrud',
|
|
|
'mawbOption',
|
|
|
'mawbOptionBack',
|
|
|
309.7
|
|
|
)
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
<template slot="radio" slot-scope="{ row }">
|
|
|
- <el-radio
|
|
|
- v-model="dialogRadio"
|
|
|
- :label="row.id"
|
|
|
- @input="radioInput(row)"
|
|
|
- ></el-radio>
|
|
|
+ <el-radio v-model="dialogRadio" :label="row.id" @input="radioInput(row)"></el-radio>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button
|
|
|
- @click="
|
|
|
- dialogVisible = false;
|
|
|
- dialogRadio = null;
|
|
|
- "
|
|
|
- >取 消</el-button
|
|
|
- >
|
|
|
- <el-button type="primary" @click="AddToMainOrder"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ <el-button @click="
|
|
|
+ dialogVisible = false;
|
|
|
+ dialogRadio = null;
|
|
|
+ ">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="AddToMainOrder">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -685,7 +572,7 @@ export default {
|
|
|
],
|
|
|
// 表格的检索条件
|
|
|
query: {
|
|
|
- billStatus: "0",
|
|
|
+ billStatus: "7",
|
|
|
billSort: "1"
|
|
|
},
|
|
|
// 弹窗的搜索项
|
|
@@ -2074,8 +1961,8 @@ export default {
|
|
|
if (
|
|
|
this.saberUserInfo.role_name.indexOf("admin") == -1
|
|
|
? this.saberUserInfo.role_name.indexOf(
|
|
|
- "允许修改他人业务"
|
|
|
- ) == -1
|
|
|
+ "允许修改他人业务"
|
|
|
+ ) == -1
|
|
|
? this.saberUserInfo.user_id == row.createUser
|
|
|
: true
|
|
|
: true
|
|
@@ -2199,8 +2086,8 @@ export default {
|
|
|
if (
|
|
|
this.saberUserInfo.role_name.indexOf("admin") != -1
|
|
|
? this.saberUserInfo.role_name.indexOf(
|
|
|
- "允许修改他人业务"
|
|
|
- ) != -1
|
|
|
+ "允许修改他人业务"
|
|
|
+ ) != -1
|
|
|
: false
|
|
|
)
|
|
|
return false;
|
|
@@ -2218,7 +2105,7 @@ export default {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
- }).catch(err => {});
|
|
|
+ }).catch(err => { });
|
|
|
return true;
|
|
|
}
|
|
|
},
|