Commit 91c4c353 authored by Administrator's avatar Administrator

Merge branch 'pre-release' into 'jd_dev'

pre-release分支合并到jd分支0109

See merge request !131
parents cde9b432 762d1eec
......@@ -830,7 +830,6 @@ export function loadInvApplicationList(data) {
}
//获得收款数据审批列表
//
export function loadReceiptReviewList(data) {
let params = {
page: data.page,
......@@ -878,3 +877,17 @@ export function handleImportReceipt(data) {
data
})
}
// 批量生成收款单列表
export function loadBatGNRTReceiptList(data) {
let params = {
page: data.page,
rows: data.rows
}
return request({
url: "/ecw/receivable/batch-gen-receipt/page",
method: "post",
data,
params
})
}
This diff is collapsed.
......@@ -5,7 +5,7 @@
<el-input v-model.trim="queryParams.orderNo" :placeholder="$t('请输入订单号')" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item :label="$t('运输方式')" prop="transportId">
<dict-selector :type="DICT_TYPE.ECW_TRANSPORT_TYPE" v-model.number="queryParams.transportId" clearable @change="handleQuery" />
<dict-selector multiple :type="DICT_TYPE.ECW_TRANSPORT_TYPE" v-model="queryParams.transportId" clearable @change="handleQuery" />
</el-form-item>
<el-form-item :label="$t('出货渠道')" prop="shipmentChannel">
<selector :clearable="true" :options="channelList" :label-field="$l('name')" value-field="channelId" v-model="queryParams.shipmentChannel" multiple @change="handleQuery"></selector>
......@@ -43,9 +43,9 @@
<el-form-item :label="$t('收入类型')" prop="feeType">
<dict-selector ref="dictMethod" multiple v-model="queryParams.feeType" :type="DICT_TYPE.FEE_TYPE"></dict-selector>
</el-form-item>
<el-form-item :label="$t('订单状态')" prop="status">
<!-- <el-form-item :label="$t('订单状态')" prop="status">
<dict-selector ref="dictMethod" v-model="queryParams.status" :type="DICT_TYPE.ORDER_STATUS"></dict-selector>
</el-form-item>
</el-form-item> -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t("搜索") }}</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">{{ $t("重置") }}</el-button>
......@@ -154,7 +154,6 @@
</template>
</el-table-column>
<el-table-column :label="$t('订单状态')">
<!-- {{$l(departure, 'title') || '-'}} -->
<template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="row.status" />
</template>
......@@ -201,12 +200,15 @@
</template>
</el-table-column>
<el-table-column :label="$t('关联银行收款明细')" prop="totalAmount" width="160" align="center">
<template slot-scope="{ row }"
<template slot-scope="{ row }" v-if="row.receiptId"
><el-button type="text" @click="goBankReceiptDetailsList(row)"> {{ $t("查看收款明细") }}</el-button>
</template>
<template v-else>-</template>
</el-table-column>
<el-table-column :label="$t('费用生成时间')" prop="createTime" width="160" align="center"> </el-table-column>
<el-table-column :label="$t('最后修改信息')" prop="totalAmount" width="160" align="center">
<template slot-scope="{ row }"> {{ row.updater || "-" }}/{{ parseTime(row.updateTime) || "-" }} </template>
<template slot-scope="{ row }"> {{ row.updater || "-" }}/{{ row.updateTime || "-" }} </template>
</el-table-column>
<el-table-column :label="$t('最后审批信息')" prop="totalAmount" width="160" align="center">
<template slot-scope="{ row }"> {{ row.approver || "-" }}/{{ row.approverTime || "-" }} </template>
......@@ -297,6 +299,7 @@ export default {
},
data() {
return {
size: "small",
totalDetailVisible: false,
loading: true,
searchStatistics: {}, //查询条件所有
......@@ -314,7 +317,7 @@ export default {
page: 1,
rows: 10,
orderNo: "",
transportId: "",
transportId: [],
shipmentChannel: [], //出货渠道
departureWareHouseId: [], //始发地
destCountry: [], //目的国
......@@ -367,12 +370,13 @@ export default {
},
getChannelName(channelId) {
const channel = this.channelList.filter((item) => item.channelId == channelId)
return channel.length > 0 ? this.$l(channel, "name") : "-"
return channel.length > 0 ? this.$l(channel[0], "name") : "-"
},
init() {
//请求获取国家
this.loadCountyList()
this.loadCityList()
this.loadWareHouseList()
},
//目的地
loadWareHouseList(type = 5, cityId = 5) {
......
......@@ -102,7 +102,9 @@
</template>
</el-table-column>
<el-table-column prop="exchangeRate" :label="$t('基准币种({currency})汇率', { currency: getBaseCurrencynName(showCurrencyId) })" width="120"> </el-table-column>
<el-table-column prop="exchangeRate" :label="$t('基准币种({currency})汇率', { currency: getBaseCurrencynName(showCurrencyId) })" width="120">
<template v-slot="{ row }"> {{ getCurrencySymbol(row.currencyId) }} 1: {{ getCurrencySymbol(showCurrencyId) }}{{ row.exchangeRate }} </template>
</el-table-column>
<el-table-column
prop="baseAmount"
:label="
......@@ -112,7 +114,8 @@
"
width="120"
:formatter="formatCurrency"
></el-table-column>
>
</el-table-column>
<el-table-column fixed="right" :label="$t('操作')" align="center">
<template slot-scope="scope">
......@@ -172,7 +175,7 @@
</el-table-column>
<el-table-column align="center" prop="writeOffAmount">
<template #header>
{{ $t("核销基准金额") + "" + getCurrencyLabel(showCurrencyId) + "" }}
{{ $t("基准金额") + "" + getCurrencyLabel(showCurrencyId) + "" }}
</template>
<template slot-scope="scope">
<div>{{ getCurrencySymbol(showCurrencyId) }}{{ scope.row.writeOffAmount }}</div></template
......@@ -363,8 +366,8 @@
</el-form-item>
</el-descriptions-item>
<el-descriptions-item :label="$t('开票资料备注')">
<el-form-item label="" label-width="0" maxlength="500" style="margin-bottom: 0">
<el-input v-model="form.invoiceRemark"></el-input>
<el-form-item label="" label-width="0" style="margin-bottom: 0">
<el-input v-model="form.invoiceRemark" maxlength="500"></el-input>
</el-form-item>
</el-descriptions-item>
</el-descriptions>
......@@ -1056,11 +1059,19 @@ export default {
}
const writeOffAmountTotal = this.form.receiptAccountList.filter((v) => v.type !== "total").reduce((total, currentValue) => NP.plus(total, currentValue.writeOffAmount || 0), 0)
this.list[index].exchangeRate = row.writeOffRate
this.list[index].baseAmount = row.writeOffAmount
console.log("listdd", this.list)
this.list.forEach((item) => {
if (item.currencyId == row.currencyId) {
item.exchangeRate = row.writeOffRate
item.baseAmount = NP.round(NP.times(row.writeOffRate || 0, item.actualAmount), 2)
}
})
// this.list[index].exchangeRate = row.writeOffRate
// this.list[index].baseAmount = row.writeOffAmount
// console.log("listdd", this.list)
console.log("listdde", row)
this.form.receiptAccountList[this.form.receiptAccountList.length - 1].writeOffAmount = writeOffAmountTotal
this.form.receiptAccountList[index + 1].writeOffAmount = writeOffAmountTotal
},
rateChange(row, index) {
if (row.collectionRate == 0 && parseInt(row.collectionRate) === 0) {
......
......@@ -110,6 +110,7 @@
"
width="120"
>
<template v-slot="{ row }"> {{ getCurrencySymbol(row.currencyId) }} 1: {{ getCurrencySymbol(showCurrencyId) }}{{ row.exchangeRate }} </template>
</el-table-column>
<el-table-column
prop="baseAmount"
......@@ -171,9 +172,7 @@
<el-table-column align="center" width="220">
<template #header> {{ $t("基准币种") }}{{ getCurrencyLabel(showCurrencyId) }}{{ $t("汇率") }} </template>
<template slot-scope="scope">
<template v-if="scope.row.type !== 'total'">
<span>{{ scope.row.writeOffRate }}</span>
</template>
<template v-if="scope.row.type !== 'total'"> {{ getCurrencySymbol(scope.row.currencyId) }} 1: {{ getCurrencySymbol(showCurrencyId) }}{{ scope.row.writeOffRate }} </template>
<template v-else> {{ $t("应核销总金额") }}{{ getCurrencyLabel(showCurrencyId) }} </template>
</template>
</el-table-column>
......@@ -194,7 +193,11 @@
</el-table-column>
<el-table-column :label="$t('期望收款汇率')" align="center">
<template slot-scope="scope">
<span v-if="scope.row.type !== 'total'">{{ scope.row.collectionRate }}</span>
<span v-if="scope.row.type !== 'total'">
{{ getCurrencySymbol(scope.row.currencyId) }} 1:
{{ getCurrencySymbol(scope.row.collectionCurrencyId) }}
{{ scope.row.collectionRate }}</span
>
<span v-else
>{{ $t("期望收费金额") }}
<span :title="$t('导出账单给客户时显示的收款金额与币种')"><i class="el-icon-question"></i></span>
......@@ -636,6 +639,7 @@
})
"
>
<template v-slot="{ row }"> {{ getCurrencySymbol(row.currencyId) }} 1: {{ getCurrencySymbol(showCurrencyId) }}{{ row.exchangeRate }} </template>
</el-table-column>
<el-table-column
prop="baseAmount"
......@@ -677,9 +681,10 @@
currency: getBaseCurrencynName(showCurrencyId)
})
"
width="160"
>
<template slot-scope="scope">
<el-input-number @change="changeCurrentItemWirteOff(scope.row.id)" v-if="!isView && addForm.writeOffAmount" :min="0" :precision="2" :controls="false" v-model="scope.row.writeOffAmount"></el-input-number>
<el-input-number style="width: 136px" @change="changeCurrentItemWirteOff(scope.row.id)" v-if="!isView && addForm.writeOffAmount" :min="0" :precision="2" :controls="false" v-model="scope.row.writeOffAmount"></el-input-number>
<span v-else>{{ scope.row.writeOffAmount }}</span>
</template>
<!-- writeOffAmount -->
......
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