123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <template>
- <div class="sty">
- <el-page-header @back="goBack" content="销售返利单"> </el-page-header>
- <el-divider></el-divider>
- <!-- 表头 -->
- <div>
- <el-form ref="searchForm" :model="searchForm" label-width="100px" size="small" label-position="left">
- <el-row :gutter="20">
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="返利单号" prop="">
- <el-input disabled v-model="searchForm.rebateOrderId" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="返利日期" prop="">
- <el-input disabled v-model="searchForm.theTime" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="备注" prop="">
- <el-input disabled v-model="searchForm.remark" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="制单人" prop="">
- <el-input disabled v-model="searchForm.createBy" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="制单日期" prop="">
- <el-input disabled v-model="searchForm.createTime" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="审批人" prop="">
- <el-input
- v-if="this.searchForm.secondExamineBy != null"
- disabled
- v-model="searchForm.secondExamineBy"
- placeholder=""
- ></el-input>
- <el-input v-else disabled v-model="searchForm.examineBy" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="6">
- <el-form-item label="审批日期" prop="">
- <el-input
- v-if="this.searchForm.secondExamineTime != null"
- disabled
- v-model="searchForm.secondExamineTime"
- placeholder=""
- ></el-input>
- <el-input v-else disabled v-model="searchForm.examineTime" placeholder=""></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- </div>
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="dataList"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- >
- <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
- <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.customerNumber" />
- <span>{{ scope.row.customerNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.customerName" />
- <span>{{ scope.row.customerName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="返利类型"
- prop="walletName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="right"
- label="返利总金额"
- prop="amount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="right"
- label="暂扣返利"
- prop="withholdAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="政策文件流水号"
- prop="policyFileNo"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.policyFileNo" />
- <span>{{ scope.row.policyFileNo }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.policyDocNo" />
- <span>{{ scope.row.policyDocNo }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="政策年份"
- prop="policyYear"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="政策月份"
- prop="policyMonth"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="政策归属部门"
- prop="policyOrg"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="客户区域"
- prop="customerArea"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="客户属性"
- prop="customerAttr"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="奖励实际归属客户"
- prop="rewardActualCustomers"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="备注1"
- prop="remark1"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="备注2"
- prop="remark2"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- </el-table>
- </div>
- </div>
- <span>返利单复核及办理折让</span>
- <el-divider></el-divider>
- <!-- 列表 -->
- <div class="mymain-container">
- <div class="table">
- <el-table
- v-loading="listLoading"
- :data="dataList2"
- element-loading-text="Loading"
- border
- fit
- highlight-current-row
- stripe
- >
- <el-table-column
- align="center"
- type="selection"
- prop=""
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column align="left" label="返利单号" prop="rebateOrderId" min-width="200" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.rebateOrderId" />
- <span>{{ scope.row.rebateOrderId }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.customerNumber" />
- <span>{{ scope.row.customerNumber }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.customerName" />
- <span>{{ scope.row.customerName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="返利类型"
- prop="walletName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="right"
- label="总返利金额"
- prop="amount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="right"
- label="返利金额"
- prop="rebateAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="right"
- label="折让金额"
- prop="allowanceAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="right"
- label="暂扣返利"
- prop="withholdAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column align="left" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip>
- <!-- <template slot-scope="scope">
- <el-input v-model="scope.row.allowanceCode"></el-input>
- </template> -->
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.allowanceCode" />
- <span>{{ scope.row.allowanceCode }}</span>
- </template>
- </el-table-column>
- <el-table-column align="left" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip>
- <!-- <template slot-scope="scope">
- <el-input v-model="scope.row.allowanceAccount"></el-input>
- </template> -->
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.allowanceAccount" />
- <span>{{ scope.row.allowanceAccount }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="right"
- label="已办理折让金额"
- prop="handledAllowanceAmount"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="折让对应收款单号"
- prop="allowanceOrderNo"
- min-width="160"
- show-overflow-tooltip
- >
- <template slot-scope="scope">
- <CopyButton :copyText="scope.row.allowanceOrderNo" />
- <span>{{ scope.row.allowanceOrderNo }}</span>
- </template>
- </el-table-column>
- <el-table-column
- align="left"
- label="确认人"
- prop="customerName"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="确认日期"
- prop="customerConfirmTime"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="复核人"
- prop="secondExamineBy"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- align="left"
- label="复核日期"
- prop="secondExamineTime"
- min-width="160"
- show-overflow-tooltip
- ></el-table-column>
- </el-table>
- </div>
- </div>
- <span>审批记录</span>
- <el-divider></el-divider>
- <div class="diy-table-1">
- <el-row :gutter="0">
- <el-col :span="12" class="item">
- <div class="label">审批人</div>
- <div class="value">{{ examineBy }}</div>
- </el-col>
- <el-col :span="12" class="item">
- <div class="label">审批结果</div>
- <div class="value">
- <el-radio disabled v-model="examineStatus" label="OK">通过</el-radio>
- <el-radio disabled v-model="examineStatus" label="FAIL">驳回</el-radio>
- </div>
- </el-col>
- <el-col :span="24" class="item">
- <div class="label">审批说明</div>
- <div class="value">
- <el-input disabled v-model="examineRemark" placeholder="请输入内容"></el-input>
- </div>
- </el-col>
- </el-row>
- </div>
- </div>
- </template>
- <script>
- import { getRebateOrderDetail } from '@/api/finance/rebate_list'
- export default {
- props: {
- detailId: {
- type: String,
- required: true
- }
- },
- data() {
- return {
- currentPage: 1, // 当前页码
- pageSize: 10, // 每页数量
- listTotal: 0, // 列表总数
- dataList: [], // 列表数据
- dataList2: [], // 列表数据
- searchForm: {}, //搜索表单
- listLoading: false, // 列表加载loading
- examineBy: '',
- examineRemark: '',
- examineStatus: ''
- }
- },
- created() {
- this.getDataList()
- },
- methods: {
- goBack() {
- this.$emit('setShowPage', 1)
- },
- //获取详情数据
- async getDataList() {
- let res = await getRebateOrderDetail({ id: this.detailId })
- this.searchForm.rebateOrderId = res.data.id
- this.searchForm.theTime = res.data.theTime
- this.searchForm.createBy = res.data.createBy
- this.searchForm.createTime = res.data.createTime
- this.searchForm.remark = res.data.remark
- this.searchForm.secondExamineBy = res.data.secondExamineBy
- this.searchForm.secondExamineTime = res.data.secondExamineTime
- this.searchForm.examineBy = res.data.examineBy
- this.searchForm.examineTime = res.data.examineTime
- this.dataList = res.data.items
- this.dataList2 = res.data.items
- this.examineBy = res.data.examineBy
- this.examineRemark = res.data.examineRemark
- if (res.data.examineStatus == 'OK_ONE' || res.data.examineStatus == 'OK') {
- this.examineStatus = 'OK'
- }
- if (res.data.examineStatus == 'FAIL_ONE' || res.data.examineStatus == 'FAIL') {
- this.examineStatus = 'FAIL'
- }
- }
- }
- }
- </script>
- <style></style>
|