Commit 2190a618 authored by dragondean@qq.com's avatar dragondean@qq.com
parents a0400d11 4a0280f1
...@@ -416,7 +416,7 @@ import { ...@@ -416,7 +416,7 @@ import {
orderStatistics, orderStatistics,
creditLogCreate, creditLogCreate,
creditScoreStatistic, creditScoreStatistic,
infoListReceiptPage, userMemberUserList, memberUserList, deleteCustomer, infoListReceiptPage, memberUserList, deleteCustomer,
} from '@/api/ecw/customer' } from '@/api/ecw/customer'
import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from '@/utils/dict' import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from '@/utils/dict'
...@@ -693,6 +693,7 @@ export default { ...@@ -693,6 +693,7 @@ export default {
if(r.code === 0){ if(r.code === 0){
this.creditLogPage(); this.creditLogPage();
this.creditFrom = {}; this.creditFrom = {};
this.creditScoreStatisticFn()
this.dialogVisible = false; this.dialogVisible = false;
} }
}) })
...@@ -700,7 +701,6 @@ export default { ...@@ -700,7 +701,6 @@ export default {
//获得信用客户统计 //获得信用客户统计
creditScoreStatisticFn(){ creditScoreStatisticFn(){
creditScoreStatistic({customerId:this.id}).then(r => { creditScoreStatistic({customerId:this.id}).then(r => {
console.log(r)
if(r.code === 0) this.creditScoreStatisticObj = r.data if(r.code === 0) this.creditScoreStatisticObj = r.data
}) })
}, },
......
...@@ -419,7 +419,7 @@ ...@@ -419,7 +419,7 @@
label-width="80px" label-width="80px"
> >
<el-row> <el-row>
<el-form-item :label="$t('始发城市')"> <el-form-item :label="$t('始发')">
<el-select <el-select
v-model="queryParams.departureId" v-model="queryParams.departureId"
:placeholder="$t('请选择始发地')" :placeholder="$t('请选择始发地')"
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('目的城市')"> <el-form-item :label="$t('目的')">
<el-select <el-select
v-model="queryParams.objectiveId" v-model="queryParams.objectiveId"
:placeholder="$t('请选择始发地')" :placeholder="$t('请选择始发地')"
...@@ -666,6 +666,7 @@ import { getCurrencyPage } from "@/api/ecw/currency"; ...@@ -666,6 +666,7 @@ import { getCurrencyPage } from "@/api/ecw/currency";
import ret from "bluebird/js/release/util"; import ret from "bluebird/js/release/util";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { getUserProfile } from "@/api/system/user"; import { getUserProfile } from "@/api/system/user";
import {getWarehouseList} from '@/api/ecw/warehouse'
export default { export default {
name: "CreatCollection", name: "CreatCollection",
...@@ -717,6 +718,7 @@ export default { ...@@ -717,6 +718,7 @@ export default {
selectListRow: {}, selectListRow: {},
selectListIndex: 0, selectListIndex: 0,
flag: false, flag: false,
warehouseList:[]
}; };
}, },
async created() { async created() {
...@@ -725,7 +727,7 @@ export default { ...@@ -725,7 +727,7 @@ export default {
}) })
// 获取汇率 // 获取汇率
await getCurrencyPage(this.params).then(res => this.currencyList = res.data.list) await getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
getWarehouseList().then(res => this.warehouseList = res.data)
let that = this; let that = this;
if (that.$route.query.id) { if (that.$route.query.id) {
this.flag = true this.flag = true
...@@ -816,10 +818,12 @@ export default { ...@@ -816,10 +818,12 @@ export default {
}, },
computed: { computed: {
expoerCityList() { expoerCityList() {
return this.tradeCityList.filter((item) => item.type == 2); // return this.tradeCityList.filter((item) => item.type == 2);
return this.warehouseList.filter(item => item.tradeType == 2 || item.tradeType == 3)
}, },
importCityList() { importCityList() {
return this.tradeCityList.filter((item) => item.type == 1); // return this.tradeCityList.filter((item) => item.type == 1);
return this.warehouseList.filter(item => item.tradeType == 1 || item.tradeType == 3)
}, },
showCurrencyId() { showCurrencyId() {
let fieldList = []; let fieldList = [];
......
...@@ -623,11 +623,11 @@ export default { ...@@ -623,11 +623,11 @@ export default {
var dollarList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == item.id) var dollarList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == item.id)
if(dollarList.length>0){ if(dollarList.length>0){
var dollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0).toFixed(2) var dollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0).toFixed(2)
if(n && n.discountTotal&&n.discountTotal>0){ // if(n && n.discountTotal&&n.discountTotal>0){
amountList.push({currencyName:item.titleZh, currencyId: item.id, amount:(dollar-n.discountTotal).toFixed(2)}) // amountList.push({currencyName:item.titleZh, currencyId: item.id, amount:(dollar-n.discountTotal).toFixed(2)})
}else{ // }else{
amountList.push({currencyName:item.titleZh, currencyId: item.id, amount:dollar}) amountList.push({currencyName:item.titleZh, currencyId: item.id, amount:dollar})
} // }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment