Compare commits

..

No commits in common. "b9d9e240f27876bfac52709897befed10234ca16" and "3a4ee9793e03b0769c446ef93ab167e993f832cf" have entirely different histories.

5 changed files with 69 additions and 82 deletions

View File

@ -9,7 +9,7 @@
class="single-fetch" class="single-fetch"
v-for="(fetch, index) in fetchMaterialList" v-for="(fetch, index) in fetchMaterialList"
:key="index" :key="index"
@click="optionClick($event, fetch.id, fetch.modelId)" @click="optionClick($event, fetch.id)"
> >
<view class="fetch-upper"> <view class="fetch-upper">
<!-- {{ fetch.taskStatus }} --> <!-- {{ fetch.taskStatus }} -->
@ -124,10 +124,10 @@ import { basePath } from '../../public'
} }
}, },
methods: { methods: {
optionClick (e, id, modelId) { optionClick (e, id) {
console.log(id); console.log(id);
uni.navigateTo({ uni.navigateTo({
url: `/pages/seeBackMaterialDetail/seeBackMaterialDetail?id=${id}&typeId=${modelId}` url: `/pages/seeBackMaterialDetail/seeBackMaterialDetail?id=${id}`
}) })
}, },
seeDetail (item) { seeDetail (item) {

View File

@ -91,15 +91,13 @@
<uni-icons <uni-icons
style="color: #AAAAAA; font-weight: bold;" style="color: #AAAAAA; font-weight: bold;"
type="closeempty" type="closeempty"
size="32"
@click="closePopup" @click="closePopup"
> >
</uni-icons> </uni-icons>
</view> </view>
<h4 style="width: 85%; margin: 2vh auto; font-weight: normal; text-align: center;">是否通过审批</h4>
<view class="select-area"> <view class="select-area">
<view @click="modalConfirm">通过</view> <uni-forms ref="examForm" :modelValue="examFormData" :rules="rules" label-position="top">
<view @click="modalReject">驳回</view>
<!-- <uni-forms ref="examForm" :modelValue="examFormData" :rules="rules" label-position="top">
<uni-forms-item name="ifPass" required label="是否通过" label-width="150"> <uni-forms-item name="ifPass" required label="是否通过" label-width="150">
<uni-data-select <uni-data-select
v-model="examFormData.ifPass" v-model="examFormData.ifPass"
@ -112,7 +110,7 @@
<uni-easyinput type="textarea" v-model="examFormData.noPassReason" placeholder="请输入内容"></uni-easyinput> <uni-easyinput type="textarea" v-model="examFormData.noPassReason" placeholder="请输入内容"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
<button class="submit-btn" @click="formSubmit">确认</button> <button class="submit-btn" @click="formSubmit">确认</button>
</uni-forms> --> </uni-forms>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
@ -210,8 +208,7 @@
for (let i = 0; i < that.taskIdList.length; i++) { for (let i = 0; i < that.taskIdList.length; i++) {
that.subArr.push(that.taskIdList[i].taskId) that.subArr.push(that.taskIdList[i].taskId)
} }
that.openPopup() uni.showModal({
/* uni.showModal({
title: '审核通过', title: '审核通过',
content: '确认审核通过吗?', content: '确认审核通过吗?',
confirmText: '通过', confirmText: '通过',
@ -225,7 +222,7 @@
that.subInStore(that.subObj) that.subInStore(that.subObj)
} }
} }
}) */ })
} }
}, },
subInStore (obj) { subInStore (obj) {
@ -238,7 +235,9 @@
icon: 'none', icon: 'none',
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
that.closePopup() /* uni.redirectTo({
url: '/pages/repairTestInStore/repairTestInStore'
}) */
uni.redirectTo({ uni.redirectTo({
url: '/pages/crashExam/crashExam' url: '/pages/crashExam/crashExam'
}) })
@ -252,29 +251,12 @@
} }
}) })
}, },
openPopup () {
this.$refs.popup.open()
},
closePopup () { closePopup () {
this.$refs.popup.close() this.$refs.popup.close()
}, },
modalConfirm () { seeExam (name) {
let that = this console.log(name);
that.subObj = { this.$refs.popup.open()
checkResult: '通过',
taskIdList: that.taskIdList
}
console.log(that.subObj);
that.subInStore(that.subObj)
},
modalReject () {
let that = this
that.subObj = {
checkResult: '驳回',
taskIdList: that.taskIdList
}
console.log(that.subObj);
that.subInStore(that.subObj)
}, },
formSubmit () { formSubmit () {
let that = this let that = this
@ -472,7 +454,7 @@
} }
.popup{ .popup{
width: 80vw; width: 80vw;
height: 20vh; height: 60vh;
background-color: #fff; background-color: #fff;
border-radius: 15rpx; border-radius: 15rpx;
overflow: hidden; overflow: hidden;
@ -489,16 +471,9 @@
.select-area{ .select-area{
width: 85%; width: 85%;
margin: 40rpx auto; margin: 40rpx auto;
display: flex; .submit-btn{
justify-content: space-around; background-color: #409EFF;
align-items: center;
view{
box-sizing: border-box;
font-size: 30rpx;
padding: 12rpx 24rpx;
background-color: #3788FF;
color: #fff; color: #fff;
border-radius: 20rpx;
} }
} }
} }

View File

