swwsxx.vue 1.8 KB
<!--
 * @Description: 交易合同
 * @Autor: renchao
 * @LastEditTime: 2024-03-21 16:58:45
-->
<template>
  <div class='jyht'>
    <el-form :model="queryForm">
      <el-row :gutter="10">
        <el-col :span="8">
          <el-form-item label="合同号">
            <el-input v-model="queryForm.htbh"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="业务号">
            <el-input v-model="queryForm.ywh"></el-input>
          </el-form-item>
        </el-col>       
      </el-row>
    </el-form>   
    <div class="text-center">
      <el-button @click="$popupCacel">取消</el-button>
      <!-- <el-button type="primary" @click="handleSubmit" plain>保存</el-button> -->
      <el-button type="primary" @click="handleSearch">查询</el-button>
    </div>
  </div>
</template>
<script>
  import store from '@/store/index.js'
  import { loadQlrxx,querySwwsxx } from "@/api/workflow/swhtxx.js";
  export default {
    props: {
      formData: {
        type: Object,
        default: {}
      }
    },
    components: {},
    data () {
      return {
        key: 0,
        radioVal: '',
        queryForm: {
          htbh: '',
          sfzjhm: '',
          ywh: ''
        }       
      }
    },
    mounted () {
      this.loadData()
    },
    methods: {
      
      handleSearch () { 
        querySwwsxx(this.queryForm).then(res => {
          if (res.code === 200 && res.result){
            
          }
        })
      },
    
      loadData () {       
        this.queryForm.htbh=this.formData.htbh;
        this.queryForm.qxdm=this.formData.qxdm;
        this.queryForm.ywh=this.formData.ywh;
        this.queryForm.bsmQlxx=this.formData.bsmQlxx;       
      }
    }
  }
</script>
<style scoped lang='scss'>
  @import "~@/styles/public.scss";
</style>