|
|
@@ -5,23 +5,20 @@
|
|
|
<div class="gva-table-box">
|
|
|
<h1 style="margin: 0%;margin-bottom: 10px;">车缝完工报工</h1>
|
|
|
<el-row :gutter="24" style="margin-bottom: 15px;">
|
|
|
- <el-input v-model="add_searchInfo" placeholder="扫描订单子编号获取订单信息"
|
|
|
- @keyup.enter="add_onSubmit"
|
|
|
- id="searchInput"
|
|
|
- style="width: 230px;margin: 5px;height: 50px;">
|
|
|
- </el-input>
|
|
|
- <el-button type="primary" icon="search" @click="add_onSubmit" style="margin: 5px;height: 50px;">查询</el-button>
|
|
|
- <el-form-item label="机台号:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;">
|
|
|
- <el-input v-model="add_formData['机台号']" disabled style="width: 70px;height: 40px;" id="机台号" />
|
|
|
+ <el-input v-model="add_searchInfo" placeholder="请扫描子订单编号" @keyup.enter="add_onSubmit"id="searchInput"
|
|
|
+ style="width: 150px;height: 50px;margin-left: 10px;"></el-input>
|
|
|
+ <el-button type="primary" icon="search" @click="add_onSubmit" style="height: 50px;width: 60px;">查询</el-button>
|
|
|
+ <el-form-item label="机台号:" prop="jitaihao" class="mab" style="font-size: 30px;margin: 10px;" label-width="116px">
|
|
|
+ <el-input v-model="add_formData['机台号']" readonly style="width: 100px; height: 40px;" id="jitaihao" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="工序:" prop="deliveryDate" class="mab"style="font-size: 30px;margin: 10px;" label-width="90">
|
|
|
- <el-input v-model="add_formData['工序']" disabled style="width: 70px;height: 40px;" id="工序" />
|
|
|
+ <el-form-item label="工序:" prop="gongxu" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
|
|
|
+ <el-input v-model="add_formData['工序']" readonly style="width: 100px; height: 40px;" id="gongxu" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="组别:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
|
|
|
- <el-input v-model="add_formData['组别']" disabled style="width: 90px;height: 40px;" id="组别" />
|
|
|
+ <el-form-item label="组别:" prop="zubie" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
|
|
|
+ <el-input v-model="add_formData['组别']" readonly style="width: 140px; height: 40px;" id="zubie" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="人员:" prop="deliveryDate" class="mab" style="font-size: 30px;margin: 10px;" label-width="90">
|
|
|
- <el-input v-model="add_formData['人员']" disabled style="width: 90px;height: 40px;" id="人员" />
|
|
|
+ <el-form-item label="人员:" prop="renyuan" class="mab" style="font-size: 30px; margin: 10px;" label-width="81px">
|
|
|
+ <el-input v-model="add_formData['人员']" readonly style="width: 110px; height: 40px;" id="renyuan" />
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
@@ -34,52 +31,51 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-form-item label="尺码" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin:10px 0 0 0 ;">
|
|
|
- <el-input v-model="cmformdata.cm1" class="cm_input" disabled style="width: 90px;height: 40px;"/>
|
|
|
-
|
|
|
- <el-input v-model="cmformdata.cm2" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm3" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm4" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm5" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm6" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm7" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm8" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm9" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm10" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
- <el-input v-model="cmformdata.cm11" class="large-input" disabled style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm1" id="cm1" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm2" id="cm2" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm3" id="cm3" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm4" id="cm4" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm5" id="cm5" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm6" id="cm6" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm7" id="cm7" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm8" id="cm8" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm9" id="cm9" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm10" id="cm10" readonly style="width: 90px;height: 40px;"/>
|
|
|
+ <el-input v-model="cmformdata.cm11" id="cm11" readonly style="width: 90px;height: 40px;"/>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-form-item label="制单数" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -5px;">
|
|
|
- <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-input v-model="zdslformdata.zdsl1" readonly style="width: 90px;height: 40px;" id="zdsc1"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl2" readonly style="width: 90px;height: 40px;" id="zdsc2"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl3" readonly style="width: 90px;height: 40px;" id="zdsc3"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl4" readonly style="width: 90px;height: 40px;" id="zdsc4"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl5" readonly style="width: 90px;height: 40px;" id="zdsc5"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl6" readonly style="width: 90px;height: 40px;" id="zdsc6"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl7" readonly style="width: 90px;height: 40px;" id="zdsc7"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl8" readonly style="width: 90px;height: 40px;" id="zdsc8"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl9" readonly style="width: 90px;height: 40px;" id="zdsc9"/>
|
|
|
+ <el-input v-model="zdslformdata.zdsl10" readonly style="width: 90px;height: 40px;" id="zdsc10"/>
|
|
|
+ <el-input v-model="zdslformdata.zdtotal" readonly style="width: 90px;height: 40px;" id="zdtotal"/>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
- <el-form-item label="实裁量" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -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 label="实裁数" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
|
|
|
+ <el-input v-model="scslformdata.scsl1" readonly style="width: 90px;height: 40px;" id="scsl1"/>
|
|
|
+ <el-input v-model="scslformdata.scsl2" readonly style="width: 90px;height: 40px;" id="scsl2"/>
|
|
|
+ <el-input v-model="scslformdata.scsl3" readonly style="width: 90px;height: 40px;" id="scsl3"/>
|
|
|
+ <el-input v-model="scslformdata.scsl4" readonly style="width: 90px;height: 40px;" id="scsl4"/>
|
|
|
+ <el-input v-model="scslformdata.scsl5" readonly style="width: 90px;height: 40px;" id="scsl5"/>
|
|
|
+ <el-input v-model="scslformdata.scsl6" readonly style="width: 90px;height: 40px;" id="scsl6"/>
|
|
|
+ <el-input v-model="scslformdata.scsl7" readonly style="width: 90px;height: 40px;" id="scsl7"/>
|
|
|
+ <el-input v-model="scslformdata.scsl8" readonly style="width: 90px;height: 40px;" id="scsl8"/>
|
|
|
+ <el-input v-model="scslformdata.scsl9" readonly style="width: 90px;height: 40px;" id="scsl9"/>
|
|
|
+ <el-input v-model="scslformdata.scsl10" readonly style="width: 90px;height: 40px;" id="scsl10"/>
|
|
|
+ <el-input v-model="scslformdata.scsltotal" readonly style="width: 90px;height: 40px;" id="sctotal"/>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
- <el-form-item label="数量" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
|
|
|
+ <el-form-item label="上报数量" class="mab" prop="keyOrder" label-width="160" style="font-size: 30px;margin-top: -10px;">
|
|
|
<el-input v-model="slformdata.sl1" @input="updateTotal" style="width: 90px;height: 40px;" id="sl1" @keydown="handleKeyDown($event, 'sl10', 'sl1', 'sl2')"/>
|
|
|
<el-input v-model="slformdata.sl2" @input="updateTotal" style="width: 90px;height: 40px;" id="sl2" @keydown="handleKeyDown($event, 'sl1', 'sl2', 'sl3')"/>
|
|
|
<el-input v-model="slformdata.sl3" @input="updateTotal" style="width: 90px;height: 40px;" id="sl3"@keydown="handleKeyDown($event, 'sl2', 'sl3', 'sl4')"/>
|
|
|
@@ -90,7 +86,7 @@
|
|
|
<el-input v-model="slformdata.sl8" @input="updateTotal" style="width: 90px;height: 40px;" id="sl8"@keydown="handleKeyDown($event, 'sl7', 'sl8', 'sl9')"/>
|
|
|
<el-input v-model="slformdata.sl9" @input="updateTotal" style="width: 90px;height: 40px;" id="sl9"@keydown="handleKeyDown($event, 'sl8', 'sl9', 'sl10')"/>
|
|
|
<el-input v-model="slformdata.sl10" @input="updateTotal" 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-input v-model="slformdata.sctotal" readonly style="width: 90px;height: 40px;" id="sctotal"/>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row :gutter="24" style="margin-bottom: 15px;margin-left: 0px;">
|
|
|
@@ -240,21 +236,35 @@ const cmformdata = reactive({
|
|
|
cm10:'',
|
|
|
cm11:'合计',
|
|
|
});
|
|
|
-// 制单数/实裁量
|
|
|
-const zdscformdata = reactive({
|
|
|
- zdsc1:'',
|
|
|
- zdsc2:'',
|
|
|
- zdsc3:'',
|
|
|
- zdsc4:'',
|
|
|
- zdsc5:'',
|
|
|
- zdsc6:'',
|
|
|
- zdsc7:'',
|
|
|
- zdsc8:'',
|
|
|
- zdsc9:'',
|
|
|
- zdsc10:'',
|
|
|
+// 制单数
|
|
|
+const zdslformdata = reactive({
|
|
|
+ zdsl1:'',
|
|
|
+ zdsl2:'',
|
|
|
+ zdsl3:'',
|
|
|
+ zdsl4:'',
|
|
|
+ zdsl5:'',
|
|
|
+ zdsl6:'',
|
|
|
+ zdsl7:'',
|
|
|
+ zdsl8:'',
|
|
|
+ zdsl9:'',
|
|
|
+ zdsl10:'',
|
|
|
zdtotal:'',
|
|
|
});
|
|
|
-// 实裁数
|
|
|
+// 实裁量
|
|
|
+const scslformdata = reactive({
|
|
|
+ scsl1:'',
|
|
|
+ scsl2:'',
|
|
|
+ scsl3:'',
|
|
|
+ scsl4:'',
|
|
|
+ scsl5:'',
|
|
|
+ scsl6:'',
|
|
|
+ scsl7:'',
|
|
|
+ scsl8:'',
|
|
|
+ scsl9:'',
|
|
|
+ scsl10:'',
|
|
|
+ scsltotal:'',
|
|
|
+});
|
|
|
+// 数量
|
|
|
const slformdata = reactive({
|
|
|
sl1:'',
|
|
|
sl2:'',
|
|
|
@@ -278,7 +288,7 @@ function updateTotal() {
|
|
|
}
|
|
|
|
|
|
//搜索
|
|
|
-const add_searchInfo = ref('')
|
|
|
+const add_searchInfo = ref('DC2409004-01')
|
|
|
//表格
|
|
|
const add_tableData = reactive([]);
|
|
|
//全局获取颜色款式款号
|
|
|
@@ -293,19 +303,19 @@ const add_onSubmit = async ()=>{
|
|
|
add_tableData.splice(0,add_tableData.length,...WorkListdata);
|
|
|
ElMessage({type: 'warning',message: '请扫描小票二维码' })
|
|
|
}else{
|
|
|
- if(searcs.value === ''){
|
|
|
- const order =add_searchInfo.value;
|
|
|
- const sys_sbID = add_formData['机台号']
|
|
|
+ // if(searcs.value === ''){
|
|
|
//获取下面报工历史记录
|
|
|
- const getSpotLists = await getSpotList({order:order,code:_code,sys_sbID:sys_sbID});
|
|
|
+ const getSpotLists = await getSpotList({order:add_searchInfo.value,code:_code,sys_sbID:add_formData['机台号']});
|
|
|
+ console.log(getSpotLists)
|
|
|
+ add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);//表格数据
|
|
|
+
|
|
|
_yskskh.value = getSpotLists.data.list[0]
|
|
|
-
|
|
|
//获取尺码、制单数/实裁量上面信息
|
|
|
const keys1 = ['cm1', 'cm2', 'cm3', 'cm4','cm5','cm6','cm7','cm8','cm9','cm10',];
|
|
|
- const keys2 = ['zdsc1', 'zdsc2', 'zdsc3', 'zdsc4','zdsc5','zdsc6','zdsc7','zdsc8','zdsc9','zdsc10','zdtotal',];
|
|
|
-
|
|
|
+ const keys2 = ['zdsl1', 'zdsl2', 'zdsl3', 'zdsl4','zdsl5','zdsl6','zdsl7','zdsl8','zdsl9','zdsl10','zdtotal',];
|
|
|
+ const keys3 = ['scsl1', 'scsl2', 'scsl3', 'scsl4','scsl5','scsl6','scsl7','scsl8','scsl9','scsl10','scsltotal',];
|
|
|
//如果搜索是子订单编号 不是
|
|
|
- if(order.includes('-')){
|
|
|
+ if(add_searchInfo.value.includes('-')){
|
|
|
for (let key of keys1) {
|
|
|
if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中
|
|
|
cmformdata[key] = getSpotLists.data.list[0][key];
|
|
|
@@ -313,11 +323,16 @@ const add_onSubmit = async ()=>{
|
|
|
}
|
|
|
for (let key of keys2) {
|
|
|
if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中
|
|
|
- zdscformdata[key] = getSpotLists.data.list[0][key];
|
|
|
+ zdslformdata[key] = getSpotLists.data.list[0][key];
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
+ for (let key of keys3) {
|
|
|
+ if (getSpotLists.data.list[0].hasOwnProperty(key)) { // 确保键存在于对象中
|
|
|
+ scslformdata[key] = getSpotLists.data.list[0][key];
|
|
|
+ }
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
|
- const inputElement = document.getElementById('scs1');
|
|
|
+ const inputElement = document.getElementById('sl1');
|
|
|
if (inputElement) {
|
|
|
inputElement.focus();
|
|
|
}
|
|
|
@@ -327,14 +342,13 @@ const add_onSubmit = async ()=>{
|
|
|
cmformdata[key] = '';
|
|
|
}
|
|
|
for (let key of keys2) {
|
|
|
- zdscformdata[key] = '';
|
|
|
+ zdslformdata[key] = '';
|
|
|
}
|
|
|
}
|
|
|
- add_tableData.splice(0,add_tableData.length,...getSpotLists.data.records);//表格数据
|
|
|
searcs.value = 1;
|
|
|
- }else{
|
|
|
- add_Dialog();
|
|
|
- }
|
|
|
+ // }else{
|
|
|
+ // add_Dialog();
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -364,13 +378,13 @@ const add_Dialog = async ()=>{
|
|
|
if(add_searchInfo.value === ''){
|
|
|
ElMessage({type: 'warning',message: '请勾选具体的出库订单后,再操作此功能'})
|
|
|
}else{
|
|
|
- let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10,];
|
|
|
- let zdscArray = [zdscformdata.zdsc1, zdscformdata.zdsc2,zdscformdata.zdsc3,zdscformdata.zdsc4,zdscformdata.zdsc5,zdscformdata.zdsc6,zdscformdata.zdsc7,zdscformdata.zdsc8,zdscformdata.zdsc9,zdscformdata.zdsc10,];
|
|
|
- let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10,];
|
|
|
+ let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10];
|
|
|
+ let zdsl1Array = [zdslformdata.zdsl1, zdslformdata.zdsl12,zdslformdata.zdsl13,zdslformdata.zdsl14,zdslformdata.zdsl15,zdslformdata.zdsl16,zdslformdata.zdsl17,zdslformdata.zdsl18,zdslformdata.zdsl19,zdslformdata.zdsl110];
|
|
|
+ let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10];
|
|
|
let resultArrays = [];
|
|
|
for (let i = 0; i < slArray.length; i++) {
|
|
|
// 创建一个新数组来存储当前索引下的所有值
|
|
|
- let currentValues = [add_formData['机台号'],cmArray[i], zdscArray[i], slArray[i]];
|
|
|
+ let currentValues = [add_formData['机台号'],cmArray[i], zdsl1Array[i], slArray[i]];
|
|
|
// 添加到结果数组中
|
|
|
resultArrays.push(currentValues);
|
|
|
}
|
|
|
@@ -396,14 +410,14 @@ const add_Dialog = async ()=>{
|
|
|
|
|
|
if (paramsList.length === 0) {
|
|
|
ElMessage({ type: 'info', message: '请填写报告尺码数量' });
|
|
|
- return; // 如果没有有效的参数,则提前返回
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
let allSuccess = true;
|
|
|
for (let i = 0; i < paramsList.length; i++) {
|
|
|
const cf_gettab = await search(paramsList[i]);
|
|
|
if (cf_gettab.code !== 0) {
|
|
|
- ElMessage({ type: 'error', message: '报工失败' });
|
|
|
+ // ElMessage({ type: 'error', message: '报工失败' });
|
|
|
allSuccess = false;
|
|
|
break; // 如果某个报工失败,则中断循环
|
|
|
}
|
|
|
@@ -414,6 +428,7 @@ const add_Dialog = async ()=>{
|
|
|
add_tableData.splice(0,add_tableData.length,...lsjltable.data.records);
|
|
|
add_searchInfo.value = ''; // 清除选择
|
|
|
searcs.value = '';
|
|
|
+ add_printxp();
|
|
|
ElMessage({ type: 'success', message: '报工成功' });
|
|
|
}
|
|
|
}
|
|
|
@@ -520,59 +535,54 @@ const confirmDialogVisible = () => {
|
|
|
const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata });
|
|
|
hiprintTemplate.print(allPrintData.value);
|
|
|
};
|
|
|
- // 打印小票
|
|
|
- const add_printxp = () => {
|
|
|
- let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10,];
|
|
|
- let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10,];
|
|
|
- let allParams = []; // 用于存储所有要打印的参数对象
|
|
|
- let allParamss = ref([]); // 用于存储所有要打印的参数对象
|
|
|
- console.log(slArray)
|
|
|
- if (!slArray.some(item => item !== "" && item !== null && item !== undefined)) {
|
|
|
- ElMessage({type: 'warning', message: '没有填写数量,请填写数量后再使用此功能'});
|
|
|
- return;
|
|
|
- }else{
|
|
|
- for (let i = 0; i < slArray.length; i++) {
|
|
|
- if (slArray[i]) {
|
|
|
- let params = {};
|
|
|
- params.order_id =add_searchInfo.value ;
|
|
|
- params.sczl_jtbh = add_formData['组别'];
|
|
|
- params.gx = add_formData['工序'];
|
|
|
- params.sys_id = add_formData['人员'];
|
|
|
- params.wb = add_formData['是否订单尾包'];
|
|
|
- params.cm = cmArray[i];
|
|
|
- params.sl = slArray[i];
|
|
|
- params.sys_rq =currentDate ;
|
|
|
- allParams.push(params);
|
|
|
- // console.log(allParams)
|
|
|
-
|
|
|
- allParamss.value = allParams.map((row) => {
|
|
|
- console.log(allParamss)
|
|
|
- let weibao = row['wb'] === '是' ? 1 : 0;
|
|
|
- //二维码数据:订单子编号,组别,工序(固定),尺码,数量,是否尾包(1代表是0代表否)如2408001-1,CF01,3,10,20,0
|
|
|
- const ewm = `${row['order_id']},${add_formData['机台号']},3,${row['cm']},${row['sl']},${weibao}`;
|
|
|
- console.log(123)
|
|
|
- console.log(_yskskh._value['款号'])
|
|
|
- return {
|
|
|
- emm: ewm,
|
|
|
- zddbh: row['order_id'],
|
|
|
- kh: _yskskh._value['款号'],
|
|
|
- pm: _yskskh._value['款式'],
|
|
|
- ys: _yskskh._value['颜色'],
|
|
|
- cm: row['cm'],
|
|
|
- sl: row['sl'],
|
|
|
- zb: row['sczl_jtbh'],
|
|
|
- dyrq: currentDates,
|
|
|
- wb: row['wb']
|
|
|
- };
|
|
|
- });
|
|
|
- console.log(allParamss)
|
|
|
- const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata });
|
|
|
- hiprintTemplate.print(allParamss.value);
|
|
|
- }
|
|
|
- }
|
|
|
+// 打印小票
|
|
|
+const add_printxp = () => {
|
|
|
+ let cmArray = [cmformdata.cm1, cmformdata.cm2,cmformdata.cm3,cmformdata.cm4,cmformdata.cm5,cmformdata.cm6,cmformdata.cm7,cmformdata.cm8,cmformdata.cm9,cmformdata.cm10];
|
|
|
+ let slArray = [slformdata.sl1, slformdata.sl2,slformdata.sl3,slformdata.sl4,slformdata.sl5,slformdata.sl6,slformdata.sl7,slformdata.sl8,slformdata.sl9,slformdata.sl10];
|
|
|
+ let allParams = []; // 用于存储所有要打印的参数对象
|
|
|
+ let allParamss = ref([]); // 用于存储所有要打印的参数对象
|
|
|
+ console.log(slArray)
|
|
|
+ if (!slArray.some(item => item !== "" && item !== null && item !== undefined)) {
|
|
|
+ ElMessage({type: 'warning', message: '没有填写数量,请填写数量后再使用此功能'});
|
|
|
+ return;
|
|
|
+ }else{
|
|
|
+ for (let i = 0; i < slArray.length; i++) {
|
|
|
+ if (slArray[i]) {
|
|
|
+ let params = {};
|
|
|
+ params.order_id =add_searchInfo.value ;
|
|
|
+ params.sczl_jtbh = add_formData['组别'];
|
|
|
+ params.gx = add_formData['工序'];
|
|
|
+ params.sys_id = add_formData['人员'];
|
|
|
+ params.wb = add_formData['是否订单尾包'];
|
|
|
+ params.cm = cmArray[i];
|
|
|
+ params.sl = slArray[i];
|
|
|
+ params.sys_rq =currentDate ;
|
|
|
+ allParams.push(params);
|
|
|
+ allParamss.value = allParams.map((row) => {
|
|
|
+ let weibao = row['wb'] === '是' ? 1 : 0;
|
|
|
+ //二维码数据:订单子编号,组别,工序(固定),尺码,数量,是否尾包(1代表是0代表否)如2408001-1,CF01,3,10,20,0
|
|
|
+ const ewm = `${row['order_id']},${add_formData['机台号']},3,${row['cm']},${row['sl']},${weibao}`;
|
|
|
+ console.log(_yskskh.value['款号'])
|
|
|
+ return {
|
|
|
+ emm: ewm,
|
|
|
+ zddbh: row['order_id'],
|
|
|
+ kh: _yskskh.value['款号'],
|
|
|
+ pm: _yskskh.value['款式'],
|
|
|
+ ys: _yskskh.value['颜色'],
|
|
|
+ cm: row['cm'],
|
|
|
+ sl: row['sl'],
|
|
|
+ zb: row['sczl_jtbh'],
|
|
|
+ dyrq: currentDates,
|
|
|
+ wb: row['wb']
|
|
|
+ };
|
|
|
+ });
|
|
|
+ console.log(allParamss)
|
|
|
+ const hiprintTemplate = new hiprint.PrintTemplate({ template: jsondata });
|
|
|
+ hiprintTemplate.print(allParamss.value);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- };
|
|
|
+};
|
|
|
// =========== 删除按钮 ===========
|
|
|
//记录复选框的值
|
|
|
const bgSelection = ref(null)
|
|
|
@@ -817,7 +827,7 @@ const confirmDialogVisible = () => {
|
|
|
background: oldlace;
|
|
|
}
|
|
|
:deep(.el-input .is-disabled .cm_input){
|
|
|
- color: #ff0000;
|
|
|
+ color: red;
|
|
|
}
|
|
|
/* 选中某行时的背景色 */
|
|
|
:deep(.el-table__body tr.current-row) > td {
|
|
|
@@ -860,6 +870,205 @@ const confirmDialogVisible = () => {
|
|
|
font-size: 20px; /* 更改为你想要的字体大小 */
|
|
|
}
|
|
|
|
|
|
+/* 搜索样式 */
|
|
|
+::v-deep .el-input__wrapper #searchInput {
|
|
|
+ font-size: 16px;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #jitaihao {
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #gongxu {
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zubie {
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #renyuan {
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #shuliang {
|
|
|
+ font-size: 18px;
|
|
|
+ color: red;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #chima {
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
|
|
|
- </style>
|
|
|
+/* 尺码 */
|
|
|
+::v-deep .el-input__wrapper #cm1{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm2{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm3{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm4{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm5{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm6{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm7{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm8{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm9{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm10{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cm11{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+/* 制单数 */
|
|
|
+::v-deep .el-input__wrapper #zdsc1{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc2{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc3{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc4{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc5{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc6{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc7{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc8{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc9{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdsc10{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #zdtotal{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+/* 实裁数 */
|
|
|
+::v-deep .el-input__wrapper #scsl1{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl2{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl3{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl4{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl5{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl6{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl7{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl8{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl9{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #scsl10{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sctotal{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+/* 数量 */
|
|
|
+::v-deep .el-input__wrapper #sl1{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl2{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl3{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl4{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl5{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl6{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl7{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl8{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl9{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sl10{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #sctotal{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+</style>
|
|
|
|