|
|
@@ -8,14 +8,29 @@
|
|
|
<el-tab-pane label="已取消" name="third" />
|
|
|
<el-tab-pane label="全部" name="fourth" />
|
|
|
</el-tabs>
|
|
|
- <avue-crud ref="crud" :option="option" :data="dataList" v-model="form" :page.sync="page" :search.sync="search"
|
|
|
- @search-change="searchChange" @current-change="currentChange" @size-change="sizeChange"
|
|
|
- @refresh-change="refreshChange" @on-load="onLoad" :table-loading="loading" @saveColumn="saveColumn"
|
|
|
- @resetColumn="resetColumn" :cell-style="cellStyle" :summary-method="summaryMethod"
|
|
|
- @selection-change="selectionChange" @expand-change="expandChange" @search-criteria-switch="searchCriteriaSwitch">
|
|
|
+ <avue-crud
|
|
|
+ ref="crud"
|
|
|
+ :option="option"
|
|
|
+ :data="dataList"
|
|
|
+ v-model="form"
|
|
|
+ :page.sync="page"
|
|
|
+ :search.sync="search"
|
|
|
+ @search-change="searchChange"
|
|
|
+ @current-change="currentChange"
|
|
|
+ @size-change="sizeChange"
|
|
|
+ @refresh-change="refreshChange"
|
|
|
+ @on-load="onLoad"
|
|
|
+ :table-loading="loading"
|
|
|
+ :cell-style="cellStyle"
|
|
|
+ :summary-method="summaryMethod"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ @expand-change="expandChange"
|
|
|
+ @search-criteria-switch="searchCriteriaSwitch"
|
|
|
+ @resetColumn="resetColumn('crud', 'option', 'optionBack', 0)"
|
|
|
+ @saveColumn="saveColumn('crud', 'option', 'optionBack', 0)"
|
|
|
+ >
|
|
|
<template slot-scope="{ row }" slot="expand">
|
|
|
- <avue-crud :data="row.itemData" :option="itemOption" :table-loading="row.itemLoading" :cell-style="cellStyle"
|
|
|
- class="itemTable">
|
|
|
+ <avue-crud :data="row.itemData" :option="itemOption" :table-loading="row.itemLoading" :cell-style="cellStyle" class="itemTable">
|
|
|
<template slot-scope="{ row }" slot="orderQuantity">
|
|
|
<span>{{ row.orderQuantity | decimalFormat2 }}</span>
|
|
|
</template>
|
|
|
@@ -37,8 +52,7 @@
|
|
|
<span>{{ row.amount | decimalFormat2 }}</span>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="orderStatus">
|
|
|
- <span v-for="item in orderStatusList" :style="{ color: item.colour }"
|
|
|
- v-if="item.dictValue == row.orderStatus">{{ row.orderStatus }}</span>
|
|
|
+ <span v-for="item in orderStatusList" :style="{ color: item.colour }" v-if="item.dictValue == row.orderStatus">{{ row.orderStatus }}</span>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="purchaseAmount">
|
|
|
<span>{{ row.purchaseAmount | decimalFormat2 }}</span>
|
|
|
@@ -53,41 +67,57 @@
|
|
|
<port-info v-model="search.portOfDestination" />
|
|
|
</template>
|
|
|
<template slot="businesDateSearch">
|
|
|
- <el-date-picker v-model="search.businesDate" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="search.businesDate"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot="dateValiditySearch">
|
|
|
- <el-date-picker v-model="search.dateValidity" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="search.dateValidity"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot="createTimeSearch">
|
|
|
- <el-date-picker v-model="search.createTime" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
- format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="search.createTime"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</template>
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="small" @click.stop="newAdd()">创建单据
|
|
|
- </el-button>
|
|
|
- <el-button type="success" size="small" @click.stop="copyDoc()"
|
|
|
- :disabled="selectionList.length != 1">复制单据</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="small" @click.stop="newAdd()">创建单据 </el-button>
|
|
|
+ <el-button type="success" size="small" @click.stop="copyDoc()" :disabled="selectionList.length != 1">复制单据</el-button>
|
|
|
<el-button type="info" size="small">报表打印</el-button>
|
|
|
</template>
|
|
|
<template slot="corpIdSearch">
|
|
|
<crop-select v-model="search.corpId" corpType="KH"></crop-select>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="corpId">
|
|
|
- <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(scope.row, 1)">{{ scope.row.corpsName }}
|
|
|
- </span>
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(scope.row, 1)">{{ scope.row.corpsName }} </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="orderNo">
|
|
|
- <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(scope.row, 1)">{{ scope.row.orderNo }}
|
|
|
- </span>
|
|
|
+ <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(scope.row, 1)">{{ scope.row.orderNo }} </span>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
- <el-button type="text" icon="el-icon-delete" size="small" @click.stop="rowDel(scope.row, scope.index)">删除
|
|
|
- </el-button>
|
|
|
+ <el-button type="text" icon="el-icon-delete" size="small" @click.stop="rowDel(scope.row, scope.index)">删除 </el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
@@ -97,12 +127,7 @@
|
|
|
|
|
|
<script>
|
|
|
import option from "./config/mainList.json";
|
|
|
-import {
|
|
|
- getList,
|
|
|
- remove,
|
|
|
- gainUser,
|
|
|
- getGoodsInfo
|
|
|
-} from "@/api/basicData/customerInquiry";
|
|
|
+import { getList, remove, gainUser, getGoodsInfo } from "@/api/basicData/customerInquiry";
|
|
|
import detailPage from "./detailsPage";
|
|
|
import { defaultDate } from "@/util/date";
|
|
|
import { micrometerFormat2, IntegerFormat, decimalFormat2 } from "@/util/validate";
|
|
|
@@ -111,13 +136,283 @@ export default {
|
|
|
name: "customerInformation",
|
|
|
data() {
|
|
|
return {
|
|
|
- activeName: 'second',
|
|
|
+ activeName: "second",
|
|
|
tabType: 2,
|
|
|
search: {
|
|
|
businesDate: defaultDate()
|
|
|
},
|
|
|
form: {},
|
|
|
option: {},
|
|
|
+ optionBack: {
|
|
|
+ searchShow: true,
|
|
|
+ searchMenuSpan: 24,
|
|
|
+ border: true,
|
|
|
+ index: true,
|
|
|
+ viewBtn: false,
|
|
|
+ editBtn: false,
|
|
|
+ delBtn: false,
|
|
|
+ addBtn: false,
|
|
|
+ headerAlign: "center",
|
|
|
+ menuWidth: "70",
|
|
|
+ showSummary: true,
|
|
|
+ searchIcon: true,
|
|
|
+ searchIndex: 2,
|
|
|
+ selection: true,
|
|
|
+ tip: false,
|
|
|
+ expand: true,
|
|
|
+ expandWidth: 38,
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "客户名称",
|
|
|
+ prop: "corpId",
|
|
|
+ search: true,
|
|
|
+ index: 1,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "详情信息",
|
|
|
+ prop: "clientMessage",
|
|
|
+ index: 2,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "报价日期",
|
|
|
+ prop: "businesDate",
|
|
|
+ search: true,
|
|
|
+ index: 1.2,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8,
|
|
|
+ type: "date",
|
|
|
+ format: "yyyy-MM-dd"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单号",
|
|
|
+ prop: "orderNo",
|
|
|
+ search: true,
|
|
|
+ index: 1.3,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "有效日期",
|
|
|
+ prop: "dateValidity",
|
|
|
+ search: true,
|
|
|
+ index: 5,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8,
|
|
|
+ type: "date",
|
|
|
+ format: "yyyy-MM-dd"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "价格条款",
|
|
|
+ prop: "priceTerms",
|
|
|
+ index: 1.4,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "收款方式",
|
|
|
+ prop: "paymentType",
|
|
|
+ index: 7,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "运输方式",
|
|
|
+ prop: "transport",
|
|
|
+ index: 8,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "箱型",
|
|
|
+ prop: "boxPile",
|
|
|
+ index: 1.5,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "箱量",
|
|
|
+ prop: "boxNumber",
|
|
|
+ index: 1.6,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单状态",
|
|
|
+ prop: "orderStatus",
|
|
|
+ search: true,
|
|
|
+ index: 11,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ type: "select",
|
|
|
+ props: {
|
|
|
+ label: "dictValue",
|
|
|
+ value: "dictValue"
|
|
|
+ },
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "起运港",
|
|
|
+ prop: "portOfLoad",
|
|
|
+ search: true,
|
|
|
+ index: 1.7,
|
|
|
+ minWidth: 140,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "目的港",
|
|
|
+ prop: "portOfDestination",
|
|
|
+ search: true,
|
|
|
+ index: 1.8,
|
|
|
+ minWidth: 140,
|
|
|
+ overHidden: true,
|
|
|
+ type: "select",
|
|
|
+ filterable: true,
|
|
|
+ dicData: [],
|
|
|
+ props: {
|
|
|
+ label: "name",
|
|
|
+ value: "name"
|
|
|
+ },
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "数量合计",
|
|
|
+ prop: "orderQuantity",
|
|
|
+ index: 1.9,
|
|
|
+ minWidth: 80,
|
|
|
+ align: "right",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "产品毛利",
|
|
|
+ prop: "grossProfit",
|
|
|
+ index: 2,
|
|
|
+ minWidth: 110,
|
|
|
+ align: "right",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "产品利率",
|
|
|
+ prop: "grossProfitRate",
|
|
|
+ index: 2.1,
|
|
|
+ minWidth: 70,
|
|
|
+ align: "right",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "销售金额",
|
|
|
+ prop: "amount",
|
|
|
+ index: 2.2,
|
|
|
+ minWidth: 110,
|
|
|
+ align: "right",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "采购金额",
|
|
|
+ prop: "purchaseAmount",
|
|
|
+ index: 18,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ align: "right",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品名称",
|
|
|
+ prop: "",
|
|
|
+ search: true,
|
|
|
+ index: 19,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ hide: true,
|
|
|
+ showColumn: false,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "系统号",
|
|
|
+ prop: "sysNo",
|
|
|
+ search: true,
|
|
|
+ index: 20,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "制单人",
|
|
|
+ prop: "createUser",
|
|
|
+ index: 2.3,
|
|
|
+ minWidth: 80,
|
|
|
+ search: true,
|
|
|
+ overHidden: true,
|
|
|
+ type: "select",
|
|
|
+ dicData: [],
|
|
|
+ props: {
|
|
|
+ label: "name",
|
|
|
+ value: "id"
|
|
|
+ },
|
|
|
+ filterable: true,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "制单日期",
|
|
|
+ prop: "createTime",
|
|
|
+ index: 22,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ search: true,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8,
|
|
|
+ type: "date",
|
|
|
+ format: "yyyy-MM-dd"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "船务状态",
|
|
|
+ prop: "ifShipping",
|
|
|
+ index: 23,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "orderRemark",
|
|
|
+ index: 2.4,
|
|
|
+ minWidth: 80,
|
|
|
+ search: true,
|
|
|
+ overHidden: true,
|
|
|
+ searchSpan: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "采购备注",
|
|
|
+ prop: "purchaseRemark",
|
|
|
+ index: 25,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "销售备注",
|
|
|
+ prop: "shippingRemark",
|
|
|
+ index: 26,
|
|
|
+ hide: true,
|
|
|
+ minWidth: 80,
|
|
|
+ overHidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
parentId: 0,
|
|
|
dataList: [],
|
|
|
page: {
|
|
|
@@ -199,9 +494,8 @@ export default {
|
|
|
*/
|
|
|
this.option = await this.getColumnData(this.getColumnName(0), option);
|
|
|
this.getWorkDicts("order_status").then(res => {
|
|
|
- this.findObject(this.option.column, "orderStatus").dicData =
|
|
|
- res.data.data;
|
|
|
- this.orderStatusList = res.data.data
|
|
|
+ this.findObject(this.option.column, "orderStatus").dicData = res.data.data;
|
|
|
+ this.orderStatusList = res.data.data;
|
|
|
});
|
|
|
gainUser().then(res => {
|
|
|
this.findObject(this.option.column, "createUser").dicData = res.data.data;
|
|
|
@@ -228,16 +522,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleClick(tab, event) {
|
|
|
- if (this.activeName == 'first') {
|
|
|
- this.tabType = 1
|
|
|
- } else if (this.activeName == 'second') {
|
|
|
- this.tabType = 2
|
|
|
- } else if (this.activeName == 'third') {
|
|
|
- this.tabType = 3
|
|
|
- } else if (this.activeName == 'fourth') {
|
|
|
- this.tabType = ''
|
|
|
- } else if (this.activeName == 'fifth') {
|
|
|
- this.tabType = 4
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ this.tabType = 1;
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ this.tabType = 2;
|
|
|
+ } else if (this.activeName == "third") {
|
|
|
+ this.tabType = 3;
|
|
|
+ } else if (this.activeName == "fourth") {
|
|
|
+ this.tabType = "";
|
|
|
+ } else if (this.activeName == "fifth") {
|
|
|
+ this.tabType = 4;
|
|
|
}
|
|
|
this.onLoad(this.page, this.search);
|
|
|
},
|
|
|
@@ -319,22 +613,22 @@ export default {
|
|
|
params.orderStartDate = params.businesDate[0];
|
|
|
params.orderEndDate = params.businesDate[1];
|
|
|
} else {
|
|
|
- delete params.orderStartDate
|
|
|
- delete params.orderEndDate
|
|
|
+ delete params.orderStartDate;
|
|
|
+ delete params.orderEndDate;
|
|
|
}
|
|
|
if (params.dateValidity) {
|
|
|
params.dateValidityStart = params.dateValidity[0];
|
|
|
params.dateValidityEnd = params.dateValidity[1];
|
|
|
} else {
|
|
|
- delete params.dateValidityStart
|
|
|
- delete params.dateValidityEnd
|
|
|
+ delete params.dateValidityStart;
|
|
|
+ delete params.dateValidityEnd;
|
|
|
}
|
|
|
if (params.createTime) {
|
|
|
params.createTimeStart = params.createTime[0];
|
|
|
params.createTimeEnd = params.createTime[1];
|
|
|
} else {
|
|
|
- delete params.createTimeStart
|
|
|
- delete params.createTimeEnd
|
|
|
+ delete params.createTimeStart;
|
|
|
+ delete params.createTimeEnd;
|
|
|
}
|
|
|
this.search = this.deepClone(params);
|
|
|
delete params.businesDate;
|
|
|
@@ -362,7 +656,7 @@ export default {
|
|
|
params = {
|
|
|
...params,
|
|
|
tabType: this.tabType
|
|
|
- }
|
|
|
+ };
|
|
|
let data = this.deepClone(Object.assign(params, this.search));
|
|
|
delete data.businesDate;
|
|
|
delete data.dateValidity;
|
|
|
@@ -390,11 +684,7 @@ export default {
|
|
|
if (columns.length > 0) {
|
|
|
columns.forEach((item, index) => {
|
|
|
sums[0] = "合计";
|
|
|
- if (
|
|
|
- item.property == "orderQuantity" ||
|
|
|
- item.property == "amount" ||
|
|
|
- item.property == "purchaseAmount"
|
|
|
- ) {
|
|
|
+ if (item.property == "orderQuantity" || item.property == "amount" || item.property == "purchaseAmount") {
|
|
|
let qtySum = 0;
|
|
|
let instoreSum = 0;
|
|
|
let totalSum = 0;
|
|
|
@@ -439,39 +729,32 @@ export default {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
this.$store.commit("OUT_BJ_STATUS");
|
|
|
},
|
|
|
- async saveColumn() {
|
|
|
+ //自定义列保存
|
|
|
+ async saveColumn(ref, option, optionBack, code) {
|
|
|
/**
|
|
|
* 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
|
|
|
* 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
|
|
|
* 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
|
|
|
*/
|
|
|
- const inSave = await this.saveColumnData(
|
|
|
- this.getColumnName(0),
|
|
|
- this.option
|
|
|
- );
|
|
|
+ const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
|
|
|
if (inSave) {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.crud.doLayout();
|
|
|
- });
|
|
|
this.$message.success("保存成功");
|
|
|
//关闭窗口
|
|
|
- this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
},
|
|
|
- async resetColumn() {
|
|
|
- this.option = option;
|
|
|
- const inSave = await this.delColumnData(this.getColumnName(0), option);
|
|
|
+ //自定义列重置
|
|
|
+ async resetColumn(ref, option, optionBack, code) {
|
|
|
+ this[option] = this[optionBack];
|
|
|
+ const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
|
|
|
if (inSave) {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.crud.doLayout();
|
|
|
- });
|
|
|
this.$message.success("重置成功");
|
|
|
- this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
- option: function () {
|
|
|
+ option: function() {
|
|
|
this.search.businesDate = defaultDate();
|
|
|
}
|
|
|
}
|