退料审核app修改
This commit is contained in:
parent
633d4188df
commit
9c8ffb390b
|
|
@ -44,7 +44,7 @@
|
||||||
<view
|
<view
|
||||||
style="background-color: #FCA30D;"
|
style="background-color: #FCA30D;"
|
||||||
v-show="exit.typeId == null"
|
v-show="exit.typeId == null"
|
||||||
@click="chooseMaterial(exit.agreementId, exit.id)"
|
@click="chooseMaterial(exit.agreementId, exit.id, exit.taskId)"
|
||||||
>
|
>
|
||||||
<uni-icons style="color: #fff;" type="compose" ></uni-icons>
|
<uni-icons style="color: #fff;" type="compose" ></uni-icons>
|
||||||
修改
|
修改
|
||||||
|
|
@ -227,7 +227,8 @@ import { basePath } from '../../public'
|
||||||
phone: '',
|
phone: '',
|
||||||
backTime: '',
|
backTime: '',
|
||||||
backPerson: '',
|
backPerson: '',
|
||||||
remark: ''
|
remark: '',
|
||||||
|
taskId: ''
|
||||||
},
|
},
|
||||||
fetchedList: [],
|
fetchedList: [],
|
||||||
ableRoleArr: ['admin', 'em04', 'me02', 'dm03'],
|
ableRoleArr: ['admin', 'em04', 'me02', 'dm03'],
|
||||||
|
|
@ -338,9 +339,9 @@ import { basePath } from '../../public'
|
||||||
url: `/pages/exitMaterialDetail/exitMaterialDetail?id=${id}&typeId=${typeId}`
|
url: `/pages/exitMaterialDetail/exitMaterialDetail?id=${id}&typeId=${typeId}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
chooseMaterial (agreeId, id) {
|
chooseMaterial (agreeId, id,taskId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/exitMaterialSelect/exitMaterialSelect?agreeId=${agreeId}&id=${id}`
|
url: `/pages/exitMaterialSelect/exitMaterialSelect?agreeId=${agreeId}&id=${id}&taskId=${taskId}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
delOffer (id) {
|
delOffer (id) {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@ import { basePath } from '../../public';
|
||||||
],
|
],
|
||||||
totalFine: '',
|
totalFine: '',
|
||||||
cartList: [],
|
cartList: [],
|
||||||
typeId: ''
|
typeId: '',
|
||||||
|
taskId:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -153,6 +154,7 @@ import { basePath } from '../../public';
|
||||||
// 提交退料清单
|
// 提交退料清单
|
||||||
that.$api.exitMaterial.subExitMaterial({
|
that.$api.exitMaterial.subExitMaterial({
|
||||||
typeId: that.typeId,
|
typeId: that.typeId,
|
||||||
|
taskId: this.taskId,
|
||||||
num: subList
|
num: subList
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,10 @@ import { basePath } from '../../public';
|
||||||
agreementId: '',
|
agreementId: '',
|
||||||
submitList: {
|
submitList: {
|
||||||
parentId: '',
|
parentId: '',
|
||||||
|
taskId:'',
|
||||||
backApplyDetails: ''
|
backApplyDetails: ''
|
||||||
}
|
},
|
||||||
|
taskId:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -173,12 +175,15 @@ import { basePath } from '../../public';
|
||||||
})
|
})
|
||||||
let set = new Set(setArr)
|
let set = new Set(setArr)
|
||||||
console.log(set.size);
|
console.log(set.size);
|
||||||
|
|
||||||
if (set.size == 1) {
|
if (set.size == 1) {
|
||||||
that.submitList.companyId = that.submitList.backApplyDetails[0].companyId
|
that.submitList.companyId = that.submitList.backApplyDetails[0].companyId
|
||||||
|
that.submitList.taskId = that.taskId
|
||||||
console.log(that.submitList);
|
console.log(that.submitList);
|
||||||
that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => {
|
that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: res.data.msg,
|
title: res.data.msg,
|
||||||
|
|
@ -234,6 +239,7 @@ import { basePath } from '../../public';
|
||||||
console.log(params);
|
console.log(params);
|
||||||
that.agreementId = params.agreeId
|
that.agreementId = params.agreeId
|
||||||
that.submitList.parentId = params.id
|
that.submitList.parentId = params.id
|
||||||
|
that.taskId = params.taskId
|
||||||
// 退料物料选择
|
// 退料物料选择
|
||||||
that.$api.exitMaterial.selectMaterial({
|
that.$api.exitMaterial.selectMaterial({
|
||||||
agreementId: params.agreeId
|
agreementId: params.agreeId
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue