This commit is contained in:
parent
86d2d49917
commit
a1b33268a8
|
|
@ -7,9 +7,12 @@
|
|||
<uni-col :span="4">
|
||||
<view class="search" @click="getCodeList()">查询</view>
|
||||
</uni-col> -->
|
||||
<uni-col :span="8">
|
||||
<uni-col :span="8" v-if="rowData.appTaskStatus == 0">
|
||||
<view class="addBtn" @click="goCode">编码新增</view>
|
||||
</uni-col>
|
||||
<uni-col :span="8">
|
||||
<view class="addBtn" @click="goToWork">返回工作台</view>
|
||||
</uni-col>
|
||||
</uni-row>
|
||||
<div class="card" style="margin-top: 10px;">
|
||||
<div>退料物资</div>
|
||||
|
|
@ -81,6 +84,11 @@ const bmFileInfos = ref([])//请求图片参数
|
|||
const goCode = () => {
|
||||
uni.navigateTo({ url: `/pages/back/backCode?taskInfo=${JSON.stringify(taskInfo.value)}` })
|
||||
}
|
||||
const goToWork = () => {
|
||||
uni.switchTab({
|
||||
url: '/pages/work/index'
|
||||
})
|
||||
}
|
||||
const getCodeList = () => {
|
||||
console.log(rowData.value)
|
||||
let param = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
<template>
|
||||
<view class="accept page-common">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="title">任务信息</span>
|
||||
<div class="card-header" style="display: flex;justify-content: space-between;align-items: center;">
|
||||
<div class="title">任务信息</div>
|
||||
<div>
|
||||
<button type="primary" size="mini" @click="goToWork">返回工作台</button>
|
||||
</div>
|
||||
</div>
|
||||
<uni-forms :model="taskInfo" label-width="160rpx" :border="true">
|
||||
<uni-forms-item label="退料单位:" name="unitName">
|
||||
|
|
@ -46,7 +49,7 @@
|
|||
<uni-tr v-for="(item,index) in typeList" :key="item.id">
|
||||
<uni-td style="font-size: 24rpx;text-align: center;">{{item.typeName}}</uni-td>
|
||||
<uni-td style="font-size: 24rpx;text-align: center;">{{item.typeModel}}</uni-td>
|
||||
<uni-td style="font-size: 24rpx;text-align: center;">{{item.num}}</uni-td>
|
||||
<!-- <uni-td style="font-size: 24rpx;text-align: center;">{{item.num}}</uni-td> -->
|
||||
<uni-td style="font-size: 24rpx;text-align: center;">
|
||||
<span>{{item.preNum}}</span>
|
||||
</uni-td>
|
||||
|
|
@ -88,6 +91,12 @@ const getDetails = async () => {
|
|||
const res = await getDetailsByIdApi(param)
|
||||
detailInfo.value=res.data[0]
|
||||
}
|
||||
|
||||
const goToWork = () => {
|
||||
uni.switchTab({
|
||||
url: '/pages/work/index'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
onLoad((options)=>{
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ const goNum = () => {
|
|||
uni.navigateTo({ url: `/pages/back/backNum?taskInfo=${JSON.stringify(taskInfo.value)}` })
|
||||
}
|
||||
const onClick = (e, item, itemIndex) => {
|
||||
item.appTaskStatus = appTaskStatus.value
|
||||
const { index } = e
|
||||
// 1. 查看
|
||||
if (index === 0) {
|
||||
|
|
|
|||
|
|
@ -18,14 +18,15 @@
|
|||
">
|
||||
查询
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 15px;">
|
||||
<button type="primary" size="mini" class="btn-cont" @click="onQrCode"
|
||||
style="margin-left: 8px;background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%);
|
||||
style="margin-left: 8px;background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%);width: 45%
|
||||
">
|
||||
二维码
|
||||
</button>
|
||||
<button type="primary" size="mini" class="btn-cont" @click="openCamera"
|
||||
style="margin-left: 8px;background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%);
|
||||
style="margin-left: 8px;background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%);width: 45%
|
||||
">
|
||||
OCR
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -255,12 +255,12 @@ const rejectNumInBound = async () => {
|
|||
pendingInputNum:inputItem.value.pendingInputNum,
|
||||
rejectNum:rejectBoundNum.value
|
||||
}
|
||||
// const res = await rejectWarehouseApi(param)
|
||||
// if(res.code==200){
|
||||
// uni.showToast({ title: '驳回成功!',icon: 'none'})
|
||||
// getDetailsData()
|
||||
// rejectNumPopup.value.close();
|
||||
// }
|
||||
const res = await rejectWarehouseApi(param)
|
||||
if(res.code==200){
|
||||
uni.showToast({ title: '驳回成功!',icon: 'none'})
|
||||
getDetailsData()
|
||||
rejectNumPopup.value.close();
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ rejectNumInBound ~ error:', error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue