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"
: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>
<slot name="foorter"></slot>
<ButtonBase :Butttondata="[
@ -21,18 +21,23 @@
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableFormAdjustment from './TableFormAdjustment.vue'
const tableFormAdjustment = ref()
const dialogVisible = ref(false)
const rowData = ref({})
const open = (row)=>{
const adjustmentData = ref({})
const open = (row,adjustmentData)=>{
dialogVisible.value = true
nextTick(()=>{
rowData.value = row
tableFormAdjustment.value.setDetailData(adjustmentData)
})
}
const tableFormAdjustment = ref()
/** 按钮事件 */
const buttonBaseClick = (val) => {
if (val == 'save') {

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

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

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

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

Loading…
Cancel
Save