Browse Source

工单超节损核算-修正工单投料修改’

git commit -m 工单超节损核算-修正工单投料修改’
WizDax 1 year ago
parent
commit
8c1902b303

+ 5 - 5
src/view/performance/12-orderAccounting/componets/xzgdtl.vue

@@ -149,18 +149,18 @@ const updateOrderFeed = (data) => {
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { watch, ref, reactive, defineProps, defineEmits, onBeforeUnmount } from 'vue'
 
-const props = defineProps(['modelValue', 'date'])
+const props = defineProps(['modelValue', 'gdbh','yjno'])
 const emits = defineEmits(['update:modelValue'])
 const tableData = ref([])
 const table = ref(null)
 const multipleSelection = ref([])
 const getTable = async() => {
   let params
-  if (props?.['date']) {
-    const { date } = props
+  if (props?.['gdbh']) {
+    const { gdbh,yjno } = props
     params = {
-      year: date.slice(0, 4),
-      month: date.slice(4, 6),
+      workorder: gdbh,
+      yjno: yjno,
     }
   } else {
     return

+ 5 - 2
src/view/performance/12-orderAccounting/index.vue

@@ -173,7 +173,8 @@
             <Xzgdtl
               v-if="dialogXzgdtl"
               v-model="dialogXzgdtl"
-              :date="date"
+              :gdbh="gdbh"
+              :yjno="yjno"
             />
 
             <!-- 工序产量核查 -->
@@ -516,11 +517,13 @@ const tableData2 = ref([])
 const currentRow = ref({})
 const gdbh = ref('')
 const date = ref('')
+const yjno = ref ('')
 const searchInfo = ref('')
 
 watch(currentRow, (value, oldValue, onCleanup) => {
   gdbh.value = value?.['Gd_gdbh']
   date.value = value?.['date']
+  yjno.value = value?.['yj_Yjno']
   pd_lcdformData['gdbh'] = value?.['Gd_gdbh']
 })
 
@@ -538,7 +541,7 @@ const handleNodeClick = async(node) => {
           : '',
       date: date,
     }))
-    console.log(res.data)
+    console.log(tableData1.value )
   } else {
     // console.log(node.date, node.code)
   }