| | |
| | | <div style="width: 70px">工序码:</div> |
| | | <el-input |
| | | v-model="produceCode" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | oninput="value=value.replace(/[^0-9a-zA-Z;]/g,'')" |
| | | name="produceCode" |
| | | style="width: 500px" |
| | | @keyup.enter.native="val=>enterNative(val,'produceCode')" |
| | |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChange" |
| | | > |
| | | <!-- <el-table-column--> |
| | | <!-- type="selection"--> |
| | | <!-- width="50"--> |
| | | <!-- />--> |
| | | <el-table-column |
| | | width="50" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <!-- <el-radio--> |
| | | <!-- v-model="radioSelected"--> |
| | | <!-- :label="row.wo"--> |
| | | <!-- style="color: #fff;padding-left: 10px; margin-right: -25px;"--> |
| | | <!-- @change.native="getCurrentRow(row.wo)"--> |
| | | <!-- />--> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- width="50"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <!– <el-radio–>--> |
| | | <!-- <!– v-model="radioSelected"–>--> |
| | | <!-- <!– :label="row.wo"–>--> |
| | | <!-- <!– style="color: #fff;padding-left: 10px; margin-right: -25px;"–>--> |
| | | <!-- <!– @change.native="getCurrentRow(row.wo)"–>--> |
| | | <!-- <!– />–>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | | prop="org_code" |
| | | prop="status" |
| | | label="状态" |
| | | sortable="custom" |
| | | /> |
| | | width="110" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.status==='NEW'">新订单</div> |
| | | <div v-if="row.status==='ALLO'">已派发</div> |
| | | <div v-if="row.status==='START'">开工</div> |
| | | <div v-if="row.status==='CLOSED'">完工</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="org_name" |
| | | prop="wo_code" |
| | | label="工单号" |
| | | sortable="custom" |
| | | width="160" |
| | | /> |
| | | <el-table-column |
| | | prop="description" |
| | | prop="partcode" |
| | | label="产品编码" |
| | | sortable="custom" |
| | | width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="partname" |
| | | label="产品名称" |
| | | sortable="custom" |
| | | width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="seq" |
| | | width="80" |
| | | label="工序" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="descr" |
| | | label="工序描述" |
| | | width="150" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="plan_qty" |
| | | label="任务数量" |
| | | width="150" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="good_qty" |
| | | label="已报工数量" |
| | | sortable="custom" |
| | | width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="lm_user" |
| | | prop="ng_qty" |
| | | label="不良数量" |
| | | width="150" |
| | | |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="lm_date" |
| | | prop="plan_startdate" |
| | | label="计划开工日期" |
| | | width="185" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button type="text" @click="edit('edit',row)">编辑</el-button> |
| | | <el-button type="text" @click="del(row)">删除</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- label="操作"--> |
| | | <!-- width="150"--> |
| | | <!-- fixed="right"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div class="operationClass">--> |
| | | <!-- <el-button type="text" @click="edit('edit',row)">编辑</el-button>--> |
| | | <!-- <el-button type="text" @click="del(row)">删除</el-button>--> |
| | | <!-- </div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | </div> |
| | | <!--分页--> |
| | |
| | | <div style="width: 70px">工序码:</div> |
| | | <el-input |
| | | v-model="WXproduceCode" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | oninput="value=value.replace(/[^0-9a-zA-Z;]/g,'')" |
| | | name="WXproduceCode" |
| | | style="width: 500px" |
| | | @keyup.enter.native="val=>enterNative(val,'WXproduceCode')" |
| | |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChange" |
| | | > |
| | | <!-- <el-table-column--> |
| | | <!-- type="selection"--> |
| | | <!-- width="50"--> |
| | | <!-- />--> |
| | | <el-table-column |
| | | width="50" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <!-- <el-radio--> |
| | | <!-- v-model="radioSelected"--> |
| | | <!-- :label="row.wo"--> |
| | | <!-- style="color: #fff;padding-left: 10px; margin-right: -25px;"--> |
| | | <!-- @change.native="getCurrentRow(row.wo)"--> |
| | | <!-- />--> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- width="50"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <!– <el-radio–>--> |
| | | <!-- <!– v-model="radioSelected"–>--> |
| | | <!-- <!– :label="row.wo"–>--> |
| | | <!-- <!– style="color: #fff;padding-left: 10px; margin-right: -25px;"–>--> |
| | | <!-- <!– @change.native="getCurrentRow(row.wo)"–>--> |
| | | <!-- <!– />–>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | | prop="org_code" |
| | | prop="status" |
| | | label="状态" |
| | | sortable="custom" |
| | | /> |
| | | width="110" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.status==='NEW'">新订单</div> |
| | | <div v-if="row.status==='ALLO'">已派发</div> |
| | | <div v-if="row.status==='START'">开工</div> |
| | | <div v-if="row.status==='CLOSED'">完工</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="org_name" |
| | | prop="wo_code" |
| | | label="工单号" |
| | | sortable="custom" |
| | | width="160" |
| | | /> |
| | | <el-table-column |
| | | prop="description" |
| | | prop="partcode" |
| | | label="产品编码" |
| | | sortable="custom" |
| | | width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="partname" |
| | | label="产品名称" |
| | | sortable="custom" |
| | | width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="seq" |
| | | width="80" |
| | | label="工序" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="descr" |
| | | label="工序描述" |
| | | width="150" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="plan_qty" |
| | | label="任务数量" |
| | | width="150" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | prop="good_qty" |
| | | label="已报工数量" |
| | | sortable="custom" |
| | | width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="lm_user" |
| | | prop="ng_qty" |
| | | label="不良数量" |
| | | width="150" |
| | | |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="lm_date" |
| | | prop="plan_startdate" |
| | | label="计划开工日期" |
| | | width="185" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button type="text" @click="edit('edit',row)">编辑</el-button> |
| | | <el-button type="text" @click="del(row)">删除</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- label="操作"--> |
| | | <!-- width="150"--> |
| | | <!-- fixed="right"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div class="operationClass">--> |
| | | <!-- <el-button type="text" @click="edit('edit',row)">编辑</el-button>--> |
| | | <!-- <el-button type="text" @click="del(row)">删除</el-button>--> |
| | | <!-- </div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | </el-table> |
| | | </div> |
| | | <!--分页--> |
| | |
| | | > |
| | | <el-form ref="dialogForm" inline :model="dialogForm" label-width="110px"> |
| | | <el-form-item label="工单编号:"> |
| | | <!-- <el-input v-model="dialogForm.name"></el-input>--> |
| | | <div style="width: 200px">PO2022050500001</div> |
| | | <div style="width: 200px">{{ dialogForm.wo_code }}</div> |
| | | </el-form-item> |
| | | <el-form-item label="产品编码:"> |
| | | <div style="width: 200px">427100</div> |
| | |
| | | <el-form-item label="未报/已报:"> |
| | | <div style="width: 200px">900/100</div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-if="dialogTitle==='自制开始'" label="开工数量:"> |
| | | <div style="width: 200px">1000</div> |
| | | </el-form-item> |
| | |
| | | import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz' |
| | | import { getCookie } from '@/utils/auth' |
| | | import $ from 'jquery' |
| | | import { MesOrderStepReportSelectUserGroup, MesOrderStepSearch, MesOrderStepStartSelectEqp } from '@/api/scgl' |
| | | import { |
| | | MesOrderGroupSelectUser, |
| | | MesOrderStepReportSelectUserGroup, |
| | | MesOrderStepSearch, |
| | | MesOrderStepStartSelectEqp, |
| | | MesOrderWxStepSearch |
| | | } from '@/api/scgl' |
| | | |
| | | const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | export default { |
| | | name: 'Zzjg', |
| | | name: 'SCKBG', |
| | | components: { |
| | | Pagination |
| | | }, |
| | |
| | | produceCode: '', // 工序码 |
| | | WXproduceCode: '', // 外协工序码 |
| | | form: { |
| | | orderstepqrcode: '', // 扫描的二维码信息 |
| | | prop: 'lm_date', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | | orderstepqrcode: 'PO202206280001_4;Step01', // 扫描的二维码信息 |
| | | prop: 'wo', // 排序字段 |
| | | order: 'asc', // 排序字段 |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | total: 10, |
| | | tableData: [], |
| | | WXform: { // 外协表单 |
| | | orderstepqrcode: '', // 扫描的二维码信息 |
| | | prop: 'lm_date', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | | orderstepqrcode: 'PO202206280001_4;Step01', // 扫描的二维码信息 |
| | | prop: 'wo_code', // 排序字段 |
| | | order: 'asc', // 排序字段 |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | |
| | | dialogVisible: false, |
| | | dialogTitle: '', // 自制开始、自制报工、外协发料、外协收料 |
| | | dialogForm: { |
| | | OrgType: '', |
| | | OrgCode: '', |
| | | OrgName: '', |
| | | SupUnit: ''// 上级单位 |
| | | wo_code: '', // 工单编号 |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 产品规格 |
| | | currentstep: '', // 当前工序 |
| | | nextstep: '', // 下一道工序 |
| | | desr: '', // 工序描述 |
| | | plan_qty: '', // 任务数量 |
| | | report_qty: '', // 已报数量 |
| | | noreport_qty: '' // 未报数量 |
| | | |
| | | }, |
| | | userTableData: [ |
| | | { RowNum: 1, name: '张三' }, |
| | |
| | | }, |
| | | methods: { |
| | | async getMesOrderStepSearch() { |
| | | // const res = await MesOrderStepSearch(this.form) |
| | | // this.tableData = res.data |
| | | // this.total = res.count |
| | | const res = await MesOrderStepSearch(this.form) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | }, |
| | | async MesOrderWxStepSearch() { |
| | | const res = await MesOrderWxStepSearch(this.WXform) |
| | | this.WXtableData = res.data |
| | | this.WXtotal = res.count |
| | | }, |
| | | // 排序改变时 |
| | | sortChange({ column, prop, order }) { |
| | |
| | | tabClick(val, d) { |
| | | console.log(val, d, 1) |
| | | if (this.$refs.elTabs.currentName === '0') { |
| | | this.getMesOrderStepSearch() |
| | | this.$nextTick(() => { |
| | | $("input[name='produceCode']")[0].focus() |
| | | }) |
| | | } |
| | | if (this.$refs.elTabs.currentName === '1') { |
| | | this.MesOrderWxStepSearch() |
| | | this.$nextTick(() => { |
| | | $("input[name='WXproduceCode']")[0].focus() |
| | | }) |
| | |
| | | this.getMesOrderStepSearch() |
| | | }, |
| | | // 自制开始 |
| | | ZZstart() { |
| | | async ZZstart() { |
| | | this.dialogTitle = '自制开始' |
| | | this.dialogVisible = true |
| | | // this.dialogVisible = true |
| | | this.dialogVisibleTrue() |
| | | |
| | | const res = await MesOrderStepStartSelectEqp({ orderstepqrcode: produceCode }) |
| | | }, |
| | | // 自制报工 |
| | | ZZreport() { |
| | | this.dialogTitle = '自制报工' |
| | | this.dialogVisible = true |
| | | // this.dialogVisible = true |
| | | this.dialogVisibleTrue() |
| | | this.getUserTableData() |
| | | }, |
| | | // 外协发料 |
| | | WXsend() { |
| | | async WXsend() { |
| | | this.dialogTitle = '外协发料' |
| | | this.dialogVisible = true |
| | | this.dialogVisibleTrue() |
| | | // this.dialogVisible = true |
| | | |
| | | // const { data: res } = await MesOrderStepReportSelectUserGroup() |
| | | // this.xx = res |
| | | }, |
| | | // 外协收料 |
| | | WXback() { |
| | | this.dialogTitle = '外协收料' |
| | | this.dialogVisibleTrue() |
| | | // this.dialogVisible = true |
| | | }, |
| | | dialogVisibleTrue() { |
| | | this.dialogVisible = true |
| | | // this.dialogForm.wo_code= |
| | | }, |
| | | // 报工查询用户表 |
| | | async getUserTableData() { |
| | | // const res = await MesOrderGroupSelectUser({usergroupcode:this.}) |
| | | // const { data: res } = await MesOrderGroupSelectUser({ usergroupcode: 'SC01' }) |
| | | this.userTableData.forEach(item => { |
| | | let number = Math.random() * Math.random()// 作为删除时的标识符 |
| | | number = number === 0 ? (10 + Math.random()) : number |