| | |
| | | <el-button v-waves type="success" icon="el-icon-connection" @click="send">派发</el-button> |
| | | </div> |
| | | |
| | | <el-button v-waves icon="el-icon-switch-button" @click="orderClose">关闭工单</el-button> |
| | | <!-- <el-button v-waves icon="el-icon-switch-button" @click="orderClose">关闭工单</el-button>--> |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | |
| | | <el-form-item label="工单数量:" class="formContent"> |
| | | {{ formApprove.plan_qty }} |
| | | </el-form-item> |
| | | <el-form-item label="工艺路线:" class="formContent"> |
| | | {{ formApprove.routename }} |
| | | </el-form-item> |
| | | <!-- <el-form-item label="工艺路线:" class="formContent">--> |
| | | <!-- {{ formApprove.routename }}--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="打印人员:" class="formContent"> |
| | | {{ username }} |
| | | <!-- {{ localStorage.getItem('username') }}--> |
| | | {{ formApprove.routename }} |
| | | </el-form-item> |
| | | <el-form-item label="打印时间:" class="formContent"> |
| | | {{ formApprove.lm_date }} |
| | |
| | | import { PartSelect } from '@/api/ProductModel' |
| | | import { PrentOrganization, StepData } from '@/api/GeneralBasicData' |
| | | import Sortable from 'sortablejs' |
| | | import ElDragSelect from '@/components/DragSelect' // base on element-ui |
| | | import ElDragSelect from '@/components/DragSelect' |
| | | import { MesOrderPrintSearch } from '@/api/GridReport' // base on element-ui |
| | | |
| | | export default { |
| | | name: 'WorkOrderList', |
| | |
| | | // { code: 'CREATED', name: '已关闭' } |
| | | { code: 'ALLO', name: '已派发' }, |
| | | { code: 'START', name: '开工' }, |
| | | { code: 'CLOSED', name: '完工' }, |
| | | { code: 'NOSCHED', name: '待排程' }, |
| | | { code: 'SCHED', name: '已排程' } |
| | | { code: 'CLOSED', name: '完工' } |
| | | // { code: 'NOSCHED', name: '待排程' }, |
| | | // { code: 'SCHED', name: '已排程' } |
| | | ], |
| | | total: 10, |
| | | tableData: [], |
| | |
| | | }, |
| | | |
| | | selected(row, index) { |
| | | // && row.isstep === 'Y' //后端这个字段还没放出来 |
| | | if (row.status === 'NEW') { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | return row.status === 'NEW' && row.isstep === 'Y' |
| | | }, |
| | | // 派发 |
| | | send() { |
| | |
| | | // console.log(number) |
| | | |
| | | const data2 = { |
| | | username: getCookie('admin'), |
| | | mesordercode: wo_code || this.dialogForm.mesordercode |
| | | } |
| | | MesOrderPrintSearch1(data2).then(res2 => { |
| | | MesOrderPrintSearch(data2).then(res2 => { |
| | | if (res2.code === '200') { |
| | | const res3 = res2.data.recordset |
| | | |
| | | this.tableDataPrint = res3 |
| | | this.formApprove.mesordercode = res3[0].wo_code |
| | | this.formApprove.m_po = res3[0].m_po |
| | | this.formApprove.m_po = res3[0].m_po || '/' |
| | | this.formApprove.partcode = res3[0].partcode |
| | | this.formApprove.partname = res3[0].partname |
| | | this.formApprove.partspec = res3[0].partspec |
| | | this.formApprove.partspec = res3[0].partspec || '/' |
| | | this.formApprove.plan_qty = res3[0].plan_qty |
| | | this.formApprove.routename = res3[0].routename |
| | | this.formApprove.routename = localStorage.getItem('username') // 打印人员 |
| | | this.formApprove.lm_date = res3[0].lm_date |
| | | |
| | | this.$nextTick(() => { |