|
@@ -29,9 +29,9 @@
|
|
|
<el-button type="info" size="small">报表</el-button>
|
|
|
</template>
|
|
|
<template slot="cnameSearch">
|
|
|
- <goods-select
|
|
|
- v-model="search.cname"
|
|
|
- :configuration="goodsConfiguration"
|
|
|
+ <goods-select
|
|
|
+ v-model="search.cname"
|
|
|
+ :configuration="goodsConfiguration"
|
|
|
/>
|
|
|
</template>
|
|
|
<template slot="corpIdSearch">
|
|
@@ -46,6 +46,9 @@
|
|
|
<template slot-scope="scope" slot="grossProfitRate">
|
|
|
{{ scope.row.grossProfitRate ? scope.row.grossProfitRate : 0 }}%
|
|
|
</template>
|
|
|
+ <template slot-scope="scope" slot="status">
|
|
|
+ {{ scope.row.status | orderStateFormat }}
|
|
|
+ </template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -77,10 +80,11 @@
|
|
|
|
|
|
<script>
|
|
|
import option from "./config/mainList.json";
|
|
|
-import { getList, remove} from "@/api/maintenance/priceLibrary";
|
|
|
+import { getList, remove } from "@/api/maintenance/priceLibrary";
|
|
|
import detailPage from "./detailsPage.vue";
|
|
|
import { defaultDate } from "@/util/date";
|
|
|
import { micrometerFormat } from "@/util/validate";
|
|
|
+import { orderStateFormat } from "@/enums/order-stauts";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
name: "customerInformation",
|
|
@@ -146,6 +150,15 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
+ this.getWorkDicts("billType").then(res => {
|
|
|
+ this.findObject(this.option.column, "billType").dicData =
|
|
|
+ res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ filters: {
|
|
|
+ orderStateFormat(val) {
|
|
|
+ return orderStateFormat(val);
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
cellStyle() {
|
|
@@ -198,10 +211,10 @@ export default {
|
|
|
this.page.pageSize = val;
|
|
|
},
|
|
|
onLoad(page, params) {
|
|
|
- params={
|
|
|
+ params = {
|
|
|
...params,
|
|
|
- tradeType:"CK"
|
|
|
- }
|
|
|
+ tradeType: "CK"
|
|
|
+ };
|
|
|
this.loading = true;
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
|
.then(res => {
|