|
@@ -1,123 +1,271 @@
|
|
-// 运输管理
|
|
|
|
|
|
+<!--运输任务-->
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<BaseHeaderLayout :leftSpan="20">
|
|
<BaseHeaderLayout :leftSpan="20">
|
|
- <template slot="right">
|
|
|
|
- <ws-form-item label="起点" span="1" prop="agent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.agent"
|
|
|
|
- placeholder="请输入起点"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
- <ws-form-item label="终点" span="1" prop="agent">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.agent"
|
|
|
|
- placeholder="请输入终点"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item>
|
|
|
|
|
|
+ <template slot="right">
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="handleAdd()"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >添加</ws-button
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
|
|
+ <template slot="left">
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="handleAdd()"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 执行中</ws-button
|
|
|
|
+ >
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ @click="handleLook()"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >已完成</ws-button
|
|
|
|
+ >
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ @click="handleEdit()"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >全部任务</ws-button
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ </template>
|
|
|
|
+ <template slot="left">
|
|
<ws-input
|
|
<ws-input
|
|
|
|
+ label="起点"
|
|
|
|
+
|
|
|
|
+ placeholder="请输入起点"
|
|
|
|
+ clearable
|
|
|
|
+ maxlength="200"
|
|
|
|
+ type="input"
|
|
|
|
+ class="find"
|
|
|
|
+ ></ws-input>
|
|
|
|
+
|
|
|
|
+ <ws-input
|
|
|
|
+ label="终点"
|
|
|
|
+
|
|
|
|
+ placeholder="请输入终点"
|
|
|
|
+ clearable
|
|
|
|
+ maxlength="200"
|
|
|
|
+ type="input"
|
|
|
|
+ class="find"
|
|
|
|
+ ></ws-input>
|
|
|
|
+ <ws-input
|
|
v-model="warehouseName"
|
|
v-model="warehouseName"
|
|
- placeholder="请输入仓库名"
|
|
|
|
|
|
+ placeholder="可按合同编号或运输任务编号查找"
|
|
clearable
|
|
clearable
|
|
maxlength="500"
|
|
maxlength="500"
|
|
type="input"
|
|
type="input"
|
|
class="findValue"
|
|
class="findValue"
|
|
></ws-input>
|
|
></ws-input>
|
|
- <ws-button
|
|
|
|
|
|
+ <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
|
|
|
|
+ <div class="search">
|
|
|
|
+ <ws-button
|
|
|
|
+ class="find"
|
|
type="primary"
|
|
type="primary"
|
|
- @click="handleLook()"
|
|
|
|
|
|
+ @click="lookUp()"
|
|
v-hasPermission="
|
|
v-hasPermission="
|
|
`${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
`${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
"
|
|
"
|
|
- >查找</ws-button
|
|
|
|
- >
|
|
|
|
- </template>
|
|
|
|
- <template slot="left">
|
|
|
|
-
|
|
|
|
|
|
+ ><img
|
|
|
|
+ width="16"
|
|
|
|
+ height="16"
|
|
|
|
+ style="
|
|
|
|
+ vertical-align: text-top;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: -8px;
|
|
|
|
+ "
|
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
|
+ alt=""
|
|
|
|
+ /></ws-button>
|
|
|
|
+ </div>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
- <div class="connert">
|
|
|
|
|
|
+ <div>
|
|
<el-table
|
|
<el-table
|
|
class="wenzi"
|
|
class="wenzi"
|
|
- :data="driverList.records"
|
|
|
|
|
|
+ :data="gainList"
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
- fit
|
|
|
|
height="780"
|
|
height="780"
|
|
>
|
|
>
|
|
- <el-table-column type="index" label="序号">
|
|
|
|
- <template scope="scope">
|
|
|
|
- <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
|
- <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="driverName" label="姓名" width="100">
|
|
|
|
|
|
+ <el-table-column prop="index" label="序号" width="80">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="numberCard" label="运输任务编号" width="200">
|
|
|
|
|
|
+ <el-table-column prop=" taskNo" label="运输任务编号" width="80">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="driverPhone" label="合同编号" width="120">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="carNumber" label="货物(吨数)" width="80">
|
|
|
|
|
|
+ <el-table-column prop=" contractNo" label="合同编号">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div
|
|
|
|
+ v-if="scope.row.capacity != 'null' && scope.row.capacity != null"
|
|
|
|
+ >
|
|
|
|
+ {{ scope.row.capacity }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="binNumber" label="运输方式" width="120">
|
|
|
|
|
|
+ <el-table-column prop=" weight" class="table_td" label="货物(吨数)" >
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
|
+ <div
|
|
|
|
+ style="height: 24px"
|
|
|
|
+ v-for="(item, i) in scope.row.warehouseNumViewList"
|
|
|
|
+ >
|
|
|
|
+ {{ item.inNetWeight }}
|
|
|
|
+ </div>
|
|
|
|
+ </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="carModel" label="起点" width="80">
|
|
|
|
|
|
+ <el-table-column class="table_td" label="运输方式">
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
|
+ <div
|
|
|
|
+ style="height: 24px"
|
|
|
|
+ v-for="(item, i) in scope.row.warehouseNumViewList"
|
|
|
|
+ >
|
|
|
|
+ {{ item.outNetWeight }}
|
|
|
|
+ </div>
|
|
|
|
+ </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="carLength" label="当前中转" width="80">
|
|
|
|
|
|
+ <el-table-column prop=" start" class="table_td" label="起点">
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
|
+ <div
|
|
|
|
+ style="height: 24px"
|
|
|
|
+ v-for="(item, i) in scope.row.warehouseNumViewList"
|
|
|
|
+ >
|
|
|
|
+ {{ item.storage }}
|
|
|
|
+ </div>
|
|
|
|
+ </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="carLength" label="终点" width="80">
|
|
|
|
|
|
+ <el-table-column prop="currentTransferAddress" class="table_td" label="当前中转">
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
|
+ <div
|
|
|
|
+ style="height: 24px"
|
|
|
|
+ v-for="(item, i) in scope.row.warehouseNumViewList"
|
|
|
|
+ >
|
|
|
|
+ {{ item.storage }}
|
|
|
|
+ </div>
|
|
|
|
+ </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="carLength" label="状态" width="80">
|
|
|
|
|
|
+ <el-table-column prop="end" class="table_td" label="终点">
|
|
|
|
+ <!-- <template slot-scope="scope"> -->
|
|
|
|
+ <!-- <div
|
|
|
|
+ style="height: 24px"
|
|
|
|
+ v-for="(item, i) in scope.row.warehouseNumViewList"
|
|
|
|
+ >
|
|
|
|
+ {{ item.storage }}
|
|
|
|
+ </div> -->
|
|
|
|
+ <!-- </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="address" label="操作" width="200">
|
|
|
|
- <ws-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="look()"
|
|
|
|
- v-hasPermission="
|
|
|
|
- `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
- "
|
|
|
|
- >查看</ws-button
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column prop="status" label="状态">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="left"
|
|
|
|
+ :width="285"
|
|
|
|
+ trigger="click"
|
|
|
|
+ visible-arrow="false"
|
|
|
|
+ @show="history(scope.row)"
|
|
>
|
|
>
|
|
- <ws-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="edit()"
|
|
|
|
- v-hasPermission="
|
|
|
|
- `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
- "
|
|
|
|
- >编辑</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="deletes()"
|
|
|
|
- v-hasPermission="
|
|
|
|
- `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
- "
|
|
|
|
- >删除</ws-button
|
|
|
|
- >
|
|
|
|
- <!-- </template> -->
|
|
|
|
|
|
+ <template>
|
|
|
|
+ <span slot="reference">
|
|
|
|
+ <span
|
|
|
|
+ v-if="scope.row.status =='待执行'"
|
|
|
|
+ class="executory"
|
|
|
|
+ ></span>
|
|
|
|
+ <span
|
|
|
|
+ v-if="scope.row.status == '执行中'"
|
|
|
|
+ class="inExecution"
|
|
|
|
+ ></span>
|
|
|
|
+ <span v-if="scope.row.status == '已完成'" class="done"></span
|
|
|
|
+ >{{scope.row.status}}
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ <div>
|
|
|
|
+ <p style="margin-top: 0; padding-left: 10px">操作历史</p>
|
|
|
|
+ <div v-for="(item, index) in historyList" class="flex">
|
|
|
|
+ <div class="vertical-text vertical-text-left">
|
|
|
|
+ {{ item.updateDate }}
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <div class="vertical-circle"></div>
|
|
|
|
+ <div
|
|
|
|
+ v-if="index != historyList.length - 1"
|
|
|
|
+ class="vertical-line"
|
|
|
|
+ ></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="vertical-text">
|
|
|
|
+ {{ item.operateUser }}<br />{{ item.dealMsg }}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-popover>
|
|
|
|
+ <img
|
|
|
|
+ width="17"
|
|
|
|
+ height="18"
|
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
|
+ @click="editClick(scope.row)"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="seller" label="操作" width="300">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <ws-button
|
|
|
|
+ class="completed"
|
|
|
|
+ @click="nocomplete(scope.row)"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 查看
|
|
|
|
+ </ws-button>
|
|
|
|
+ <ws-button
|
|
|
|
+ class="putstorage"
|
|
|
|
+ @click="warehousing(scope.row)"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 编辑
|
|
|
|
+ </ws-button>
|
|
|
|
+ <ws-button
|
|
|
|
+ class="deliverystorage"
|
|
|
|
+ @click="delivery(scope.row)"
|
|
|
|
+ v-hasPermission="
|
|
|
|
+ `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 删除
|
|
|
|
+ </ws-button>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <!-- <el-table-column prop="address" label="操作" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div class="record" @click="record(scope.row)">记录</div>
|
|
|
|
+ <div class="adjustment" @click="loss(scope.row)">盘损</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column> -->
|
|
</el-table>
|
|
</el-table>
|
|
- <el-pagination
|
|
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
- :current-page="currentPage"
|
|
|
|
- :page-size="deptCircularPage.pageSize"
|
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
- :total="deptBudgetTotal"
|
|
|
|
- >
|
|
|
|
- </el-pagination>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { selectDriver, billoperatehis } from '@/model/transport/index'
|
|
|
|
|
|
+import {
|
|
|
|
+ gain,
|
|
|
|
+} from '@/model/transport/index'
|
|
|
|
+import { downloadFile } from '@/utils/batchDown'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
-// provinceAndCityData省市二级
|
|
|
|
-import { provinceAndCityData, CodeToText } from 'element-china-area-data'
|
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
export default {
|
|
export default {
|
|
@@ -139,34 +287,29 @@ export default {
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
- options_: provinceAndCityData,
|
|
|
|
|
|
+ // 船舶类型
|
|
|
|
+ monetaryKey: null,
|
|
// 表格显示数据
|
|
// 表格显示数据
|
|
tableDate: [],
|
|
tableDate: [],
|
|
|
|
+
|
|
// 是否显示
|
|
// 是否显示
|
|
showType: true,
|
|
showType: true,
|
|
// 年
|
|
// 年
|
|
year: '',
|
|
year: '',
|
|
- deptBudgetTotal: 0,
|
|
|
|
|
|
+ gainList:[],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchType: 1,
|
|
searchType: 1,
|
|
|
|
+ searchTypeText: '未完成',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
contractType: 2,
|
|
contractType: 2,
|
|
- startDate: null,
|
|
|
|
- endDate: null,
|
|
|
|
- searchTypeText: '',
|
|
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
size: 10,
|
|
size: 10,
|
|
spanArr: [],
|
|
spanArr: [],
|
|
|
|
+ warehouseName: '',
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
- date: {
|
|
|
|
- year: dayjs().format('YYYY'),
|
|
|
|
- month: dayjs().format('MM'),
|
|
|
|
- },
|
|
|
|
- driverList: [],
|
|
|
|
- deptBudgetList: {},
|
|
|
|
historyList: [],
|
|
historyList: [],
|
|
pickerBeginDateBefore: {
|
|
pickerBeginDateBefore: {
|
|
disabledDate: (time) => {
|
|
disabledDate: (time) => {
|
|
@@ -177,25 +320,141 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
|
|
+
|
|
this.getList()
|
|
this.getList()
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//查找
|
|
//查找
|
|
|
|
+ lookUp(){
|
|
|
|
+ this.currentPage= 1
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
|
|
+ getList() {
|
|
|
|
+ gain({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ currentPage:this.currentPage,
|
|
|
|
+ pageSize:this.pageSize,
|
|
|
|
+ searchType:this.searchType,
|
|
|
|
+ searchKeyWord:this.searchKeyWord,
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response)=>{
|
|
|
|
+ this.gainList = response
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //编辑
|
|
|
|
+ delivery(item) {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: 'tranManagementTransportEdit',
|
|
|
|
+ query: {
|
|
|
|
+ baseId: item.warehouseId,
|
|
|
|
+ positionId: item.binNumberId,
|
|
|
|
+ warehouseName: item.warehouseName,
|
|
|
|
+ binNumber: item.binNumber,
|
|
|
|
+ capacity: item.capacity,
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //查看
|
|
|
|
+ warehousing(item) {
|
|
|
|
+ var free = 0
|
|
|
|
+ for (var i = 0; i < item.warehouseNumViewList.length; i++) {
|
|
|
|
+ free += Number(item.warehouseNumViewList[i].storage)
|
|
|
|
+ }
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: 'tranManagementLook',
|
|
|
|
+ query: {
|
|
|
|
+ baseId: item.warehouseId,
|
|
|
|
+ positionId: item.binNumberId,
|
|
|
|
+ warehouseName: item.warehouseName,
|
|
|
|
+ binNumber: item.binNumber,
|
|
|
|
+ capacity:item.capacity - free ,
|
|
|
|
+ },
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getSpanArr(data) {
|
|
|
|
+ let that = this
|
|
|
|
+
|
|
|
|
+ //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
|
|
|
|
+
|
|
|
|
+ that.spanArr = []
|
|
|
|
+
|
|
|
|
+ that.pos = 0
|
|
|
|
+
|
|
|
|
+ //遍历数据
|
|
|
|
+
|
|
|
|
+ data.forEach((item, index) => {
|
|
|
|
+ //判断是否是第一项
|
|
|
|
+
|
|
|
|
+ // if (index === 0) {
|
|
|
|
+ // this.spanArr.push(1)
|
|
|
|
+ // this.pos = 0
|
|
|
|
+ // } else {
|
|
|
|
+ //不是第一项时,就根据标识去存储
|
|
|
|
+ if (data[index].warehouseNumViewList.length > 1) {
|
|
|
|
+ // 查找到符合条件的数据时每次要把之前存储的数据+1
|
|
|
|
+ this.spanArr[this.pos] = data[index].warehouseNumViewList.length
|
|
|
|
+ this.spanArr.push(0)
|
|
|
|
+ } else {
|
|
|
|
+ // 没有符合的数据时,要记住当前的index
|
|
|
|
+ this.spanArr.push(1)
|
|
|
|
+ this.pos = index
|
|
|
|
+ }
|
|
|
|
+ // }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //查看//传参
|
|
|
|
+ nocomplete(row) {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: 'tranManagementLook',
|
|
|
|
+ // query: {
|
|
|
|
+ // baseId: row.warehouseId,
|
|
|
|
+ // positionId: row.binNumberId,
|
|
|
|
+ // warehouseName: row.warehouseName,
|
|
|
|
+ // binNumber: row.binNumber,
|
|
|
|
+ // },
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //记录
|
|
|
|
+ // record(item) {
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // name: 'warehouseManagementRecord',
|
|
|
|
+ // query: {
|
|
|
|
+ // baseId: item.warehouseId,
|
|
|
|
+ // positionId: item.binNumberId,
|
|
|
|
+ // warehouseName: item.warehouseName,
|
|
|
|
+ // },
|
|
|
|
+ // params: {
|
|
|
|
+ // remark: item.remark,
|
|
|
|
+ // binNumber: item.binNumber,
|
|
|
|
+ // capacity: item.capacity,
|
|
|
|
+ // },
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ //盘损
|
|
|
|
+ // loss(item) {
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: 'warehouseManagementIoss',
|
|
|
|
+ // query: {
|
|
|
|
+ // baseId: item.warehouseId,
|
|
|
|
+ // positionId: item.binNumberId,
|
|
|
|
+ // warehouseName: item.warehouseName,
|
|
|
|
+ // binNumber: item.binNumber,
|
|
|
|
+ // },
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ //查看
|
|
handleLook() {
|
|
handleLook() {
|
|
- this.currentPage = 1
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.$router.push({ path: 'tranManagementLook' })
|
|
},
|
|
},
|
|
//添加
|
|
//添加
|
|
handleAdd() {
|
|
handleAdd() {
|
|
- this.$router.push({ path: 'tranManagementDriverAdd' })
|
|
|
|
|
|
+ this.$router.push({ path: 'tranManagementTransportAdd' })
|
|
},
|
|
},
|
|
//编辑
|
|
//编辑
|
|
handleEdit() {
|
|
handleEdit() {
|
|
- this.$router.push({ path: 'warehouseManagementEdit' })
|
|
|
|
- },
|
|
|
|
- handleDelete() {
|
|
|
|
- this.$router.push({ path: 'warehouseManagementDelete' })
|
|
|
|
|
|
+ this.$router.push({ path: 'tranManagementTransportEdit' })
|
|
},
|
|
},
|
|
dateFormat(fmt, date) {
|
|
dateFormat(fmt, date) {
|
|
let ret
|
|
let ret
|
|
@@ -232,22 +491,6 @@ export default {
|
|
console.log(`当前页: ${val}`)
|
|
console.log(`当前页: ${val}`)
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
- getList() {
|
|
|
|
- selectDriver({
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- currentPage: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- searchType: this.searchType,
|
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.deptCircularPage.currentPage = response.current
|
|
|
|
- this.deptCircularPage.pageSize = response.size
|
|
|
|
- this.deptBudgetTotal = response.total
|
|
|
|
- this.driverList = response
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
editClick(row) {
|
|
editClick(row) {
|
|
var status = ''
|
|
var status = ''
|
|
if (row.status == '待执行' || row.status == '已完成') {
|
|
if (row.status == '待执行' || row.status == '已完成') {
|
|
@@ -280,21 +523,11 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
- this.selectedOptions = e
|
|
|
|
- },
|
|
|
|
- fujian(row) {
|
|
|
|
- if (
|
|
|
|
- row.receiveAttachmentPath === null ||
|
|
|
|
- row.receiveAttachmentPath === ''
|
|
|
|
- ) {
|
|
|
|
- EventBus.$emit(
|
|
|
|
- 'warning',
|
|
|
|
- this.$t('system.noticeCircular.NoInformation')
|
|
|
|
- )
|
|
|
|
- } else {
|
|
|
|
- this.accessoryTFs = true
|
|
|
|
|
|
+ for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
|
+ if (this.taskTypeList[i].value == e) {
|
|
|
|
+ this.searchType = this.taskTypeList[i].type
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- this.appendixIdss = row.receiveAttachmentPath
|
|
|
|
},
|
|
},
|
|
handleExamine(row) {
|
|
handleExamine(row) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -307,7 +540,6 @@ export default {
|
|
this.dialogViewSpareMoney = false
|
|
this.dialogViewSpareMoney = false
|
|
},
|
|
},
|
|
history(row) {
|
|
history(row) {
|
|
- console.log(row)
|
|
|
|
billoperatehis({ id: row.id })
|
|
billoperatehis({ id: row.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -315,11 +547,32 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
find() {
|
|
find() {
|
|
- this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
|
|
|
|
- this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
|
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
|
|
+ async exportlist() {
|
|
|
|
+ const { data } = await export1(
|
|
|
|
+ {
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ contractType: this.contractType,
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ searchType: this.searchType,
|
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
|
+ startDate: this.startDate,
|
|
|
|
+ endDate: this.endDate,
|
|
|
|
+ },
|
|
|
|
+ {},
|
|
|
|
+ { responseType: 'blob' }
|
|
|
|
+ ).toPromise()
|
|
|
|
+ downloadFile({
|
|
|
|
+ res: data,
|
|
|
|
+ fileName: `${
|
|
|
|
+ this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
|
+ }_采购合同`,
|
|
|
|
+ type: 'xls',
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -332,7 +585,80 @@ export default {
|
|
width: 62px;
|
|
width: 62px;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
-.findValue {
|
|
|
|
- margin: 0 10px;
|
|
|
|
|
|
+.el-button--primary {
|
|
|
|
+ background-color: #5878e8;
|
|
|
|
+ border-color: #5878e8;
|
|
|
|
+}
|
|
|
|
+.el-button--default {
|
|
|
|
+ color: #8890b1;
|
|
|
|
+ border-color: #e8eaf1;
|
|
|
|
+}
|
|
|
|
+/deep/.base_header_layout .grid-content.right .find.el-button--primary {
|
|
|
|
+ width: 30px;
|
|
|
|
+ margin-left: 0;
|
|
|
|
+ border-top-left-radius: 0px;
|
|
|
|
+ border-bottom-left-radius: 0px;
|
|
|
|
+}
|
|
|
|
+/deep/.findValue .el-input__inner {
|
|
|
|
+ border-top-right-radius: 0px;
|
|
|
|
+ border-bottom-right-radius: 0px;
|
|
|
|
+}
|
|
|
|
+.completed.el-button--default {
|
|
|
|
+ border-color: #5878e8;
|
|
|
|
+ background-color: #f6f7fc;
|
|
|
|
+ color: #5878e8;
|
|
|
|
+}
|
|
|
|
+.putstorage.el-button--default,
|
|
|
|
+.deliverystorage.el-button--default {
|
|
|
|
+ border-color: #8890b1;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ color: #8890b1;
|
|
|
|
+}
|
|
|
|
+/deep/.el-table td,
|
|
|
|
+/deep/.el-table th.is-leaf {
|
|
|
|
+ border-right: 1px solid #e9ecf7;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+/deep/.el-table tr td:first-child,
|
|
|
|
+/deep/.el-table tr th.is-leaf:first-child {
|
|
|
|
+ border-left: 1px solid #e9ecf7;
|
|
|
|
+}
|
|
|
|
+.record,
|
|
|
|
+.adjustment {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ color: #5878e8;
|
|
|
|
+ padding: 0 4px !important;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.record:after {
|
|
|
|
+ position: absolute;
|
|
|
|
+ content: '';
|
|
|
|
+ display: block;
|
|
|
|
+ top: 5px;
|
|
|
|
+ right: -2px;
|
|
|
|
+ width: 1px;
|
|
|
|
+ height: 12px;
|
|
|
|
+ background: #e9ecf7;
|
|
|
|
+}
|
|
|
|
+.el-row{
|
|
|
|
+ height: 150px;
|
|
|
|
+}
|
|
|
|
+.base_header_layout .grid-content{
|
|
|
|
+ margin-top: 80px;
|
|
|
|
+}
|
|
|
|
+.but{
|
|
|
|
+ margin-top: 150px;
|
|
|
|
+}
|
|
|
|
+.findValue{
|
|
|
|
+ width: 50%;
|
|
|
|
+ margin-left: 25%;
|
|
|
|
+}
|
|
|
|
+/deep/.el-input--small .el-input__inner{
|
|
|
|
+ margin-left: -230px;
|
|
|
|
+ width: 300px;
|
|
|
|
+}
|
|
|
|
+.search{
|
|
|
|
+ margin-left: -100px;
|
|
}
|
|
}
|
|
|
|
+
|
|
</style>
|
|
</style>
|