| | |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios.get(this.baseURL + "/Web/GetOrganizations", { |
| | | axios.get(this.$baseUrl + "/Web/GetOrganizations", { |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data;//组织列表 |
| | |
| | | }); |
| | | }, |
| | | SourceBillType(){ |
| | | axios.get(this.baseURL + "/Web/GetHSourceBillType", { |
| | | axios.get(this.$baseUrl + "/Web/GetHSourceBillType", { |
| | | params: { "HName": '器具调拨单', "Num": 2 }//0蓝单 1红单 2不分红蓝单 |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | |
| | | //获取源单数据 |
| | | GetSourceBillList(HSourceInterID, HSourceEntryID, HSourceBillType) { |
| | | return new Promise((resolve, reject) => { |
| | | axios.get(this.baseURL + "/Sc_MouldProdMoveBillController/GetSourceBill_MouldProdMove_Json", { |
| | | axios.get(this.$baseUrl + "/Sc_MouldProdMoveBillController/GetSourceBill_MouldProdMove_Json", { |
| | | params: { "HInterID": HSourceInterID, "HEntryID": HSourceEntryID, "HBillType": HSourceBillType } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | |
| | | }, |
| | | //根据用户获取对应职员、部门、销售主管 |
| | | getCzyglByUser() { |
| | | axios.get(this.baseURL + '/Xs_SeOrderBill/getCzyglByUser', { |
| | | axios.get(this.$baseUrl + '/Xs_SeOrderBill/getCzyglByUser', { |
| | | params: { "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let dataForm = response.data.data[0] |
| | |
| | | }) |
| | | }, |
| | | getHBillNo() { |
| | | axios.get(this.baseURL + "/Web/GetMAXNum", { |
| | | axios.get(this.$baseUrl + "/Web/GetMAXNum", { |
| | | params: { |
| | | HBillType: '3814' |
| | | } |
| | |
| | | let rowHmainid = this.linterid |
| | | console.log(this.linterid) |
| | | //主表 |
| | | axios.get(this.baseURL + "/Sc_MouldStockBillController/GetSc_MouldStockBill_Json", { |
| | | axios.get(this.$baseUrl + "/Sc_MouldStockBillController/GetSc_MouldStockBill_Json", { |
| | | params: { 'HInterID': rowHmainid,"HMaker": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + Operation + ";" + sessionStorage["HUserName"]; |
| | | axios({ |
| | | method: 'post', |
| | | url: this.baseURL + "/Sc_MouldProdMoveBillController/GetSc_MouldProdMoveBill_Save_Json", |
| | | url: this.$baseUrl + "/Sc_MouldProdMoveBillController/GetSc_MouldProdMoveBill_Save_Json", |
| | | data: { |
| | | 'sMainSub': sMainSub |
| | | }, |
| | |
| | | set_CheckBill(num, form) { |
| | | var InterID = form.hmainid || form.HInterID |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Sc_MouldProdMoveBillController/GetSc_MouldProdMoveBill_Check_Json", { |
| | | axios.get(this.$baseUrl + "/Sc_MouldProdMoveBillController/GetSc_MouldProdMoveBill_Check_Json", { |
| | | params: { "HInterID": InterID, "Type": num, "HMaker": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |