|
@@ -163,8 +163,10 @@
|
|
|
|
|
|
<script>
|
|
|
import { optionList, sellOption, capitalOption } from "./js/optionList";
|
|
|
-// import { getList, getCorpsAll, gainUser, getCorpType, getAllgoods } from "@/api/basicData/salesOrder";
|
|
|
-import { getList } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
+import {
|
|
|
+ // getList,
|
|
|
+ getCorpsAll, gainUser, getCorpType, getAllgoods } from "@/api/basicData/salesOrder";
|
|
|
+import { getList,getKh,getSk,topList,getZd} from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
import { pageStatistics, remove, addCorpType, customerList } from "@/api/basicData/customerTransactions";
|
|
|
import { getDetails, getSellList } from "@/api/basicData/client";
|
|
|
import { getList as getLists } from "@/api/collectionSettlement/index.js";
|
|
@@ -297,10 +299,10 @@ export default {
|
|
|
this.getColumnName(277.3),
|
|
|
sellOption
|
|
|
);
|
|
|
- this.getWorkDicts("order_status_pjjl").then(res => {
|
|
|
- this.findObject(this.sellOption.column, "actualPaymentStatus").dicData = res.data.data;
|
|
|
- this.findObject(this.sellOption.column, "status").dicData = res.data.data;
|
|
|
- });
|
|
|
+ // this.getWorkDicts("order_status_pjjl").then(res => {
|
|
|
+ // this.findObject(this.sellOption.column, "actualPaymentStatus").dicData = res.data.data;
|
|
|
+ // this.findObject(this.sellOption.column, "status").dicData = res.data.data;
|
|
|
+ // });
|
|
|
this.capitalOption = await this.getColumnData(
|
|
|
this.getColumnName(277.4),
|
|
|
capitalOption
|
|
@@ -317,9 +319,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getAllWorkDicts() {
|
|
|
- // gainUser().then(res => {
|
|
|
- // this.findObject(this.sellOption.column, "createUser").dicData = res.data.data;
|
|
|
- // })
|
|
|
+ getZd().then(res => {
|
|
|
+ this.findObject(this.sellOption.column, "createUser").dicData = res.data.data.records;
|
|
|
+ })
|
|
|
// getCorpType({ corpType: 'KH' }).then(res => {
|
|
|
// this.findObject(this.sellOption.column, "corpType").dicData = res.data.data
|
|
|
// });
|
|
@@ -329,6 +331,19 @@ export default {
|
|
|
// this.getWorkDicts("account").then(res => {
|
|
|
// this.findObject(this.capitalOption.column, "account").dicData = res.data.data;
|
|
|
// });
|
|
|
+ console.log('22222');
|
|
|
+ getKh().then(res=>{
|
|
|
+ this.findObject(this.capitalOption.column, "corpName").dicData = res.data.data
|
|
|
+ })
|
|
|
+ getSk().then(res=>{
|
|
|
+ this.findObject(this.capitalOption.column, "accountName").dicData = res.data.data.records
|
|
|
+ })
|
|
|
+ this.getWorkDicts("payment_Status").then(res => {
|
|
|
+ this.findObject(this.capitalOption.column, "financeStatus").dicData = res.data.data;
|
|
|
+ });
|
|
|
+ topList().then(res=>{
|
|
|
+ this.findObject(this.capitalOption.column, "salesCompanyName").dicData = res.data.data
|
|
|
+ })
|
|
|
},
|
|
|
cellStyle() {
|
|
|
return "padding:0;height:40px;";
|
|
@@ -359,19 +374,29 @@ export default {
|
|
|
},
|
|
|
onLoad(page, params = {}) {
|
|
|
let data = this.deepClone(Object.assign(params, this.search));
|
|
|
- data.billType = 'XS';
|
|
|
- data.tradeType = 'YPJ';
|
|
|
- if (data.businesDate) {
|
|
|
- data.orderStartDate = data.businesDate[0];
|
|
|
- data.orderEndDate = data.businesDate[1];
|
|
|
- }
|
|
|
- delete data.businesDate
|
|
|
- data.corpId = this.detailData.id;
|
|
|
+ // data.billType = 'XS';
|
|
|
+ // data.tradeType = 'YPJ';
|
|
|
+ // if (data.businesDate) {
|
|
|
+ // data.orderStartDate = data.businesDate[0];
|
|
|
+ // data.orderEndDate = data.businesDate[1];
|
|
|
+ // }
|
|
|
+ // delete data.businesDate
|
|
|
+ // data.corpId = this.detailData.id;
|
|
|
this.loading = true;
|
|
|
console.log(data);
|
|
|
//id: id, status: '待确认,待发货,已发货,退款请核', bsType: 'XS'
|
|
|
data.status = '待确认,待发货,已发货,退款请核'
|
|
|
- getList({ customerId: this.detailData.id, status: '待确认,待发货,已发货,退款请核', bsType: 'XS' })
|
|
|
+
|
|
|
+ // this.search.storageId = this.search.storageName
|
|
|
+ // this.search.createId = this.search.createUser
|
|
|
+ // delete this.search.storageName
|
|
|
+ params.createId = params.createUser
|
|
|
+ params.storageId = params.storageName
|
|
|
+ delete params.storageName
|
|
|
+ delete params.createUser
|
|
|
+ console.log(params);
|
|
|
+ getList({ customerId: this.detailData.id, status: '待确认,待发货,已发货,退款请核', bsType: 'XS', current:page.currentPage,
|
|
|
+ size:page.pageSize,...params})
|
|
|
.then(res => {
|
|
|
this.sellList = res.data.data.records ? res.data.data.records : [];
|
|
|
this.page.total = res.data.data.total;
|
|
@@ -388,6 +413,11 @@ export default {
|
|
|
}
|
|
|
delete data.settlementDate
|
|
|
data.corpId = this.detailData.id;
|
|
|
+ data.accountId = data.accountName
|
|
|
+ data.salesCompanyId = data.salesCompanyName
|
|
|
+ delete data.corpName
|
|
|
+ delete data.accountName
|
|
|
+ delete data.salesCompanyName
|
|
|
this.loading = true;
|
|
|
params = {
|
|
|
current: page.currentPage,
|