| | |
| | | <template> |
| | | <el-dialog |
| | | :title="!dataForm ? '新增' : '修改'" |
| | | :close-on-click-modal="false" |
| | | width="1100px" |
| | | :visible.sync="visible" |
| | | > |
| | | <el-form |
| | | :model="dataForm" |
| | | :rules="dataRule" |
| | | ref="dataForm" |
| | | @keyup.enter.native="dataFormSubmit()" |
| | | label-width="150px" |
| | | > |
| | | <el-dialog :title="!dataForm ? '新增' : '修改'" :close-on-click-modal="false" width="1100px" :visible.sync="visible"> |
| | | <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" |
| | | label-width="150px"> |
| | | <el-form-item class="titleDivTwo" label="基础信息" prop=""> |
| | | </el-form-item> |
| | | <el-row> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="审核状态" prop="state[1]" > |
| | | <el-select |
| | | class="speaInputTwo" |
| | | v-model="dataForm.state[1]" |
| | | :disabled = 'dataForm?true:false' |
| | | placeholder="请选择" |
| | | @change="changeVal()" |
| | | > |
| | | <el-option |
| | | v-for="item in direction" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | <el-form-item label="利息" prop="quota"> |
| | | <!-- <el-input v-model="dataForm.quota" placeholder="借贷额度"></el-input> --> |
| | | <div>{{ dataForm.dailyRate * dataForm.quota }}</div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="审核状态" prop="state[1]"> |
| | | <el-select class="speaInputTwo" v-model="dataForm.state[1]" :disabled='dataForm ? true : false' |
| | | placeholder="请选择" @change="changeVal()"> |
| | | <el-option v-for="item in direction" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <!-- <el-col :span="8"> |
| | | <el-form-item label="借贷期限(天)" prop="term"> |
| | | <el-input disabled v-model="dataForm.term" placeholder="天"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | </el-col> --> |
| | | <!-- <el-col :span="8"> |
| | | <el-form-item label="申请时间" prop="createTime"> |
| | | <el-input v-model="dataForm.createTime" :disabled = 'dataForm?true:false' placeholder="申请时间"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="还款周期(天)" prop="repayCycle"> |
| | | <el-input disabled v-model="dataForm.repayCycle" placeholder="天"></el-input> |
| | |
| | | <el-input disabled v-model="dataForm.lendingName" placeholder=""></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | |
| | | <el-row> |
| | | <!-- <el-row> |
| | | <el-col :span="8"> |
| | | <el-form-item label="证件照正面" prop="methodImg"> |
| | | <el-upload |
| | |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visible = false">取消</el-button> |
| | |
| | | visible: false, |
| | | imageUrl: "", |
| | | dataForm: { |
| | | id: 0, |
| | | roleName: "", |
| | | remark: "", |
| | | name: "", |
| | | state: "", |
| | | id: null, |
| | | // roleName: "", |
| | | // remark: "", |
| | | // name: "", |
| | | // state: "", |
| | | }, |
| | | direction: [ |
| | | { |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | init(id) { |
| | | init(id) { |
| | | this.dataForm = id || {}; |
| | | this.visible = true; |
| | | console.log("this.dataForm = " + JSON.stringify(this.dataForm)); |
| | | console.log("this.dataForm", id); |
| | | }, |
| | | changeVal(val) { |
| | | this.$forceUpdate(); |
| | |
| | | method: "post", |
| | | data: this.$http.adornData({ |
| | | orderNo: this.dataForm.uuid, |
| | | img_idimg_1: this.dataForm.houseImgs[0], |
| | | img_idimg_2: this.dataForm.houseImgs[1], |
| | | img_idimg_3: this.dataForm.houseImgs[2], |
| | | partyId: this.dataForm.userName, |
| | | // img_idimg_1: this.dataForm.houseImgs[0], |
| | | // img_idimg_2: this.dataForm.houseImgs[1], |
| | | // img_idimg_3: this.dataForm.houseImgs[2], |
| | | // partyId: this.dataForm.userName, |
| | | symbol: this.dataForm.symbol, |
| | | quota: this.dataForm.quota, |
| | | state: this.dataForm.state, |
| | | term: this.dataForm.term, |
| | | createTime: this.dataForm.createTime, |
| | | repayCycle: this.dataForm.repayCycle, |
| | | dailyRate: this.dataForm.dailyRate, |
| | | // state: this.dataForm.state, |
| | | // term: this.dataForm.term, |
| | | // createTime: this.dataForm.createTime, |
| | | // repayCycle: this.dataForm.repayCycle, |
| | | // dailyRate: this.dataForm.dailyRate, |
| | | |
| | | }), |
| | | }).then(({ data }) => { |
| | | if(data.code == 0){ |
| | | if (data.code == 0) { |
| | | this.$message({ |
| | | message: "操作成功", |
| | | type: "success", |
| | |
| | | this.$emit("refreshDataList"); |
| | | }, |
| | | }); |
| | | }else{ |
| | | } else { |
| | | this.$message({ |
| | | message: data.msg, |
| | | type: "error", |
| | |
| | | border-left: 3px solid #1c4efa; |
| | | background: #f4f7ff; |
| | | } |
| | | |
| | | .avatar-uploader .el-upload { |
| | | border: 1px dashed #d9d9d9; |
| | | border-radius: 6px; |
| | |
| | | position: relative; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .avatar-uploader .el-upload:hover { |
| | | border-color: #409eff; |
| | | } |
| | | |
| | | .avatar-uploader-icon { |
| | | font-size: 28px; |
| | | color: #8c939d; |
| | |
| | | line-height: 178px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .avatar { |
| | | width: 178px; |
| | | height: 178px; |