|
@@ -17,120 +17,50 @@
|
|
|
<el-form
|
|
<el-form
|
|
|
ref="form"
|
|
ref="form"
|
|
|
:model="formModel"
|
|
:model="formModel"
|
|
|
- :rules="ruleValidate"
|
|
|
|
|
:label-width="'100px'"
|
|
:label-width="'100px'"
|
|
|
>
|
|
>
|
|
|
- <el-form-item label="" prop="id">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.id"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="" prop="createBy">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.createBy"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="" prop="createTime">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.createTime"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="" prop="updateBy">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.updateBy"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="" prop="updateTime">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.updateTime"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="删除标示" prop="delFlag">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.delFlag"
|
|
|
|
|
- placeholder="请输入删除标示"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="用户ID" prop="jobUserId">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.jobUserId"
|
|
|
|
|
- placeholder="请输入用户ID"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="审批人" prop="approvePersonId">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.approvePersonId"
|
|
|
|
|
- placeholder="请输入审批人"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="审批时间" prop="approveTime">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.approveTime"
|
|
|
|
|
- placeholder="请输入审批时间"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="审批状态" prop="approvalStatus">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="formModel.approvalStatus"
|
|
|
|
|
- placeholder="请输入审批状态"
|
|
|
|
|
- style="width: 300px"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="姓名:" prop="realName">
|
|
|
|
|
+ {{formModel.realName}}
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="身份证号:" prop="idCard">
|
|
|
|
|
+ {{formModel.idCard}}
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="电话:" prop="tel">
|
|
|
|
|
+ {{formModel.tel}}
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-image style="width: 100%;" :src="formModel.idCardUrl" fit="contain">
|
|
|
|
|
+ <div slot="error" class="image-slot">
|
|
|
|
|
+ <i class="el-icon-picture-outline"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-image>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="closeDialog">取 消</el-button>
|
|
<el-button @click="closeDialog">取 消</el-button>
|
|
|
- <el-button type="primary" @click="handleSubmit" :loading="submitting"
|
|
|
|
|
- >确 定</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button type="primary" @click="handleSubmit" :loading="submitting">通 过</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import Constant from "@/constant";
|
|
import Constant from "@/constant";
|
|
|
import userAuthenticationApproveApi from "@/api/base/userAuthenticationApprove";
|
|
import userAuthenticationApproveApi from "@/api/base/userAuthenticationApprove";
|
|
|
|
|
+import jobUserApi from "@/api/job/jobUser";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- props: ["businessKey", "title"],
|
|
|
|
|
|
|
+ props: ["businessKey", "jobUserKey", "title"],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
formModel: {},
|
|
formModel: {},
|
|
|
- ruleValidate: {
|
|
|
|
|
- id: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
|
- createBy: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
|
- createTime: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
|
- updateBy: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
|
- updateTime: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
|
- delFlag: [
|
|
|
|
|
- { required: true, message: "删除标示不能为空", trigger: "blur" },
|
|
|
|
|
- ],
|
|
|
|
|
- jobUserId: [
|
|
|
|
|
- { required: true, message: "用户ID不能为空", trigger: "blur" },
|
|
|
|
|
- ],
|
|
|
|
|
- approvePersonId: [
|
|
|
|
|
- { required: true, message: "审批人不能为空", trigger: "blur" },
|
|
|
|
|
- ],
|
|
|
|
|
- approveTime: [
|
|
|
|
|
- { required: true, message: "审批时间不能为空", trigger: "blur" },
|
|
|
|
|
- ],
|
|
|
|
|
- approvalStatus: [
|
|
|
|
|
- { required: true, message: "审批状态不能为空", trigger: "blur" },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
showDialog: true,
|
|
showDialog: true,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
submitting: false,
|
|
submitting: false,
|
|
@@ -143,35 +73,28 @@ export default {
|
|
|
handleSubmit() {
|
|
handleSubmit() {
|
|
|
var self = this;
|
|
var self = this;
|
|
|
|
|
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
|
|
- if (valid) {
|
|
|
|
|
- (function () {
|
|
|
|
|
- var id = self.formModel.id;
|
|
|
|
|
-
|
|
|
|
|
- if (id == null || id.length == 0) {
|
|
|
|
|
- return userAuthenticationApproveApi.add(self.formModel);
|
|
|
|
|
- } else {
|
|
|
|
|
- return userAuthenticationApproveApi.update(self.formModel);
|
|
|
|
|
- }
|
|
|
|
|
- })().then(function (response) {
|
|
|
|
|
- var jsonData = response.data;
|
|
|
|
|
|
|
+ (function () {
|
|
|
|
|
+ var formData = new FormData();
|
|
|
|
|
+ formData.append("id", self.businessKey);
|
|
|
|
|
|
|
|
- if (jsonData.result) {
|
|
|
|
|
- self.$message({
|
|
|
|
|
- message: "保存成功!",
|
|
|
|
|
- type: "success",
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ return userAuthenticationApproveApi.checked(formData);
|
|
|
|
|
+ })().then(function (response) {
|
|
|
|
|
+ var jsonData = response.data;
|
|
|
|
|
|
|
|
- self.$emit("close", true);
|
|
|
|
|
- } else {
|
|
|
|
|
- self.$message({
|
|
|
|
|
- message: jsonData.message + "",
|
|
|
|
|
- type: "warning",
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (jsonData.result) {
|
|
|
|
|
+ self.$message({
|
|
|
|
|
+ message: "保存成功!",
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
- self.$emit("close", false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ self.$emit("close", true);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ self.$message({
|
|
|
|
|
+ message: jsonData.message + "",
|
|
|
|
|
+ type: "warning",
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ self.$emit("close", false);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -180,11 +103,7 @@ export default {
|
|
|
var self = this;
|
|
var self = this;
|
|
|
|
|
|
|
|
(function () {
|
|
(function () {
|
|
|
- if (self.businessKey.length == 0) {
|
|
|
|
|
- return userAuthenticationApproveApi.create();
|
|
|
|
|
- } else {
|
|
|
|
|
- return userAuthenticationApproveApi.edit(self.businessKey);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return jobUserApi.editChecked(self.jobUserKey);
|
|
|
})()
|
|
})()
|
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
var jsonData = response.data;
|
|
var jsonData = response.data;
|
|
@@ -192,6 +111,7 @@ export default {
|
|
|
|
|
|
|
|
if (jsonData.result) {
|
|
if (jsonData.result) {
|
|
|
self.formModel = jsonData.data;
|
|
self.formModel = jsonData.data;
|
|
|
|
|
+ console.log(self.formModel);
|
|
|
} else {
|
|
} else {
|
|
|
self.$message.error(jsonData.message + "");
|
|
self.$message.error(jsonData.message + "");
|
|
|
}
|
|
}
|