| | |
| | | methods: { |
| | | getFile() { |
| | | axios |
| | | .get(`${this.baseURL}/Gy_Employee_Filelist?HBillNO=${this.form.HNumber}`) |
| | | .get(`${this.$baseUrl}/Gy_Employee_Filelist?HBillNO=${this.form.HNumber}`) |
| | | .then((res) => { |
| | | let { Message, data, count } = res.data; |
| | | if (count == 1) { |
| | |
| | | this.fileListPreUpload.push({ |
| | | fileName: data[i].HFileName, |
| | | size: `${(data[i].HFileSize / 1024).toFixed(2)}KB`, |
| | | url: `${this.baseURL}${data[i].url}`, |
| | | url: `${this.$baseUrl}${data[i].url}`, |
| | | fileStatus: "已上传", |
| | | raw: {}, |
| | | }); |
| | |
| | | this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID |
| | | this.user = sessionStorage["HUserName"]; |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .get(this.$baseUrl + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data; //组织列表 |
| | |
| | | }, |
| | | getSubData() { |
| | | axios |
| | | .get(this.baseURL + "/Gy_Employee/listSub", { |
| | | .get(this.$baseUrl + "/Gy_Employee/listSub", { |
| | | params: { |
| | | sWhere: ` and HEmpID = ${this.form.HItemID}`, |
| | | user: this.user, |
| | |
| | | if (this.OperationType != 1) { |
| | | this.zzSelDis = true; |
| | | axios |
| | | .get(this.baseURL + "/GetGy_EmployeeDetail", { |
| | | .get(this.$baseUrl + "/GetGy_EmployeeDetail", { |
| | | params: { |
| | | HID: this.linterid, |
| | | }, |
| | |
| | | var sMainSub = sMainStr + ";" + this.user + ";" + sSubStr; |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Employee/ModifyByID", |
| | | url: this.$baseUrl + "/Gy_Employee/ModifyByID", |
| | | data: { |
| | | oMain: sMainSub, |
| | | }, |
| | |
| | | .then(() => { |
| | | if (this.rowForm.状态 == "创建") { |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/DeltetSellOutBill", { |
| | | .get(this.$baseUrl + "/Kf_SellOutBill/DeltetSellOutBill", { |
| | | params: { HInterID: this.rowForm.hmainid.toString(), user: this.user }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Source/AuditGy_Source", { |
| | | .get(this.$baseUrl + "/Gy_Source/AuditGy_Source", { |
| | | params: { HInterID: InterID, IsAudit: num, CurUserName: this.user }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Employee_UploadFile", // 注意修正了URL中的双斜杠 |
| | | url: this.$baseUrl + "/Gy_Employee_UploadFile", // 注意修正了URL中的双斜杠 |
| | | data: formData, |
| | | headers: { |
| | | "Content-Type": "multipart/form-data", // 不需要手动设置 |