退料接口调试

This commit is contained in:
13218645326 2023-12-24 16:50:36 +08:00
parent 134a859363
commit b4d9d91339
4 changed files with 35 additions and 11 deletions

View File

@ -305,10 +305,20 @@ const backMaterialReceive = {
header header
) )
}, },
async backReceiveEndBack (data = {} , header = {}){
return await Http.post(
HttpConfig.basePath,
HttpConfig.serviceUrl.backMaterialReceive.backReceiveEndBack,
data,
header
)
},
fetchMaterialOutStore
// fetchMaterialOutStore
} }
export { export {

View File

@ -85,7 +85,10 @@ class HttpConfig {
backMaterialSetNumBack: '/backReceive/setNumBack', backMaterialSetNumBack: '/backReceive/setNumBack',
backMaterialQrcodeQuery:'backReceive/qrcodeQuery', backMaterialQrcodeQuery:'backReceive/qrcodeQuery',
backMaterialSetCodeBack:'backReceive/setCodeBack', backMaterialSetCodeBack:'backReceive/setCodeBack',
backReceiveCodeQuery:"backReceive/codeQuery" backReceiveCodeQuery:"backReceive/codeQuery",
backReceiveEndBack:"backReceive/endBack",
} }
} }
} }

View File

@ -24,7 +24,7 @@
</view> </view>
<view <view
class="fetch-lower" class="fetch-lower"
@click="seeDetail(fetch.id)" @click="seeDetail(fetch)"
> >
<view> <view>
<span>退料单号</span> <span>退料单号</span>
@ -97,9 +97,9 @@ import { basePath } from '../../public'
} }
}, },
methods: { methods: {
seeDetail (id) { seeDetail (item) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/backMaterialReceiveDetail/backMaterialReceiveDetail?id=${id}` url: `/pages/backMaterialReceiveDetail/backMaterialReceiveDetail?id=${item.id}&taskId=${item.taskId}`
}) })
}, },
/* checkAll() { /* checkAll() {

View File

@ -108,7 +108,8 @@
passedNum: '', passedNum: '',
waitRepairNum: '', waitRepairNum: '',
waitCrashNum: '', waitCrashNum: '',
detailsId: '' detailsId: '',
taskId:''
} }
}, },
methods: { methods: {
@ -259,18 +260,28 @@
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
}) })
},
backReceiveEndBackFn() {
const that = this
that.$api.backMaterialReceive.backReceiveEndBack({
taskId: that.taskId,
parentId:that.detailsId
}).then(res => {})
} }
}, },
onLoad(params) { onLoad(params) {
this.taskId = params.taskId
this.detailsId = params.id this.detailsId = params.id
}, },
onShow() { onShow() {
this.initListData() this.initListData()
}, },
onNavigationBarButtonTap(ev) { onNavigationBarButtonTap(ev) {
console.log("点击了自定义按钮", ev); console.log("点击了自定义按钮", ev);
const that = this
if (ev.text == '结束任务') {
that.backReceiveEndBackFn()
}
} }