--no commit message
Showing
2 changed files
with
73 additions
and
54 deletions
| ... | @@ -393,14 +393,15 @@ | ... | @@ -393,14 +393,15 @@ |
| 393 | ssQlxxList: [], | 393 | ssQlxxList: [], |
| 394 | ztQlxxList: [], | 394 | ztQlxxList: [], |
| 395 | rules: { | 395 | rules: { |
| 396 | bdcqzh: [ | 396 | bdcqzhrules:[ |
| 397 | { required: true, message: "不动产登记证明号", trigger: "blur" }, | 397 | { required: true, message: "不动产权证号:", trigger: "change" }, |
| 398 | ], | 398 | ], |
| 399 | qxdm: [{ required: true, message: "区县代码", trigger: "blur" }], | 399 | qxdmrules: [{ required: true, message: "区县代码", trigger: "blur" }], |
| 400 | djjg: [{ required: true, message: "登记机构", trigger: "blur" }], | 400 | djjgrules: [{ required: true, message: "登记机构", trigger: "change" }], |
| 401 | dbr: [{ required: true, message: "登簿人", trigger: "blur" }], | 401 | dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }], |
| 402 | djsj: [{ required: true, message: "登记时间", trigger: "blur" }], | 402 | djsjrules: [{ required: true, message: "登记时间", trigger: "change" }], |
| 403 | }, | 403 | }, |
| 404 | |||
| 404 | }; | 405 | }; |
| 405 | }, | 406 | }, |
| 406 | created () { | 407 | created () { | ... | ... |
| ... | @@ -7,38 +7,44 @@ | ... | @@ -7,38 +7,44 @@ |
| 7 | <div class="spyj loadingtext"> | 7 | <div class="spyj loadingtext"> |
| 8 | <div class="box"> | 8 | <div class="box"> |
| 9 | <b class="spyj_title">审批表</b> | 9 | <b class="spyj_title">审批表</b> |
| 10 | <el-form | 10 | <div v-for="(item, index) in tableData" :key="index"> |
| 11 | :model="ruleForm" | 11 | <el-form :model="tableData[index]" label-width="120px" :rules="rules" :ref="'ruleFormRef'+index"> |
| 12 | :rules="rules" | 12 | <div class="spyj_form" > |
| 13 | ref="rule" | 13 | <div class="item_left">{{ item.jdmc }}意见</div> |
| 14 | label-width="120px" | ||
| 15 | > | ||
| 16 | <div class="spyj_form"> | ||
| 17 | <div class="item_left">意见</div> | ||
| 18 | <div class="item_right"> | 14 | <div class="item_right"> |
| 19 | <el-row> | 15 | <el-row> |
| 20 | <el-col :span="24"> | 16 | <el-col :span="24"> |
| 21 | <el-form-item label-width="0" class="opinion_item" prop="shyj"> | 17 | <el-form-item |
| 18 | label-width="0" | ||
| 19 | class="opinion_item" | ||
| 20 | prop="shyj" | ||
| 21 | > | ||
| 22 | <el-input | 22 | <el-input |
| 23 | type="textarea" | 23 | type="textarea" |
| 24 | :rows="4" | 24 | :rows="4" |
| 25 | class="opinion" | 25 | class="opinion" |
| 26 | placeholder="请输入审批意见" | 26 | placeholder="请输入审批意见" |
| 27 | v-model="ruleForm.shyj" | 27 | v-model="item.shyj" |
| 28 | ></el-input> | 28 | ></el-input> |
| 29 | </el-form-item> | 29 | </el-form-item> |
| 30 | </el-col> | 30 | </el-col> |
| 31 | </el-row> | 31 | </el-row> |
| 32 | <el-row> | 32 | <el-row> |
| 33 | <el-col :span="16"> | 33 | <el-col :span="16"> |
| 34 | <el-form-item label="审查人" prop="shryxm"> | 34 | <el-form-item |
| 35 | <el-input v-model="ruleForm.shryxm"></el-input> | 35 | label="审查人" |
| 36 | prop="shryxm" | ||
| 37 | > | ||
| 38 | <el-input v-model="item.shryxm"></el-input> | ||
| 36 | </el-form-item> | 39 | </el-form-item> |
| 37 | </el-col> | 40 | </el-col> |
| 38 | <el-col :span="8"> | 41 | <el-col :span="8"> |
| 39 | <el-form-item label="审核时间" prop="shjssj" :key="refresh"> | 42 | <el-form-item |
| 43 | label="审核时间" | ||
| 44 | prop="shsj" | ||
| 45 | > | ||
| 40 | <el-date-picker | 46 | <el-date-picker |
| 41 | v-model="ruleForm.shsj" | 47 | v-model="item.shsj" |
| 42 | type="date" | 48 | type="date" |
| 43 | placeholder="选择日期" | 49 | placeholder="选择日期" |
| 44 | value-format="yyyy/MM/dd HH:mm:ss" | 50 | value-format="yyyy/MM/dd HH:mm:ss" |
| ... | @@ -50,10 +56,11 @@ | ... | @@ -50,10 +56,11 @@ |
| 50 | </el-row> | 56 | </el-row> |
| 51 | </div> | 57 | </div> |
| 52 | </div> | 58 | </div> |
| 59 | </el-form> | ||
| 60 | </div> | ||
| 53 | <div class="submit_button" v-if="!$route.query.viewtype"> | 61 | <div class="submit_button" v-if="!$route.query.viewtype"> |
| 54 | <el-button type="primary" @click="onSubmit">保存</el-button> | 62 | <el-button type="primary" @click="onSubmit('ruleFormRef')">保存</el-button> |
| 55 | </div> | 63 | </div> |
| 56 | </el-form> | ||
| 57 | </div> | 64 | </div> |
| 58 | <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> --> | 65 | <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> --> |
| 59 | </div> | 66 | </div> |
| ... | @@ -68,32 +75,36 @@ export default { | ... | @@ -68,32 +75,36 @@ export default { |
| 68 | data() { | 75 | data() { |
| 69 | return { | 76 | return { |
| 70 | isNoData: false, | 77 | isNoData: false, |
| 71 | //刷新值 | ||
| 72 | refresh: 10, | ||
| 73 | ableOperation: true, | 78 | ableOperation: true, |
| 74 | list:[], | 79 | |
| 75 | ruleForm: { | 80 | tableData: [{ jdmc: "初审" }, { jdmc: "复审" }, { jdmc: "核定" }], |
| 76 | }, | 81 | |
| 77 | rules: { | 82 | rules: { |
| 78 | shyj: [{ required: true, message: "请输入审批意见", trigger: "blur" }], | 83 | shyj: [{ required: true, message: "请填写意见", trigger: "blur" }], |
| 84 | shryxm: [{ required: true, message: "审查人", trigger: "blur" }], | ||
| 85 | shsj: [{ required: true, message: "审核时间", trigger: "blur" }], | ||
| 79 | }, | 86 | }, |
| 80 | tableData: [1], | ||
| 81 | }; | 87 | }; |
| 82 | }, | 88 | }, |
| 83 | 89 | ||
| 84 | watch: { | 90 | watch: {}, |
| 85 | 91 | created() {}, | |
| 86 | }, | 92 | mounted() {}, |
| 87 | created() { | ||
| 88 | }, | ||
| 89 | mounted() { | ||
| 90 | }, | ||
| 91 | methods: { | 93 | methods: { |
| 92 | onSubmit() { | 94 | onSubmit(formName) { |
| 93 | this.ruleForm.bsmBusiness =this.$parent.bsmRepair; | 95 | const falg = [] |
| 94 | this.ruleForm.jdmc = "审核"; | 96 | for (let index = 0; index < this.tableData.length; index++) { |
| 95 | this.list.push(this.ruleForm) | 97 | this.$refs[formName + index][0].validate((valid) => { |
| 96 | addidea(this.list).then((res) => { | 98 | if (valid) { |
| 99 | falg.push(1) | ||
| 100 | } | ||
| 101 | }); | ||
| 102 | } | ||
| 103 | if (falg.length == this.tableData.length) { | ||
| 104 | this.tableData.forEach((item, index) => { | ||
| 105 | item["bsmBusiness"] = this.$parent.bsmRepair; | ||
| 106 | }), | ||
| 107 | addidea(this.tableData).then((res) => { | ||
| 97 | if (res.code === 200) { | 108 | if (res.code === 200) { |
| 98 | this.$message.success("保存成功"); | 109 | this.$message.success("保存成功"); |
| 99 | this.refresh += 1; | 110 | this.refresh += 1; |
| ... | @@ -101,20 +112,27 @@ export default { | ... | @@ -101,20 +112,27 @@ export default { |
| 101 | this.$message.error(res.message); | 112 | this.$message.error(res.message); |
| 102 | } | 113 | } |
| 103 | }); | 114 | }); |
| 115 | alert(1) | ||
| 116 | } else { | ||
| 117 | return false; | ||
| 118 | } | ||
| 104 | }, | 119 | }, |
| 105 | //打开常用意见列表弹窗 | 120 | // onSubmit() { |
| 106 | // commonOpinion() { | 121 | // this.$refs.tablelist[index].validate((valid) => { |
| 107 | // this.$popupDialog( | 122 | // if (valid) { |
| 108 | // "常用意见", | 123 | // this.tableData.forEach((item, index) => { |
| 109 | // "djbworkflow/components/dialog/commonOpinion", | 124 | // item["bsmBusiness"] = this.$parent.bsmRepair; |
| 110 | // {}, | 125 | // }), |
| 111 | // "70%", | 126 | // addidea(this.tableData).then((res) => { |
| 112 | // true | 127 | // if (res.code === 200) { |
| 113 | // ); | 128 | // this.$message.success("保存成功"); |
| 114 | // }, | 129 | // this.refresh += 1; |
| 115 | // //使用常用意见 | 130 | // } else { |
| 116 | // useOpinion(opinion) { | 131 | // this.$message.error(res.message); |
| 117 | // this.ruleForm.shyj = opinion; | 132 | // } |
| 133 | // }); | ||
| 134 | // } | ||
| 135 | // }); | ||
| 118 | // }, | 136 | // }, |
| 119 | }, | 137 | }, |
| 120 | }; | 138 | }; | ... | ... |
-
Please register or sign in to post a comment