Commit afc994ad authored by dragondean@qq.com's avatar dragondean@qq.com

报价单导出,订单等的bug

parent 677e3269
...@@ -133,3 +133,13 @@ export function offerDeptPage(params) { ...@@ -133,3 +133,13 @@ export function offerDeptPage(params) {
params params
}) })
} }
// 导出部分报价单 exportDeptOfferExcel
export function exportDeptOfferExcel(query) {
return request({
url: '/ecw/offer/dept/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
\ No newline at end of file
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</template> </template>
<script> <script>
import { deleteOffer, getOfferPage, exportOfferExcel,cancel, recovery, offerDeptPage } from "@/api/ecw/offer"; import { deleteOffer, getOfferPage, exportOfferExcel,cancel, recovery, offerDeptPage, exportDeptOfferExcel } from "@/api/ecw/offer";
import { getCurrencyList } from '@/api/ecw/currency'; import { getCurrencyList } from '@/api/ecw/currency';
import {getTradeCityList} from '@/api/ecw/region' import {getTradeCityList} from '@/api/ecw/region'
import UserSelector from '@/components/UserSelector' import UserSelector from '@/components/UserSelector'
...@@ -260,7 +260,9 @@ export default { ...@@ -260,7 +260,9 @@ export default {
// 执行导出 // 执行导出
this.$modal.confirm(this.$t('是否确认导出所有报价单管理数据项?')).then(() => { this.$modal.confirm(this.$t('是否确认导出所有报价单管理数据项?')).then(() => {
this.exportLoading = true; this.exportLoading = true;
return exportOfferExcel(params); if(this.dept){
return exportDeptOfferExcel(params)
}else return exportOfferExcel(params);
}).then(response => { }).then(response => {
this.$download.excel(response, '报价列表.xls'); this.$download.excel(response, '报价列表.xls');
this.exportLoading = false; this.exportLoading = false;
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<th style="text-align:center;padding:0 0px;width:80px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('方数')}}</th> <th style="text-align:center;padding:0 0px;width:80px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('方数')}}</th>
<th style="text-align:center;padding:0 0px;width:80px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('重量')}}</th> <th style="text-align:center;padding:0 0px;width:80px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('重量')}}</th>
<th style="text-align:center;padding:0 0px;width:110px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('入仓时间')}}</th> <th style="text-align:center;padding:0 0px;width:110px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('入仓时间')}}</th>
<th v-if="!preview" style="text-align:center;padding:0 0px;width:110px;text-align: center;font-size: 14px;border:1px dashed #ccc;">{{$t('首次入仓时间')}}</th>
</tr> </tr>
<template v-for="(item, index) in items"> <template v-for="(item, index) in items">
<tr v-if="!preview || item.checked" :key="index"> <tr v-if="!preview || item.checked" :key="index">
...@@ -53,6 +54,9 @@ ...@@ -53,6 +54,9 @@
<td style="text-align:center;padding:0 0px;border:1px dashed #ccc;"> <td style="text-align:center;padding:0 0px;border:1px dashed #ccc;">
{{item.inTime|parseTime}} {{item.inTime|parseTime}}
</td> </td>
<td style="text-align:center;padding:0 0px;border:1px dashed #ccc;" v-if="!preview">
{{item.createTime|parseTime}}
</td>
</tr> </tr>
</template> </template>
</table> </table>
...@@ -121,7 +125,8 @@ export default { ...@@ -121,7 +125,8 @@ export default {
boxGauge: witem.boxGauge, boxGauge: witem.boxGauge,
volume: witem.volume, volume: witem.volume,
weight: witem.weight, weight: witem.weight,
inTime: witem.inTime inTime: witem.inTime,
createTime: witem.createTime
}) })
}) })
}) })
......
...@@ -152,7 +152,16 @@ export default { ...@@ -152,7 +152,16 @@ export default {
if(!valid){ if(!valid){
return false return false
} }
console.log('submit') // 放货箱数不能大于总控货箱数
let errNos = []
this.selectedOrders.forEach(item => {
if(item.releaseNum > item.sumNum){
errNos.push(item.orderNo)
}
})
if(errNos.length){
return this.$message.error(this.$t("订单{no}的放货箱数不能大于控货箱数", {no: errNos.join(",")}))
}
updateApply(Object.assign({ updateApply(Object.assign({
cargoControlPickId: this.cargoControlPickId, cargoControlPickId: this.cargoControlPickId,
orderBackPageVOList: this.selectedOrders, orderBackPageVOList: this.selectedOrders,
......
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