|
|
@@ -52,60 +52,13 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
-
|
|
|
- <!-- <el-row :gutter="24">
|
|
|
- <el-form-item label="尺码" class="mab" prop="keyOrder" label-width="220" style="font-size: 30px;margin: 10px;">
|
|
|
- <el-input v-model="cmformdata.cm1" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm2" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm3" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm4" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm5" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm6" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm7" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm8" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm9" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm10" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm11" disabled style="width: 90px;height: 40px;"/>
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="24">
|
|
|
- <el-form-item label="制单数/实裁量" class="mab" prop="keyOrder" label-width="220" style="font-size: 30px;margin: 10px;">
|
|
|
- <el-input v-model="zdscformdata.zdsc1" disabled style="width: 90px;height: 40px;" id="zdsc1"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc2" disabled style="width: 90px;height: 40px;" id="zdsc2"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc3" disabled style="width: 90px;height: 40px;" id="zdsc3"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc4" disabled style="width: 90px;height: 40px;" id="zdsc4"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc5" disabled style="width: 90px;height: 40px;" id="zdsc5"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc6" disabled style="width: 90px;height: 40px;" id="zdsc6"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc7" disabled style="width: 90px;height: 40px;" id="zdsc7"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc8" disabled style="width: 90px;height: 40px;" id="zdsc8"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc9" disabled style="width: 90px;height: 40px;" id="zdsc9"/>
|
|
|
- <el-input v-model="zdscformdata.zdsc10" disabled style="width: 90px;height: 40px;" id="zdsc10"/>
|
|
|
- <el-input v-model="zdscformdata.zdtotal" disabled style="width: 90px;height: 40px;" id="zdsc11"/>
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="24">
|
|
|
- <el-form-item label="数量" class="mab" prop="keyOrder" label-width="220" style="font-size: 30px;margin: 10px;">
|
|
|
- <el-input v-model="slformdata.sl1" style="width: 90px;height: 40px;" id="sl1" @keydown="handleKeyDown($event, 'sl10', 'sl1', 'sl2')"/>
|
|
|
- <el-input v-model="slformdata.sl2" style="width: 90px;height: 40px;" id="sl2" @keydown="handleKeyDown($event, 'sl1', 'sl2', 'sl3')"/>
|
|
|
- <el-input v-model="slformdata.sl3" style="width: 90px;height: 40px;" id="sl3"@keydown="handleKeyDown($event, 'sl2', 'sl3', 'sl4')"/>
|
|
|
- <el-input v-model="slformdata.sl4" style="width: 90px;height: 40px;" id="sl4"@keydown="handleKeyDown($event, 'sl3', 'sl4', 'sl5')"/>
|
|
|
- <el-input v-model="slformdata.sl5" style="width: 90px;height: 40px;" id="sl5"@keydown="handleKeyDown($event, 'sl4', 'sl5', 'sl6')"/>
|
|
|
- <el-input v-model="slformdata.sl6" style="width: 90px;height: 40px;" id="sl6"@keydown="handleKeyDown($event, 'sl5', 'sl6', 'sl7')"/>
|
|
|
- <el-input v-model="slformdata.sl7" style="width: 90px;height: 40px;" id="sl7"@keydown="handleKeyDown($event, 'sl6', 'sl7', 'sl8')"/>
|
|
|
- <el-input v-model="slformdata.sl8" style="width: 90px;height: 40px;" id="sl8"@keydown="handleKeyDown($event, 'sl7', 'sl8', 'sl9')"/>
|
|
|
- <el-input v-model="slformdata.sl9" style="width: 90px;height: 40px;" id="sl9"@keydown="handleKeyDown($event, 'sl8', 'sl9', 'sl10')"/>
|
|
|
- <el-input v-model="slformdata.sl10" style="width: 90px;height: 40px;" id="sl10"@keydown="handleKeyDown($event, 'sl9', 'sl10', 'sl1')"/>
|
|
|
- <el-input v-model="slformdata.sctotal" disabled style="width: 90px;height: 40px;" id="sctotal"/>
|
|
|
- </el-form-item>
|
|
|
- </el-row> -->
|
|
|
+
|
|
|
|
|
|
<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
|
|
|
<div @contextmenu.prevent>
|
|
|
<el-table
|
|
|
ref="multipleTableRef"
|
|
|
- style="width: 100%;height: 37vh"
|
|
|
+ style="width: 100%;height: 53vh"
|
|
|
tooltip-effect="dark"
|
|
|
:row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
|
|
|
:cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
|
|
|
@@ -186,7 +139,7 @@ export default {
|
|
|
import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
|
|
|
import {hiprint} from "vue-plugin-hiprint";
|
|
|
import {ref, reactive,nextTick,watch, setBlockTracking } from 'vue'
|
|
|
-import {getSpotList,search,getMachineMac} from '@/api/mes/job'
|
|
|
+import {getSpotList,search,getMachineMac,getTab} from '@/api/mes/job'
|
|
|
import {ElMessage} from "element-plus";
|
|
|
import { get } from 'scriptjs';
|
|
|
defineOptions({name: 'Company'})
|
|
|
@@ -207,7 +160,7 @@ const currentDates = `${year}-${month}-${day}`;
|
|
|
//物理地址获取机台编号
|
|
|
const getMachineMacdata = async () => {
|
|
|
try {
|
|
|
- const Machine = '68-ED-A4-26-60-D1'
|
|
|
+ const Machine = '68-ED-A4-26-5F-38'
|
|
|
const data = await getMachineMac({sys_sbID:Machine});
|
|
|
add_formData['机台号'] = data.data['机台号']
|
|
|
add_formData['工序'] = data.data['工序']
|
|
|
@@ -221,7 +174,7 @@ getMachineMacdata();
|
|
|
|
|
|
|
|
|
//点击【查询】按钮DC2408001-1,01,8,10,0
|
|
|
-const add_searchInfo = ref('DC2408001-1,HD01,32,12,0')
|
|
|
+const add_searchInfo = ref('')
|
|
|
const add_tableData = reactive([]);
|
|
|
const activeButtonValue = ref('')
|
|
|
const UniqId = ref('')
|
|
|
@@ -235,7 +188,7 @@ const add_onSubmit = async ()=>{
|
|
|
}else{
|
|
|
const order =add_searchInfo.value;
|
|
|
const sys_sbID = add_formData['机台号']
|
|
|
- const getSpotLists = await getSpotList({order:order,code:'后道',sys_sbID:sys_sbID});
|
|
|
+ const getSpotLists = await getSpotList({order:order,code:'包装',sys_sbID:sys_sbID});
|
|
|
activeButtonValue.value = getSpotLists.data.result.wb
|
|
|
UniqId.value = getSpotLists.data.result.UniqId
|
|
|
add_formData['数量'] = getSpotLists.data.result.sl
|
|
|
@@ -278,10 +231,20 @@ const add_Dialog = async ()=>{
|
|
|
if (add_formData.数量 && add_formData.数量 !== '') {
|
|
|
// 假设search函数可以处理一个包含多个参数的数组
|
|
|
// 注意:如果search函数不支持数组,并且需要单独调用每个params,您可能需要使用Promise.all
|
|
|
- const cf_gettab = await search({UniqId:UniqId._value,code:'后道'}); // 调用search函数
|
|
|
+ const cf_gettab = await search({UniqId:UniqId._value,code:'包装'}); // 调用search函数
|
|
|
if (cf_gettab.code === 0) {
|
|
|
- ElMessage({type: 'success', message: '报工成功'});
|
|
|
+ const firstPart = add_searchInfo.value.split(',')[0];
|
|
|
+ const lsjltable = await getTab({order_id:firstPart,sczl_jtbh:add_formData['机台号']});
|
|
|
+ console.log(lsjltable)
|
|
|
+ add_tableData.splice(0,add_tableData.length,...lsjltable.data.records);
|
|
|
add_searchInfo.value = '';
|
|
|
+ setTimeout(() => {
|
|
|
+ const inputElement = document.getElementById('searchInput');
|
|
|
+ if (inputElement) {
|
|
|
+ inputElement.focus();
|
|
|
+ }
|
|
|
+ }, 100); // 延迟100毫秒
|
|
|
+ ElMessage({type: 'success', message: '报工成功'});
|
|
|
} else {
|
|
|
ElMessage({type: 'error', message: '报工失败'});
|
|
|
}
|