| | |
| | | <div class="operationClass"> |
| | | <el-tooltip class="item" effect="dark" content="打印工序" placement="top"> |
| | | <i |
| | | v-if="tableDataDetail.length!==row.seq" |
| | | class="el-icon-printer" |
| | | :style="{color:$store.state.settings.theme}" |
| | | style="cursor: pointer;margin-right: 15px" |
| | | @click="supplementSmallClick(row)" |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip class="item" effect="dark" content="补打生产入库条码" placement="top"> |
| | | <i |
| | | v-if="tableDataDetail.length===row.seq" |
| | | class=" el-icon-camera" |
| | | :style="{color:$store.state.settings.theme}" |
| | | style="cursor: pointer;margin-right: 15px" |
| | | @click="getProductInHouseLabCode(row.wo_code)" |
| | | /> |
| | | </el-tooltip> |
| | | </div> |
| | |
| | | <!-- <el-button v-waves v-if="operation==='add'" type="primary" @click="dialogVisibleConfirmPreview('add')">预览</el-button>--> |
| | | |
| | | <el-button |
| | | v-if="!submitBottonIsDisabled" |
| | | v-if="!submitButtonIsDisabled" |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | |
| | | >确 定</el-button> |
| | | |
| | | <el-button |
| | | v-if="submitBottonIsDisabled" |
| | | v-if="submitButtonIsDisabled" |
| | | v-waves |
| | | type="primary" |
| | | disabled |
| | |
| | | </div> |
| | | <!-- 要打印的区域 --> |
| | | <!-- <div id="printMe2" :style="{paddingLeft:'10px',paddingTop: '5px'}">--> |
| | | <div id="printMe2" :style="printMe2StylePadding(printSize)"> |
| | | <div v-if="!isLastPrint" id="printMe2" :style="printMe2StylePadding(printSize)"> |
| | | <div |
| | | v-if="printSize===0" |
| | | style="display: flex;width: 280px;height: 160px;border: 1px solid #000;text-align: center;font-size: 10px;" |
| | |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="isLastPrint"> |
| | | 123 |
| | | </div> |
| | | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | |
| | | ClosedMesOrder, |
| | | DeleteMesOrder, MesBadOrderSearch, JobCreationSonAddVison, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, SelectRouteOrWkshop, |
| | | SelectRouteStep, AddMesOrderCodeSearch |
| | | SelectRouteStep, AddMesOrderCodeSearch, ProductInHouseLabCode |
| | | } from '@/api/produceManager' |
| | | import { InventoryFileAssociationRoute, PartSelect, SaveInventoryFile } from '@/api/makeModel' |
| | | import { handleDatetime, handleDatetime2, validateCode } from '@/utils/global' |
| | |
| | | return time.getTime() < Date.now() - 8.64e7 |
| | | } |
| | | }, |
| | | submitBottonIsDisabled: false |
| | | submitButtonIsDisabled: false, |
| | | |
| | | isLastPrint: false// 是否是末道打印 |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | |
| | | this.dialogForm.wkshopcode = '' |
| | | |
| | | this.submitBottonIsDisabled = false |
| | | this.submitButtonIsDisabled = false |
| | | }, |
| | | // 工艺路线值改变 |
| | | async routecodeChange(val) { |
| | |
| | | this.wkshopArr = res2 |
| | | this.dialogForm.wkshopcode = '' |
| | | |
| | | this.submitBottonIsDisabled = false |
| | | this.submitButtonIsDisabled = false |
| | | }, |
| | | // 生产车间值改变时 |
| | | wkshopcodeChange(val) { |
| | |
| | | // console.log(res, 1) |
| | | }).catch(err => { |
| | | // console.log(err, 2) |
| | | this.submitBottonIsDisabled = true |
| | | this.submitButtonIsDisabled = true |
| | | }) |
| | | }, |
| | | |
| | |
| | | |
| | | this.bomIdArr = [] |
| | | this.$refs.dialogForm.clearValidate() |
| | | this.submitBottonIsDisabled = false |
| | | this.submitButtonIsDisabled = false |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | |
| | | this.dialogVisible2 = true |
| | | console.log(this.qrForm, 1111) |
| | | }, |
| | | // 补打生产入库条码 |
| | | async getProductInHouseLabCode(ordercode) { |
| | | const res = await ProductInHouseLabCode({ ordercode }) |
| | | console.log(res) |
| | | this.isLastPrint = true |
| | | // 做一些打印多选的操作 |
| | | |
| | | this.dialogVisible2 = true |
| | | }, |
| | | dialogVisible2Close() { |
| | | this.qrForm.qrvalue = '' |
| | | this.qrForm.startqty = '' |
| | |
| | | this.qrForm.operator = '' |
| | | this.qrForm.operatorTime = '' |
| | | // this.$refs.qrCodeDiv2 = '' |
| | | this.isLastPrint = false |
| | | }, |
| | | // 生成二维码 工序标签二维码 |
| | | bindQRCode2(text) { |