接口对接
This commit is contained in:
@@ -41,8 +41,14 @@
|
|||||||
methods: {
|
methods: {
|
||||||
async _getBillsCount () {
|
async _getBillsCount () {
|
||||||
let res = await getBillsCount()
|
let res = await getBillsCount()
|
||||||
this.menuList = [...res]
|
if (res.code === 1) {
|
||||||
|
this.menuList = [...res.result]
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
toPage (e) {
|
toPage (e) {
|
||||||
let url = ''
|
let url = ''
|
||||||
|
|||||||
@@ -112,9 +112,9 @@
|
|||||||
this._tabChange(0)
|
this._tabChange(0)
|
||||||
},
|
},
|
||||||
async toLogin() {
|
async toLogin() {
|
||||||
uni.redirectTo({
|
// uni.redirectTo({
|
||||||
url: '/pages/home/home'
|
// url: '/pages/home/home'
|
||||||
})
|
// })
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (this.loginname === '') {
|
if (this.loginname === '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -195,6 +195,7 @@
|
|||||||
margin-bottom 15px
|
margin-bottom 15px
|
||||||
_bis(,'../../static/images/login_tabs_bg.png', 100%, 100%,bottom)
|
_bis(,'../../static/images/login_tabs_bg.png', 100%, 100%,bottom)
|
||||||
.login_tab_item
|
.login_tab_item
|
||||||
|
cursor pointer
|
||||||
_font(50rpx,66rpx,#99B1DD,,center)
|
_font(50rpx,66rpx,#99B1DD,,center)
|
||||||
font-family: YouSheBiaoTiHei;
|
font-family: YouSheBiaoTiHei;
|
||||||
padding 0 50rpx 0 10rpx
|
padding 0 50rpx 0 10rpx
|
||||||
|
|||||||
@@ -192,6 +192,7 @@
|
|||||||
},
|
},
|
||||||
async _easOutInBillPage () {
|
async _easOutInBillPage () {
|
||||||
let res = await easOutInBillPage(this.val1, this.id, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
|
let res = await easOutInBillPage(this.val1, this.id, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
|
||||||
|
if (res.code === 1) {
|
||||||
this.checkArr1 = []
|
this.checkArr1 = []
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
this.$set(el, 'checked', false)
|
this.$set(el, 'checked', false)
|
||||||
@@ -200,9 +201,16 @@
|
|||||||
this.totalCount1 = Number(res.totalElements)
|
this.totalCount1 = Number(res.totalElements)
|
||||||
this.queryParams1.pageSize = Number(res.pageSize)
|
this.queryParams1.pageSize = Number(res.pageSize)
|
||||||
this.queryParams1.pageNum = Number(res.pageNum)
|
this.queryParams1.pageNum = Number(res.pageNum)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async _easOutInBillDetailPage () {
|
async _easOutInBillDetailPage () {
|
||||||
let res = await easOutInBillDetailPage(this.code, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '')
|
let res = await easOutInBillDetailPage(this.code, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '')
|
||||||
|
if (res.code === 1) {
|
||||||
this.checkArr2 = []
|
this.checkArr2 = []
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
this.$set(el, 'checked', false)
|
this.$set(el, 'checked', false)
|
||||||
@@ -211,6 +219,12 @@
|
|||||||
this.totalCount2 = Number(res.totalElements)
|
this.totalCount2 = Number(res.totalElements)
|
||||||
this.queryParams2.pageSize = Number(res.pageSize)
|
this.queryParams2.pageSize = Number(res.pageSize)
|
||||||
this.queryParams2.pageNum = Number(res.pageNum)
|
this.queryParams2.pageNum = Number(res.pageNum)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handlePageChange1(page) {
|
handlePageChange1(page) {
|
||||||
this.queryParams1.pageNum = page
|
this.queryParams1.pageNum = page
|
||||||
@@ -248,6 +262,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillUpdate(this.checkArr1)
|
let res = await easOutInBillUpdate(this.checkArr1)
|
||||||
|
if (res.code === 1) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.checkArr1 = []
|
this.checkArr1 = []
|
||||||
this.toSearch()
|
this.toSearch()
|
||||||
@@ -255,6 +270,13 @@
|
|||||||
title: res.desc,
|
title: res.desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.disabled1 = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
}
|
}
|
||||||
@@ -271,6 +293,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillDetailUpdate(this.checkArr2)
|
let res = await easOutInBillDetailUpdate(this.checkArr2)
|
||||||
|
if (res.code === 1) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
this.checkArr2 = []
|
this.checkArr2 = []
|
||||||
this.queryParams2 = {
|
this.queryParams2 = {
|
||||||
@@ -283,21 +306,34 @@
|
|||||||
title: res.desc,
|
title: res.desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.disabled2 = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _queryInventoryInfo () {
|
async _queryInventoryInfo () {
|
||||||
let res = await queryInventoryInfo(this.checkArr2)
|
let res = await queryInventoryInfo(this.checkArr2)
|
||||||
|
if (res.code ===1) {
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
this.$set(el, 'checked', false)
|
this.$set(el, 'checked', false)
|
||||||
this.$set(el, 'yqty', el.qty)
|
this.$set(el, 'yqty', el.qty)
|
||||||
})
|
})
|
||||||
this.dataList3 = [...res.result]
|
this.dataList3 = [...res.result]
|
||||||
this.show = true
|
this.show = true
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleBlur (ele) {
|
handleBlur (ele) {
|
||||||
console.log(this.dataList3)
|
|
||||||
ele.checked = true
|
ele.checked = true
|
||||||
let index = ''
|
let index = ''
|
||||||
let obj = {}
|
let obj = {}
|
||||||
@@ -318,6 +354,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillDetailUpdate(this.dataList3)
|
let res = await easOutInBillDetailUpdate(this.dataList3)
|
||||||
|
if (res.code === 1) {
|
||||||
this.disabled3 = false
|
this.disabled3 = false
|
||||||
this.show = false
|
this.show = false
|
||||||
this.queryParams2 = {
|
this.queryParams2 = {
|
||||||
@@ -330,6 +367,13 @@
|
|||||||
title: res.desc,
|
title: res.desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.disabled3 = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled3 = false
|
this.disabled3 = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,6 +192,7 @@
|
|||||||
},
|
},
|
||||||
async _easOutInBillPage () {
|
async _easOutInBillPage () {
|
||||||
let res = await easOutInBillPage(this.val1, this.id, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
|
let res = await easOutInBillPage(this.val1, this.id, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
|
||||||
|
if (res.code === 1) {
|
||||||
this.checkArr1 = []
|
this.checkArr1 = []
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
this.$set(el, 'checked', false)
|
this.$set(el, 'checked', false)
|
||||||
@@ -200,9 +201,16 @@
|
|||||||
this.totalCount1 = Number(res.totalElements)
|
this.totalCount1 = Number(res.totalElements)
|
||||||
this.queryParams1.pageSize = Number(res.pageSize)
|
this.queryParams1.pageSize = Number(res.pageSize)
|
||||||
this.queryParams1.pageNum = Number(res.pageNum)
|
this.queryParams1.pageNum = Number(res.pageNum)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async _easOutInBillDetailPage () {
|
async _easOutInBillDetailPage () {
|
||||||
let res = await easOutInBillDetailPage(this.code, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '')
|
let res = await easOutInBillDetailPage(this.code, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '')
|
||||||
|
if (res.code === 1) {
|
||||||
this.checkArr2 = []
|
this.checkArr2 = []
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
this.$set(el, 'checked', false)
|
this.$set(el, 'checked', false)
|
||||||
@@ -211,6 +219,12 @@
|
|||||||
this.totalCount2 = Number(res.totalElements)
|
this.totalCount2 = Number(res.totalElements)
|
||||||
this.queryParams2.pageSize = Number(res.pageSize)
|
this.queryParams2.pageSize = Number(res.pageSize)
|
||||||
this.queryParams2.pageNum = Number(res.pageNum)
|
this.queryParams2.pageNum = Number(res.pageNum)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handlePageChange1(page) {
|
handlePageChange1(page) {
|
||||||
this.queryParams1.pageNum = page
|
this.queryParams1.pageNum = page
|
||||||
@@ -248,6 +262,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillUpdate(this.checkArr1)
|
let res = await easOutInBillUpdate(this.checkArr1)
|
||||||
|
if (res.code === 1) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.checkArr1 = []
|
this.checkArr1 = []
|
||||||
this.toSearch()
|
this.toSearch()
|
||||||
@@ -255,6 +270,13 @@
|
|||||||
title: res.desc,
|
title: res.desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.disabled1 = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
}
|
}
|
||||||
@@ -271,6 +293,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillDetailUpdate(this.checkArr2)
|
let res = await easOutInBillDetailUpdate(this.checkArr2)
|
||||||
|
if (res.code === 1) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
this.checkArr2 = []
|
this.checkArr2 = []
|
||||||
this.queryParams2 = {
|
this.queryParams2 = {
|
||||||
@@ -283,21 +306,34 @@
|
|||||||
title: res.desc,
|
title: res.desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.disabled2 = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _queryInventoryInfo () {
|
async _queryInventoryInfo () {
|
||||||
let res = await queryInventoryInfo(this.checkArr2)
|
let res = await queryInventoryInfo(this.checkArr2)
|
||||||
|
if (res.code ===1) {
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
this.$set(el, 'checked', false)
|
this.$set(el, 'checked', false)
|
||||||
this.$set(el, 'yqty', el.qty)
|
this.$set(el, 'yqty', el.qty)
|
||||||
})
|
})
|
||||||
this.dataList3 = [...res.result]
|
this.dataList3 = [...res.result]
|
||||||
this.show = true
|
this.show = true
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleBlur (ele) {
|
handleBlur (ele) {
|
||||||
console.log(this.dataList3)
|
|
||||||
ele.checked = true
|
ele.checked = true
|
||||||
let index = ''
|
let index = ''
|
||||||
let obj = {}
|
let obj = {}
|
||||||
@@ -318,6 +354,7 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillDetailUpdate(this.dataList3)
|
let res = await easOutInBillDetailUpdate(this.dataList3)
|
||||||
|
if (res.code === 1) {
|
||||||
this.disabled3 = false
|
this.disabled3 = false
|
||||||
this.show = false
|
this.show = false
|
||||||
this.queryParams2 = {
|
this.queryParams2 = {
|
||||||
@@ -330,6 +367,13 @@
|
|||||||
title: res.desc,
|
title: res.desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.disabled3 = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.desc,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled3 = false
|
this.disabled3 = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,17 +69,66 @@ export const easOutInBillDetailUpdate = (arr) => request({
|
|||||||
// return res
|
// return res
|
||||||
// }
|
// }
|
||||||
// export const getBillsCount = (area) => {
|
// export const getBillsCount = (area) => {
|
||||||
// let res = [
|
// let res = {
|
||||||
// {name: '销售出库', djlx: 'XSCKD', ywlx: 'OUT', counts: '1'},
|
// "code": 1,
|
||||||
// {name: '采购退货出库', djlx: 'CGTHD', ywlx: 'OUT', counts: '1'},
|
// "desc": "操作成功",
|
||||||
// {name: '调拨出库', djlx: 'DBCKD', ywlx: 'OUT', counts: '1'},
|
// "result": [
|
||||||
// {name: '委外出库', djlx: 'WWFLD', ywlx: 'OUT', counts: '1'},
|
// {
|
||||||
// {name: '生产出库', djlx: 'LLCKD', ywlx: 'OUT', counts: '1'},
|
// "djlx": "CGRKD",
|
||||||
// {name: '采购入库', djlx: 'CGRKD', ywlx: 'IN', counts: '1'},
|
// "ywlx": "IN",
|
||||||
// {name: '生产退料入库', djlx: 'LLTHD', ywlx: 'IN', counts: '1'},
|
// "name": "采购入库",
|
||||||
// {name: '调拨入库', djlx: 'DBRKD', ywlx: 'IN', counts: '1'},
|
// "counts": "1"
|
||||||
// {name: '委外入库', djlx: 'WWRKD', ywlx: 'IN', counts: '1'}
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "CGTHD",
|
||||||
|
// "ywlx": "OUT",
|
||||||
|
// "name": "采购退货出库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "DBCKD",
|
||||||
|
// "ywlx": "OUT",
|
||||||
|
// "name": "调拨出库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "DBRKD",
|
||||||
|
// "ywlx": "IN",
|
||||||
|
// "name": "调拨入库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "LLCKD",
|
||||||
|
// "ywlx": "OUT",
|
||||||
|
// "name": "生产出库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "LLTHD",
|
||||||
|
// "ywlx": "IN",
|
||||||
|
// "name": "生产退料入库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "WWFLD",
|
||||||
|
// "ywlx": "OUT",
|
||||||
|
// "name": "委外出库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "WWRKD",
|
||||||
|
// "ywlx": "IN",
|
||||||
|
// "name": "委外入库",
|
||||||
|
// "counts": "0"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "djlx": "XSCKD",
|
||||||
|
// "ywlx": "OUT",
|
||||||
|
// "name": "销售出库",
|
||||||
|
// "counts": "0"
|
||||||
|
// }
|
||||||
// ]
|
// ]
|
||||||
|
// }
|
||||||
// return res
|
// return res
|
||||||
// }
|
// }
|
||||||
// export const easOutInBillPage = (size, page, fuzzy, djlx) => {
|
// export const easOutInBillPage = (size, page, fuzzy, djlx) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user