| | |
| | | request.post(`/processCard/selectPrintProjectDetails/${projectNo}`).then((res) => { |
| | | |
| | | if (res.code == 200) { |
| | | xGrid.value.loadData(res.data.data) |
| | | xGrid.value.reloadData(res.data.data) |
| | | gridOptions.loading = false |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {code: 'printLabel3', name: t('basicData.print'), status: 'primary'}, |
| | | {code: 'printSmallPiece', name: t('小片打印'), status: 'primary'}, |
| | | ], |
| | | zoom: true, |
| | | custom: true |
| | |
| | | lastList.value = [] |
| | | dialogTableVisibleLabelProject.value = true |
| | | } |
| | | break |
| | | } |
| | | case 'printSmallPiece': { |
| | | if (selectRecords === null || selectRecords === '' || selectRecords.length === 0) { |
| | | ElMessage.warning(t('processCard.projectMsg1')) |
| | | return |
| | | } |
| | | let stock_id=[] |
| | | for (let i=0;i<selectRecords.length;i++){ |
| | | stock_id.push(selectRecords[i].stock_id) |
| | | } |
| | | console.log(stock_id) |
| | | router.push({path: '/main/processCard/printProjectDetailSmallPiece', query: {projectNo: projectNo,stockId:JSON.stringify(stock_id)}}) |
| | | break |
| | | } |
| | | } |
| | |
| | | destroy-on-close |
| | | style="width: 80%;height:75% "> |
| | | <template #header="{ close, titleId, titleClass }"> |
| | | <el-button :icon="Printer" circle @click="printObjectProcess(1)"/> |
| | | <el-button @click="printObjectProcess(3)" >{{ $t('processCard.noTitle') }}</el-button> |
| | | <!-- <el-button :icon="Printer" circle @click="printObjectProcess(1)"/>--> |
| | | <!-- <el-button @click="printObjectProcess(3)" >{{ $t('processCard.noTitle') }}</el-button>--> |
| | | <el-tooltip |
| | | class="box-item" |
| | | effect="dark" |
| | | :content="$t('processCard.yesTitle')" |
| | | placement="top" |
| | | > |
| | | <el-button :icon="Printer" circle @click="printObjectProcess(1)"/> |
| | | </el-tooltip> |
| | | <el-tooltip |
| | | class="box-item" |
| | | effect="dark" |
| | | :content="$t('processCard.noTitle')" |
| | | placement="top" |
| | | > |
| | | <el-button @click="printObjectProcess(3)"> |
| | | <i class="vxe-icon-print"></i> |
| | | </el-button> |
| | | </el-tooltip> |
| | | </template> |
| | | <print-custom-label-project id="childLabel" |
| | | |
| | | :detailType="labelRow.detailType" |
| | | :faceOrientation="labelRow.faceOrientation" |
| | | :lableType="labelRow.lableType" |