|
@@ -11,7 +11,23 @@
|
|
|
:tableEvents="tableEvents"
|
|
|
:columnParsing="columnParsing"
|
|
|
:replaceOrNotMap="false"
|
|
|
+ :fieldBeansHook="fieldBeansHook"
|
|
|
>
|
|
|
+ <div slot="moreSearch">
|
|
|
+ <div class="worker">
|
|
|
+ <div class="worker_left">工单状态</div>
|
|
|
+ <div class="worker_right">
|
|
|
+ <el-button
|
|
|
+ v-for="(item, index) in workerState"
|
|
|
+ :key="index"
|
|
|
+ :type="orderStatusParam == item.value ? 'primary' : null"
|
|
|
+ @click="handleOrderStatusParam(item.value, index)"
|
|
|
+ size="mini"
|
|
|
+ >{{ item.label }}</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template-page>
|
|
|
<div class="app-container" v-if="showPage == 2">
|
|
|
<RebateListApply
|
|
@@ -116,6 +132,54 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ orderStatusParam: '',
|
|
|
+ workerState: [
|
|
|
+ {
|
|
|
+ label: '全部',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '初审不通过',
|
|
|
+ value: 'FAIL_ONE'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '驳回',
|
|
|
+ value: 'REJECT'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '已确认未复核',
|
|
|
+ value: 'OK_ONE_AND_CONFIRM'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '弃审',
|
|
|
+ value: 'ABANDON'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '保存',
|
|
|
+ value: 'SAVE'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '关闭',
|
|
|
+ value: 'CLOSE'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '待审核',
|
|
|
+ value: 'WAIT'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '审核通过',
|
|
|
+ value: 'OK'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '初审不通过',
|
|
|
+ value: 'FAIL'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '初审通过',
|
|
|
+ value: 'OK_ONE'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+
|
|
|
deleList: [],
|
|
|
currentPage: 1, // 当前页码
|
|
|
pageSize: 10, // 每页数量
|
|
@@ -284,13 +348,28 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleOrderStatusParam(value, index) {
|
|
|
+ this.orderStatusParam = value
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ },
|
|
|
// 列表请求函数
|
|
|
getList(p) {
|
|
|
var item = p.params.find(item => item.param === 'a.examine_status')
|
|
|
this.examineStatus = item?.value || ''
|
|
|
var item2 = p.params.find(item => item.param === 'a.customer_is_confirm')
|
|
|
this.customerIsConfirm = item2?.value || ''
|
|
|
- return rebateOrderList({ ...p })
|
|
|
+ console.log(p)
|
|
|
+
|
|
|
+ let params = {
|
|
|
+ moduleId: p.moduleId,
|
|
|
+ orderBy: p.orderBy,
|
|
|
+ pageNum: p.pageNum,
|
|
|
+ pageSize: p.pageSize,
|
|
|
+ examineStatus: this.orderStatusParam,
|
|
|
+ params: [...p.params]
|
|
|
+ }
|
|
|
+
|
|
|
+ return rebateOrderList(params)
|
|
|
},
|
|
|
// 列表导出函数
|
|
|
exportList: rebateOrderListExport,
|
|
@@ -303,6 +382,15 @@ export default {
|
|
|
const res = data.map(v => v.rebateOrderId)
|
|
|
this.deleList = res
|
|
|
},
|
|
|
+ fieldBeansHook(val) {
|
|
|
+ val.map(item => {
|
|
|
+ if (~['examine_status'].indexOf(item.colName)) {
|
|
|
+ item.isQuery = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ return val
|
|
|
+ },
|
|
|
operation() {
|
|
|
return (h, { row, index, column }) => {
|
|
|
return (
|
|
@@ -495,6 +583,25 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+.worker {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ .worker_left {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ text-align: left;
|
|
|
+ color: #666;
|
|
|
+ line-height: 28px;
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ .worker_right {
|
|
|
+ flex: 1;
|
|
|
+ ::v-deep .el-button {
|
|
|
+ margin: 0 10px 10px 0px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.selectStyle {
|
|
|
width: 100%;
|
|
|
}
|