|
@@ -1,6 +1,52 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <div v-show="pageShow">
|
|
|
+ <basic-container v-show="pageShow">
|
|
|
+ <avue-crud
|
|
|
+ ref="crud"
|
|
|
+ :option="option"
|
|
|
+ :search.sync="queryParams"
|
|
|
+ :data="warehousebillsList"
|
|
|
+ @resetColumn="resetColumn('crud','option','optionList',169)"
|
|
|
+ @saveColumn="saveColumn('crud','option','optionList',169)">
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="mini"
|
|
|
+ @click="handleAdd"
|
|
|
+ v-hasPermi="['warehouseBusiness:stockTransfer:add']"
|
|
|
+ >新增
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ size="mini"
|
|
|
+ :disabled="single"
|
|
|
+ @click="handleUpdate"
|
|
|
+ v-hasPermi="['warehouseBusiness:stockTransfer:edit']"
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="['warehouseBusiness:stockTransfer:export']"
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ :disabled="single"
|
|
|
+ @click="copyUpdate"
|
|
|
+ v-hasPermi="['agreement:agreementStorage:export']"
|
|
|
+ >复制新增
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
+ </basic-container>
|
|
|
+ <div v-show="pageShow" v-if="false">
|
|
|
<el-form
|
|
|
:model="queryParams"
|
|
|
ref="queryForm"
|
|
@@ -374,16 +420,14 @@
|
|
|
show-summary
|
|
|
:summary-method="getSum"
|
|
|
ref="table"
|
|
|
- :height="tableHeight"
|
|
|
- >
|
|
|
+ :height="tableHeight">
|
|
|
<el-table-column type="selection" width="60" fixed align="center" />
|
|
|
<el-table-column
|
|
|
type="index"
|
|
|
label="行号"
|
|
|
width="50"
|
|
|
align="center"
|
|
|
- fixed
|
|
|
- />
|
|
|
+ fixed/>
|
|
|
<el-table-column
|
|
|
v-for="(item, index) in getRowList"
|
|
|
:key="index"
|
|
@@ -393,15 +437,14 @@
|
|
|
align="center"
|
|
|
:fixed="item.fixed"
|
|
|
:show-overflow-tooltip="true"
|
|
|
- sortable
|
|
|
- >
|
|
|
+ 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>{{ scope.row[item.label] }}</span>
|
|
|
</template>
|
|
@@ -411,16 +454,15 @@
|
|
|
align="center"
|
|
|
class-name="small-padding fixed-width"
|
|
|
min-width="200"
|
|
|
- fixed="right"
|
|
|
- >
|
|
|
+ fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row, true)"
|
|
|
- v-hasPermi="['warehouseBusiness:stockTransfer:edit']"
|
|
|
- >查看
|
|
|
+ v-hasPermi="['warehouseBusiness:stockTransfer:edit']">
|
|
|
+ 查看
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -429,11 +471,10 @@
|
|
|
v-if="
|
|
|
scope.row.fBillstatus == '录入' ||
|
|
|
scope.row.fBillstatus == '暂存' ||
|
|
|
- scope.row.fBillstatus == '驳回'
|
|
|
- "
|
|
|
+ scope.row.fBillstatus == '驳回'"
|
|
|
@click="handleUpdate(scope.row, false)"
|
|
|
- v-hasPermi="['warehouseBusiness:stockTransfer:edit']"
|
|
|
- >修改
|
|
|
+ v-hasPermi="['warehouseBusiness:stockTransfer:edit']">
|
|
|
+ 修改
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -441,19 +482,16 @@
|
|
|
icon="el-icon-delete"
|
|
|
v-if="(scope.row.fItemsStatus == '待通关' || scope.row.fItemsStatus == '计划') && scope.row.isCreate == 1 || (scope.row.fItemsStatus == '待通关' || scope.row.fItemsStatus == '计划') && scope.row.isCreate == 0"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['warehouseBusiness:stockTransfer:remove']"
|
|
|
- >删除
|
|
|
+ v-hasPermi="['warehouseBusiness:stockTransfer: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)"
|
|
|
- >审核进度
|
|
|
+ v-if=" scope.row.fBillstatus == '请核' || scope.row.fBillstatus == '审核中'"
|
|
|
+ @click="handleUpdate(scope.row, true)">
|
|
|
+ 审核进度
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -463,8 +501,7 @@
|
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ @pagination="getList"/>
|
|
|
</div>
|
|
|
<add-or-update
|
|
|
v-show="pageShow2"
|
|
@@ -508,6 +545,170 @@ export default {
|
|
|
name: "plans",
|
|
|
data() {
|
|
|
return {
|
|
|
+ option:{},
|
|
|
+ optionList:{
|
|
|
+ border: true,
|
|
|
+ align: 'center',
|
|
|
+ stripe: true,
|
|
|
+ index: true,
|
|
|
+ menu: false,
|
|
|
+ addBtn: false,
|
|
|
+ editBtn: false,
|
|
|
+ delBtn: false,
|
|
|
+ height: "auto",
|
|
|
+ searchSpan: 8,
|
|
|
+ searchIcon: true,
|
|
|
+ searchIndex: 2,
|
|
|
+ highlightCurrentRow: true,
|
|
|
+ column:[
|
|
|
+ {
|
|
|
+ index: "0",
|
|
|
+ prop: "fMblno",
|
|
|
+ label: "提单号",
|
|
|
+ width: 200,
|
|
|
+ search: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "1",
|
|
|
+ prop: "createBy",
|
|
|
+ label: "制单人",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "2",
|
|
|
+ prop: "fStorekeeper",
|
|
|
+ label: "仓管员",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "3",
|
|
|
+ prop: "fItemsStatus",
|
|
|
+ label: "通关状态",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "4",
|
|
|
+ prop: "fCorpid",
|
|
|
+ label: "客户",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "6",
|
|
|
+ prop: "fProductName",
|
|
|
+ label: "品名",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "7",
|
|
|
+ prop: "fMarks",
|
|
|
+ label: "品牌",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "8",
|
|
|
+ prop: "fBsdate",
|
|
|
+ searchProp:"timeInterval",
|
|
|
+ label: "通关日期",
|
|
|
+ width: 100,
|
|
|
+ type:'datetime',
|
|
|
+ searchRange:true,
|
|
|
+ search:true,
|
|
|
+ unlinkPanels:true,
|
|
|
+ defaultTime: ['00:00:00', '23:59:59'],
|
|
|
+ format:'yyyy-MM-dd HH:mm:ss',
|
|
|
+ valueFormat:'yyyy-MM-dd HH:mm:ss',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "9",
|
|
|
+ prop: "fWarehouseid",
|
|
|
+ label: "调入仓库",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "10",
|
|
|
+ prop: "fInwarehouseid",
|
|
|
+ label: "调出仓库",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "11",
|
|
|
+ prop: "fPlanqty",
|
|
|
+ label: "计划通关件数",
|
|
|
+ width: 180,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "12",
|
|
|
+ prop: "fQty",
|
|
|
+ label: "通关件数",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "13",
|
|
|
+ prop: "fGrossweight",
|
|
|
+ label: "通关毛重(KG)",
|
|
|
+ width: 180,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "14",
|
|
|
+ prop: "fNetweight",
|
|
|
+ label: "通关净重(kg)",
|
|
|
+ width: 180,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "15",
|
|
|
+ prop: "fBusinessType",
|
|
|
+ label: "业务类别",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "16",
|
|
|
+ prop: "fFeeStatus",
|
|
|
+ label: "费用状态",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "17",
|
|
|
+ prop: "fBillno",
|
|
|
+ label: "系统编号",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "18",
|
|
|
+ prop: "fSbu",
|
|
|
+ label: "经营单位",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ showColumn: false,
|
|
|
+ hide:true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "19",
|
|
|
+ prop: "fTrademodeid",
|
|
|
+ label: "贸易方式",
|
|
|
+ width: 100,
|
|
|
+ search: true,
|
|
|
+ type:'select',
|
|
|
+ showColumn: false,
|
|
|
+ hide:true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
tableHeight:'600',
|
|
|
timer: "",
|
|
|
pageShow: true,
|
|
@@ -704,7 +905,8 @@ export default {
|
|
|
},
|
|
|
// 使用子组件
|
|
|
components: { draggable, AddOrUpdate },
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(169), this.optionList);
|
|
|
let date = new Date();
|
|
|
let lYear = parseInt(date.getFullYear())
|
|
|
let lMonth = parseInt(date.getMonth())
|
|
@@ -766,6 +968,29 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ //自定义列保存
|
|
|
+ async saveColumn(ref,option,optionBack,code) {
|
|
|
+ /**
|
|
|
+ * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
|
|
|
+ * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
|
|
|
+ * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
|
|
|
+ */
|
|
|
+ const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //自定义列重置
|
|
|
+ async resetColumn(ref,option,optionBack,code) {
|
|
|
+ this[option] = this[optionBack];
|
|
|
+ const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("重置成功");
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取当前月的第一天和最后一天
|
|
|
// getMonth() {
|
|
|
// let date = new Date();
|