|
@@ -113,17 +113,31 @@ export default {
|
|
|
this.loading = true;
|
|
|
checkDate({ tradeType: this.tradeType })
|
|
|
.then(res => {
|
|
|
- this.list.forEach(e => {
|
|
|
- if (e.text == "报价订单/待审核") {
|
|
|
- e.qty = res.data.data.offerNumber;
|
|
|
- }
|
|
|
- if (e.text == "销售订单/待审核") {
|
|
|
- e.qty = res.data.data.sellNumber;
|
|
|
- }
|
|
|
- if (e.text == "采购订单/待审核") {
|
|
|
- e.qty = res.data.data.purchaseNumber;
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.sysType == 2){
|
|
|
+ this.domList.forEach(e => {
|
|
|
+ if (e.text == "报价订单/待审核") {
|
|
|
+ e.qty = res.data.data.offerNumber;
|
|
|
+ }
|
|
|
+ if (e.text == "销售订单/待审核") {
|
|
|
+ e.qty = res.data.data.sellNumber;
|
|
|
+ }
|
|
|
+ if (e.text == "采购订单/待审核") {
|
|
|
+ e.qty = res.data.data.purchaseNumber;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.list.forEach(e => {
|
|
|
+ if (e.text == "报价订单/待审核") {
|
|
|
+ e.qty = res.data.data.offerNumber;
|
|
|
+ }
|
|
|
+ if (e.text == "销售订单/待审核") {
|
|
|
+ e.qty = res.data.data.sellNumber;
|
|
|
+ }
|
|
|
+ if (e.text == "采购订单/待审核") {
|
|
|
+ e.qty = res.data.data.purchaseNumber;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.loading = false;
|
|
@@ -133,14 +147,25 @@ export default {
|
|
|
this.loading = true;
|
|
|
shipCheckDate({ tradeType: this.tradeType })
|
|
|
.then(res => {
|
|
|
- this.list.forEach(e => {
|
|
|
- if (e.text == "发货/待审核") {
|
|
|
- e.qty = res.data.data.sellNumber;
|
|
|
- }
|
|
|
- if (e.text == "收货/待审核") {
|
|
|
- e.qty = res.data.data.purchaseNumber;
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.sysType == 2){
|
|
|
+ this.domList.forEach(e => {
|
|
|
+ if (e.text == "发货/待审核") {
|
|
|
+ e.qty = res.data.data.sellNumber;
|
|
|
+ }
|
|
|
+ if (e.text == "收货/待审核") {
|
|
|
+ e.qty = res.data.data.purchaseNumber;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.list.forEach(e => {
|
|
|
+ if (e.text == "发货/待审核") {
|
|
|
+ e.qty = res.data.data.sellNumber;
|
|
|
+ }
|
|
|
+ if (e.text == "收货/待审核") {
|
|
|
+ e.qty = res.data.data.purchaseNumber;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.loading = false;
|
|
@@ -150,11 +175,19 @@ export default {
|
|
|
this.loading = true;
|
|
|
financeCheck({ tradeType: this.tradeType })
|
|
|
.then(res => {
|
|
|
- this.list.forEach(e => {
|
|
|
- if (e.text == "申请付款/待审核") {
|
|
|
- e.qty = res.data.data;
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.sysType == 2){
|
|
|
+ this.domList.forEach(e => {
|
|
|
+ if (e.text == "申请付款/待审核") {
|
|
|
+ e.qty = res.data.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.list.forEach(e => {
|
|
|
+ if (e.text == "申请付款/待审核") {
|
|
|
+ e.qty = res.data.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.loading = false;
|