zongzhibin
2024-11-27 5e610f4c9d9870b393720bc5fcc856e97bc2ea4b
LA24030_LuLiPackageLine_Web/src/views/main/WmsOrder/kittingList/component/openAllprop.vue
@@ -258,11 +258,11 @@
         </template>
      </el-dialog>
      <!-- 单详情 -->
      <el-drawer v-model="drawerVisible" :title="`${detailForm.poId}物料详情`" direction="rtl" size="80%" @close="handleDrawerClose">
      <el-drawer v-model="drawerVisible" :title="`${detailForm.poId}详情`" direction="rtl" size="80%" @close="handleDrawerClose">
         <template #title>
            <div class="slot_title">
               <div class="title_orderNo">{{ title }}</div>
               <div>物料详情</div>
               <div>详情</div>
            </div>
         </template>
@@ -281,7 +281,9 @@
                        <el-form-item label-width="20px">
                           <el-button type="primary" icon="el-icon-search" @click="getDetail">查询</el-button>
                           <el-button type="primary" icon="ele-Printer" @click="getPrint">打印</el-button>
                           <!-- <el-button type="primary" icon="ele-Printer" @click="getPrint">打印</el-button> -->
                           <el-button type="primary" style="margin-left: 5px" icon="ele-Printer" @click="handleHtmlPrint"> 打印 </el-button>
                        </el-form-item>
                     </el-col>
                  </el-row>
@@ -353,6 +355,9 @@
         </template>
      </el-dialog>
      <!-- 打印 -->
      <print-table-ckd ref="printTableRef"></print-table-ckd>
      <printDialogTestStudent ref="printDialogRefTestStudent" :title="printTestStudentTitle" @reloadTable="handleQueryTestStudent" />
   </div>
</template>
@@ -378,6 +383,7 @@
import { formatDate, formatDate_T_Date, formatDate_T_Time, defaultTimeRange } from '/@/utils/formatTime';
import commonFunction from '/@/utils/commonFunction';
import { handleSlectDataWmsBusinessType } from '/@/utils/selectData';
import printTableCkd from '/@/components/printTableCkd.vue';
// 推荐设置操作 width 为 200
import { hiprint } from 'vue-plugin-hiprint';
import { SysPrintApi } from '/@/api-services/api';
@@ -538,7 +544,6 @@
// const enumList: any = cache.getCache('enumList');
// console.log(enumList.inEnumOrderType);
//获取PO单列表
const getTabelData = () => {
   //判断创建时间是否有选择
@@ -619,22 +624,22 @@
// const
//单号
const purchaseNo = ref('');
const IsKitting = ref(false);
//打开抽屉
const openDrawer = async (type: number, scope: any = {}, entozhExcell?: any) => {
   detailForm.value.Page = 1; //bug:点编辑-再点详情
   detailForm.value.PageSize = 10; //bug:点编辑-再点详情
   if (scope.packageCode) {
      title.value = `${scope.packageCode}`;
   if (scope.orderId) {
      title.value = `${scope.orderId}`;
   }
   drawerType.value = 'drawerAll';
   drawerVisible.value = true;
   //当前入库单号id
   detailForm.value.orderId = scope.orderId;
   //入库单
   purchaseNo.value = scope.packageCode;
   purchaseNo.value = scope.orderId;
   debugger;
   detailForm.value.packageCode = scope.packageCode;
   detailForm.value.orderId = scope.orderId;
   //获取物料列表
   if (detailForm.value.poId == '') {
      drawerList.value = [];
@@ -1122,6 +1127,12 @@
   };
   printDialogRefTestStudent.value.showDialog(new hiprint.PrintTemplate({ template: template }), row, template.panels[0].width);
};
// 打印
let itemSubTitle = ref<any[]>([]);
const handleHtmlPrint = () => {
   var title = IsKitting.value == true ? '齐套清单' : '缺套清单';
   proxy.$refs['printTableRef'].printHd(title, itemSubTitle.value, drawerList.value); //deltailList
};
// 暴露方法
defineExpose({ openDialog, openDrawer });