| | |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-tooltip class="item" effect="dark" content="打印工单" placement="top"> |
| | | <!-- <i--> |
| | | <!-- class="el-icon-tickets"--> |
| | | <!-- style="cursor: pointer;color: #42b983;margin-right: 15px"--> |
| | | <!-- @click="check(row)"--> |
| | | <!-- />--> |
| | | <i |
| | | class="el-icon-tickets" |
| | | style="cursor: pointer;color: #42b983;margin-right: 15px" |
| | |
| | | style="cursor: pointer;color: #42b983;margin-right: 15px" |
| | | @click="supplementSmallClick(row)" |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="预览" placement="top"> |
| | | <i class="el-icon-files" style="cursor: pointer;color:#42b983;" @click="check(row)" /> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="文件预览" |
| | | :visible.sync="dialogVisibleCheck" |
| | | width="800px" |
| | | :close-on-click-modal="false" |
| | | top="15vh" |
| | | @closed="handleCloseCheck" |
| | | @close="handleCloseCheck" |
| | | > |
| | | <el-form label-width="80px"> |
| | | <el-form-item label="文件版本"> |
| | | <el-select |
| | | v-model="sopSelectValue" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | > |
| | | <el-option |
| | | v-for="item in sopSelectArr" |
| | | :key="item.id" |
| | | :label="item.define_name" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancelCheck">返 回</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="dialogVisibleConfirmCheck" |
| | | >预 览</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | AddUpdateMesOrder, |
| | | ClosedMesOrder, |
| | | DeleteMesOrder, ErpOrderSearch, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, |
| | | MesOrderSearch, PartSelectRoute, RouteSelectWkshop, SearchWorkStep, SearchWorkStepSopList, |
| | | SelectRouteStep |
| | | } from '@/api/scgl' |
| | | import { InventoryFileAssociationRoute, PartSelect, SaveInventoryFile } from '@/api/zzmx' |
| | |
| | | import { urlAddRandomNo, webapp_ws_ajax_run, webapp_ws_autoupdate } from '@/utils/grwebapp' |
| | | import QRCode from 'qrcodejs2' |
| | | import $ from 'jquery' |
| | | import { SystemSopView } from '@/api/xtsz' |
| | | |
| | | export default { |
| | | name: 'GD', |
| | |
| | | disabledDate(time) { |
| | | return time.getTime() < Date.now() - 8.64e7 |
| | | } |
| | | } |
| | | }, |
| | | /* 文件预览部分*/ |
| | | dialogVisibleCheck: false, |
| | | sopSelectArr: [], // sop下拉选项数组 |
| | | sopSelectValue: ''// sop下拉选中值 |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.wkshopArr = res2 |
| | | this.dialogForm.wkshopcode = '' |
| | | }, |
| | | // 工序任务 |
| | | // 预览 |
| | | async check(row) { |
| | | const { data: res } = await SearchWorkStep({ wo_code: row.wo_code }) |
| | | this.taskTableData = res |
| | | |
| | | if (this.taskTableData.length === 0) { |
| | | return this.$message.info('无生产任务数据!') |
| | | this.dialogVisibleCheck = true |
| | | const data = { |
| | | partcode: row.partcode, |
| | | routecode: this.tableData.find(i => i.wo_code === this.radioSelected).route_code, |
| | | stepcode: row.stepcode |
| | | } |
| | | this.dialogForm.mesordercode = res[0].wo_code |
| | | this.dialogVisibleTask = true |
| | | const { data: res } = await SearchWorkStepSopList(data) |
| | | this.sopSelectArr = res |
| | | this.sopSelectValue = res[0].id |
| | | }, |
| | | // 预览关闭 |
| | | handleCloseCheck() { |
| | | this.sopSelectValue = '' |
| | | }, |
| | | // 预览返回 |
| | | dialogVisibleCancelCheck() { |
| | | this.dialogVisibleCheck = false |
| | | }, |
| | | // 预览新开浏览器页签 |
| | | async dialogVisibleConfirmCheck() { |
| | | const { data: res } = await SystemSopView({ id: this.sopSelectValue, filepath: this.sopSelectArr.find(i => i.id === this.sopSelectValue).file_path }) |
| | | window.open(res) |
| | | }, |
| | | |
| | | dialogVisibleBack() { |
| | | this.dialogVisibleTask = false |
| | | }, |