|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <a-card size="small" :bordered="false" class="salesReturn-wrap">
|
|
|
|
|
|
+ <a-card size="small" :bordered="false" class="promotion-wrap">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<!-- 搜索条件 -->
|
|
<!-- 搜索条件 -->
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
@@ -12,26 +12,26 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="促销名称">
|
|
<a-form-item label="促销名称">
|
|
- <a-input id="salesReturn-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入总部销退单号"/>
|
|
|
|
|
|
+ <a-input id="promotion-promotionName" v-model.trim="queryParam.name" allowClear placeholder="请输入总部销退单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="4" :sm="24">
|
|
<a-col :md="4" :sm="24">
|
|
<a-form-item label="显示状态">
|
|
<a-form-item label="显示状态">
|
|
- <v-select
|
|
|
|
- v-model="queryParam.salesReturnBillSource"
|
|
|
|
- ref="salesReturnBillSource"
|
|
|
|
- id="salesReturn-salesReturnBillSource"
|
|
|
|
- code="SALES_SOURCE"
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ v-model="queryParam.showFlag"
|
|
placeholder="请选择显示状态"
|
|
placeholder="请选择显示状态"
|
|
- allowClear></v-select>
|
|
|
|
|
|
+ >
|
|
|
|
+ <a-select-option :value="1">已显示</a-select-option>
|
|
|
|
+ <a-select-option :value="0">未显示</a-select-option>
|
|
|
|
+ </a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="4" :sm="24">
|
|
<a-col :md="4" :sm="24">
|
|
<a-form-item label="促销状态">
|
|
<a-form-item label="促销状态">
|
|
<v-select
|
|
<v-select
|
|
- v-model="queryParam.billStatus"
|
|
|
|
- ref="billStatus"
|
|
|
|
- id="salesReturn-billStatus"
|
|
|
|
|
|
+ v-model="queryParam.state"
|
|
|
|
+ ref="saleStatus"
|
|
|
|
+ id="promotion-saleStatus"
|
|
code="SALES_RETURN_BILL_STATUS"
|
|
code="SALES_RETURN_BILL_STATUS"
|
|
placeholder="请选择促销状态"
|
|
placeholder="请选择促销状态"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
@@ -47,7 +47,7 @@
|
|
</a-form>
|
|
</a-form>
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
- <a-button type="primary" class="button-error" @click="openModal = true">新增</a-button>
|
|
|
|
|
|
+ <a-button type="primary" class="button-error" @click="openAddModal = true">新增</a-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -71,13 +71,33 @@
|
|
显示状态<a-icon type="question-circle" :style="{ marginLeft: '10px' }" />
|
|
显示状态<a-icon type="question-circle" :style="{ marginLeft: '10px' }" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 显示状态 -->
|
|
|
|
+ <template slot="arrowFalg" slot-scope="text, record">
|
|
|
|
+ <a-switch
|
|
|
|
+ checkedChildren="显示"
|
|
|
|
+ unCheckedChildren="不显示"
|
|
|
|
+ id="promotion-isEnable"
|
|
|
|
+ v-model="record.isEnable"
|
|
|
|
+ @change="changeFlagHandle(text, record)" />
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 促销时间 -->
|
|
|
|
+ <template slot="promotionTime" slot-scope="text, record">
|
|
|
|
+ <span>{{ record.activeDateStart }}至{{ record.activeDateEnd }}</span>
|
|
|
|
+ </template>
|
|
<!-- 参与客户 -->
|
|
<!-- 参与客户 -->
|
|
<template slot="joinCustomers" slot-scope="text, record">
|
|
<template slot="joinCustomers" slot-scope="text, record">
|
|
- <span @click="openCustomerModal=true">共有17个客户</span>
|
|
|
|
|
|
+ <span @click="openCustomerModal=true">共有{{ record.promoBuyerSnSet?record.promoBuyerSnSet.length:0 }}个客户</span>
|
|
</template>
|
|
</template>
|
|
- <!-- 提货单 -->
|
|
|
|
- <template slot="pickUpSalesReturnNum" slot-scope="text, record">
|
|
|
|
- <span class="link-bule" @click="handleBillOfLadingDetail(record)">{{ record.pickUpSalesReturnNum }}</span>
|
|
|
|
|
|
+ <!-- 促销描述 -->
|
|
|
|
+ <template slot="salesDesc" slot-scope="text, record">
|
|
|
|
+ <span @click="openDescModal=true">{{ record.description }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 促销展示 -->
|
|
|
|
+ <template slot="salesShow" slot-scope="text, record">
|
|
|
|
+ <div v-if="record.src" @click="openShowModal=true">
|
|
|
|
+ <img :src="record.src" alt="图片走丢啦" width="100">
|
|
|
|
+ </div>
|
|
|
|
+ <span v-else>--</span>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -87,25 +107,30 @@
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="handleEexamine(record)"
|
|
@click="handleEexamine(record)"
|
|
- id="salesReturn-eexamine-btn">发布修改</a-button>
|
|
|
|
|
|
+ v-if="record.state=='PUBLISH'"
|
|
|
|
+ id="promotion-modify-btn">发布修改</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
- @click="beforeSubmit(record)"
|
|
|
|
- id="salesReturn-eexamine-btn">促销编辑</a-button>
|
|
|
|
|
|
+ @click="promotionEdit(record)"
|
|
|
|
+ v-if="record.state=='UNPUBLISH' ||record.state=='CLOSE'"
|
|
|
|
+ id="promotion-edit-btn">促销编辑</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-info"
|
|
class="button-info"
|
|
@click="handleEdit(record)"
|
|
@click="handleEdit(record)"
|
|
- id="salesReturn-edit-btn">促销发布</a-button>
|
|
|
|
|
|
+ v-if="record.state=='UNPUBLISH' || record.state=='CLOSE'"
|
|
|
|
+ id="promotion-release-btn">促销发布</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-error"
|
|
class="button-error"
|
|
|
|
+ v-if="record.state=='UNPUBLISH'"
|
|
@click="handleDel(record)"
|
|
@click="handleDel(record)"
|
|
- id="salesReturn-del-btn">删除</a-button>
|
|
|
|
|
|
+ id="promotion-del-btn">删除</a-button>
|
|
|
|
+ <span v-if="record.state=='End'">--</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
@@ -116,176 +141,126 @@
|
|
<promotion-desc-modal :openModal="openDescModal" @close="openDescModal = false"></promotion-desc-modal>
|
|
<promotion-desc-modal :openModal="openDescModal" @close="openDescModal = false"></promotion-desc-modal>
|
|
<!-- 促销展示 -->
|
|
<!-- 促销展示 -->
|
|
<promotion-show-modal :openModal="openShowModal" @close="openShowModal = false"></promotion-show-modal>
|
|
<promotion-show-modal :openModal="openShowModal" @close="openShowModal = false"></promotion-show-modal>
|
|
- <!-- 选择客户弹框 -->
|
|
|
|
- <choose-custom-modal :show="openModal" @ok="handleEdit" @cancel="openModal=false"></choose-custom-modal>
|
|
|
|
-
|
|
|
|
- <!-- 审核进度 -->
|
|
|
|
- <verifyModal v-drag :openModal="visibleAudit" :itemSn="auditInfo&&auditInfo.salesReturnBillSn" @close="visibleAudit=false"></verifyModal>
|
|
|
|
- <!-- 选择审核人员 -->
|
|
|
|
- <chooseDepartUserModal v-drag :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal>
|
|
|
|
|
|
+ <!-- 新增 -->
|
|
|
|
+ <addModal :openModal="openAddModal" :itemId="itemId" @close="openAddModal = false"></addModal>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
-import subarea from '@/views/common/subarea.js'
|
|
|
|
-import Area from '@/views/common/area.js'
|
|
|
|
-// import chooseCustomModal from './chooseCustomModal.vue'
|
|
|
|
-import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
|
-// import verifyModal from './verifyModal.vue'
|
|
|
|
-// import chooseDepartUserModal from './chooseDepartUserModal.vue'
|
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
-import warehouse from '@/views/common/chooseWarehouse.js'
|
|
|
|
-import { salesReturnList, salesReturnQueryCount, salesReturnDel, salesReturnSubmit } from '@/api/salesReturn'
|
|
|
|
-import moment from 'moment'
|
|
|
|
-import getDate from '@/libs/getDate.js'
|
|
|
|
|
|
+import { promoTerminalList, promoTerminalDel } from '@/api/promoTerminal'
|
|
import lookUpCustomersModal from './lookUpCustomersModal'
|
|
import lookUpCustomersModal from './lookUpCustomersModal'
|
|
import promotionDescModal from './promotionDescModal'
|
|
import promotionDescModal from './promotionDescModal'
|
|
import promotionShowModal from './promotionShowModal'
|
|
import promotionShowModal from './promotionShowModal'
|
|
|
|
+import addModal from './addModal'
|
|
export default {
|
|
export default {
|
|
- name: 'SalesReturnList',
|
|
|
|
|
|
+ name: 'PromotionList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
components: {
|
|
components: {
|
|
STable,
|
|
STable,
|
|
VSelect,
|
|
VSelect,
|
|
- dealerSubareaScopeList,
|
|
|
|
rangeDate,
|
|
rangeDate,
|
|
lookUpCustomersModal,
|
|
lookUpCustomersModal,
|
|
- Area,
|
|
|
|
- subarea,
|
|
|
|
- warehouse,
|
|
|
|
promotionShowModal,
|
|
promotionShowModal,
|
|
- promotionDescModal
|
|
|
|
|
|
+ promotionDescModal,
|
|
|
|
+ addModal
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
- // 高级搜索 展开/关闭
|
|
|
|
- advanced: true,
|
|
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
- openDescModal: false,
|
|
|
|
- openShowModal: true,
|
|
|
|
- createDate: [
|
|
|
|
- moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
|
|
- moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
|
|
- ], // 创建时间
|
|
|
|
- openModal: false, // 选择客户弹框是否显示
|
|
|
|
- openDepartUserModal: false,
|
|
|
|
openCustomerModal: false,
|
|
openCustomerModal: false,
|
|
|
|
+ openDescModal: false,
|
|
|
|
+ openShowModal: false,
|
|
|
|
+ openAddModal: false,
|
|
|
|
+ createDate: [], // 创建时间
|
|
|
|
+ itemId: '',
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParam: {
|
|
queryParam: {
|
|
- beginDate: getDate.getThreeMonthDays().starttime,
|
|
|
|
- endDate: getDate.getCurrMonthDays().endtime,
|
|
|
|
- beginAuditDate: '',
|
|
|
|
- endAuditDate: '',
|
|
|
|
- buyerSn: undefined, // 客户名称
|
|
|
|
- salesReturnBillNo: undefined, // 总部销退单号
|
|
|
|
- purchaseReturnApplyNo: '',
|
|
|
|
- syncFlag: undefined, // 是否同步给客户
|
|
|
|
- billStatus: undefined, // 业务状态
|
|
|
|
- warehouseSn: undefined, // 仓库
|
|
|
|
- subareaArea: {
|
|
|
|
- subareaSn: undefined,
|
|
|
|
- subareaAreaSn: undefined
|
|
|
|
- },
|
|
|
|
- shippingAddrProvinceSn: undefined,
|
|
|
|
- salesReturnBillSource: undefined
|
|
|
|
|
|
+ beginDate: undefined,
|
|
|
|
+ endDate: undefined,
|
|
|
|
+ name: '',
|
|
|
|
+ showFlag: undefined,
|
|
|
|
+ state: undefined
|
|
},
|
|
},
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
- return salesReturnList(params).then(res => {
|
|
|
|
|
|
+ return promoTerminalList(params).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
data.list[i].no = no + i + 1
|
|
data.list[i].no = no + i + 1
|
|
|
|
+ data.list[i].isEnable = data.list[i].showFlag + '' === '1'
|
|
}
|
|
}
|
|
this.disabled = false
|
|
this.disabled = false
|
|
}
|
|
}
|
|
this.spinning = false
|
|
this.spinning = false
|
|
- // 统计
|
|
|
|
- this.getCount(params)
|
|
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- visibleAudit: false,
|
|
|
|
- auditInfo: null,
|
|
|
|
- spinningAudit: false,
|
|
|
|
- countData: null,
|
|
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '促销名称', dataIndex: 'buyerName', width: '12%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
- { title: '促销时间', dataIndex: 'joinCustomers', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '参与客户', scopedSlots: { customRender: 'salesReturnBillNo' }, width: '12%', align: 'center' },
|
|
|
|
|
|
+ { title: '促销名称', dataIndex: 'name', width: '12%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '促销时间', scopedSlots: { customRender: 'promotionTime' }, width: '8%', align: 'center' },
|
|
|
|
+ { title: '参与客户', scopedSlots: { customRender: 'joinCustomers' }, width: '12%', align: 'center' },
|
|
{ title: '促销描述', scopedSlots: { customRender: 'salesDesc' }, width: '12%', align: 'center' },
|
|
{ title: '促销描述', scopedSlots: { customRender: 'salesDesc' }, width: '12%', align: 'center' },
|
|
{ title: '促销展示', scopedSlots: { customRender: 'salesShow' }, width: '6%', align: 'center' },
|
|
{ title: '促销展示', scopedSlots: { customRender: 'salesShow' }, width: '6%', align: 'center' },
|
|
{ slots: { title: 'arrowFalgTitle' }, scopedSlots: { customRender: 'arrowFalg' }, width: '6%', align: 'center' },
|
|
{ slots: { title: 'arrowFalgTitle' }, scopedSlots: { customRender: 'arrowFalg' }, width: '6%', align: 'center' },
|
|
- { title: '促销状态', dataIndex: 'billStatusDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '促销状态', dataIndex: 'state', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getCount (params) {
|
|
|
|
- salesReturnQueryCount(params).then(res => {
|
|
|
|
- this.countData = res.data
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
// 创建时间 change
|
|
// 创建时间 change
|
|
dateCreateChange (date) {
|
|
dateCreateChange (date) {
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.endDate = date[1]
|
|
this.queryParam.endDate = date[1]
|
|
},
|
|
},
|
|
- // 审核时间 change
|
|
|
|
- dateExamineChange (date) {
|
|
|
|
- this.queryParam.beginAuditDate = date[0]
|
|
|
|
- this.queryParam.endAuditDate = date[1]
|
|
|
|
- },
|
|
|
|
- custChange (val) {
|
|
|
|
- this.queryParam.buyerSn = val.key
|
|
|
|
- },
|
|
|
|
- // 客服确认
|
|
|
|
- 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: 'salesReturnEdit', params: { sn: row.salesReturnBillSn, buyerSn: row.buyerSn } })
|
|
|
|
- },
|
|
|
|
- // 详情
|
|
|
|
- handleDetail (row) {
|
|
|
|
- this.$router.push({ name: 'salesReturnDetail', params: { sn: row.salesReturnBillSn } })
|
|
|
|
- },
|
|
|
|
- // 提货单查看
|
|
|
|
- handleBillOfLadingDetail (row) {
|
|
|
|
- if (row.pickUpSalesReturnNum == '0单') {
|
|
|
|
- this.$message.info('此销售退货单没有提货单')
|
|
|
|
- } else {
|
|
|
|
- this.$router.push({ name: 'billOfLadingList', query: { billNo: row.salesReturnBillNo } })
|
|
|
|
|
|
+ // 修改显示状态
|
|
|
|
+ changeFlagHandle (text, record) {
|
|
|
|
+ const _data = {
|
|
|
|
+ id: record.id,
|
|
|
|
+ flag: record.isEnable ? '1' : '0'
|
|
}
|
|
}
|
|
|
|
+ this.spinning = true
|
|
|
|
+ updateEnableStatus(_data).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ this.$message.success(res.message)
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
+ this.spinning = false
|
|
|
|
+ } else {
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
+ this.spinning = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 促销编辑
|
|
|
|
+ promotionEdit (item) {
|
|
|
|
+ this.itemId = item.promoActiveSn
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.openAddModal = true
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- // 删除
|
|
|
|
|
|
+ // 删除促销活动
|
|
handleDel (row) {
|
|
handleDel (row) {
|
|
const _this = this
|
|
const _this = this
|
|
this.$confirm({
|
|
this.$confirm({
|
|
title: '提示',
|
|
title: '提示',
|
|
- content: row.salesReturnBillSource == 'SALES' ? '确认要删除吗?' : '确认要取消吗?',
|
|
|
|
|
|
+ content: '点击确定,该内容将会被删除,不可再恢复!',
|
|
centered: true,
|
|
centered: true,
|
|
onOk () {
|
|
onOk () {
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
- salesReturnDel({ salesReturnBillSn: row.salesReturnBillSn }).then(res => {
|
|
|
|
|
|
+ promoTerminalDel({ sn: row.promoActiveSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
_this.$message.success(res.message)
|
|
_this.$message.success(res.message)
|
|
_this.$refs.table.refresh()
|
|
_this.$refs.table.refresh()
|
|
@@ -297,53 +272,13 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 审核进度
|
|
|
|
- handleEexamine (row) {
|
|
|
|
- this.auditInfo = row
|
|
|
|
- this.visibleAudit = true
|
|
|
|
- },
|
|
|
|
- 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.$refs.table.refresh()
|
|
|
|
- this.$message.success(res.message)
|
|
|
|
- }
|
|
|
|
- this.spinning = false
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- subareaChange (val) {
|
|
|
|
- this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|
|
|
|
- this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
|
|
|
|
- },
|
|
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.$refs.rangeCreateDate.resetDate(this.createDate)
|
|
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.purchaseReturnApplyNo = ''
|
|
|
|
- this.queryParam.billStatus = undefined
|
|
|
|
- this.queryParam.subareaArea.subareaSn = undefined
|
|
|
|
- this.queryParam.subareaArea.subareaAreaSn = undefined
|
|
|
|
- this.queryParam.syncFlag = undefined
|
|
|
|
- this.queryParam.salesReturnBillSource = undefined
|
|
|
|
- this.queryParam.shippingAddrProvinceSn = undefined
|
|
|
|
- this.queryParam.warehouseSn = undefined
|
|
|
|
- if (this.advanced) {
|
|
|
|
- this.$refs.subarea.clearData()
|
|
|
|
- }
|
|
|
|
|
|
+ this.queryParam.beginDate = undefined
|
|
|
|
+ this.queryParam.endDate = undefined
|
|
|
|
+ this.queryParam.name = ''
|
|
|
|
+ this.queryParam.showFlag = undefined
|
|
|
|
+ this.queryParam.state = undefined
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
pageInit () {
|
|
pageInit () {
|
|
@@ -358,12 +293,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- advanced (newValue, oldValue) {
|
|
|
|
- const _this = this
|
|
|
|
- this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
|
- _this.setTableH()
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
'$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
|
|
'$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
|
|
this.setTableH()
|
|
this.setTableH()
|
|
}
|
|
}
|
|
@@ -392,14 +321,4 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="less">
|
|
<style lang="less">
|
|
- .salesReturn-wrap{
|
|
|
|
- .sTable{
|
|
|
|
- .badge-con-t{
|
|
|
|
- .ant-badge-count{
|
|
|
|
- transform: scale(0.8);
|
|
|
|
- font-size: 13px;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
</style>
|
|
</style>
|