|
@@ -22,13 +22,35 @@
|
|
|
</a-col>
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="销退单号">
|
|
|
- <a-input id="salesReturn-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入销退单号"/>
|
|
|
+ <a-form-item label="总部销退单号">
|
|
|
+ <a-input id="salesReturn-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入总部销退单号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="客户采退单号">
|
|
|
- <a-input id="salesReturn-purchaseReturnBillNo" v-model.trim="queryParam.purchaseReturnBillNo" allowClear placeholder="请输入客户采退单号"/>
|
|
|
+ <a-form-item label="客户采退申请单号">
|
|
|
+ <a-input id="salesReturn-purchaseReturnApplyNo" v-model.trim="queryParam.purchaseReturnApplyNo" allowClear placeholder="请输入客户采退申请单号"/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="单据来源">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.salesReturnBillSource"
|
|
|
+ ref="salesReturnBillSource"
|
|
|
+ id="salesReturn-salesReturnBillSource"
|
|
|
+ code="SALES_SOURCE"
|
|
|
+ placeholder="请选择单据来源"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="是否同步给客户">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.syncFlag"
|
|
|
+ ref="syncFlag"
|
|
|
+ id="salesReturn-syncFlag"
|
|
|
+ code="FLAG"
|
|
|
+ placeholder="请选择是否同步给客户"
|
|
|
+ allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -74,19 +96,11 @@
|
|
|
<div class="table-operator">
|
|
|
<a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesReturnNew')" @click="openModal = true">新增</a-button>
|
|
|
</div>
|
|
|
- <!-- alert -->
|
|
|
- <a-alert type="info" style="margin-bottom: 10px;">
|
|
|
- <div slot="message">
|
|
|
- <span v-if="$hasPermissions('B_isShowPrice')">退货总金额:<strong>{{ countData&&(countData.totalAmount || countData.totalAmount==0) ? countData.totalAmount : '--' }}</strong>元;</span>
|
|
|
- 总单数:<strong>{{ countData&&(countData.totalRecord || countData.totalRecord==0) ? countData.totalRecord : '--' }}</strong>;
|
|
|
- 总数量:<strong>{{ countData&&(countData.totalQty || countData.totalQty==0) ? countData.totalQty : '--' }}</strong>;
|
|
|
- </div>
|
|
|
- </a-alert>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
+ :style="{ height: tableHeight+64.5+'px' }"
|
|
|
size="small"
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
@@ -97,7 +111,7 @@
|
|
|
<!-- 单号 -->
|
|
|
<template slot="salesReturnBillNo" slot-scope="text, record">
|
|
|
<div v-if="$hasPermissions('B_salesReturnDetail')">
|
|
|
- <a-badge :count="'改'+record.changeTimes" :offset="[16,-13]" v-if="record.changeTimes>0" class="badge-con-t">
|
|
|
+ <a-badge :count="'改'" :offset="[16,-13]" v-if="record.changeFlag==1" class="badge-con-t">
|
|
|
<span class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
|
|
|
</a-badge>
|
|
|
<span v-else class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
|
|
@@ -106,60 +120,66 @@
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-warning"
|
|
|
- v-if="(record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'FINANCIAL_REJECT')&&$hasPermissions('B_salesReturnAudit')"
|
|
|
- @click="handleEexamine(record)"
|
|
|
- id="salesReturn-eexamine-btn">审核</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-warning"
|
|
|
- v-if="record.billStatus == 'WAIT_CHECK'&&$hasPermissions('B_salesReturnCheck')"
|
|
|
- @click="handleCheck(record)"
|
|
|
- id="salesReturn-eexamine-btn">品检</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- v-if="record.salesReturnBillSource == 'SALES' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'WAIT_SUBMIT'||record.billStatus == 'FINANCIAL_REJECT'||record.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesReturnEdit')"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- @click="handleEdit(record)"
|
|
|
- id="salesReturn-edit-btn">编辑</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- v-if="record.salesReturnBillSource != 'SALES' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'WAIT_SUBMIT'||record.billStatus == 'HQ_CHANGE'||record.billStatus == 'FINANCIAL_REJECT')&&$hasPermissions('B_salesReturnEdit')"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- @click="handleEdit(record)"
|
|
|
- id="salesReturn-edit-btn">改单</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- v-if="record.salesReturnBillSource == 'SALES' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'WAIT_SUBMIT'||record.billStatus == 'FINANCIAL_REJECT'||record.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesReturnDel')"
|
|
|
- type="link"
|
|
|
- class="button-error"
|
|
|
- @click="handleDel(record)"
|
|
|
- id="salesReturn-del-btn">删除</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- v-if="record.salesReturnBillSource != 'SALES' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'WAIT_SUBMIT'||record.billStatus == 'HQ_CHANGE'||record.billStatus == 'FINANCIAL_REJECT')&&$hasPermissions('B_salesReturnDel')"
|
|
|
- type="link"
|
|
|
- class="button-error"
|
|
|
- @click="handleDel(record)"
|
|
|
- id="salesReturn-del-btn">取消</a-button>
|
|
|
- <span
|
|
|
- v-if="!((record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'FINANCIAL_REJECT')&&$hasPermissions('B_salesReturnAudit')) &&
|
|
|
- !(record.billStatus == 'WAIT_CHECK'&&$hasPermissions('B_salesReturnCheck')) &&
|
|
|
- !(record.salesReturnBillSource == 'SALES' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'WAIT_SUBMIT'||record.billStatus == 'FINANCIAL_REJECT'||record.billStatus == 'AUDIT_REJECT')&&($hasPermissions('B_salesReturnEdit') || $hasPermissions('B_salesReturnDel'))) &&
|
|
|
- !(record.salesReturnBillSource != 'SALES' && (record.billStatus == 'WAIT_AUDIT'||record.billStatus == 'WAIT_SUBMIT'||record.billStatus == 'HQ_CHANGE'||record.billStatus == 'FINANCIAL_REJECT')&&($hasPermissions('B_salesReturnEdit') || $hasPermissions('B_salesReturnDel')))">--</span>
|
|
|
+ <div>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-warning"
|
|
|
+ v-if="record.billStatus == 'WAIT_AUDIT'&&$hasPermissions('B_salesReturnAudit')"
|
|
|
+ @click="handleEexamine(record)"
|
|
|
+ id="salesReturn-eexamine-btn">审核进度</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-warning"
|
|
|
+ v-if="record.salesReturnBillSource != 'SALES'&&record.billStatus == 'WAIT_SUBMIT'&&$hasPermissions('B_salseReturnSubmit')"
|
|
|
+ @click="beforeSubmit(record)"
|
|
|
+ id="salesReturn-eexamine-btn">提交</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ v-if="record.billStatus == 'WAIT_SUBMIT' && $hasPermissions('B_salesReturnEdit')"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ id="salesReturn-edit-btn">{{ record.salesReturnBillSource == 'SALES' ? '编辑' : '改单' }}</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ v-if="record.billStatus == 'WAIT_SUBMIT' && $hasPermissions('B_salesReturnDel')"
|
|
|
+ type="link"
|
|
|
+ class="button-error"
|
|
|
+ @click="handleDel(record)"
|
|
|
+ id="salesReturn-del-btn">{{ record.salesReturnBillSource == 'SALES' ? '删除' : '取消' }}</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ v-if="record.salesReturnBillSource == 'SALES'&&record.billStatus == 'AUDIT_REJECT'&& $hasPermissions('B_salesReturnAgainEdit')"
|
|
|
+ @click="handleAgainEdit(record)"
|
|
|
+ id="salesReturn-edit-btn">再次编辑</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ v-if="record.billStatus == 'WAIT_RECEIVE'&& $hasPermissions('B_newPickUp')"
|
|
|
+ @click="handlePickUp(record)"
|
|
|
+ id="salesReturn-edit-btn">申请提货</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="link"
|
|
|
+ class="button-info"
|
|
|
+ v-if="(record.billStatus == 'FINANCIAL_REJECT'||record.billStatus == 'WAIT_CUSTOMER_SERVICE_CONFIRM')&& $hasPermissions('B_salesReturnConfirm')"
|
|
|
+ @click="handleConfirm(record)"
|
|
|
+ id="salesReturn-edit-btn">客服确认</a-button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
<!-- 选择客户弹框 -->
|
|
|
<choose-custom-modal :show="openModal" @ok="handleEdit" @cancel="openModal=false"></choose-custom-modal>
|
|
|
- <!-- 审核 -->
|
|
|
- <auditModal :openModal="visibleAudit" :spinning="spinningAudit" @close="visibleAudit=false" @ok="auditOrder('WAIT_CHECK')" @fail="auditOrder('AUDIT_REJECT')" />
|
|
|
+ <!-- 审核进度 -->
|
|
|
+ <verifyModal :openModal="visibleAudit" :itemSn="auditInfo&&auditInfo.salesReturnBillSn" @close="visibleAudit=false"></verifyModal>
|
|
|
+ <!-- 选择审核人员 -->
|
|
|
+ <chooseDepartUserModal :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -170,9 +190,10 @@ import subarea from '@/views/common/subarea.js'
|
|
|
import { getArea } from '@/api/data'
|
|
|
import chooseCustomModal from './chooseCustomModal.vue'
|
|
|
import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
-import auditModal from '@/views/common/auditModal.vue'
|
|
|
+import verifyModal from './verifyModal.vue'
|
|
|
+import chooseDepartUserModal from './chooseDepartUserModal.vue'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
-import { salesReturnList, salesReturnQueryCount, salesReturnAudit, salesReturnDel } from '@/api/salesReturn'
|
|
|
+import { salesReturnList, updateAgain, salesReturnDel, salesReturnSubmit } from '@/api/salesReturn'
|
|
|
import moment from 'moment'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
export default {
|
|
@@ -184,7 +205,8 @@ export default {
|
|
|
chooseCustomModal,
|
|
|
dealerSubareaScopeList,
|
|
|
rangeDate,
|
|
|
- auditModal,
|
|
|
+ verifyModal,
|
|
|
+ chooseDepartUserModal,
|
|
|
subarea
|
|
|
},
|
|
|
data () {
|
|
@@ -199,6 +221,7 @@ export default {
|
|
|
moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
|
], // 创建时间
|
|
|
openModal: false, // 选择客户弹框是否显示
|
|
|
+ openDepartUserModal: false,
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
beginDate: getDate.getThreeMonthDays().starttime,
|
|
@@ -207,19 +230,17 @@ export default {
|
|
|
endAuditDate: '',
|
|
|
buyerSn: undefined, // 客户名称
|
|
|
salesReturnBillNo: undefined, // 总部销退单号
|
|
|
- purchaseReturnBillNo: '',
|
|
|
+ purchaseReturnApplyNo: '',
|
|
|
+ syncFlag: undefined, // 是否同步给客户
|
|
|
billStatus: undefined, // 业务状态
|
|
|
- // financialStatus: undefined, // 财务状态
|
|
|
subareaSn: undefined,
|
|
|
- shippingAddrProvinceSn: undefined
|
|
|
+ shippingAddrProvinceSn: undefined,
|
|
|
+ salesReturnBillSource: undefined
|
|
|
},
|
|
|
- countData: null, // 统计数据
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
this.spinning = true
|
|
|
- // 查询总计
|
|
|
- this.getQueryCount(Object.assign(parameter, this.queryParam))
|
|
|
return salesReturnList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
@@ -243,24 +264,22 @@ export default {
|
|
|
computed: {
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
- { title: '创建时间', dataIndex: 'createDate', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '编号', dataIndex: 'no', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '创建时间', dataIndex: 'createDate', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '单据来源', dataIndex: 'salesReturnBillSourceDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '客户采退单号', dataIndex: 'purchaseReturnBillNo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '是否同步给客户', dataIndex: 'syncFlag', width: '7%', align: 'center', customRender: function (text) { return text ? ['否', '是'][text] : '--' } },
|
|
|
+ { title: '客户采退申请单号', dataIndex: 'purchaseReturnApplyNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '总部销退单号', scopedSlots: { customRender: 'salesReturnBillNo' }, width: '10%', align: 'center' },
|
|
|
- { title: '退货客户', dataIndex: 'buyerName', width: '12%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '退货数量', dataIndex: 'totalQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '坏件数量', dataIndex: 'totalBadQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '返库数量', dataIndex: 'totalBackStockQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- // { title: '退款金额', dataIndex: 'totalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '是否抓单', dataIndex: 'grabFlag', width: '6%', align: 'center', customRender: function (text) { return ['否', '是'][text] } },
|
|
|
- { title: '审核时间', dataIndex: 'auditTime', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '客户名称', dataIndex: 'buyerName', width: '10%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '申请退货数量', dataIndex: 'totalInitialQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '仓库实收数量', dataIndex: 'totalReceiveQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '坏件数量', dataIndex: 'totalBadQty', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '良品数量', dataIndex: 'totalGoodQty', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '返库数量', dataIndex: 'totalBackStockQty', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '审核时间', dataIndex: 'auditTime', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '业务状态', dataIndex: 'billStatusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- // { title: '财务状态', dataIndex: 'financialStatusDictValue', scopedSlots: { customRender: 'financialStatus' }, width: 110, align: 'center' },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
]
|
|
|
- if (this.$hasPermissions('B_isShowPrice')) { // 售价权限
|
|
|
- arr.splice(9, 0, { title: '退款金额', dataIndex: 'totalAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
- }
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
@@ -278,15 +297,39 @@ export default {
|
|
|
custChange (val) {
|
|
|
this.queryParam.buyerSn = val.key
|
|
|
},
|
|
|
- // 列表统计
|
|
|
- getQueryCount (params) {
|
|
|
- salesReturnQueryCount(params).then(res => {
|
|
|
- this.countData = res.data || null
|
|
|
- })
|
|
|
+ // 客服确认
|
|
|
+ handleConfirm (row) {
|
|
|
+ this.$router.push({ name: 'custConfirm', params: { sn: row.salesReturnBillSn, buyerSn: row.buyerSn } })
|
|
|
+ },
|
|
|
+ // 申请提货
|
|
|
+ handlePickUp (row) {
|
|
|
+ this.$store.state.app.tempBillOfData = row
|
|
|
+ this.$router.push({ name: 'billOfLadingAdd', query: { path: 'salerReturn' } })
|
|
|
},
|
|
|
// 编辑
|
|
|
handleEdit (row) {
|
|
|
- this.$router.push({ name: row.grabFlag == 1 ? 'salesReturnGrabEdit' : 'salesReturnEdit', params: { sn: row.salesReturnBillSn, buyerSn: row.buyerSn } })
|
|
|
+ this.$router.push({ name: 'salesReturnEdit', params: { sn: row.salesReturnBillSn, buyerSn: row.buyerSn } })
|
|
|
+ },
|
|
|
+ // 再次编辑
|
|
|
+ handleAgainEdit (row) {
|
|
|
+ const _this = this
|
|
|
+ this.$confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '系统将自动生成一个新的销售退货单,与原单据内容相同。确认再次编辑吗?',
|
|
|
+ centered: true,
|
|
|
+ onOk () {
|
|
|
+ _this.spinning = true
|
|
|
+ updateAgain({ salesReturnBillSn: row.salesReturnBillSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.$refs.table.refresh()
|
|
|
+ _this.spinning = false
|
|
|
+ } else {
|
|
|
+ _this.spinning = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
@@ -313,53 +356,46 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 审核
|
|
|
+ // 审核进度
|
|
|
handleEexamine (row) {
|
|
|
this.auditInfo = row
|
|
|
this.visibleAudit = true
|
|
|
},
|
|
|
- auditOrder (billStatus) {
|
|
|
- this.spinningAudit = true
|
|
|
- salesReturnAudit({
|
|
|
- salesReturnBillSn: this.auditInfo.salesReturnBillSn,
|
|
|
- billStatus: billStatus
|
|
|
- }).then(res => {
|
|
|
+ beforeSubmit (row) {
|
|
|
+ this.auditInfo = row
|
|
|
+ this.openDepartUserModal = true
|
|
|
+ },
|
|
|
+ // 提交
|
|
|
+ handleSubmit (data) {
|
|
|
+ this.spinning = true
|
|
|
+ salesReturnSubmit({ salesReturnBillSn: this.auditInfo.salesReturnBillSn, ...data }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.visibleAudit = false
|
|
|
- this.$message.success(res.message)
|
|
|
this.$refs.table.refresh()
|
|
|
- this.spinningAudit = false
|
|
|
- } else {
|
|
|
- this.visibleAudit = false
|
|
|
- this.spinningAudit = false
|
|
|
+ this.$message.success(res.message)
|
|
|
}
|
|
|
+ this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
- // 品检
|
|
|
- handleCheck (row) {
|
|
|
- this.$router.push({ name: 'salesReturnCheck', params: { sn: row.salesReturnBillSn } })
|
|
|
- },
|
|
|
resetSearchForm () {
|
|
|
- this.$refs.rangeCreateDate.resetDate()
|
|
|
- this.$refs.rangeExamineDate.resetDate()
|
|
|
+ this.$refs.rangeCreateDate.resetDate(this.createDate)
|
|
|
this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
|
|
|
this.queryParam.endDate = getDate.getCurrMonthDays().endtime
|
|
|
+
|
|
|
+ this.$refs.rangeExamineDate.resetDate()
|
|
|
this.queryParam.beginAuditDate = ''
|
|
|
this.queryParam.endAuditDate = ''
|
|
|
+
|
|
|
this.queryParam.buyerSn = undefined
|
|
|
this.$refs.dealerSubareaScopeList.resetForm()
|
|
|
this.queryParam.salesReturnBillNo = ''
|
|
|
- this.queryParam.purchaseReturnBillNo = ''
|
|
|
+ this.queryParam.purchaseReturnApplyNo = ''
|
|
|
this.queryParam.billStatus = undefined
|
|
|
this.queryParam.subareaSn = undefined
|
|
|
+ this.queryParam.syncFlag = undefined
|
|
|
+ this.queryParam.salesReturnBillSource = undefined
|
|
|
this.queryParam.shippingAddrProvinceSn = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
- filterOption (input, option) {
|
|
|
- return (
|
|
|
- option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
- )
|
|
|
- },
|
|
|
// 省/市/区
|
|
|
getArea (leve, sn) {
|
|
|
let params
|
|
@@ -397,7 +433,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 270
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 215
|
|
|
}
|
|
|
},
|
|
|
watch: {
|