Commit edf01502 by chenwq

feat(采购): 添加发货签收单导出功能

- 新增 deliveryPdf API 方法用于生成发货签收单PDF
- 在发票记录和工厂发货详情页面集成签收单导出功能
- 调整工厂发货详情页面的备注显示方式
1 parent bf28090c
......@@ -130,6 +130,12 @@ export function orderDeliveryUpdate(data) {
return request(data, "post")
}
// 发货签收单
export function deliveryPdf(data) {
data.method = "dj.api.smarcarlife.warehousedeliver.detail.pdf"
return request(data, "post")
}
// 发货单 - 发货签收单
// export function orderDeliverySign(data) {
// data.method = "dj.api.smarcarlife.purchaseOrder.delivery.sign"
......
......@@ -12,9 +12,9 @@
<span class="phone">电话:<span class="label">{{ detailInfo[0].contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo[0].contactAddress }}</span></span>
</div>
<div class="address-info" v-if="detailInfo[0]">
<!-- <div class="address-info" v-if="detailInfo[0]">
<span class="address">备注:<span class="label">{{ detailInfo[0].purchaseOrderRemark }}</span></span>
</div>
</div> -->
<div v-for="(itemList, index) in detailInfo" :key="index">
<div class="detail-info">
<div style="width: 319px;">
......@@ -31,7 +31,7 @@
</div>
<div>
<el-button v-if="itemList.putStatus == 0" type="text" @click="handleEdit(itemList)">编辑</el-button>
<el-button type="text" @click="handleExport(itemList)">发货签收单</el-button>
<el-button type="text" @click="handleSign(itemList)">发货签收单</el-button>
</div>
</div>
<d2-table ref="recordTable" :table-data="itemList.deliveryDetailList" :table-params="tableParams" :has-page="false">
......@@ -135,6 +135,13 @@ export default {
}
},
{
label: '备注',
prop: '',
formatter: cellValue => {
return ((cellValue.remark || '') + (cellValue.deliveryRemark || '')) || '-'
}
},
{
label: '发货卡号',
prop: 'deliveryCardList',
addHtml: 'deliveryCard'
......@@ -266,6 +273,15 @@ export default {
this.loading = false
})
},
handleSign(row) {
const params = {
id: row.orderDeliveryId
}
deliveryPdf(params).then((res) => {
console.log(res)
this.$open(res)
})
},
handleClose() {
// this.$emit('dialogClose')
......
......@@ -52,7 +52,7 @@
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { purchaseOrderDeliveryPage, purchaseOrderDeliveryWithdraw, orderDeliveryUpdate } from '@/api/purchaseShopping.js'
import { purchaseOrderDeliveryPage, purchaseOrderDeliveryWithdraw, orderDeliveryUpdate, deliveryPdf } from '@/api/purchaseShopping.js'
import deliveryDetailDialog from './components/deliveryDetailDialog'
import { invouceType } from '@/common/constants.js'
export default {
......@@ -326,7 +326,7 @@ export default {
const params = {
id: row.id
}
exportTable(params).then((res) => {
deliveryPdf(params).then((res) => {
console.log(res)
this.$open(res)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!