| | |
| | | depot: {}, |
| | | show: false, |
| | | actions: [], |
| | | ItemTblDetail:[] |
| | | ItemDetail:[] |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesItemTbl/GetSCTLBillNo', { |
| | | type: "生产退料申请" |
| | | type: "生产退料" |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemTblDetail = json.data.tbBillList; |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.$refs.sectionCode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.billNo.focus(); |
| | | that.ItemTblDetail = null; |
| | | that.ItemDetail = null; |
| | | that.billNo = null; |
| | | } |
| | | that.isLoading = false; |
| | |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$refs.billNo.focus(); |
| | | that.ItemTblDetail = null; |
| | | that.ItemDetail = null; |
| | | that.billNo = null; |
| | | console.log(error); |
| | | }); |