|
@@ -1,79 +1,38 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div v-show="pageShow">
|
|
|
- <el-form
|
|
|
- :model="queryParams"
|
|
|
- ref="queryForm"
|
|
|
- v-show="showSearch"
|
|
|
- label-width="70px"
|
|
|
- size="small"
|
|
|
- >
|
|
|
+ <el-form :model="queryParams" ref="queryForm" v-show="showSearch" label-width="70px" size="small">
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="客户" prop="fCorpid">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fCorpid"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- placeholder="请输入关键词"
|
|
|
- style="width: 200px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in fMblnoOptions"
|
|
|
- :key="index.fId"
|
|
|
- :label="item.fName"
|
|
|
- :value="item.fId"
|
|
|
- ></el-option>
|
|
|
+ <el-select v-model="queryParams.fCorpid" clearable filterable placeholder="请输入关键词" style="width: 200px">
|
|
|
+ <el-option v-for="(item, index) in fMblnoOptions" :key="index.fId" :label="item.fName"
|
|
|
+ :value="item.fId"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="提单号" prop="fMblno">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fMblno"
|
|
|
- placeholder="请输入提单号"
|
|
|
- clearable
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.fMblno" placeholder="请输入提单号" clearable style="width: 200px"
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="出库日期" prop="timeInterval">
|
|
|
- <el-date-picker
|
|
|
- v-model="queryParams.timeInterval"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- clearable
|
|
|
- style="width: 230px"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- :picker-options="pickerOptions"
|
|
|
- unlink-panels
|
|
|
- >
|
|
|
+ <el-date-picker v-model="queryParams.timeInterval" type="daterange" value-format="yyyy-MM-dd" clearable
|
|
|
+ style="width: 230px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
+ @keyup.enter.native="handleQuery" :picker-options="pickerOptions" unlink-panels>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="车号" prop="fWarehouseid">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fTruckno"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- placeholder="请选择车号"
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in fTrucknoList"
|
|
|
- :key="index"
|
|
|
- :label="item.fTruckno"
|
|
|
- :value="item.fTruckno"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <el-select v-model="queryParams.fTruckno" clearable filterable placeholder="请选择车号" style="width: 200px"
|
|
|
+ @keyup.enter.native="handleQuery">
|
|
|
+ <el-option v-for="(item, index) in fTrucknoList" :key="index" :label="item.fTruckno"
|
|
|
+ :value="item.fTruckno"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-collapse-transition>
|
|
@@ -81,41 +40,22 @@
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="货物名称" prop="fGoodsid">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fGoodsid"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- placeholder="请选择货物名称"
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in goodsOptions"
|
|
|
- :key="index.fId"
|
|
|
- :label="item.fName"
|
|
|
- :value="item.fId"
|
|
|
- ></el-option>
|
|
|
+ <el-select v-model="queryParams.fGoodsid" clearable filterable placeholder="请选择货物名称"
|
|
|
+ style="width: 200px" @keyup.enter.native="handleQuery">
|
|
|
+ <el-option v-for="(item, index) in goodsOptions" :key="index.fId" :label="item.fName"
|
|
|
+ :value="item.fId"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="品牌" prop="fMarks">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fMarks"
|
|
|
- placeholder="请输入品牌"
|
|
|
- clearable
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.fMarks" placeholder="请输入品牌" clearable style="width: 200px"
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="出库状态" prop="fItemsStatus">
|
|
|
- <el-select
|
|
|
- style="width: 200px"
|
|
|
- v-model="queryParams.fItemsStatus"
|
|
|
- placeholder="请选择出库状态"
|
|
|
- >
|
|
|
+ <el-select style="width: 200px" v-model="queryParams.fItemsStatus" placeholder="请选择出库状态">
|
|
|
<el-option label="计划" value="1"></el-option>
|
|
|
<el-option label="卸货中" value="2" />
|
|
|
<el-option label="已装货" value="3" />
|
|
@@ -125,11 +65,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="费用状态" prop="fFeeStatus">
|
|
|
- <el-select
|
|
|
- style="width: 200px"
|
|
|
- v-model="queryParams.fFeeStatus"
|
|
|
- placeholder="请选择费用状态"
|
|
|
- >
|
|
|
+ <el-select style="width: 200px" v-model="queryParams.fFeeStatus" placeholder="请选择费用状态">
|
|
|
<el-option label="暂存" :value="1"></el-option>
|
|
|
<el-option label="部分" :value="2"></el-option>
|
|
|
<el-option label="全部入账" :value="3"></el-option>
|
|
@@ -140,84 +76,51 @@
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="业务编号" prop="fBillno">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fBillno"
|
|
|
- placeholder="请输入业务编号"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- style="width: 200px"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.fBillno" placeholder="请输入业务编号" clearable
|
|
|
+ @keyup.enter.native="handleQuery" style="width: 200px" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="制单人" prop="createBy">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.createBy"
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- placeholder="请输入关键词"
|
|
|
- style="width: 200px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in userOptions"
|
|
|
- :key="index.userName"
|
|
|
- :label="item.nickName"
|
|
|
- :value="item.userName"
|
|
|
- >
|
|
|
+ <el-select v-model="queryParams.createBy" filterable clearable placeholder="请输入关键词"
|
|
|
+ style="width: 200px">
|
|
|
+ <el-option v-for="(item, index) in userOptions" :key="index.userName" :label="item.nickName"
|
|
|
+ :value="item.userName">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="仓库" prop="fWarehouseid">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fWarehouseid"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- placeholder="请选择仓库"
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in warehouseOptions"
|
|
|
- :key="index.fId"
|
|
|
- :label="item.fName"
|
|
|
- :value="item.fId"
|
|
|
- ></el-option>
|
|
|
+ <el-select v-model="queryParams.fWarehouseid" clearable filterable placeholder="请选择仓库"
|
|
|
+ style="width: 200px" @keyup.enter.native="handleQuery">
|
|
|
+ <el-option v-for="(item, index) in warehouseOptions" :key="index.fId" :label="item.fName"
|
|
|
+ :value="item.fId"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
-<!-- <el-form-item label="经营单位" prop="fSbu">-->
|
|
|
-<!-- <el-select-->
|
|
|
-<!-- v-model="queryParams.fSbu"-->
|
|
|
-<!-- clearable-->
|
|
|
-<!-- filterable-->
|
|
|
-<!-- placeholder="请输入关键词"-->
|
|
|
-<!-- style="width: 200px"-->
|
|
|
-<!-- >-->
|
|
|
-<!-- <el-option-->
|
|
|
-<!-- v-for="(item, index) in fMblnoOptions"-->
|
|
|
-<!-- :key="index.fId"-->
|
|
|
-<!-- :label="item.fName"-->
|
|
|
-<!-- :value="item.fId"-->
|
|
|
-<!-- ></el-option>-->
|
|
|
-<!-- </el-select>-->
|
|
|
-<!-- </el-form-item>-->
|
|
|
+ <!-- <el-form-item label="经营单位" prop="fSbu">-->
|
|
|
+ <!-- <el-select-->
|
|
|
+ <!-- v-model="queryParams.fSbu"-->
|
|
|
+ <!-- clearable-->
|
|
|
+ <!-- filterable-->
|
|
|
+ <!-- placeholder="请输入关键词"-->
|
|
|
+ <!-- style="width: 200px"-->
|
|
|
+ <!-- >-->
|
|
|
+ <!-- <el-option-->
|
|
|
+ <!-- v-for="(item, index) in fMblnoOptions"-->
|
|
|
+ <!-- :key="index.fId"-->
|
|
|
+ <!-- :label="item.fName"-->
|
|
|
+ <!-- :value="item.fId"-->
|
|
|
+ <!-- ></el-option>-->
|
|
|
+ <!-- </el-select>-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="贸易方式" prop="fTrademodeid">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fTrademodeid"
|
|
|
- placeholder="请选择贸易方式"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- style="width: 200px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in fTrademodeidOptions"
|
|
|
- :key="index.dictValue"
|
|
|
- :label="item.dictLabel"
|
|
|
- :value="item.dictValue"
|
|
|
- />
|
|
|
+ <el-select v-model="queryParams.fTrademodeid" placeholder="请选择贸易方式" clearable
|
|
|
+ @keyup.enter.native="handleQuery" style="width: 200px">
|
|
|
+ <el-option v-for="(item, index) in fTrademodeidOptions" :key="index.dictValue"
|
|
|
+ :label="item.dictLabel" :value="item.dictValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -225,13 +128,8 @@
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="出库单号" prop="fEmblno">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fEmblno"
|
|
|
- placeholder="请输入出库单号"
|
|
|
- clearable
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.fEmblno" placeholder="请输入出库单号" clearable style="width: 200px"
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -240,152 +138,71 @@
|
|
|
</el-form>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['warehouseBusiness:outStock:add']"
|
|
|
- >新增
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
+ v-hasPermi="['warehouseBusiness:outStock:add']">新增
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- icon="el-icon-edit"
|
|
|
- size="mini"
|
|
|
- :disabled="single"
|
|
|
- @click="handleUpdate"
|
|
|
- v-hasPermi="['warehouseBusiness:outStock:edit']"
|
|
|
- >修改
|
|
|
+ <el-button type="success" icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
|
|
+ v-hasPermi="['warehouseBusiness:outStock:edit']">修改
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- icon="el-icon-download"
|
|
|
- size="mini"
|
|
|
- @click="handleExport"
|
|
|
- v-hasPermi="['warehouseBusiness:outStock:export']"
|
|
|
- >导出
|
|
|
+ <el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
+ v-hasPermi="['warehouseBusiness:outStock:export']">导出
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- icon="el-icon-download"
|
|
|
- size="mini"
|
|
|
- :disabled="single"
|
|
|
- @click="copyUpdate"
|
|
|
- v-hasPermi="['agreement:agreementStorage:export']"
|
|
|
- >复制新增
|
|
|
+ <el-button type="info" icon="el-icon-download" size="mini" :disabled="single" @click="copyUpdate"
|
|
|
+ v-hasPermi="['agreement:agreementStorage:export']">复制新增
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
<div class="tabSetting">
|
|
|
<div style="margin-right: 20px">
|
|
|
- <el-button
|
|
|
- type="cyan"
|
|
|
- icon="el-icon-search"
|
|
|
- size="mini"
|
|
|
- @click="handleQuery"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
- >重置</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-show="show"
|
|
|
- @click="show = !show"
|
|
|
- icon="el-icon-arrow-up"
|
|
|
- size="mini"
|
|
|
- >展开</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-show="!show"
|
|
|
- @click="show = !show"
|
|
|
- icon="el-icon-arrow-down"
|
|
|
- size="mini"
|
|
|
- >展开</el-button
|
|
|
- >
|
|
|
+ <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
+ <el-button v-show="show" @click="show = !show" icon="el-icon-arrow-up" size="mini">展开</el-button>
|
|
|
+ <el-button v-show="!show" @click="show = !show" icon="el-icon-arrow-down" size="mini">展开</el-button>
|
|
|
</div>
|
|
|
- <right-toolbar
|
|
|
- :showSearch.sync="showSearch"
|
|
|
- @queryTable="getList"
|
|
|
- ></right-toolbar>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
<div style="margin: 0 12px">
|
|
|
- <el-button
|
|
|
- icon="el-icon-setting"
|
|
|
- size="mini"
|
|
|
- circle
|
|
|
- @click="showSetting = !showSetting"
|
|
|
- ></el-button>
|
|
|
+ <el-button icon="el-icon-setting" size="mini" circle @click="showSetting = !showSetting"></el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-row>
|
|
|
- <el-dialog
|
|
|
- title="自定义列显示"
|
|
|
- :visible.sync="showSetting"
|
|
|
- width="700px"
|
|
|
- v-dialogDrag
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
+ <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px" v-dialogDrag :close-on-click-modal="false">
|
|
|
<template slot="title">
|
|
|
<div class="avue-crud__dialog__header">
|
|
|
<span class="el-dialog__title">
|
|
|
- <span
|
|
|
- style="
|
|
|
+ <span style="
|
|
|
display: inline-block;
|
|
|
width: 3px;
|
|
|
height: 20px;
|
|
|
margin-right: 5px;
|
|
|
float: left;
|
|
|
margin-top: 2px;
|
|
|
- "
|
|
|
- ></span>
|
|
|
+ "></span>
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div>配置排序列数据(拖动调整顺序)</div>
|
|
|
<div style="margin-left: 17px">
|
|
|
- <el-checkbox
|
|
|
- v-model="allCheck"
|
|
|
- label="全选"
|
|
|
- @change="allChecked"
|
|
|
- ></el-checkbox>
|
|
|
+ <el-checkbox v-model="allCheck" label="全选" @change="allChecked"></el-checkbox>
|
|
|
</div>
|
|
|
<div style="padding: 4px; display: flex; justify-content: center">
|
|
|
- <draggable
|
|
|
- v-model="setRowList"
|
|
|
- group="site"
|
|
|
- animation="300"
|
|
|
- @start="onStart"
|
|
|
- @end="onEnd"
|
|
|
- handle=".indraggable"
|
|
|
- >
|
|
|
+ <draggable v-model="setRowList" group="site" animation="300" @start="onStart" @end="onEnd"
|
|
|
+ handle=".indraggable">
|
|
|
<transition-group>
|
|
|
- <div
|
|
|
- v-for="item in setRowList"
|
|
|
- :key="item.surface"
|
|
|
- class="listStyle"
|
|
|
- >
|
|
|
+ <div v-for="item in setRowList" :key="item.surface" class="listStyle">
|
|
|
<div style="width: 500px" class="indraggable">
|
|
|
<div class="progress" :style="{ width: item.width + 'px' }">
|
|
|
- <el-checkbox
|
|
|
- :label="item.name"
|
|
|
- v-model="item.checked"
|
|
|
- :true-label="0"
|
|
|
- :false-label="1"
|
|
|
- >{{ item.name }}
|
|
|
+ <el-checkbox :label="item.name" v-model="item.checked" :true-label="0" :false-label="1">{{ item.name
|
|
|
+ }}
|
|
|
</el-checkbox>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-input-number
|
|
|
- v-model.number="item.width"
|
|
|
- controls-position="right"
|
|
|
- :min="1"
|
|
|
- :max="500"
|
|
|
- size="mini"
|
|
|
- ></el-input-number>
|
|
|
+ <el-input-number v-model.number="item.width" controls-position="right" :min="1" :max="500" size="mini">
|
|
|
+ </el-input-number>
|
|
|
</div>
|
|
|
</transition-group>
|
|
|
</draggable>
|
|
@@ -397,113 +214,56 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- :data="warehousebillsList"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- show-summary
|
|
|
- :summary-method="getSum"
|
|
|
- ref="table"
|
|
|
- :height="tableHeight"
|
|
|
- >
|
|
|
+ <el-table v-loading="loading" :data="warehousebillsList" @selection-change="handleSelectionChange" show-summary
|
|
|
+ :summary-method="getSum" ref="table" :height="tableHeight">
|
|
|
<el-table-column type="selection" width="60" fixed align="center" />
|
|
|
- <el-table-column
|
|
|
- type="index"
|
|
|
- label="行号"
|
|
|
- width="50"
|
|
|
- align="center"
|
|
|
- fixed
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- v-for="(item, index) in getRowList"
|
|
|
- :key="index"
|
|
|
- :label="item.name"
|
|
|
- :width="item.width"
|
|
|
- :prop="item.label"
|
|
|
- align="center"
|
|
|
- :fixed="item.fixed"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- sortable
|
|
|
- >
|
|
|
+ <el-table-column type="index" label="行号" width="50" align="center" fixed />
|
|
|
+ <el-table-column v-for="(item, index) in getRowList" :key="index" :label="item.name" :width="item.width"
|
|
|
+ :prop="item.label" align="center" :fixed="item.fixed" :show-overflow-tooltip="true" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="item.label == 'fMblno'">
|
|
|
- <el-link :underline="false" type="primary"
|
|
|
- ><div @click="handleUpdate(scope.row)">
|
|
|
+ <el-link :underline="false" type="primary">
|
|
|
+ <div @click="handleUpdate(scope.row)">
|
|
|
{{ scope.row.fMblno }}
|
|
|
- </div></el-link
|
|
|
- >
|
|
|
+ </div>
|
|
|
+ </el-link>
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.label == 'isPledge'">
|
|
|
+ <span>
|
|
|
+ {{ scope.row.isPledge | isPledgeFormat(isPledgeOptions) }}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
<span v-else>{{ scope.row[item.label] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- min-width="200"
|
|
|
- fixed="right"
|
|
|
- >
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" min-width="200" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row, true)"
|
|
|
- v-hasPermi="['warehouseBusiness:outStock:edit']"
|
|
|
- >查看
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row, true)"
|
|
|
+ v-hasPermi="['warehouseBusiness:outStock:edit']">查看
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- v-if="
|
|
|
- scope.row.fBillstatus == '录入' ||
|
|
|
- scope.row.fBillstatus == '暂存' ||
|
|
|
- scope.row.fBillstatus == '驳回'
|
|
|
- "
|
|
|
- @click="handleUpdate(scope.row, false)"
|
|
|
- v-hasPermi="['warehouseBusiness:outStock:edit']"
|
|
|
- >修改
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" v-if="
|
|
|
+ scope.row.fBillstatus == '录入' ||
|
|
|
+ scope.row.fBillstatus == '暂存' ||
|
|
|
+ scope.row.fBillstatus == '驳回'
|
|
|
+ " @click="handleUpdate(scope.row, false)" v-hasPermi="['warehouseBusiness:outStock:edit']">修改
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete"
|
|
|
v-if="(scope.row.fItemsStatus == '待出库' || scope.row.fItemsStatus == '计划') && scope.row.warehouseStatus < 4 && scope.row.isCreate == 1 || (scope.row.fItemsStatus == '待出库' || scope.row.fItemsStatus == '计划') && scope.row.warehouseStatus < 4 && scope.row.isCreate == 0"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['warehouseBusiness:outStock:remove']"
|
|
|
- >删除
|
|
|
+ @click="handleDelete(scope.row)" v-hasPermi="['warehouseBusiness:outStock:remove']">删除
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- v-if="
|
|
|
- scope.row.fBillstatus == '请核' ||
|
|
|
- scope.row.fBillstatus == '审核中'
|
|
|
- "
|
|
|
- @click="handleUpdate(scope.row, true)"
|
|
|
- >审核进度
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete" v-if="
|
|
|
+ scope.row.fBillstatus == '请核' ||
|
|
|
+ scope.row.fBillstatus == '审核中'
|
|
|
+ " @click="handleUpdate(scope.row, true)">审核进度
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <pagination
|
|
|
- v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList" />
|
|
|
</div>
|
|
|
- <add-or-update
|
|
|
- v-show="pageShow2"
|
|
|
- @changeShow="showAddOrUpdate"
|
|
|
- ref="addOrUpdateRef"
|
|
|
- :chiId="formId"
|
|
|
- :copyStatus="copyStatus"
|
|
|
- :key="timer"
|
|
|
- ></add-or-update>
|
|
|
+ <add-or-update v-show="pageShow2" @changeShow="showAddOrUpdate" ref="addOrUpdateRef" :chiId="formId"
|
|
|
+ :copyStatus="copyStatus" :key="timer"></add-or-update>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -528,7 +288,7 @@ import {
|
|
|
} from "@/api/warehouseBusiness/warehouseOutStock";
|
|
|
import { listCorps } from "@/api/basicdata/corps";
|
|
|
import { listWarehousesss } from "@/api/basicdata/warehouse";
|
|
|
-import {listGoods, queryVehicle} from "@/api/basicdata/goods";
|
|
|
+import { listGoods, queryVehicle } from "@/api/basicdata/goods";
|
|
|
import { listUser, queryUserVal } from "@/api/system/user";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import Cookies from "js-cookie";
|
|
@@ -753,7 +513,7 @@ export default {
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
surface: "26",
|
|
|
label: "fApplyMoney",
|
|
|
name: "开票金额",
|
|
@@ -776,6 +536,13 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: "29",
|
|
|
+ label: "isPledge",
|
|
|
+ name: "是否质押",
|
|
|
+ checked: 0,
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ surface: "30",
|
|
|
label: "remark",
|
|
|
name: "备注",
|
|
|
checked: 0,
|
|
@@ -794,7 +561,8 @@ export default {
|
|
|
formId: null,
|
|
|
ids: [],
|
|
|
copyStatus: null,
|
|
|
- fTrucknoList:[],
|
|
|
+ fTrucknoList: [],
|
|
|
+ isPledgeOptions:[],
|
|
|
pickerOptions: {
|
|
|
shortcuts: [{
|
|
|
text: '最近一周',
|
|
@@ -854,7 +622,7 @@ export default {
|
|
|
}
|
|
|
this.queryParams.timeInterval = [lYear + '-' + lMonth + '-' + '01 00:00:00', nYear + '-' + nMonth + '-' + nDay + '23:59:59']
|
|
|
|
|
|
- queryVehicle().then(res=>{
|
|
|
+ queryVehicle().then(res => {
|
|
|
this.fTrucknoList = res.data
|
|
|
})
|
|
|
this.setRowList = this.tableDate;
|
|
@@ -862,6 +630,9 @@ export default {
|
|
|
this.getDicts("data_trademodes").then((response) => {
|
|
|
this.fTrademodeidOptions = response.data;
|
|
|
});
|
|
|
+ this.getDicts('is_pledge').then((response) => {
|
|
|
+ this.isPledgeOptions = response.data
|
|
|
+ })
|
|
|
listGoods({ fStatus: 0, delFlag: 0 }).then((response) => {
|
|
|
this.goodsOptions = response.rows;
|
|
|
});
|
|
@@ -891,6 +662,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ isPledgeFormat(row, list) {
|
|
|
+ let name = ""
|
|
|
+ list.map((e) => {
|
|
|
+ if (row == e.dictValue) {
|
|
|
+ name = e.dictLabel;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 获取当前月的第一天和最后一天
|
|
|
getMonth() {
|
|
@@ -900,7 +682,7 @@ export default {
|
|
|
let currentMonth = date.getMonth()
|
|
|
let nextMonth = ++currentMonth
|
|
|
let nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1) // 下个月的第一天
|
|
|
- let oneDay = 1000*60*60*24
|
|
|
+ let oneDay = 1000 * 60 * 60 * 24
|
|
|
let lastTime = new Date(nextMonthFirstDay - oneDay) // 下个月的第一天减去一天,就是上个月的最后一天
|
|
|
let day = lastTime.getDate()
|
|
|
if (day < 10) {
|
|
@@ -1066,7 +848,7 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
- const fId = row.fId || this.ids[0]|| row;
|
|
|
+ const fId = row.fId || this.ids[0] || row;
|
|
|
this.copyStatus = null;
|
|
|
this.formId = fId;
|
|
|
this.$nextTick(() => {
|