소스 검색

超节损优化

zck 1 년 전
부모
커밋
9c76211ba9
2개의 변경된 파일27개의 추가작업 그리고 7개의 파일을 삭제
  1. 19 3
      src/view/performance/12-orderAccounting/componets/detail.vue
  2. 8 4
      src/view/performance/12-orderAccounting/index.vue

+ 19 - 3
src/view/performance/12-orderAccounting/componets/detail.vue

@@ -21,7 +21,16 @@
           placeholder="Enter回车"
         />
       </el-form-item>
-
+      <el-form-item
+        label="印件号"
+      >
+        <el-input
+          v-model="yjno"
+          style="width: 120px;"
+          @keyup.enter="handleShowDetail"
+          placeholder="Enter回车"
+        />
+      </el-form-item>
       <el-table
         :data="detailData"
         border
@@ -140,11 +149,17 @@ const props = defineProps({
     type: String,
     default: '',
   },
+  yjno: {
+    type: Number,
+    default: '',
+  },
 })
 const emits = defineEmits(['destroy'])
 const detailData = ref([])
 const input = ref(props['gdbh'])
-
+const yjno = ref(props['yjno'])
+console.log(yjno)
+console.log(122)
 const handleShowDetail = async() => {
   if (!input.value) {
     ElMessage({
@@ -153,7 +168,8 @@ const handleShowDetail = async() => {
     })
     return
   }
-  const res = await getOrderGy({ order: input.value })
+
+  const res = await getOrderGy({ order: input.value ,yjno:yjno.value})
   if (res['code'] === 0) {
     const { data } = res
     detailData.value = data.map(item => ({

+ 8 - 4
src/view/performance/12-orderAccounting/index.vue

@@ -35,7 +35,9 @@
           <!-- 弹窗 -->
           <div>
             <!-- 查改 -->
-            <Detail v-if="dialogDetail" :is-show="dialogDetail" :gdbh="gdbh"@destroy="() => {dialogDetail = false;}"/>
+            <Detail v-if="dialogDetail" :is-show="dialogDetail" :gdbh="gdbh"
+            :yjno="yjno"
+            @destroy="() => {dialogDetail = false;}"/>
 
             <!-- 工单超节损统计 -->
             <el-dialog v-model="dialogGdcjstj"  title="工单超节损统计" destroy-on-close >
@@ -55,7 +57,7 @@
             </el-dialog>
 
             <!-- 修正工单印件质量考核设置 -->
-            <Khsz v-if="dialogKhsz" v-model="dialogKhsz" :gdbh="gdbh" />
+            <Khsz v-if="dialogKhsz" v-model="dialogKhsz" :gdbh="gdbh" :yjno="yjno" />
 
             <!-- 修正工单投料 -->
             <Xzgdtl v-if="dialogXzgdtl" v-model="dialogXzgdtl" @update-data = "exitXzgdtl" :gdbh="gdbh" :yjno="yjno"/>
@@ -396,9 +398,11 @@ const handleNodeClick = async(node) => {
 
 // 显示下方表格
 const showOrderSuperLossGy = async() => {
-  // jjcp_yjno.value  =  currentRow.value['jjcp_yjno']
+  jjcp_yjno.value  =  currentRow.value['jjcp_yjno']
   const { Gd_gdbh: order } = currentRow.value
-  const res = await getOrderSuperLossGy({ order })
+  const yjno = jjcp_yjno.value
+  console.log(yjno)
+  const res = await getOrderSuperLossGy({ order,yjno })
   if (res.code === 0) {
     const { data } = res
     tableData2.value = data.map((item) => ({