123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <template>
- <common-layout ref="layoutRef" :table-attrs="{
- 'has-operation':false
- }" :form-attrs="{
- 'span-attrs':{
- span:4
- }
- }" :table-header="creditRepairEditHeader" :get-table-list="getTableData" :filter-form="formConfig">
- <template #ZTMC="{data}">
- <span class="table-num" @click="getDetail(data)">{{data.ZTMC}}</span>
- </template>
- <template #SJZT="{data}">
- <span>{{getStateName(data.SJZT)}}</span>
- </template>
- </common-layout>
- </template>
- <script>
- import commonLayout from "@/components/CommonLayout.vue";
- import {onBeforeMount, onMounted, ref} from "vue";
- import {creditRepairEdit} from "@/data/all-form";
- import {creditRepairEditHeader} from "@/data/all-table-header";
- import {useRootStore} from "@/pinia/useStore";
- import {selectAdsZjwXyxfSqxfbPageList} from "@/service/credit-data/credit-repair/credit-repair";
- export default {
- name: "CreditRepairEdit",
- components:{commonLayout},
- props:{
- currentOpObj:{
- },
- operationType:{
- }
- },
- setup(props,{emit}) {
- const layoutRef = ref(null);
- const formConfig = ref({...creditRepairEdit});
- const store = useRootStore();
- function getTableData(){
- let tempCfjgqx = "";
- if(props.currentOpObj.CFJGQX !="ZJ"){
- tempCfjgqx = props.currentOpObj.CFJGQX;
- }
- let paraJson ={
- START_TIME:layoutRef.value.form.START_TIME,
- END_TIME:layoutRef.value.form.END_TIME,
- ZTMC:"",
- CFJGQX:tempCfjgqx,
- appkey:store.userInfo.xyxx_userkeycode,
- pageIndex:layoutRef.value.pageIndex,
- pageSize:layoutRef.value.pageSize
- }
- if(props.currentOpObj.TYPE == "ALL_NUM"){
- paraJson.SJZT = "5";
- }
- if(props.currentOpObj.TYPE == "JS_NUM"){
- paraJson.SJZT = "5";
- paraJson.CFJG = "建设";
- }
- if(props.currentOpObj.TYPE == "CGZFJ_NUM"){
- paraJson.SJZT = "5";
- paraJson.CFJG = "";
- paraJson.NOT_CFJG = "建设";
- }
- if(props.currentOpObj.TYPE == "JJXF_NUM"){
- paraJson.SJZT = "6";
- }
- if(props.currentOpObj.TYPE == "BYSL_NUM"){
- paraJson.SJZT = "7";
- }
- selectAdsZjwXyxfSqxfbPageList(paraJson).then(res =>{
- layoutRef.value.getResData(res.msg[0].Rows,res.msg[0].TotalRowCount);
- })
- }
- function getDetail(){
- }
- function getStateName(state){
- switch (state){
- case "0":
- return "已退回";
- case "1":
- return "已申请";
- case "2":
- return "已转办";
- case "3":
- return "已受理";
- case "4":
- return "已处理";
- case "5":
- return "同意修复";
- case "6":
- return "拒绝修复";
- case "7":
- return "不予受理";
- }
- }
- onMounted(() =>{
- layoutRef.value.form.START_DATE = props.currentOpObj.START_TIME;
- layoutRef.value.form.END_DATE = props.currentOpObj.START_TIME;
- })
- return {
- layoutRef,
- getTableData,
- creditRepairEditHeader,
- formConfig,
- getDetail,
- getStateName
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .table-num{
- color:#23527c
- }
- </style>
|