feat(审批): 在提交审批请求数据中添加corpid字段
添加corpid字段到SubmitApprovalRequestData接口,并在提交表单时从wxStore中获取corpid值
This commit is contained in:
parent
089f78c836
commit
4bf21aa7f6
|
@ -3,6 +3,7 @@ export interface SubmitApprovalRequestData {
|
|||
returnQuantity: number
|
||||
returnImages: string
|
||||
returnRemark: string
|
||||
corpid: string
|
||||
}
|
||||
|
||||
export interface HandleApprovalRequestData {
|
||||
|
|
|
@ -19,7 +19,8 @@ const formData = ref<SubmitApprovalRequestData>({
|
|||
orderGoodsId: Number(route.query.orderGoodsId),
|
||||
returnQuantity: 1,
|
||||
returnImages: '',
|
||||
returnRemark: ''
|
||||
returnRemark: '',
|
||||
corpid: wxStore.corpid,
|
||||
})
|
||||
|
||||
watch(() => route.query.orderGoodsId, (newVal) => {
|
||||
|
@ -117,7 +118,8 @@ const handleSubmit = async () => {
|
|||
|
||||
submitting.value = true
|
||||
try {
|
||||
formData.value.returnImages = fileList.value.map(item => item.url).join(',')
|
||||
formData.value.returnImages = fileList.value.map(item => item.url).join(',');
|
||||
formData.value.corpid = wxStore.corpid;
|
||||
|
||||
const { code, data } = await submitApprovalApi(formData.value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue