|
@@ -10,7 +10,6 @@
|
|
|
<template slot="extra">
|
|
|
<a-button key="3" id="salesReturnDetail-preview-btn">打印预览</a-button>
|
|
|
<a-button key="4" type="primary" id="salesReturnDetail-print-btn">快速打印</a-button>
|
|
|
- <a-button key="5" id="salesReturnDetail-export-btn">导出</a-button>
|
|
|
</template>
|
|
|
</a-page-header>
|
|
|
<!-- 基础信息 -->
|
|
@@ -19,40 +18,17 @@
|
|
|
<a-collapse-panel key="1" header="基础信息">
|
|
|
<a-descriptions size="small" :column="3" v-if="detailData">
|
|
|
<a-descriptions-item label="客户名称">{{ detailData.buyerName || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="客户地址">
|
|
|
- {{ detailData.provinceName || '--' }}{{ detailData.cityName || '--' }}{{ detailData.countyName || '--' }}{{ detailData.customerAddr || '--' }}
|
|
|
- </a-descriptions-item>
|
|
|
- <a-descriptions-item label="联系电话">{{ detailData.contactTel || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="备注">{{ detailData.remarks || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="退货单号">{{ detailData.salesReturnBillNo || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="业务状态">{{ detailData.billStatusDictValue || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="销退单号">{{ detailData.salesReturnBillNo || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="创建时间">{{ detailData.createDate || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="退货数量">{{ detailData.totalQty || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="坏件数量">{{ detailData.totalBadQty || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="返库数量">{{ detailData.totalBackStockQty || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="退货金额">{{ detailData.totalAmount || '--' }}元</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
|
</a-card>
|
|
|
<a-card size="small" :bordered="false" class="pages-wrap">
|
|
|
- <!-- alert -->
|
|
|
- <a-alert type="info" style="margin-bottom: 10px;" v-if="detailData">
|
|
|
- <div slot="message">
|
|
|
- 总款数:
|
|
|
- <strong>{{ countData.totalCategory || 0 }}</strong>
|
|
|
- ;总数量:
|
|
|
- <strong>{{ countData.totalQty || 0 }}</strong>
|
|
|
- ;废品数量:
|
|
|
- <strong>{{ countData.totalCelQty || 0 }}</strong>
|
|
|
- ;
|
|
|
- <br />
|
|
|
- 退货总金额:
|
|
|
- <strong>{{ countData.totalAmount || 0 }}</strong>
|
|
|
- ;折扣金额:
|
|
|
- <strong>{{ countData.discountAmount || 0 }}</strong>
|
|
|
- ;折扣:
|
|
|
- <strong>{{ countData.discountRate || 0 }}%</strong>
|
|
|
- ;折后金额:
|
|
|
- <strong>{{ countData.discountedAmount || 0 }}</strong>
|
|
|
- ;
|
|
|
- </div>
|
|
|
- </a-alert>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable"
|
|
@@ -64,13 +40,40 @@
|
|
|
:scroll="{ x: 1430 }"
|
|
|
bordered></s-table>
|
|
|
</a-card>
|
|
|
+ <a-card size="small" :bordered="false" class="footer-cont">
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ class="button-warning"
|
|
|
+ v-if="detailData&&(detailData.billStatus == 'WAIT_AUDIT'||detailData.billStatus == 'HQ_CHANGE')"
|
|
|
+ @click="handleEexamine(record)"
|
|
|
+ id="salesReturn-eexamine-btn">审核</a-button>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ class="button-info"
|
|
|
+ size="large"
|
|
|
+ style="width: 150px;"
|
|
|
+ id="salesDetail-edit-btn"
|
|
|
+ v-if="detailData&&detailData.salesReturnBillSource == 'SALES' && (detailData.billStatus == 'WAIT_AUDIT'||detailData.billStatus == 'WAIT_SUBMIT')"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ >
|
|
|
+ 编辑
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ v-if="detailData&&detailData.salesReturnBillSource != 'SALES' && (detailData.billStatus == 'WAIT_AUDIT'||detailData.billStatus == 'HQ_CHANGE')"
|
|
|
+ type="primary"
|
|
|
+ class="button-info"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ id="salesReturn-edit-btn">改单</a-button>
|
|
|
+ </a-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getOperationalPrecision } from '@/libs/tools.js'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
-import { salesReturnDetail } from '@/api/salesReturn'
|
|
|
+import { salesReturnDetail, salesReturnAudit } from '@/api/salesReturn'
|
|
|
import { salesReturnDetailList } from '@/api/salesReturnDetail'
|
|
|
export default {
|
|
|
name: 'SalesReturnDetail',
|
|
@@ -78,7 +81,6 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
disabled: false,
|
|
|
- countData: null,
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
|
|
@@ -194,6 +196,38 @@ export default {
|
|
|
handleBack () {
|
|
|
this.$router.push({ name: 'salesReturnList' })
|
|
|
},
|
|
|
+ // 审核
|
|
|
+ handleEexamine (row) {
|
|
|
+ const _this = this
|
|
|
+ this.$confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '请点击下方按钮确认操作?',
|
|
|
+ centered: true,
|
|
|
+ closable: true,
|
|
|
+ okText: '审核通过',
|
|
|
+ cancelText: '审核不通过',
|
|
|
+ onOk () {
|
|
|
+ _this.auditOrder(row.salesReturnBillSn, 'OUTING_WAREHOUSE')
|
|
|
+ },
|
|
|
+ onCancel (e) {
|
|
|
+ if (!e.triggerCancel) {
|
|
|
+ _this.auditOrder(row.salesReturnBillSn, 'AUDIT_REJECT')
|
|
|
+ }
|
|
|
+ _this.$destroyAll()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ auditOrder (salesReturnBillSn, billStatus) {
|
|
|
+ salesReturnAudit({
|
|
|
+ salesReturnBillSn,
|
|
|
+ billStatus
|
|
|
+ }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.$message.success(res.message)
|
|
|
+ this.$refs.table.refresh()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 详情
|
|
|
getDetail () {
|
|
|
salesReturnDetail({ sn: this.$route.params.sn }).then(res => {
|
|
@@ -216,5 +250,9 @@ export default {
|
|
|
.salesReturnDetail-cont {
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
+ .footer-cont{
|
|
|
+ margin-top: 5px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|