Browse Source

回函录入

hella_online_20240829
wangyufei 4 months ago
parent
commit
a39cd379d5
  1. 11
      src/components/TableFormAdjustment/src/AdjustmentDialog.vue
  2. 8
      src/components/TableFormAdjustment/src/TableFormAdjustment.vue
  3. 4
      src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue

11
src/components/TableFormAdjustment/src/AdjustmentDialog.vue

@ -5,7 +5,7 @@
v-model="dialogVisible" v-model="dialogVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<TableFormAdjustment ref="tableFormAdjustment" :rowData="rowData" :isDetail="false" @updateList="updateList"/> <TableFormAdjustment ref="tableFormAdjustment" :rowData="rowData" :adjustmentData="adjustmentData" :isDetail="false" @updateList="updateList"/>
<template #footer> <template #footer>
<slot name="foorter"></slot> <slot name="foorter"></slot>
<ButtonBase :Butttondata="[ <ButtonBase :Butttondata="[
@ -21,18 +21,23 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableFormAdjustment from './TableFormAdjustment.vue' import TableFormAdjustment from './TableFormAdjustment.vue'
const tableFormAdjustment = ref()
const dialogVisible = ref(false) const dialogVisible = ref(false)
const rowData = ref({}) const rowData = ref({})
const open = (row)=>{ const adjustmentData = ref({})
const open = (row,adjustmentData)=>{
dialogVisible.value = true dialogVisible.value = true
nextTick(()=>{ nextTick(()=>{
rowData.value = row rowData.value = row
tableFormAdjustment.value.setDetailData(adjustmentData)
}) })
} }
const tableFormAdjustment = ref()
/** 按钮事件 */ /** 按钮事件 */
const buttonBaseClick = (val) => { const buttonBaseClick = (val) => {
if (val == 'save') { if (val == 'save') {

8
src/components/TableFormAdjustment/src/TableFormAdjustment.vue

@ -191,12 +191,12 @@ const setTopHeaderData = ()=>{
if(props.isDetail){ if(props.isDetail){
// //
setDetailData() setDetailData(unref(props.adjustmentData))
} }
} }
const setDetailData = ()=>{
const setDetailData = (adjustmentData)=>{
// //
let adjustmentData = unref(props.adjustmentData)
if(adjustmentData?.subList){ if(adjustmentData?.subList){
bottomLeftTableData.value = adjustmentData?.subList?.map((item,index) => ({ bottomLeftTableData.value = adjustmentData?.subList?.map((item,index) => ({
index:index+1, index:index+1,
@ -444,7 +444,7 @@ const saveData = async ()=>{
const emit = defineEmits([ const emit = defineEmits([
'updateList', 'updateList',
]) ])
defineExpose({open,saveData}) defineExpose({open,saveData,setDetailData})
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.top{ .top{

4
src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue

@ -236,7 +236,9 @@ const handlePrint = async (row) => {
const adjustment = ref() const adjustment = ref()
// //
const handleReplyInput = async (row) => { const handleReplyInput = async (row) => {
adjustment.value.open(row) const res = await SupplierApbalanceMainApi.getSupplierApbalanceMain(row.id)
adjustment.value.open(row,res)
} }

Loading…
Cancel
Save