|
@@ -10,26 +10,75 @@
|
|
:tableAttributes="tableAttributes"
|
|
:tableAttributes="tableAttributes"
|
|
:tableEvents="tableEvents"
|
|
:tableEvents="tableEvents"
|
|
:columnParsing="columnParsing"
|
|
:columnParsing="columnParsing"
|
|
- :replaceOrNotMap="true"
|
|
|
|
|
|
+ :replaceOrNotMap="false"
|
|
>
|
|
>
|
|
</template-page>
|
|
</template-page>
|
|
<div class="app-container" v-if="showPage == 2">
|
|
<div class="app-container" v-if="showPage == 2">
|
|
- <RebateListApply :detailId="detailId" />
|
|
|
|
|
|
+ <RebateListApply
|
|
|
|
+ :detailId="detailId"
|
|
|
|
+ @setShowPage="
|
|
|
|
+ val => {
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ showPage = val
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div class="app-container" v-if="showPage == 3">
|
|
<div class="app-container" v-if="showPage == 3">
|
|
- <RebateListExamine @updateList="updateList" :detailId="detailId" />
|
|
|
|
|
|
+ <RebateListExamine
|
|
|
|
+ :detailId="detailId"
|
|
|
|
+ @setShowPage="
|
|
|
|
+ val => {
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ showPage = val
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div class="app-container" v-if="showPage == 4">
|
|
<div class="app-container" v-if="showPage == 4">
|
|
- <RebateListReview @updateList="updateList" :detailId="detailId" />
|
|
|
|
|
|
+ <RebateListReview
|
|
|
|
+ :detailId="detailId"
|
|
|
|
+ @setShowPage="
|
|
|
|
+ val => {
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ showPage = val
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div class="app-container" v-if="showPage == 5">
|
|
<div class="app-container" v-if="showPage == 5">
|
|
- <RebateListDetail :detailId="detailId" />
|
|
|
|
|
|
+ <RebateListDetail
|
|
|
|
+ :detailId="detailId"
|
|
|
|
+ @setShowPage="
|
|
|
|
+ val => {
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ showPage = val
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div class="app-container" v-if="showPage == 6">
|
|
<div class="app-container" v-if="showPage == 6">
|
|
- <RebateListConfirm @updateList="updateList" :detailId="detailId" :isShow="isShow" />
|
|
|
|
|
|
+ <RebateListConfirm
|
|
|
|
+ :detailId="detailId"
|
|
|
|
+ :isShow="isShow"
|
|
|
|
+ @setShowPage="
|
|
|
|
+ val => {
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ showPage = val
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div class="app-container" v-if="showPage == 7">
|
|
<div class="app-container" v-if="showPage == 7">
|
|
- <RebateListEdit @updateList="updateList" :detailId="detailId" />
|
|
|
|
|
|
+ <RebateListEdit
|
|
|
|
+ :detailId="detailId"
|
|
|
|
+ @setShowPage="
|
|
|
|
+ val => {
|
|
|
|
+ $refs.pageRef.refreshList()
|
|
|
|
+ showPage = val
|
|
|
|
+ }
|
|
|
|
+ "
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
<ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
</div>
|
|
</div>
|
|
@@ -248,7 +297,7 @@ export default {
|
|
<div class="operation-btns">
|
|
<div class="operation-btns">
|
|
{!this.isCustomer &&
|
|
{!this.isCustomer &&
|
|
this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
- row.examineStatus != '初审不通过' ? (
|
|
|
|
|
|
+ row.examineStatus != 'FAIL_ONE' ? (
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
class="textColor"
|
|
class="textColor"
|
|
@@ -259,7 +308,7 @@ export default {
|
|
编辑
|
|
编辑
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {row.examineStatus == '保存' && !this.isCustomer && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
|
|
|
|
+ {row.examineStatus == 'SAVE' && !this.isCustomer && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
class="textColor"
|
|
class="textColor"
|
|
@@ -270,7 +319,7 @@ export default {
|
|
申请
|
|
申请
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {row.examineStatus == '待审核' &&
|
|
|
|
|
|
+ {row.examineStatus == 'WAIT' &&
|
|
!this.isCustomer &&
|
|
!this.isCustomer &&
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
@@ -283,9 +332,7 @@ export default {
|
|
审核
|
|
审核
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {(row.examineStatus == '初审通过' ||
|
|
|
|
- row.examineStatus == '审核通过' ||
|
|
|
|
- row.examineStatus == '审核不通过') &&
|
|
|
|
|
|
+ {(row.examineStatus == 'OK_ONE' || row.examineStatus == 'OK' || row.examineStatus == 'FAIL') &&
|
|
!this.isCustomer &&
|
|
!this.isCustomer &&
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
<el-button
|
|
<el-button
|
|
@@ -295,10 +342,10 @@ export default {
|
|
this.reviewFn(row.rebateOrderId)
|
|
this.reviewFn(row.rebateOrderId)
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
- {row.examineStatus == '审核通过' ? '取消复核' : '复核'}
|
|
|
|
|
|
+ {row.examineStatus == 'OK' ? '取消复核' : '复核'}
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {(row.examineStatus == '待审核' || row.examineStatus == '保存') && !this.isCustomer ? (
|
|
|
|
|
|
+ {(row.examineStatus == 'WAIT' || row.examineStatus == 'SAVE') && !this.isCustomer ? (
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
class="textColor"
|
|
class="textColor"
|
|
@@ -309,10 +356,10 @@ export default {
|
|
详情
|
|
详情
|
|
</el-button>
|
|
</el-button>
|
|
) : null}
|
|
) : null}
|
|
- {(row.examineStatus == '初审通过' ||
|
|
|
|
- row.examineStatus == '初审不通过' ||
|
|
|
|
- row.examineStatus == '审核不通过' ||
|
|
|
|
- row.examineStatus == '审核通过') &&
|
|
|
|
|
|
+ {(row.examineStatus == 'OK_ONE' ||
|
|
|
|
+ row.examineStatus == 'FAIL_ONE' ||
|
|
|
|
+ row.examineStatus == 'FAIL' ||
|
|
|
|
+ row.examineStatus == 'OK') &&
|
|
!this.isCustomer ? (
|
|
!this.isCustomer ? (
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
@@ -326,9 +373,7 @@ export default {
|
|
) : null}
|
|
) : null}
|
|
{this.isCustomer &&
|
|
{this.isCustomer &&
|
|
row.withholdAmount == 0 &&
|
|
row.withholdAmount == 0 &&
|
|
- (row.examineStatus == '初审通过' ||
|
|
|
|
- row.examineStatus == '审核通过' ||
|
|
|
|
- row.examineStatus == '审核不通过') ? (
|
|
|
|
|
|
+ (row.examineStatus == 'OK_ONE' || row.examineStatus == 'OK' || row.examineStatus == 'FAIL') ? (
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
class="textColor"
|
|
class="textColor"
|
|
@@ -393,10 +438,6 @@ export default {
|
|
this.$message.success('删除成功')
|
|
this.$message.success('删除成功')
|
|
this.deleList = []
|
|
this.deleList = []
|
|
},
|
|
},
|
|
- //更新列表数据
|
|
|
|
- updateList() {
|
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
|
- },
|
|
|
|
//获取列表数据
|
|
//获取列表数据
|
|
async getDataList() {
|
|
async getDataList() {
|
|
this.$refs.pageRef.refreshList()
|
|
this.$refs.pageRef.refreshList()
|