diff --git a/src/views/oa_Initiate/detail.vue b/src/views/oa_Initiate/detail.vue index 8a02b77..802100d 100644 --- a/src/views/oa_Initiate/detail.vue +++ b/src/views/oa_Initiate/detail.vue @@ -146,7 +146,6 @@ let props = defineProps({ }) - let fromValue=ref({}) const getFormValue=()=>{ if(props.typeName=='请假')fromValue.value=qja; @@ -171,30 +170,8 @@ const getFormValue=()=>{ if(props.typeName=='转岗')fromValue.value=zga; if(props.typeName=='招聘需求')fromValue.value=zpxqa; if(props.typeName=='通用审批')fromValue.value=tyspa; -console.log(fromValue.value) } - - - - - - - - - - - - - - - - - - - - - getFormValue() const emit = defineEmits(['close', 'reEdit']) const popupRef = shallowRef>() @@ -308,7 +285,7 @@ const showTextarea = () => { //重新编辑 const reEdit = () => { - emit('reEdit', { extends: formData.extends, flow_info: formData.flow_info }) + emit('reEdit', { extends: formData.extends,typeName:props.typeName,cate:formData.flow_info.flow_cate }) } defineExpose({ diff --git a/src/views/oa_Initiate/edit.vue b/src/views/oa_Initiate/edit.vue index e04bc30..1f6e11e 100644 --- a/src/views/oa_Initiate/edit.vue +++ b/src/views/oa_Initiate/edit.vue @@ -113,7 +113,7 @@ const setFormData = async (data: Record) => { // 获取详情 const setExtend = async (data: Record) => { - extend.value = data + formData.extends=data }; diff --git a/src/views/oa_Initiate/index.vue b/src/views/oa_Initiate/index.vue index 63ad94b..f3e3ded 100644 --- a/src/views/oa_Initiate/index.vue +++ b/src/views/oa_Initiate/index.vue @@ -1,19 +1,22 @@ @@ -74,18 +77,6 @@ import EditPopup from './edit.vue' import detailPopup from './detail.vue' import { apiOaFlowTypeDetail } from '@/api/oa_flow_type' - - - - - - - - - - - - const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) @@ -127,7 +118,7 @@ const handDetail = async (row: any, data = {}) => { const reEdit = async (data) => { showDetail.value = false await nextTick() - handleEdit(data?.flow_info?.flow_cate, '', data.extends) + handleEdit(data.cate, data.typeName, data.extends) } // 删除 @@ -184,9 +175,9 @@ getTypeList() flex-wrap: wrap; .tit-li { - min-width: 60px; - padding: 0 5px; - // width: 60px; + // min-width: 60px; + // padding: 0 5px; + width: 60px; background: #FF8F4A; color: white; text-align: center; diff --git a/src/views/oa_arrival/edit.vue b/src/views/oa_arrival/edit.vue index 93a6e22..1ce48ae 100644 --- a/src/views/oa_arrival/edit.vue +++ b/src/views/oa_arrival/edit.vue @@ -93,7 +93,9 @@ 保存到账记录 重置 - 全部到账 + 剩余部分全到账 + 全部到账 + 全部反到账 @@ -173,7 +175,10 @@ const handDel = (i) => { detail.value.splice(i, 1) } const submit = async () => { - await apiInvlicevAdd({ invoice_id: formData.id, detail: detail.value }) + if(detail.value.length){ + await apiInvlicevAdd({ invoice_id: formData.id, detail: detail.value }) + + } emit("success"); } @@ -189,16 +194,24 @@ const reset = () => { } const allSubmits = async () => { + let data= { invoice_id: formData.id, detail: [{ amount:formData.amount, enter_time: times.value, remarks: '' }]} + if(formData.is_cash==1){ + detail.value.push({ amount:(+formData.amount) - (+formData.enter_amount), enter_time: times.value, remarks: '' }) + data.detail=detail.value + } await apiInvlicevAdd( { - invoice_id: formData.id, detail: [{ amount: formData.amount, enter_time: times.value, remarks: '' }] + ...data } ) emit("success"); - } +const fdz=()=>{ + // console.log() + alert("饭到账") +} // 显示 diff --git a/src/views/oa_flow_type/index.vue b/src/views/oa_flow_type/index.vue index 3fe3708..73210de 100644 --- a/src/views/oa_flow_type/index.vue +++ b/src/views/oa_flow_type/index.vue @@ -21,7 +21,7 @@ - +
@@ -38,6 +38,9 @@ + + +