|
@@ -18,9 +18,24 @@
|
|
|
:summary-method="summaryMethod"
|
|
|
:cell-style="cellStyle"
|
|
|
>
|
|
|
+ <template slot-scope="{ row }" slot="salesCompany">
|
|
|
+ <span>{{ row.salesCompanyName }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="{ row }" slot="storageId">
|
|
|
+ <span>{{ row.storageName }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="{ row }" slot="createUser">
|
|
|
+ <span>{{ row.createUserName }}</span>
|
|
|
+ </template>
|
|
|
<template slot-scope="scope" slot="corpId">
|
|
|
{{ scope.row.corpsName }}
|
|
|
</template>
|
|
|
+ <template slot="storageIdSearch">
|
|
|
+ <warehouse-select
|
|
|
+ v-model="search.storageId"
|
|
|
+ :configuration="configuration2"
|
|
|
+ ></warehouse-select>
|
|
|
+ </template>
|
|
|
<template slot="businessDateSearch">
|
|
|
<el-date-picker
|
|
|
v-model="search.businessDate"
|
|
@@ -96,6 +111,7 @@ import option from "./config/mainList.json";
|
|
|
import { getList, remove } from "@/api/basicData/invoice";
|
|
|
import detailPage from "./detailsPage.vue";
|
|
|
import { micrometerFormat } from "@/util/validate";
|
|
|
+import { defaultDate } from "@/util/date";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
name: "customerInformation",
|
|
@@ -108,6 +124,13 @@ export default {
|
|
|
placeholder: "请点击右边按钮选择",
|
|
|
dicData: []
|
|
|
},
|
|
|
+ configuration2: {
|
|
|
+ multipleChoices: false,
|
|
|
+ multiple: false,
|
|
|
+ collapseTags: false,
|
|
|
+ placeholder: "请点击右边按钮选择",
|
|
|
+ dicData: []
|
|
|
+ },
|
|
|
search: {},
|
|
|
form: {},
|
|
|
option: {},
|
|
@@ -125,6 +148,7 @@ export default {
|
|
|
},
|
|
|
components: { detailPage },
|
|
|
async created() {
|
|
|
+ this.search.businessDate = defaultDate();
|
|
|
this.option = await this.getColumnData(this.getColumnName(8), option);
|
|
|
if (this.$route.query.pageType == "Generate") {
|
|
|
this.newAdd();
|
|
@@ -218,6 +242,14 @@ export default {
|
|
|
this.page.pageSize = val;
|
|
|
},
|
|
|
onLoad(page, params) {
|
|
|
+ if (this.search.businesDate && this.search.businesDate.length > 0) {
|
|
|
+ params = {
|
|
|
+ ...params,
|
|
|
+ orderStartDate: this.search.businesDate[0],
|
|
|
+ orderEndDate: this.search.businesDate[1]
|
|
|
+ };
|
|
|
+ delete params.businesDate;
|
|
|
+ }
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
|
.then(res => {
|