| | |
| | | formData.append("HUserName", sessionStorage["HUserName"]); |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Car/Gy_Car_UploadFile", |
| | | url: this.$baseUrl + "/Gy_Car/Gy_Car_UploadFile", |
| | | data: formData, |
| | | headers: { |
| | | "Content-Type": "multipart/form-data", |
| | |
| | | }, |
| | | getHSourceBillType() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetHSourceBillType", { |
| | | .get(this.$baseUrl + "/Web/GetHSourceBillType", { |
| | | params: { HName: "退货通知单", Num: 2 }, |
| | | }) |
| | | .then((res) => { |
| | |
| | | }, |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .get(this.$baseUrl + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data.map((item) => { |
| | |
| | | //根据主内码与子内码获取源单销售订单数据 |
| | | getPushSourceBillInit(HSourceInterID, HSourceEntryID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | params: { |
| | | HInterID: HSourceInterID, |
| | | HSubID: HSourceEntryID, |
| | |
| | | //根据用户获取对应职员、部门、销售主管 |
| | | getCzyglByUser() { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/getCzyglByUser", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/getCzyglByUser", { |
| | | params: { CurUserName: sessionStorage["HUserName"] }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | this.reset(); |
| | | let rowHmainid = this.HInterID; |
| | | axios |
| | | .get(this.baseURL + "/Gy_Car/GetGy_CarDetail", { |
| | | .get(this.$baseUrl + "/Gy_Car/GetGy_CarDetail", { |
| | | params: { HID: rowHmainid }, |
| | | }) |
| | | .then((res) => { |
| | |
| | | }); |
| | | } else { |
| | | // 编辑模式下 生成图片预览src 复制模式下需重新上传图片 |
| | | let apiIndex = this.baseURL.indexOf("/API/"); |
| | | let filePath = this.baseURL.slice(0, apiIndex) + "/"; |
| | | let apiIndex = this.$baseUrl.indexOf("/API/"); |
| | | let filePath = this.$baseUrl.slice(0, apiIndex) + "/"; |
| | | |
| | | this.imagePreviewSrc.HCarPric = data.车辆照片 |
| | | ? `${filePath}Files/Gy_Car/${data.车牌号}/HCarPric/${data.车辆照片}` |
| | |
| | | //根据客户带出联系人、联系电话 |
| | | getCustomerByCusID(HCusID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/getCustomerByCusID", { |
| | | params: { |
| | | HCusID: HCusID, |
| | | }, |
| | |
| | | |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Car/SaveGy_Car", |
| | | url: this.$baseUrl + "/Gy_Car/SaveGy_Car", |
| | | data: { |
| | | msg: sMainStr, |
| | | }, |
| | |
| | | var InterID = form.hmainid || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/AuditKf_SellOutBill", { |
| | | .get(this.$baseUrl + "/Kf_SellOutBill/AuditKf_SellOutBill", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsAudit: num, |