| | |
| | | copyType: { type: Number }, |
| | | HOrgID: { type: Number }, |
| | | }, |
| | | computed: { |
| | | CheckBillDisabled: { |
| | | get() { |
| | | if (!this.form["HCheckEmp"]) { |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | }, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | formShow: false, |
| | |
| | | zuzhiId: 0, |
| | | organizationList: [], //组织列表 |
| | | subDisabled: false, //编辑页面保存按钮是否禁用(true禁用,false可用) |
| | | CheckBillDisabled: true, |
| | | // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/", |
| | |
| | | console.log(selection); |
| | | }, |
| | | fetchData() { |
| | | //登录用户信息 |
| | | this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID |
| | | this.user = sessionStorage["HUserName"]; |
| | | axios |
| | | .get( |
| | | "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038" |
| | | ) |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | let data = response.data.data[0]; |
| | | this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID |
| | | this.user = data.Czymc; |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data; //组织列表 |
| | | this.getdata(); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data; //组织列表 |
| | | this.getdata(); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | HOverPayRate: data.超额比率, |
| | | HStopflag: data.禁用标记, |
| | | HRemark: data.备注, |
| | | HCheckEmp: data["审核人"], |
| | | }); |
| | | |
| | | console.log(this.form.HCheckEmp); |
| | | |
| | | if (this.OperationType == 3) { |
| | | // 编辑时获取文件列表 |
| | |
| | | this.formShow = false; |
| | | this.subDisabled = false; |
| | | this.formLoading = true; |
| | | this.CheckBillDisabled = true; |
| | | this.activeName = "first"; |
| | | this.resetForm("form"); |
| | | }, |
| | |
| | | console.log(response); |
| | | if (response.data.count == 1) { |
| | | this.subDisabled = true; //设置保存按钮不可用 |
| | | this.CheckBillDisabled = false; |
| | | this.$modal.msgSuccess(response.data.Message); |
| | | } else { |
| | | this.$modal.msgError(response.data.Message); |
| | | this.CheckBillDisabled = false; |
| | | this.subDisabled = false; //设置保存按钮可用 |
| | | } |
| | | }) |
| | |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Source/AuditGy_Source", { |
| | | .get(this.baseURL + "/Gy_Employee/AuditGy_Employee", { |
| | | params: { HInterID: InterID, IsAudit: num, CurUserName: this.user }, |
| | | }) |
| | | .then((response) => { |
| | | let result = response.data; |
| | | if (result.code == 1) { |
| | | this.$modal.msgSuccess("操作成功"); |
| | | this.CheckBillDisabled = true; |
| | | // this.CheckBillDisabled = true; |
| | | this.getdata(); |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |
| | | } |
| | |
| | | this.classTimePrjShow = false; |
| | | this.dutyShow = false; |
| | | this.groupShow = false; |
| | | this.dormShow = false |
| | | this.dormShow = false; |
| | | }, |
| | | // 打开数据列表弹窗 |
| | | openDataDialog(num, row) { |