kongdeqiang
2023-07-04 ddad19338c649987dbbf24a4c04fffd74f3eaef3
src/components/page/ticket/index.vue
@@ -60,18 +60,17 @@
            </template>
          </el-table-column>
          <el-table-column
              prop="createTime"
              header-align="center"
              align="center"
              label="处罚时间">
          </el-table-column>
          <el-table-column
            prop="carType"
            width="90px"
            header-align="center"
            align="center"
            label="车辆类型">
          </el-table-column>
          <el-table-column
            prop="color"
            width="90px"
            header-align="center"
            align="center"
            label="车辆颜色">
          </el-table-column>
            <el-table-column
                    prop="address"
@@ -86,7 +85,6 @@
                    align="center"
                    label="应缴金额">
            </el-table-column>
            <el-table-column
                    prop="payStatus"
                    width="100px"
@@ -120,15 +118,17 @@
            label="备注">
          </el-table-column>
          <el-table-column
              width="300px"
                  fixed="right"
                  header-align="center"
                  align="center"
                  label="操作">
            <template slot-scope="scope">
              <el-button  type="text" size="small" icon="el-icon-view" @click="addOrUpdateHandle(scope.row.id)">处决书</el-button>
              <el-button  type="text" size="small" icon="el-icon-view" @click="addOrUpdateHandle2(scope.row)">送达回证</el-button>
              <el-button  type="text" size="small" icon="el-icon-document" @click="addOrUpdateHandle(scope.row.id)">处决书</el-button>
              <el-button  type="text" size="small" icon="el-icon-document-checked" @click="addOrUpdateHandle2(scope.row)">送达回证</el-button>
              <el-button  type="text" size="small" icon="el-icon-view" @click="pictureHandle(scope.row)">图像证据</el-button>
              <el-button  type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">现场缴费</el-button>
              <el-button  v-if="items==2" type="text" size="small" icon="el-icon-delete" @click="onDelete(scope.row.id)">撤销</el-button>
<!--              <el-button  type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">现场缴费</el-button>-->
            </template>
          </el-table-column>
        </el-table>
@@ -148,6 +148,7 @@
  import TableForm from './ticket-form'
  import TableForm2 from './ticket-form2'
  import pictureForm from './picture-form'
  import {mapState} from 'vuex'
  export default {
    data () {
      return {
@@ -186,7 +187,9 @@
      this.tableHeight = window.innerHeight - 255
    },
    computed: {
      ...mapState({
        items:'roles'
      }),
    },
    methods: {
      // 获取数据列表
@@ -235,8 +238,9 @@
        if(row.personName != null){
          this.addOrUpdateVisible2 = true
          this.$nextTick(() => {
            this.$refs.addOrUpdate2.init(id)
            this.$refs.addOrUpdate2.init(row.id)
          })
        }else {
          this.$message.error("处决书还未填写!")
        }
@@ -252,6 +256,13 @@
            }
        })
      },
      //删除
      onDelete(id) {
        this.$byutil.deleteData(this,this.$systemconfig.basePath+'/ffzf/ticket/delete',{id:id}, res => {
          this.$message({message: '撤销成功', type: 'success'});
          this.getDataList();
        })
      },
    }
  }
</script>