|
@@ -1,28 +1,17 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <a-affix :target="() => this.$refs.container">
|
|
|
- <a-page-header
|
|
|
- :ghost="false"
|
|
|
- @back="handleBack"
|
|
|
- :backIcon="false"
|
|
|
- >
|
|
|
- <template slot="subTitle">
|
|
|
- <a id="back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
|
- <span style="margin: 0 15px;color: #666;">客户名称:{{ ordeDetail&&ordeDetail.buyerName }}</span>
|
|
|
- <!-- <a-button size="small" @click="handleEditCustom" style="margin-left:50px" key="0">
|
|
|
- 编辑
|
|
|
- </a-button> -->
|
|
|
- </template>
|
|
|
- <template slot="extra">
|
|
|
- <a-button key="2">
|
|
|
- 打印预览
|
|
|
- </a-button>
|
|
|
- <a-button key="1" type="primary">
|
|
|
- 快速打印
|
|
|
- </a-button>
|
|
|
- </template>
|
|
|
- </a-page-header>
|
|
|
- </a-affix>
|
|
|
+ <a-page-header :ghost="false" :backIcon="false" class="salesReturnEdit-back" >
|
|
|
+ <!-- 自定义的二级文字标题 -->
|
|
|
+ <template slot="subTitle">
|
|
|
+ <a id="salesReturnEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
|
+ <span style="margin: 0 15px;color: #666;">客户名称:{{ ordeDetail&&ordeDetail.buyerName }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 操作区,位于 title 行的行尾 -->
|
|
|
+ <template slot="extra">
|
|
|
+ <a-button key="2" id="salesReturnEdit-preview-btn">打印预览</a-button>
|
|
|
+ <a-button key="1" type="primary" id="salesReturnEdit-print-btn">快速打印</a-button>
|
|
|
+ </template>
|
|
|
+ </a-page-header>
|
|
|
|
|
|
<a-card size="small" :bordered="false" class="pages-wrap" v-if="ordeDetail&&ordeDetail.salesReturnBillSource=='SALES'">
|
|
|
<!-- 查询配件列表 -->
|
|
@@ -44,7 +33,7 @@
|
|
|
<s-table
|
|
|
class="sTable"
|
|
|
ref="table"
|
|
|
- size="default"
|
|
|
+ size="small"
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
@@ -127,70 +116,16 @@ export default {
|
|
|
},
|
|
|
// 表头
|
|
|
columns: [
|
|
|
- {
|
|
|
- title: '序号',
|
|
|
- dataIndex: 'no',
|
|
|
- align: 'center',
|
|
|
- width: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '采购单号',
|
|
|
- dataIndex: 'purchaseBillNo',
|
|
|
- align: 'center',
|
|
|
- width: 200
|
|
|
- },
|
|
|
- {
|
|
|
- title: '产品编码',
|
|
|
- dataIndex: 'productEntity.code',
|
|
|
- align: 'center',
|
|
|
- width: 160
|
|
|
- },
|
|
|
- {
|
|
|
- title: '产品名称',
|
|
|
- dataIndex: 'productEntity.name',
|
|
|
- align: 'center',
|
|
|
- width: 200
|
|
|
- },
|
|
|
- {
|
|
|
- title: '剩余可退数量',
|
|
|
- dataIndex: 'refundableQty',
|
|
|
- align: 'center',
|
|
|
- width: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '本次退货数量',
|
|
|
- dataIndex: 'qty',
|
|
|
- align: 'center',
|
|
|
- width: 150,
|
|
|
- scopedSlots: { customRender: 'qty' }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '退货单价',
|
|
|
- dataIndex: 'price',
|
|
|
- customRender: function (text) { return '¥' + (text || 0) },
|
|
|
- align: 'center',
|
|
|
- width: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: '单位',
|
|
|
- dataIndex: 'productEntity.unit',
|
|
|
- align: 'center',
|
|
|
- width: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '退货小计',
|
|
|
- align: 'center',
|
|
|
- dataIndex: 'totalAmount',
|
|
|
- customRender: function (text) { return '¥' + (text || 0) },
|
|
|
- width: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: '退货原因',
|
|
|
- dataIndex: 'remark',
|
|
|
- align: 'center',
|
|
|
- width: 150,
|
|
|
- scopedSlots: { customRender: 'remark' }
|
|
|
- },
|
|
|
+ { title: '序号', dataIndex: 'no', align: 'center', width: 80 },
|
|
|
+ { title: '采购单号', dataIndex: 'purchaseBillNo', align: 'center', width: 200 },
|
|
|
+ { title: '产品编码', dataIndex: 'productEntity.code', align: 'center' },
|
|
|
+ { title: '产品名称', dataIndex: 'productEntity.name', align: 'center' },
|
|
|
+ { title: '剩余可退数量', dataIndex: 'refundableQty', align: 'center', width: 120, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '本次退货数量', dataIndex: 'qty', align: 'center', width: 150, scopedSlots: { customRender: 'qty' } },
|
|
|
+ { title: '退货单价', dataIndex: 'price', align: 'center', width: 150, customRender: function (text) { return '¥' + (text || 0) } },
|
|
|
+ { title: '单位', dataIndex: 'productEntity.unit', align: 'center', width: 100 },
|
|
|
+ { title: '退货小计', align: 'center', width: 100, dataIndex: 'totalAmount', customRender: function (text) { return '¥' + (text || 0) } },
|
|
|
+ { title: '退货原因', dataIndex: 'remark', align: 'center', width: 150, scopedSlots: { customRender: 'remark' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
chooseLoadData: [],
|