diff --git a/src/api/Collection.js b/src/api/Collection.js index 62905715..33ba1b36 100644 --- a/src/api/Collection.js +++ b/src/api/Collection.js @@ -1,205 +1,208 @@ -import request from '@/utils/request' - -// 逾期列表 -export function installmentlist(query) { - var params = new URLSearchParams() - if (query.installmentId !== '' && query.installmentId !== null && query.installmentId !== undefined) { - params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value - } - if (query.stat !== '' && query.stat !== null && query.stat !== undefined) { - params.append('stat', query.stat) // 你要传给后台的参数值 key/value - } - if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) { - params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value - } - if (query.applyNumber !== '' && query.applyNumber !== null && query.applyNumber !== undefined) { - params.append('applyNumber', query.applyNumber) // 你要传给后台的参数值 key/value - } - if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { - params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value - } - if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { - params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value - } - if (query.customerPhone !== '' && query.customerPhone !== null && query.customerPhone !== undefined) { - params.append('customerPhone', query.customerPhone) // 你要传给后台的参数值 key/value - } - if (query.saleRepositoryId !== '' && query.saleRepositoryId !== null && query.saleRepositoryId !== undefined) { - params.append('saleRepositoryId', query.saleRepositoryId) // 你要传给后台的参数值 key/value - } - if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { - params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value - } - if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { - params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value - } - if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { - params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value - } - if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { - params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value - } - if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { - params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value - } - if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { - params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value - } - if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { - params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value - } - params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value - params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/installmentlist', - method: 'post', - data: params - }) -} - -export function updateEach(query) { - var params = new URLSearchParams() - params.append('installmentOrderDetailJson', query) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/updateEach', - method: 'post', - data: params - }) -} - -export function reToEmp(installmentId, collectPersonId) { - var params = new URLSearchParams() - params.append('installmentId', installmentId) // 你要传给后台的参数值 key/value - params.append('collectPersonId', collectPersonId) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/reToEmp', - method: 'post', - data: params - }) -} - -export function postphone(eachids) { - var params = new URLSearchParams() - params.append('eachids', eachids) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/postphone', - method: 'post', - data: params - }) -} - -export function pushPay(query) { - var params = new URLSearchParams() - console.log(query) - console.log(query.installmentId) - params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/pushPay', - method: 'post', - data: params - }) -} - -// 添加收车单 -export function createrecoverVehicle(query, query2, query3, query4) { - var params = new URLSearchParams() - params.append('Json', query) // 你要传给后台的参数值 key/value - params.append('detailJson', query2) // 你要传给后台的参数值 key/value - params.append('lostDetailJson', query3) // 你要传给后台的参数值 key/value - if (query4.repositoryId !== '' && query4.repositoryId !== null && query4.repositoryId !== undefined) { - params.append('repositoryId', query4.repositoryId) // 你要传给后台的参数值 key/value - } - if (query4.regionId !== '' && query4.regionId !== null && query4.regionId !== undefined) { - params.append('regionId', query4.regionId) // 你要传给后台的参数值 key/value - } - return request({ - url: '/recoverVehicle/create', - method: 'post', - data: params - }) -} - -// 查询收车单 -export function searchrecoverVehicle(query) { - var params = new URLSearchParams() - if (query.title !== '' && query.title !== null && query.title !== undefined) { - params.append('title', query.title) // 你要传给后台的参数值 key/value - } - if (query.number !== '' && query.number !== null && query.number !== undefined) { - params.append('number', query.number) // 你要传给后台的参数值 key/value - } - if (query.receivePersonId !== '' && query.receivePersonId !== null && query.receivePersonId !== undefined) { - params.append('receivePersonId', query.receivePersonId) // 你要传给后台的参数值 key/value - } - if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { - params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value - } - if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { - params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value - } - if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { - params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value - } - if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { - params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value - } - if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { - params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value - } - if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { - params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value - } - if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { - params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value - } - if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { - params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value - } - params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value - params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value - return request({ - url: '/recoverVehicle/search', - method: 'post', - data: params - }) -} - -// 修改收车单 -export function updaterecoverVehicle(query, query2, query3) { - var params = new URLSearchParams() - params.append('Json', query) // 你要传给后台的参数值 key/value - params.append('detailJson', query2) // 你要传给后台的参数值 key/value - params.append('lostDetailJson', query3) // 你要传给后台的参数值 key/value - return request({ - url: '/recoverVehicle/update', - method: 'post', - data: params - }) -} - -// 删除收车单 -export function deleterecoverVehicle(query, query2) { - var params = new URLSearchParams() - if (query !== '' && query !== null && query !== undefined) { - params.append('modelids', query) // 你要传给后台的参数值 key/value - } - if (query2 !== '' && query2 !== null && query2 !== undefined) { - params.append('operatorId', query2) // 你要传给后台的参数值 key/value - } - return request({ - url: '/recoverVehicle/delete', - method: 'post', - data: params - }) -} - -// 审核收车单 -export function updaterecoverVehicle2(query) { - var params = new URLSearchParams() - params.append('Json', query) // 你要传给后台的参数值 key/value - return request({ - url: '/recoverVehicle/update', - method: 'post', - data: params - }) -} +import request from '@/utils/request' + +// 逾期列表 +export function installmentlist(query) { + var params = new URLSearchParams() + if (query.installmentId !== '' && query.installmentId !== null && query.installmentId !== undefined) { + params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value + } + if (query.stat !== '' && query.stat !== null && query.stat !== undefined) { + params.append('stat', query.stat) // 你要传给后台的参数值 key/value + } + if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) { + params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value + } + if (query.applyNumber !== '' && query.applyNumber !== null && query.applyNumber !== undefined) { + params.append('applyNumber', query.applyNumber) // 你要传给后台的参数值 key/value + } + if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { + params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value + } + if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { + params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value + } + if (query.customerPhone !== '' && query.customerPhone !== null && query.customerPhone !== undefined) { + params.append('customerPhone', query.customerPhone) // 你要传给后台的参数值 key/value + } + if (query.saleRepositoryId !== '' && query.saleRepositoryId !== null && query.saleRepositoryId !== undefined) { + params.append('saleRepositoryId', query.saleRepositoryId) // 你要传给后台的参数值 key/value + } + if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { + params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value + } + if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { + params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value + } + if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { + params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value + } + if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { + params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value + } + if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { + params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value + } + if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { + params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value + } + if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { + params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value + } + if (query.address !== '' && query.address !== null && query.address !== undefined) { + params.append('address', query.address) // 你要传给后台的参数值 key/value + } + params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value + params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/installmentlist', + method: 'post', + data: params + }) +} + +export function updateEach(query) { + var params = new URLSearchParams() + params.append('installmentOrderDetailJson', query) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/updateEach', + method: 'post', + data: params + }) +} + +export function reToEmp(installmentId, collectPersonId) { + var params = new URLSearchParams() + params.append('installmentId', installmentId) // 你要传给后台的参数值 key/value + params.append('collectPersonId', collectPersonId) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/reToEmp', + method: 'post', + data: params + }) +} + +export function postphone(eachids) { + var params = new URLSearchParams() + params.append('eachids', eachids) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/postphone', + method: 'post', + data: params + }) +} + +export function pushPay(query) { + var params = new URLSearchParams() + console.log(query) + console.log(query.installmentId) + params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/pushPay', + method: 'post', + data: params + }) +} + +// 添加收车单 +export function createrecoverVehicle(query, query2, query3, query4) { + var params = new URLSearchParams() + params.append('Json', query) // 你要传给后台的参数值 key/value + params.append('detailJson', query2) // 你要传给后台的参数值 key/value + params.append('lostDetailJson', query3) // 你要传给后台的参数值 key/value + if (query4.repositoryId !== '' && query4.repositoryId !== null && query4.repositoryId !== undefined) { + params.append('repositoryId', query4.repositoryId) // 你要传给后台的参数值 key/value + } + if (query4.regionId !== '' && query4.regionId !== null && query4.regionId !== undefined) { + params.append('regionId', query4.regionId) // 你要传给后台的参数值 key/value + } + return request({ + url: '/recoverVehicle/create', + method: 'post', + data: params + }) +} + +// 查询收车单 +export function searchrecoverVehicle(query) { + var params = new URLSearchParams() + if (query.title !== '' && query.title !== null && query.title !== undefined) { + params.append('title', query.title) // 你要传给后台的参数值 key/value + } + if (query.number !== '' && query.number !== null && query.number !== undefined) { + params.append('number', query.number) // 你要传给后台的参数值 key/value + } + if (query.receivePersonId !== '' && query.receivePersonId !== null && query.receivePersonId !== undefined) { + params.append('receivePersonId', query.receivePersonId) // 你要传给后台的参数值 key/value + } + if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { + params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value + } + if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { + params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value + } + if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { + params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value + } + if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { + params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value + } + if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { + params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value + } + if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { + params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value + } + if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { + params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value + } + if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { + params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value + } + params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value + params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value + return request({ + url: '/recoverVehicle/search', + method: 'post', + data: params + }) +} + +// 修改收车单 +export function updaterecoverVehicle(query, query2, query3) { + var params = new URLSearchParams() + params.append('Json', query) // 你要传给后台的参数值 key/value + params.append('detailJson', query2) // 你要传给后台的参数值 key/value + params.append('lostDetailJson', query3) // 你要传给后台的参数值 key/value + return request({ + url: '/recoverVehicle/update', + method: 'post', + data: params + }) +} + +// 删除收车单 +export function deleterecoverVehicle(query, query2) { + var params = new URLSearchParams() + if (query !== '' && query !== null && query !== undefined) { + params.append('modelids', query) // 你要传给后台的参数值 key/value + } + if (query2 !== '' && query2 !== null && query2 !== undefined) { + params.append('operatorId', query2) // 你要传给后台的参数值 key/value + } + return request({ + url: '/recoverVehicle/delete', + method: 'post', + data: params + }) +} + +// 审核收车单 +export function updaterecoverVehicle2(query) { + var params = new URLSearchParams() + params.append('Json', query) // 你要传给后台的参数值 key/value + return request({ + url: '/recoverVehicle/update', + method: 'post', + data: params + }) +} diff --git a/src/api/InstallmentList.js b/src/api/InstallmentList.js index 5205096e..5a818810 100644 --- a/src/api/InstallmentList.js +++ b/src/api/InstallmentList.js @@ -1,55 +1,58 @@ -import request from '@/utils/request' - -// 分期列表 -export function installmentlist(query) { - var params = new URLSearchParams() - if (query.installmentId !== '' && query.installmentId !== null && query.installmentId !== undefined) { - params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value - } - if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) { - params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value - } - if (query.applyNumber !== '' && query.applyNumber !== null && query.applyNumber !== undefined) { - params.append('applyNumber', query.applyNumber) // 你要传给后台的参数值 key/value - } - if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { - params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value - } - if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { - params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value - } - if (query.customerPhone !== '' && query.customerPhone !== null && query.customerPhone !== undefined) { - params.append('customerPhone', query.customerPhone) // 你要传给后台的参数值 key/value - } - if (query.saleRepositoryId !== '' && query.saleRepositoryId !== null && query.saleRepositoryId !== undefined) { - params.append('saleRepositoryId', query.saleRepositoryId) // 你要传给后台的参数值 key/value - } - if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { - params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value - } - if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { - params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value - } - if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { - params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value - } - if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { - params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value - } - if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { - params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value - } - if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { - params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value - } - if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { - params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value - } - params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value - params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/installmentlist', - method: 'post', - data: params - }) -} +import request from '@/utils/request' + +// 分期列表 +export function installmentlist(query) { + var params = new URLSearchParams() + if (query.installmentId !== '' && query.installmentId !== null && query.installmentId !== undefined) { + params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value + } + if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) { + params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value + } + if (query.applyNumber !== '' && query.applyNumber !== null && query.applyNumber !== undefined) { + params.append('applyNumber', query.applyNumber) // 你要传给后台的参数值 key/value + } + if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { + params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value + } + if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { + params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value + } + if (query.customerPhone !== '' && query.customerPhone !== null && query.customerPhone !== undefined) { + params.append('customerPhone', query.customerPhone) // 你要传给后台的参数值 key/value + } + if (query.saleRepositoryId !== '' && query.saleRepositoryId !== null && query.saleRepositoryId !== undefined) { + params.append('saleRepositoryId', query.saleRepositoryId) // 你要传给后台的参数值 key/value + } + if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { + params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value + } + if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { + params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value + } + if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { + params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value + } + if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { + params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value + } + if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { + params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value + } + if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { + params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value + } + if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { + params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value + } + if (query.address !== '' && query.address !== null && query.address !== undefined) { + params.append('address', query.address) // 你要传给后台的参数值 key/value + } + params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value + params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/installmentlist', + method: 'post', + data: params + }) +} diff --git a/src/api/OverdueList.js b/src/api/OverdueList.js index c410bff3..e1df8333 100644 --- a/src/api/OverdueList.js +++ b/src/api/OverdueList.js @@ -1,58 +1,61 @@ -import request from '@/utils/request' - -// 分期列表 -export function installmentlist(query) { - var params = new URLSearchParams() - if (query.installmentId !== '' && query.installmentId !== null && query.installmentId !== undefined) { - params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value - } - if (query.stat !== '' && query.stat !== null && query.stat !== undefined) { - params.append('stat', query.stat) // 你要传给后台的参数值 key/value - } - if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) { - params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value - } - if (query.applyNumber !== '' && query.applyNumber !== null && query.applyNumber !== undefined) { - params.append('applyNumber', query.applyNumber) // 你要传给后台的参数值 key/value - } - if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { - params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value - } - if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { - params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value - } - if (query.customerPhone !== '' && query.customerPhone !== null && query.customerPhone !== undefined) { - params.append('customerPhone', query.customerPhone) // 你要传给后台的参数值 key/value - } - if (query.saleRepositoryId !== '' && query.saleRepositoryId !== null && query.saleRepositoryId !== undefined) { - params.append('saleRepositoryId', query.saleRepositoryId) // 你要传给后台的参数值 key/value - } - if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { - params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value - } - if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { - params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value - } - if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { - params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value - } - if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { - params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value - } - if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { - params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value - } - if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { - params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value - } - if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { - params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value - } - params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value - params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value - return request({ - url: '/installmentorder/installmentlist', - method: 'post', - data: params - }) -} +import request from '@/utils/request' + +// 分期列表 +export function installmentlist(query) { + var params = new URLSearchParams() + if (query.installmentId !== '' && query.installmentId !== null && query.installmentId !== undefined) { + params.append('installmentId', query.installmentId) // 你要传给后台的参数值 key/value + } + if (query.stat !== '' && query.stat !== null && query.stat !== undefined) { + params.append('stat', query.stat) // 你要传给后台的参数值 key/value + } + if (query.orderNumber !== '' && query.orderNumber !== null && query.orderNumber !== undefined) { + params.append('orderNumber', query.orderNumber) // 你要传给后台的参数值 key/value + } + if (query.applyNumber !== '' && query.applyNumber !== null && query.applyNumber !== undefined) { + params.append('applyNumber', query.applyNumber) // 你要传给后台的参数值 key/value + } + if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { + params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value + } + if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { + params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value + } + if (query.customerPhone !== '' && query.customerPhone !== null && query.customerPhone !== undefined) { + params.append('customerPhone', query.customerPhone) // 你要传给后台的参数值 key/value + } + if (query.saleRepositoryId !== '' && query.saleRepositoryId !== null && query.saleRepositoryId !== undefined) { + params.append('saleRepositoryId', query.saleRepositoryId) // 你要传给后台的参数值 key/value + } + if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { + params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value + } + if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { + params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value + } + if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { + params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value + } + if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { + params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value + } + if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { + params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value + } + if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { + params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value + } + if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { + params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value + } + if (query.address !== '' && query.address !== null && query.address !== undefined) { + params.append('address', query.address) // 你要传给后台的参数值 key/value + } + params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value + params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value + return request({ + url: '/installmentorder/installmentlist', + method: 'post', + data: params + }) +} diff --git a/src/api/SaleContract.js b/src/api/SaleContract.js index 75ba4507..9e75c5f7 100644 --- a/src/api/SaleContract.js +++ b/src/api/SaleContract.js @@ -1,103 +1,106 @@ -import request from '@/utils/request' - -// 添加销售合同 -export function createsaleContract(query, query2, query4) { - var params = new URLSearchParams() - params.append('Json', query) // 你要传给后台的参数值 key/value - params.append('detailJson', query2) // 你要传给后台的参数值 key/value - if (query4.repositoryId !== '' && query4.repositoryId !== null && query4.repositoryId !== undefined) { - params.append('repositoryId', query4.repositoryId) // 你要传给后台的参数值 key/value - } - if (query4.regionId !== '' && query4.regionId !== null && query4.regionId !== undefined) { - params.append('regionId', query4.regionId) // 你要传给后台的参数值 key/value - } - return request({ - url: '/saleContract/create', - method: 'post', - data: params - }) -} - -// 查询销售合同 -export function searchsaleContract(query) { - var params = new URLSearchParams() - if (query.title !== '' && query.title !== null && query.title !== undefined) { - params.append('title', query.title) // 你要传给后台的参数值 key/value - } - if (query.number !== '' && query.number !== null && query.number !== undefined) { - params.append('number', query.number) // 你要传给后台的参数值 key/value - } - if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { - params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value - } - if (query.saleType !== '' && query.saleType !== null && query.saleType !== undefined) { - params.append('saleType', query.saleType) // 你要传给后台的参数值 key/value - } - if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { - params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value - } - if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { - params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value - } - if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { - params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value - } - if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { - params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value - } - if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { - params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value - } - if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { - params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value - } - if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { - params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value - } - params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value - params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value - return request({ - url: '/saleContract/search', - method: 'post', - data: params - }) -} - -// 修改销售合同 -export function updatesaleContract(query, query2) { - var params = new URLSearchParams() - params.append('Json', query) // 你要传给后台的参数值 key/value - params.append('detailJson', query2) // 你要传给后台的参数值 key/value - return request({ - url: '/saleContract/update', - method: 'post', - data: params - }) -} - -// 删除销售合同 -export function deletesaleContract(query, query2) { - var params = new URLSearchParams() - if (query !== '' && query !== null && query !== undefined) { - params.append('modelids', query) // 你要传给后台的参数值 key/value - } - if (query2 !== '' && query2 !== null && query2 !== undefined) { - params.append('operatorId', query2) // 你要传给后台的参数值 key/value - } - return request({ - url: '/saleContract/delete', - method: 'post', - data: params - }) -} - -// 审核销售合同 -export function updatesaleContract2(query) { - var params = new URLSearchParams() - params.append('Json', query) // 你要传给后台的参数值 key/value - return request({ - url: '/saleContract/update', - method: 'post', - data: params - }) -} +import request from '@/utils/request' + +// 添加销售合同 +export function createsaleContract(query, query2, query4) { + var params = new URLSearchParams() + params.append('Json', query) // 你要传给后台的参数值 key/value + params.append('detailJson', query2) // 你要传给后台的参数值 key/value + if (query4.repositoryId !== '' && query4.repositoryId !== null && query4.repositoryId !== undefined) { + params.append('repositoryId', query4.repositoryId) // 你要传给后台的参数值 key/value + } + if (query4.regionId !== '' && query4.regionId !== null && query4.regionId !== undefined) { + params.append('regionId', query4.regionId) // 你要传给后台的参数值 key/value + } + return request({ + url: '/saleContract/create', + method: 'post', + data: params + }) +} + +// 查询销售合同 +export function searchsaleContract(query) { + var params = new URLSearchParams() + if (query.title !== '' && query.title !== null && query.title !== undefined) { + params.append('title', query.title) // 你要传给后台的参数值 key/value + } + if (query.number !== '' && query.number !== null && query.number !== undefined) { + params.append('number', query.number) // 你要传给后台的参数值 key/value + } + if (query.customerType !== '' && query.customerType !== null && query.customerType !== undefined) { + params.append('customerType', query.customerType) // 你要传给后台的参数值 key/value + } + if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { + params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value + } + if (query.saleType !== '' && query.saleType !== null && query.saleType !== undefined) { + params.append('saleType', query.saleType) // 你要传给后台的参数值 key/value + } + if (query.judgeStat !== '' && query.judgeStat !== null && query.judgeStat !== undefined) { + params.append('judgeStat', query.judgeStat) // 你要传给后台的参数值 key/value + } + if (query.receiptStat !== '' && query.receiptStat !== null && query.receiptStat !== undefined) { + params.append('receiptStat', query.receiptStat) // 你要传给后台的参数值 key/value + } + if (query.beginTime !== '' && query.beginTime !== null && query.beginTime !== undefined) { + params.append('beginTime', query.beginTime) // 你要传给后台的参数值 key/value + } + if (query.endTime !== '' && query.endTime !== null && query.endTime !== undefined) { + params.append('endTime', query.endTime) // 你要传给后台的参数值 key/value + } + if (query.repositoryId !== '' && query.repositoryId !== null && query.repositoryId !== undefined) { + params.append('repositoryId', query.repositoryId) // 你要传给后台的参数值 key/value + } + if (query.createPersonId !== '' && query.createPersonId !== null && query.createPersonId !== undefined) { + params.append('createPersonId', query.createPersonId) // 你要传给后台的参数值 key/value + } + if (query.regionIds !== '' && query.regionIds !== null && query.regionIds !== undefined) { + params.append('regionIds', query.regionIds) // 你要传给后台的参数值 key/value + } + params.append('pageNum', query.pageNum) // 你要传给后台的参数值 key/value + params.append('pageSize', query.pageSize) // 你要传给后台的参数值 key/value + return request({ + url: '/saleContract/search', + method: 'post', + data: params + }) +} + +// 修改销售合同 +export function updatesaleContract(query, query2) { + var params = new URLSearchParams() + params.append('Json', query) // 你要传给后台的参数值 key/value + params.append('detailJson', query2) // 你要传给后台的参数值 key/value + return request({ + url: '/saleContract/update', + method: 'post', + data: params + }) +} + +// 删除销售合同 +export function deletesaleContract(query, query2) { + var params = new URLSearchParams() + if (query !== '' && query !== null && query !== undefined) { + params.append('modelids', query) // 你要传给后台的参数值 key/value + } + if (query2 !== '' && query2 !== null && query2 !== undefined) { + params.append('operatorId', query2) // 你要传给后台的参数值 key/value + } + return request({ + url: '/saleContract/delete', + method: 'post', + data: params + }) +} + +// 审核销售合同 +export function updatesaleContract2(query) { + var params = new URLSearchParams() + params.append('Json', query) // 你要传给后台的参数值 key/value + return request({ + url: '/saleContract/update', + method: 'post', + data: params + }) +} diff --git a/src/api/SaleOut.js b/src/api/SaleOut.js index 73ffbe69..2d25d5a0 100644 --- a/src/api/SaleOut.js +++ b/src/api/SaleOut.js @@ -64,6 +64,15 @@ export function searchsaleOut(query) { if (query.customerName !== '' && query.customerName !== null && query.customerName !== undefined) { params.append('customerName', query.customerName) // 你要传给后台的参数值 key/value } + if (query.carCode !== '' && query.carCode !== null && query.carCode !== undefined) { + params.append('carCode', query.carCode) // 你要传给后台的参数值 key/value + } + if (query.motorCode !== '' && query.motorCode !== null && query.motorCode !== undefined) { + params.append('motorCode', query.motorCode) // 你要传给后台的参数值 key/value + } + if (query.batteryCode !== '' && query.batteryCode !== null && query.batteryCode !== undefined) { + params.append('batteryCode', query.batteryCode) // 你要传给后台的参数值 key/value + } if (query.customerId !== '' && query.customerId !== null && query.customerId !== undefined) { params.append('customerId', query.customerId) // 你要传给后台的参数值 key/value } diff --git a/src/lang/zh.js b/src/lang/zh.js index 010f0812..719fe21e 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -3766,7 +3766,8 @@ export default { }, updates2: { dbdxq: '调拨单详情', - customerName: '零售客户姓名' + customerName: '零售客户姓名', + xsj: '销售价' }, otherlanguage: { newvoucher: '凭证', diff --git a/src/views/Advancemanage/AddAdvanceOrder.vue b/src/views/Advancemanage/AddAdvanceOrder.vue index fe231dfa..f7ccb2f8 100644 --- a/src/views/Advancemanage/AddAdvanceOrder.vue +++ b/src/views/Advancemanage/AddAdvanceOrder.vue @@ -364,7 +364,7 @@ export default { row.taxprice = (row.salePrice * (1 + row.taxRate / 100)).toFixed(2) } if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -377,7 +377,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/Coupon/AddCoupon.vue b/src/views/Coupon/AddCoupon.vue index 16d6bd99..629c17a3 100644 --- a/src/views/Coupon/AddCoupon.vue +++ b/src/views/Coupon/AddCoupon.vue @@ -666,7 +666,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (1 - row.discountRate / 100)).toFixed(2) } diff --git a/src/views/Coupon/components/MyDialog.vue b/src/views/Coupon/components/MyDialog.vue index cee992f0..8856542d 100644 --- a/src/views/Coupon/components/MyDialog.vue +++ b/src/views/Coupon/components/MyDialog.vue @@ -505,7 +505,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (1 - row.discountRate / 100)).toFixed(2) } diff --git a/src/views/InstallmentList/index.vue b/src/views/InstallmentList/index.vue index 262766ae..e64d4da3 100644 --- a/src/views/InstallmentList/index.vue +++ b/src/views/InstallmentList/index.vue @@ -18,6 +18,11 @@ + + + + + - - - + + + + + + + + + + + + + {{ scope.row.batch }} @@ -350,6 +354,42 @@ export default { _that = this }, methods: { + getLocationData(row) { + // 默认批次 + if (row.batch === null || row.batch === '' || row.batch === undefined) { + const parms3 = row.productCode + batchlist(this.personalForm.countRepositoryId, parms3).then(res => { + console.log(res) + if (res.data.data.content.length > 0) { + row.batch = res.data.data.content[0] + } + }) + } else { + const parms3 = row.productCode + batchlist(this.personalForm.countRepositoryId, parms3).then(res => { + if (res.data.data.content.length === 0) { + if (row.batch !== '不使用') { + row.batch = null + } + } + }) + } + // 默认货位 + getlocation(this.personalForm.countRepositoryId, row).then(res => { + if (res.data.ret === 200) { + console.log('res', res) + if (res.data.data.content.length !== 0) { + row.locationCode = res.data.data.content[0].locationCode + row.locationId = res.data.data.content[0].id + console.log('row.locationCode', row.locationCode) + } else { + row.locationCode = null + row.locationId = null + } + } + }) + return row.locationCode + }, checkStock(row) { console.log('this.moreaction.length', this.moreaction.length) if (this.moreaction.length > 1 || this.moreaction.length === 0) { @@ -621,6 +661,7 @@ export default { this.countRepositoryId = val.repositoryName this.personalForm.countRepositoryId = val.id this.locationlistparms.repositoryId = val.id + this.$refs.editable.clear() // locationlist(this.locationlistparms).then(res => { // if (res.data.ret === 200) { // this.locationlist = res.data.data.content.list.map(function(item) { @@ -663,6 +704,8 @@ export default { // } this.$refs.editable.insert(val[i]) } + // 货位批次默认 + // 2撒打算 // console.log(val) // const row = this.$refs.editable.insert(val) } diff --git a/src/views/InventoryCount/components/MyDialog.vue b/src/views/InventoryCount/components/MyDialog.vue index 33d93c59..e6f75bba 100644 --- a/src/views/InventoryCount/components/MyDialog.vue +++ b/src/views/InventoryCount/components/MyDialog.vue @@ -75,27 +75,32 @@ @selection-change="handleSelectionChange"> - + - - - + {{ getLocationData(scope.row) }} - - - + + + + + + + + + + + + + + {{ scope.row.batch }} @@ -300,6 +305,42 @@ export default { _that = this }, methods: { + getLocationData(row) { + // 默认批次 + if (row.batch === null || row.batch === '' || row.batch === undefined) { + const parms3 = row.productCode + batchlist(this.personalForm.countRepositoryId, parms3).then(res => { + console.log(res) + if (res.data.data.content.length > 0) { + row.batch = res.data.data.content[0] + } + }) + } else { + const parms3 = row.productCode + batchlist(this.personalForm.countRepositoryId, parms3).then(res => { + if (res.data.data.content.length === 0) { + if (row.batch !== '不使用') { + row.batch = null + } + } + }) + } + // 默认货位 + getlocation(this.personalForm.countRepositoryId, row).then(res => { + if (res.data.ret === 200) { + console.log('res', res) + if (res.data.data.content.length !== 0) { + row.locationCode = res.data.data.content[0].locationCode + row.locationId = res.data.data.content[0].id + console.log('row.locationCode', row.locationCode) + } else { + row.locationCode = null + row.locationId = null + } + } + }) + return row.locationCode + }, handleSelectionChange(val) { console.log(val) this.moreaction = val @@ -459,16 +500,17 @@ export default { this.countRepositoryId = val.repositoryName this.personalForm.countRepositoryId = val.id this.locationlistparms.repositoryId = val.id - locationlist(this.locationlistparms).then(res => { - if (res.data.ret === 200) { - this.locationlist = res.data.data.content.list.map(function(item) { - return { - 'value': item.id, - 'label': item.locationName - } - }) - } - }) + this.$refs.editable.clear() + // locationlist(this.locationlistparms).then(res => { + // if (res.data.ret === 200) { + // this.locationlist = res.data.data.content.list.map(function(item) { + // return { + // 'value': item.id, + // 'label': item.locationName + // } + // }) + // } + // }) }, // 盘点单事件 // 新增盘点单明细 diff --git a/src/views/OverdueList/index.vue b/src/views/OverdueList/index.vue index b235f7b7..dd163357 100644 --- a/src/views/OverdueList/index.vue +++ b/src/views/OverdueList/index.vue @@ -36,6 +36,7 @@ + diff --git a/src/views/Product/NewProduct.vue b/src/views/Product/NewProduct.vue index bbc1bb79..b695cc3c 100644 --- a/src/views/Product/NewProduct.vue +++ b/src/views/Product/NewProduct.vue @@ -24,8 +24,8 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + @@ -42,7 +42,7 @@ - + @@ -318,7 +318,7 @@ export default { { required: true, message: '请输差异金额', trigger: 'blur' } ], repositoryId: [ - { required: true, validator: validatePass4, trigger: 'blur' } + { required: true, validator: validatePass4, trigger: 'change' } ] }, // 订单明细数据 @@ -371,6 +371,7 @@ export default { this.control = true }, productdetail(val) { + console.log('12312312', val) const nowlistdata = this.$refs.editable2.getRecords() for (let i = 0; i < val.length; i++) { for (let j = 0; j < nowlistdata.length; j++) { @@ -385,6 +386,21 @@ export default { } this.$refs.editable2.insert(val[i]) } + const nowlistdata1 = this.$refs.editable.getRecords() + const nowlistdata2 = this.$refs.editable2.getRecords() + let money1 = 0 + let money2 = 0 + console.log('nowlistdata1', nowlistdata1) + for (let i = 0; i < nowlistdata1.length; i++) { + money1 = money1 + (nowlistdata1[i].includeTaxCostMoney - nowlistdata1[i].discountMoney) + console.log('includeTaxCostMoney', nowlistdata1[i].includeTaxCostMoney) + } + for (let i = 0; i < nowlistdata2.length; i++) { + money2 = money2 + ((nowlistdata2[i].taxPrice * nowlistdata2[i].quantity) - nowlistdata2[i].discountMoney) + } + console.log('money1', money1) + console.log('money2', money2) + this.personalForm.diffMoney = (money1 - money2).toFixed(2) }, chooserep() { this.repositorycontrol = true diff --git a/src/views/ReturnExchange/components/MyDetail.vue b/src/views/ReturnExchange/components/MyDetail.vue index c731d675..07a95f14 100644 --- a/src/views/ReturnExchange/components/MyDetail.vue +++ b/src/views/ReturnExchange/components/MyDetail.vue @@ -296,7 +296,7 @@ export default { taxRate: '0.00', taxMoney: '0.00', money: '0.00', - discount: '100.00', + discount: '0.00', discountMoney: '0.00' } }) diff --git a/src/views/ReturnExchange/components/MyDialog.vue b/src/views/ReturnExchange/components/MyDialog.vue index f069c480..a0964ba1 100644 --- a/src/views/ReturnExchange/components/MyDialog.vue +++ b/src/views/ReturnExchange/components/MyDialog.vue @@ -7,7 +7,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -391,6 +391,21 @@ export default { } this.$refs.editable2.insert(val[i]) } + const nowlistdata1 = this.$refs.editable.getRecords() + const nowlistdata2 = this.$refs.editable2.getRecords() + let money1 = 0 + let money2 = 0 + console.log('nowlistdata1', nowlistdata1) + for (let i = 0; i < nowlistdata1.length; i++) { + money1 = money1 + (nowlistdata1[i].includeTaxCostMoney - nowlistdata1[i].discountMoney) + console.log('includeTaxCostMoney', nowlistdata1[i].includeTaxCostMoney) + } + for (let i = 0; i < nowlistdata2.length; i++) { + money2 = money2 + ((nowlistdata2[i].taxPrice * nowlistdata2[i].quantity) - nowlistdata2[i].discountMoney) + } + console.log('money1', money1) + console.log('money2', money2) + this.personalForm.diffMoney = (money1 - money2).toFixed(2) }, chooserep() { this.repositorycontrol = true diff --git a/src/views/ReturnExchange/components/MySaleout.vue b/src/views/ReturnExchange/components/MySaleout.vue index 2eacc31f..104381d4 100644 --- a/src/views/ReturnExchange/components/MySaleout.vue +++ b/src/views/ReturnExchange/components/MySaleout.vue @@ -10,7 +10,7 @@ - + diff --git a/src/views/SaleContract/AddSaleContract.vue b/src/views/SaleContract/AddSaleContract.vue index a778df60..08f4b115 100644 --- a/src/views/SaleContract/AddSaleContract.vue +++ b/src/views/SaleContract/AddSaleContract.vue @@ -709,7 +709,7 @@ export default { // 数量变化其他参数 queryStock(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/SaleContract/SaleContractList.vue b/src/views/SaleContract/SaleContractList.vue index 80e84fb8..0d4b76cc 100644 --- a/src/views/SaleContract/SaleContractList.vue +++ b/src/views/SaleContract/SaleContractList.vue @@ -46,6 +46,7 @@ + @@ -389,6 +390,11 @@ export default { // 搜索 handleFilter() { this.getemplist.pageNum = 1 + if (this.getemplist.customerName !== null && this.getemplist.customerName !== undefined && this.getemplist.customerName !== '') { + this.getemplist.customerType = 2 + } else { + this.getemplist.customerType = null + } searchsaleContract(this.getemplist).then(res => { if (res.data.ret === 200) { this.list = res.data.data.content.list diff --git a/src/views/SaleContract/components/MyDialog.vue b/src/views/SaleContract/components/MyDialog.vue index 498b8e14..c4e443d5 100644 --- a/src/views/SaleContract/components/MyDialog.vue +++ b/src/views/SaleContract/components/MyDialog.vue @@ -610,7 +610,7 @@ export default { // 数量变化其他参数 queryStock(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/SaleOrder/AddSaleOrder.vue b/src/views/SaleOrder/AddSaleOrder.vue index 2808a0fe..97acf886 100644 --- a/src/views/SaleOrder/AddSaleOrder.vue +++ b/src/views/SaleOrder/AddSaleOrder.vue @@ -625,7 +625,7 @@ export default { // 数量变化其他参数 queryStock(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -825,7 +825,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/SaleOrder/components/MyDialog.vue b/src/views/SaleOrder/components/MyDialog.vue index 8c33e863..b07b1aa6 100644 --- a/src/views/SaleOrder/components/MyDialog.vue +++ b/src/views/SaleOrder/components/MyDialog.vue @@ -556,7 +556,7 @@ export default { // 数量变化其他参数 queryStock(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -699,7 +699,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/SaleOut/AddSaleOut.vue b/src/views/SaleOut/AddSaleOut.vue index bf9d6ade..5214cf63 100644 --- a/src/views/SaleOut/AddSaleOut.vue +++ b/src/views/SaleOut/AddSaleOut.vue @@ -1075,7 +1075,7 @@ export default { } if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -1487,7 +1487,7 @@ export default { // 计算含税金额 getincludeTaxMoney(row) { row.includeTaxMoney = (row.taxprice * row.quantity).toFixed(2) - row.discountMoney = (row.taxprice * row.quantity * (1 - row.discountRate / 100)).toFixed(2) + row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) return row.includeTaxMoney }, // 通过税率计算含税价 @@ -1497,7 +1497,7 @@ export default { row.discountMoney = row.includeTaxCostMoney * row.discountRate } if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -1510,7 +1510,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/SaleOut/AddSaleOut2.vue b/src/views/SaleOut/AddSaleOut2.vue index b86338dc..317e9c4f 100644 --- a/src/views/SaleOut/AddSaleOut2.vue +++ b/src/views/SaleOut/AddSaleOut2.vue @@ -769,7 +769,7 @@ export default { } }) if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -1105,7 +1105,7 @@ export default { row.taxprice = (row.salePrice * (1 + row.taxRate / 100)).toFixed(2) } if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -1118,7 +1118,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/src/views/SaleOut/SaleOutList.vue b/src/views/SaleOut/SaleOutList.vue index d7d795f3..83fea17f 100644 --- a/src/views/SaleOut/SaleOutList.vue +++ b/src/views/SaleOut/SaleOutList.vue @@ -40,6 +40,9 @@ + + + diff --git a/src/views/SaleOut/components/MyDialog.vue b/src/views/SaleOut/components/MyDialog.vue index 7b002283..55c9ba4a 100644 --- a/src/views/SaleOut/components/MyDialog.vue +++ b/src/views/SaleOut/components/MyDialog.vue @@ -949,7 +949,7 @@ export default { } if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -1205,7 +1205,7 @@ export default { // 计算含税金额 getincludeTaxMoney(row) { row.includeTaxMoney = (row.taxprice * row.quantity).toFixed(2) - row.discountMoney = (row.taxprice * row.quantity * (1 - row.discountRate / 100)).toFixed(2) + row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) return row.includeTaxMoney }, // 通过税率计算含税价 @@ -1214,7 +1214,7 @@ export default { row.taxprice = (row.salePrice * (1 + row.taxRate / 100)).toFixed(2) } if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } @@ -1227,7 +1227,7 @@ export default { // 通过折扣计算折扣额 getdiscountRate(row) { if (row.discountRate === 0) { - row.discountMoney = row.taxprice * row.quantity + row.discountMoney = 0 } else { row.discountMoney = (row.taxprice * row.quantity * (row.discountRate / 100)).toFixed(2) } diff --git a/static/file/物品资料表.xlsx b/static/file/物品资料表.xlsx index 8dfd9704..cfc261fa 100644 Binary files a/static/file/物品资料表.xlsx and b/static/file/物品资料表.xlsx differ
{{ getLocationData(scope.row) }}