@ -201,6 +201,43 @@
}) })
} }
/* if (!this.lowerIpt.passedNum && !this.lowerIpt.waitRepairNum && !this.lowerIpt.waitCrashNum) {
uni.showToast({
icon: 'none',
title: '请至少填写一个数据!'
})
return
}
that.totalNum = Number(that.lowerIpt.passedNum) + Number(that.lowerIpt.waitRepairNum) + Number(that
.lowerIpt.waitCrashNum)
console.log(that.totalNum);
if (that.totalNum > that.upperInfo.num) {
uni.showToast({
icon: 'none',
title: '接收总量不能大于退库数量!'
})
} else if (that.totalNum == 0) {
uni.showToast({
icon: 'none',
title: '请确保退料总量不为0'
})
} else {
console.log(this.handleSubmitData());
that.$api.backMaterialReceive.backMaterialSetNumBack({
taskId: this.upperInfo.taskId,
arr: this.handleSubmitData()
}).then(res => {
console.log("res===", res)
uni.showToast({
icon: 'none',
title: '接收成功'
})
setTimeout(() => {
uni.navigateBack()
},
300)
})
} */
}, },
handleSubmitData() { handleSubmitData() {
let list = [] let list = []

View File

@ -49,7 +49,7 @@
}, },
onLoad(params) { onLoad(params) {
let that = this let that = this
console.log(params.id, params.typeId); console.log(params.id);
// 退 // 退
that.$api.backMaterialReceive.seeBackMaterialDetail({ that.$api.backMaterialReceive.seeBackMaterialDetail({
parentId: params.id parentId: params.id

View File

@ -87,15 +87,13 @@
<uni-icons <uni-icons
style="color: #AAAAAA; font-weight: bold;" style="color: #AAAAAA; font-weight: bold;"
type="closeempty" type="closeempty"
size="32"
@click="closePopup" @click="closePopup"
> >
</uni-icons> </uni-icons>
</view> </view>
<h4 style="width: 85%; margin: 2vh auto; font-weight: normal; text-align: center;">是否通过审批</h4>
<view class="select-area"> <view class="select-area">
<view @click="modalConfirm">通过</view> <uni-forms ref="examForm" :modelValue="examFormData" :rules="rules" label-position="top">
<view @click="modalReject">驳回</view>
<!-- <uni-forms ref="examForm" :modelValue="examFormData" :rules="rules" label-position="top">
<uni-forms-item name="ifPass" required label="是否通过" label-width="150"> <uni-forms-item name="ifPass" required label="是否通过" label-width="150">
<uni-data-select <uni-data-select
v-model="examFormData.ifPass" v-model="examFormData.ifPass"
@ -108,7 +106,7 @@
<uni-easyinput type="textarea" v-model="examFormData.noPassReason" placeholder="请输入内容"></uni-easyinput> <uni-easyinput type="textarea" v-model="examFormData.noPassReason" placeholder="请输入内容"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
<button class="submit-btn" @click="formSubmit">确认</button> <button class="submit-btn" @click="formSubmit">确认</button>
</uni-forms> --> </uni-forms>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
@ -206,8 +204,7 @@
for (let i = 0; i < that.taskIdList.length; i++) { for (let i = 0; i < that.taskIdList.length; i++) {
that.subArr.push(that.taskIdList[i].taskId) that.subArr.push(that.taskIdList[i].taskId)
} }
that.openPopup() uni.showModal({
/* uni.showModal({
title: '审核通过', title: '审核通过',
content: '确认审核通过吗?', content: '确认审核通过吗?',
confirmText: '通过', confirmText: '通过',
@ -221,7 +218,7 @@
that.subInStore(that.subObj) that.subInStore(that.subObj)
} }
} }
}) */ })
} }
}, },
subInStore (obj) { subInStore (obj) {
@ -234,7 +231,9 @@
icon: 'none', icon: 'none',
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
that.closePopup() /* uni.redirectTo({
url: '/pages/repairTestInStore/repairTestInStore'
}) */
uni.redirectTo({ uni.redirectTo({
url: '/pages/testExam/testExam' url: '/pages/testExam/testExam'
}) })
@ -248,29 +247,12 @@
} }
}) })
}, },
openPopup () {
this.$refs.popup.open()
},
closePopup () { closePopup () {
this.$refs.popup.close() this.$refs.popup.close()
}, },
modalConfirm () { seeExam (name) {
let that = this console.log(name);
that.subObj = { this.$refs.popup.open()
checkResult: '通过',
taskIdList: that.subArr
}
console.log(that.subObj);
that.subInStore(that.subObj)
},
modalReject () {
let that = this
that.subObj = {
checkResult: '驳回',
taskIdList: that.taskIdList
}
console.log(that.subObj);
that.subInStore(that.subObj)
}, },
formSubmit () { formSubmit () {
let that = this let that = this
@ -468,7 +450,7 @@
} }
.popup{ .popup{
width: 80vw; width: 80vw;
height: 20vh; height: 60vh;
background-color: #fff; background-color: #fff;
border-radius: 15rpx; border-radius: 15rpx;
overflow: hidden; overflow: hidden;
@ -485,16 +467,9 @@
.select-area{ .select-area{
width: 85%; width: 85%;
margin: 40rpx auto; margin: 40rpx auto;
display: flex; .submit-btn{
justify-content: space-around; background-color: #409EFF;
align-items: center;
view{
box-sizing: border-box;
font-size: 30rpx;
padding: 12rpx 24rpx;
background-color: #3788FF;
color: #fff; color: #fff;
border-radius: 20rpx;
} }
} }
} }