21号修改

21号修改
This commit is contained in:
shawnzhang 2020-12-21 13:31:00 +08:00
parent ff2f885650
commit 8a5f207939
4 changed files with 44 additions and 14 deletions

View file

@ -48,6 +48,14 @@ export function installmentlist(query) {
if (query.address !== '' && query.address !== null && query.address !== undefined) {
params.append('address', query.address) // 你要传给后台的参数值 key/value
}
if (query.unPaid !== '' && query.unPaid !== null && query.unPaid !== undefined) {
params.append('unPaid', query.unPaid) // 你要传给后台的参数值 key/value
}
if (query.cancelPaid !== '' && query.cancelPaid !== null && query.cancelPaid !== undefined) {
params.append('cancelPaid', query.cancelPaid) // 你要传给后台的参数值 key/value
}
params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value
params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value
return request({

View file

@ -4572,6 +4572,12 @@ export default {
tiaoshenhederenwu: '条待审批的单据',
dengdaiweixiud: '您有0条待分配的维修订单',
tiaodaifukuanjilu: '条待付款记录',
shoufuzhekou: '首付折扣'
shoufuzhekou: '首付折扣',
weihuanjine: '未还金额范围',
weihuanjineling: '未还金额=0',
weihuanjinedayueling: '未还金额>0',
hexiaojinefanwei: '核销金额范围',
hexiaojinedengyuling: '核销金额=0',
hexiaojinedayueling: '核销金额>0'
}
}

View file

@ -9,6 +9,15 @@
<el-input v-model="getemplist.applyNumber" :placeholder="$t('InstallmentList.applyNumber')" size="small" class="filter-item" clearable @keyup.enter.native="handleFilter"/>
<el-input v-model="getemplist.address" :placeholder="$t('StockInvoice.address')" size="small" class="filter-item" clearable @keyup.enter.native="handleFilter"/>
<el-select v-model="getemplist.unPaid" :placeholder="$t('update4.weihuanjine')" :value="getemplist.unPaid" size="small" clearable class="filter-item">
<el-option :label="$t('update4.weihuanjineling')" value="1"/>
<el-option :label="$t('update4.weihuanjinedayueling')" value="2"/>
</el-select>
<el-select v-model="getemplist.cancelPaid" :placeholder="$t('update4.hexiaojinefanwei')" :value="getemplist.cancelPaid" size="small" clearable class="filter-item">
<el-option :label="$t('update4.hexiaojinedengyuling')" value="1"/>
<el-option :label="$t('update4.hexiaojinedayueling')" value="2"/>
</el-select>
<el-select v-model="getemplist.saleRepositoryId" :placeholder="$t('Hmodule.xzmd')" size="small" clearable filterable class="filter-item">
<el-option
v-for="(item, index) in repositories"
@ -875,17 +884,17 @@ export default {
//
handleExport() {
this.downloadLoading = true
import('@/vendor/Export2Excel').then(excel => {
const tHeader = ['供应商编号', '供应商名称', '供应商简称', '供应商类别', '所在区域', '采购员', '供应商优质级别', '建档人', '建档日期']
const filterVal = ['id', 'InstallmentListName', 'InstallmentListShortName', 'typeName', 'regionName', 'buyerName', 'levelName', 'createName', 'createTime']
const data = this.formatJson(filterVal, this.list)
excel.export_json_to_excel({
header: tHeader,
data,
filename: '经销商资料表'
})
this.downloadLoading = false
import('@/vendor/Export2Excel').then(excel => {
const tHeader = ['编号', '门店', '客户姓名', '客户电话', '地址', '商品编号', '颜色', '商品名称', '出库时间', '分期期数', '已还期数', '是否改期', '改期后的期数', '未还金额', '已还金额', '奖励', '分期金额', '核销金额', '还款状态']
const filterVal = ['orderNumber', 'repositoryName', 'customerName', 'customerPhone', 'address', 'productCode', 'color', 'productName', 'outDate', 'count', 'paidCount', 'isChange', 'afterCount', 'afterRate', 'leftAllmoney', 'paidMoney', 'reward', 'totalMoney', 'cancelMoney', 'stat']
const data = this.formatJson(filterVal, this.list)
excel.export_json_to_excel({
header: tHeader,
data: this.list,
filename: '分期列表'
})
this.downloadLoading = false
})
},
formatJson(filterVal, jsonData) {
return jsonData.map(v => filterVal.map(j => {

View file

@ -793,15 +793,22 @@ export default {
},
//
handleExport() {
for (const i in this.list) {
if (this.list[i].collectstatus === 1) {
this.list[i].collectstatusFilter = 'partial payment'
} else if (this.list[i].collectstatus === 2) {
this.list[i].collectstatusFilter = 'not pay'
}
}
this.downloadLoading = true
import('@/vendor/Export2Excel').then(excel => {
const tHeader = ['供应商编号', '供应商名称', '供应商简称', '供应商类别', '所在区域', '采购员', '供应商优质级别', '建档人', '建档日期']
const filterVal = ['id', 'InstallmentListName', 'InstallmentListShortName', 'typeName', 'regionName', 'buyerName', 'levelName', 'createName', 'createTime']
const tHeader = ['编号', '客户姓名', '客户电话', '地址', '担保姓名', '商品编号', '商品名称', '逾期金额', '逾期次数', '收款人', '收款状态', '门店']
const filterVal = ['orderNumber', 'customerName', 'customerPhone', 'address', 'suretyName', 'productCode', 'productName', 'overdueMoney', 'overCount', 'collectperson', 'collectstatusFilter', 'repositoryName']
const data = this.formatJson(filterVal, this.list)
excel.export_json_to_excel({
header: tHeader,
data,
filename: '经销商资料表'
filename: '逾期列表'
})
this.downloadLoading = false
})