Blame view

src/components/business/djfDjDb.vue 4.88 KB
田浩浩 committed
1 2 3 4 5 6 7 8 9 10
<template>
  <div class="applicantInfo itemForm">
    <el-form :model="ruleForm" :rules="rules" ref="formList" label-width="115px" :key="key">
      <el-row>
        <el-col :span="8">
          <el-form-item prop="YSDM" class="borderTopNone">
            <span slot="label">
              要素代码:<br />
              <p class="label-detail">(YSDM)</p>
            </span>
田浩浩 committed
11
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ysdm" placeholder="要素代码"></el-input>
田浩浩 committed
12 13 14 15 16 17 18 19 20
          </el-form-item>
        </el-col>

        <el-col :span="8">
          <el-form-item prop="YWH" class="borderTopNone">
            <span slot="label">
              业务号: <br />
              <p class="label-detail">(YWH)</p>
            </span>
田浩浩 committed
21
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ywh" placeholder="业务号"></el-input>
田浩浩 committed
22 23 24 25
          </el-form-item>
        </el-col>

        <el-col :span="8">
田浩浩 committed
26
          <el-form-item prop="QXDM" class="borderTopNone">
田浩浩 committed
27
            <span slot="label">
田浩浩 committed
28 29
              区县代码: <br />
              <p class="label-detail">(QXDM)</p>
田浩浩 committed
30
            </span>
田浩浩 committed
31
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.qxdm" placeholder="区县代码"></el-input>
田浩浩 committed
32 33 34 35
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
田浩浩 committed
36 37
        <el-col :span="24">
          <el-form-item prop="DBYJ">
田浩浩 committed
38
            <span slot="label">
田浩浩 committed
39 40
              登簿意见: <br />
              <p class="label-detail">(DBYJ)</p>
田浩浩 committed
41
            </span>
田浩浩 committed
42 43
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbyj" maxlength="11" placeholder="登簿意见">
            </el-input>
田浩浩 committed
44 45 46 47 48
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
田浩浩 committed
49
          <el-form-item prop="DBRYXM">
田浩浩 committed
50
            <span slot="label">
田浩浩 committed
51 52
              登簿人员姓名: <br />
              <p class="label-detail">(DBRYXM)</p>
田浩浩 committed
53
            </span>
田浩浩 committed
54 55
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbryxm" maxlength="11"
              placeholder="登簿意见"></el-input>
田浩浩 committed
56 57 58 59
          </el-form-item>
        </el-col>

        <el-col :span="8">
田浩浩 committed
60
          <el-form-item prop="DBSJ">
田浩浩 committed
61
            <span slot="label">
田浩浩 committed
62 63
              登簿时间: <br />
              <p class="label-detail">(DBSJ)</p>
田浩浩 committed
64
            </span>
田浩浩 committed
65
            <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.dbsj" placeholder="登簿时间"></el-input>
田浩浩 committed
66 67 68 69
          </el-form-item>
        </el-col>

        <el-col :span="8">
田浩浩 committed
70
          <el-form-item prop="CZJG">
田浩浩 committed
71
            <span slot="label">
田浩浩 committed
72 73
              操作结果: <br />
              <p class="label-detail">(CZJG)</p>
田浩浩 committed
74
            </span>
田浩浩 committed
75 76 77 78
            <!-- <el-input :disabled="$store.state.business.Edit" v-model="ruleForm.czjg" placeholder="权利人通讯地址">
            </el-input> -->
             <el-select :disabled="$store.state.business.Edit" v-model="ruleForm.czjg" placeholder="请选择">
              <el-option v-for="item in dicData['A37']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
田浩浩 committed
79 80 81 82 83 84 85 86 87 88 89
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <message-tips ref="msg" />
  </div>
</template>
<script>
// 申请人属性信息
田浩浩 committed
90 91 92
import business from "@/api/business";
import ruleMixin from "@/mixins/ruleMixin.js";
import treeSelect from "@/components/treeSelect/index.vue";
田浩浩 committed
93 94 95 96 97
export default {
  mixins: [ruleMixin],
  props: {
    bsmSjsb: {
      type: String,
田浩浩 committed
98
      default: "",
田浩浩 committed
99 100 101
    },
    bsmYwsjb: {
      type: String,
田浩浩 committed
102 103
      default: "",
    },
田浩浩 committed
104 105
  },
  components: {
田浩浩 committed
106
    treeSelect,
田浩浩 committed
107
  },
田浩浩 committed
108
  data() {
田浩浩 committed
109 110
    return {
      ruleForm: {
田浩浩 committed
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
        YSDM: "",
        YWH: "",
        QLRMC: "",
        QLRZJZL: "",
        QLRZJH: "",
        QLRTXDZ: "",
        QLRYB: "",
        QLRFRMC: "",
        QLRFRDH: "",
        QLRDLRMC: "",
        QLRDLRDH: "",
        QLRDLJG: "",
        HJSZSS: "",
        XB: "",
        DH: "",
        YWRMC: "",
        YWRZJZL: "",
        YWRZJH: "",
        YWRTXDZ: "",
        YWRYB: "",
        YWRFRMC: "",
        YWRFRDH: "",
        YWRDLRMC: "",
        YWRDLJG: "",
        BZ: "",
        QXDM: "",
      },
    };
田浩浩 committed
139 140
  },
  methods: {
田浩浩 committed
141
    async featchData() {
田浩浩 committed
142
      try {
田浩浩 committed
143 144
        let { result: res } = await business.getDjfDjDbById(this.bsmSjsb);
        this.ruleForm = res;
田浩浩 committed
145 146
        //this.featchRule()
      } catch (error) {
田浩浩 committed
147
        this.$refs.msg.messageShow();
田浩浩 committed
148 149
      }
    },
田浩浩 committed
150
    handleUpdateForm() {
田浩浩 committed
151 152
      return new Promise(async (resolve, reject) => {
        try {
田浩浩 committed
153 154 155
          let data = _.cloneDeep(this.ruleForm);
          let res = await business.updateDjfDjSqr(data);
          resolve(res.code);
田浩浩 committed
156
        } catch (error) {
田浩浩 committed
157
          this.$refs.msg.messageShow();
田浩浩 committed
158
        }
田浩浩 committed
159 160 161 162
      });
    },
  },
};
田浩浩 committed
163 164 165 166 167 168
</script>
<style scoped lang="scss">
@import "./css/itemForm.scss";
</style>