新购验收一级无分页
This commit is contained in:
parent
b9e1efc76f
commit
9d54b58253
|
|
@ -2,9 +2,7 @@
|
||||||
<!-- 新购验收详情 -->
|
<!-- 新购验收详情 -->
|
||||||
<view class="accept page-common">
|
<view class="accept page-common">
|
||||||
<uni-search-bar @confirm="search" v-model="searchValue"></uni-search-bar>
|
<uni-search-bar @confirm="search" v-model="searchValue"></uni-search-bar>
|
||||||
|
<div class="table-list-item"
|
||||||
<div
|
|
||||||
class="table-list-item"
|
|
||||||
v-for="(item, index) in tableList"
|
v-for="(item, index) in tableList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="handleItem(item)">
|
@click="handleItem(item)">
|
||||||
|
|
@ -99,6 +97,7 @@ onShow(()=>{
|
||||||
.accept {
|
.accept {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
overflow-y: auto;
|
||||||
.complete-btn {
|
.complete-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
|
@ -132,7 +131,7 @@ onShow(()=>{
|
||||||
}
|
}
|
||||||
.table-list-item {
|
.table-list-item {
|
||||||
margin: 20rpx 0;
|
margin: 20rpx 0;
|
||||||
padding: 40rpx;
|
padding: 20rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
min-height: 300rpx;
|
min-height: 300rpx;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<button class="btn-cont" @click="">取消</button>
|
<button class="btn-cont" @click="reject">不合格</button>
|
||||||
<button class="btn-cont" @click="pass">合格</button>
|
<button class="btn-cont" @click="pass">合格</button>
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -45,7 +45,7 @@ import { onLoad } from '@dcloudio/uni-app'
|
||||||
import { innerVerify } from '../../../services/purchase.js';
|
import { innerVerify } from '../../../services/purchase.js';
|
||||||
const formData = ref({})
|
const formData = ref({})
|
||||||
const checkResult = ref("")
|
const checkResult = ref("")
|
||||||
|
//合格
|
||||||
const pass = () => {
|
const pass = () => {
|
||||||
let obj = {
|
let obj = {
|
||||||
"taskId":formData.value.taskId,
|
"taskId":formData.value.taskId,
|
||||||
|
|
@ -63,7 +63,37 @@ const pass = () => {
|
||||||
innerVerify(param).then(res => {
|
innerVerify(param).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
uni.showToast({ title: '验证成功', icon: 'none' })
|
uni.showToast({ title: '验收成功', icon: 'none' })
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1 // 返回到已存在的页面
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
uni.showToast({ title: res.msg, icon: 'none' })
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(error => {
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//不合格
|
||||||
|
const reject = () => {
|
||||||
|
let obj = {
|
||||||
|
"taskId":formData.value.taskId,
|
||||||
|
"typeId":formData.value.typeId,
|
||||||
|
"manageType":formData.value.manageType,
|
||||||
|
"status":1,
|
||||||
|
"checkResult":checkResult.value,
|
||||||
|
}
|
||||||
|
console.log(obj)
|
||||||
|
let param = {
|
||||||
|
purchaseCheckDetailsList:[obj],
|
||||||
|
verifyPass:false
|
||||||
|
}
|
||||||
|
console.log(param)
|
||||||
|
innerVerify(param).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
if(res.code==200){
|
||||||
|
uni.showToast({ title: '操作成功', icon: 'none' })
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1 // 返回到已存在的页面
|
delta: 1 // 返回到已存在的页面
|
||||||
});
|
});
|
||||||
|
|
@ -75,8 +105,6 @@ const pass = () => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onLoad((options)=>{
|
onLoad((options)=>{
|
||||||
console.log(options)
|
console.log(options)
|
||||||
formData.value = JSON.parse(options.item)
|
formData.value = JSON.parse(options.item)
|
||||||
|
|
|
||||||
|
|
@ -67,10 +67,10 @@
|
||||||
><div class="cont">{{ item.purchaseMaNumber }}</div></uni-col
|
><div class="cont">{{ item.purchaseMaNumber }}</div></uni-col
|
||||||
>
|
>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row :gutter="24">
|
<!-- <uni-row :gutter="24">
|
||||||
<uni-col :span="6">验收数量:</uni-col>
|
<uni-col :span="6">验收数量:</uni-col>
|
||||||
<uni-col :span="18"><div class="cont"></div></uni-col>
|
<uni-col :span="18"><div class="cont"></div></uni-col>
|
||||||
</uni-row>
|
</uni-row> -->
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue