退料接口调试
This commit is contained in:
parent
134a859363
commit
b4d9d91339
|
|
@ -305,10 +305,20 @@ const backMaterialReceive = {
|
|||
header
|
||||
)
|
||||
},
|
||||
async backReceiveEndBack (data = {} , header = {}){
|
||||
return await Http.post(
|
||||
HttpConfig.basePath,
|
||||
HttpConfig.serviceUrl.backMaterialReceive.backReceiveEndBack,
|
||||
data,
|
||||
header
|
||||
)
|
||||
},
|
||||
|
||||
|
||||
|
||||
fetchMaterialOutStore
|
||||
|
||||
|
||||
// fetchMaterialOutStore
|
||||
}
|
||||
|
||||
export {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,10 @@ class HttpConfig {
|
|||
backMaterialSetNumBack: '/backReceive/setNumBack',
|
||||
backMaterialQrcodeQuery:'backReceive/qrcodeQuery',
|
||||
backMaterialSetCodeBack:'backReceive/setCodeBack',
|
||||
backReceiveCodeQuery:"backReceive/codeQuery"
|
||||
backReceiveCodeQuery:"backReceive/codeQuery",
|
||||
backReceiveEndBack:"backReceive/endBack",
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
</view>
|
||||
<view
|
||||
class="fetch-lower"
|
||||
@click="seeDetail(fetch.id)"
|
||||
@click="seeDetail(fetch)"
|
||||
>
|
||||
<view>
|
||||
<span>退料单号</span>
|
||||
|
|
@ -97,9 +97,9 @@ import { basePath } from '../../public'
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
seeDetail (id) {
|
||||
seeDetail (item) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/backMaterialReceiveDetail/backMaterialReceiveDetail?id=${id}`
|
||||
url: `/pages/backMaterialReceiveDetail/backMaterialReceiveDetail?id=${item.id}&taskId=${item.taskId}`
|
||||
})
|
||||
},
|
||||
/* checkAll() {
|
||||
|
|
|
|||
|
|
@ -108,7 +108,8 @@
|
|||
passedNum: '',
|
||||
waitRepairNum: '',
|
||||
waitCrashNum: '',
|
||||
detailsId: ''
|
||||
detailsId: '',
|
||||
taskId:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -259,18 +260,28 @@
|
|||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
},
|
||||
backReceiveEndBackFn() {
|
||||
const that = this
|
||||
that.$api.backMaterialReceive.backReceiveEndBack({
|
||||
taskId: that.taskId,
|
||||
parentId:that.detailsId
|
||||
}).then(res => {})
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
|
||||
this.taskId = params.taskId
|
||||
this.detailsId = params.id
|
||||
},
|
||||
onShow() {
|
||||
this.initListData()
|
||||
},
|
||||
onNavigationBarButtonTap(ev) {
|
||||
|
||||
console.log("点击了自定义按钮",ev);
|
||||
console.log("点击了自定义按钮", ev);
|
||||
const that = this
|
||||
if (ev.text == '结束任务') {
|
||||
that.backReceiveEndBackFn()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue