Commit 0858f304 authored by xiangzj's avatar xiangzj

要货

parent d1fab0db
...@@ -400,6 +400,7 @@ ...@@ -400,6 +400,7 @@
params.procInstId = data.procInstId params.procInstId = data.procInstId
params.taskId = data.taskId params.taskId = data.taskId
// 提交 // 提交
params.wantGoodsDetailList = JSON.stringify(params.wantGoodsDetailList)
const res = await advance(params) const res = await advance(params)
if (res.status == 1) { if (res.status == 1) {
uni.showToast({ uni.showToast({
......
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
methods: { methods: {
async getDetail(){ async getDetail(){
const res = await initAppWantGoods(this.orderItem) const res = await initAppWantGoods(this.orderItem)
for(let k in res.data){res.data[k] = res.data[k]===null?'':res.data[k]}
this.detail = {'shuntTypeName': ' ','shuntName': ' ','channelTypeName': '',...res.data} this.detail = {'shuntTypeName': ' ','shuntName': ' ','channelTypeName': '',...res.data}
}, },
changeComponent(com) { changeComponent(com) {
......
...@@ -114,11 +114,13 @@ ...@@ -114,11 +114,13 @@
'height': `${this.sysinfo.safeArea.height - 44 - 156 }px` 'height': `${this.sysinfo.safeArea.height - 44 - 156 }px`
} }
}, },
},
onShow() {
this.lists = []
this.getSalesPlanTypes(true)
}, },
created() { created() {
this.reset() this.reset()
this.getSalesPlanTypes(true);
}, },
methods: { methods: {
purchaseBtn(item) { purchaseBtn(item) {
...@@ -127,10 +129,6 @@ ...@@ -127,10 +129,6 @@
}) })
}, },
async getSalesPlan(isRefresh) { async getSalesPlan(isRefresh) {
if (this.loadParams.isDone) {
return
}
const params = { const params = {
...this.page, ...this.page,
} }
...@@ -207,14 +205,6 @@ ...@@ -207,14 +205,6 @@
this.loadingText = '加载中' this.loadingText = '加载中'
}, },
async getSalesPlanTypes() { async getSalesPlanTypes() {
const params = {
"object_id": [{
"sign": "I",
"option": "EQ",
"low": "A0002",
"HIGH": ""
}]
}
this.getSalesPlan() this.getSalesPlan()
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment