|
@@ -14,9 +14,11 @@
|
|
|
@click="backToList(2)">返回台账
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <div v-if="roleNameTwo != '平台,调度派单'">
|
|
|
+ <div>
|
|
|
<div class="el-button--small-yh add-customer-btn">
|
|
|
- <el-button type="warning" size="small" @click="updateFee">更新账单</el-button>
|
|
|
+ <el-button type="info" icon="el-icon-printer" size="small" @click.stop="openReport()">派车通知
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="roleNameTwo != '平台,调度派单'" type="warning" size="small" @click="updateFee">更新账单</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,8 +64,8 @@
|
|
|
</basic-container>
|
|
|
<containerTitle title="起止地信息"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <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 property="date" align="center" width="40">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.$index == 0">
|
|
@@ -133,7 +135,8 @@
|
|
|
<!-- <span v-else>{{ row.fleetName }}</span>-->
|
|
|
<!-- </template>-->
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
|
- <el-button type="text" size="small" v-if="row.status === 0" @click="rowSaveT(row, index)">{{ row.$cellEdit ? '保 存'
|
|
|
+ <el-button type="text" size="small" v-if="row.status === 0" @click="rowSaveT(row, index)">{{ row.$cellEdit ?
|
|
|
+ '保 存'
|
|
|
: '修 改' }}
|
|
|
</el-button>
|
|
|
<el-button size="small" type="text" @click="designate(row, index)" v-if="row.status === 0">调 度
|
|
@@ -147,7 +150,8 @@
|
|
|
</el-button>
|
|
|
<el-button size="small" type="text" @click="annexOpen(row, index)">附 件
|
|
|
</el-button>
|
|
|
- <el-button type="text" size="small" v-if="row.status === 0" @click="rowSaveThree(row, index)">{{ row.$cellEdit ?
|
|
|
+ <el-button type="text" size="small" v-if="row.status === 0" @click="rowSaveThree(row, index)">{{ row.$cellEdit
|
|
|
+ ?
|
|
|
'确认调度派车' : '调度派车' }}
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -256,8 +260,8 @@
|
|
|
v-if="!(roleNameTwo.indexOf('调度中心业务员') !== -1 || roleNameTwo.indexOf('调度中心经理') !== -1)"></el-tab-pane>
|
|
|
<el-tab-pane label="应付" name="2"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
- <avue-crud v-if="activeIndex === '1'" :data="collectionList" :key="key" :option="collectionOption" ref="collection"
|
|
|
- @resetColumn="resetColumnCollection" @saveColumn="saveColumnCollection"
|
|
|
+ <avue-crud v-if="activeIndex === '1'" :data="collectionList" :key="key" :option="collectionOption"
|
|
|
+ ref="collection" @resetColumn="resetColumnCollection" @saveColumn="saveColumnCollection"
|
|
|
@row-save="(row, done, loading) => { rowSave(row, 0, done, loading) }" @row-update="rowSave" @row-del="makeDel">
|
|
|
<template slot-scope="{row}" slot="corpId">
|
|
|
<crop-select v-if="row.$cellEdit" v-model="row.corpId"
|
|
@@ -286,8 +290,8 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button v-if="roleNameTwo.indexOf('总调度') === -1" type="primary" icon="el-icon-plus" @click="addRowCollection"
|
|
|
- size="small">录入明细
|
|
|
+ <el-button v-if="roleNameTwo.indexOf('总调度') === -1" type="primary" icon="el-icon-plus"
|
|
|
+ @click="addRowCollection" size="small">录入明细
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
@@ -374,6 +378,8 @@
|
|
|
<el-button type="primary" @click="saveAnnex" size="small">保 存</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <report-dialog :switchDialog="switchDialog" :reportId="goodsForm.id" reportName="陆运-派车通知" @onClose="onClose()">
|
|
|
+ </report-dialog>
|
|
|
<track-playback :dialogVisible="dialogVisibleTwo" :lineArr="lineArr" ref="playback"></track-playback>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -398,7 +404,7 @@ import website from "@/config/website";
|
|
|
import { getDeptTree } from "@/api/system/dept";
|
|
|
import { customerList } from "@/api/basicData/basicFeesDesc";
|
|
|
import { gaude, location } from "@/api/gaude";
|
|
|
-
|
|
|
+import reportDialog from "@/components/report-dialog/main";
|
|
|
export default {
|
|
|
props: {
|
|
|
id: {
|
|
@@ -408,8 +414,12 @@ export default {
|
|
|
type: Boolean
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ reportDialog
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
+ switchDialog: false,
|
|
|
formData: {},
|
|
|
enclosure: false,
|
|
|
dialogVisibleTwo: false,
|
|
@@ -1441,6 +1451,12 @@ export default {
|
|
|
this.KeyBoxTwo++
|
|
|
},
|
|
|
methods: {
|
|
|
+ openReport() {
|
|
|
+ this.switchDialog = !this.switchDialog;
|
|
|
+ },
|
|
|
+ onClose(val) {
|
|
|
+ this.switchDialog = val;
|
|
|
+ },
|
|
|
updateFee() {
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|