|
|
@@ -4,14 +4,14 @@
|
|
|
<header>
|
|
|
<el-button type="primary" @click="onBZ">班组维护</el-button>
|
|
|
<el-button type="primary" @click="onzhicheng" >制程检验</el-button>
|
|
|
- <el-button type="primary" @click="onDel">删除</el-button>
|
|
|
+ <!-- <el-button type="primary" @click="onDel">删除</el-button> -->
|
|
|
<el-button type="primary" @click="onxuncha">管理巡查</el-button>
|
|
|
<el-button type="primary" @click="ondianjian">设备点检</el-button>
|
|
|
<el-button type="primary" @click="onyinban">印版领退</el-button>
|
|
|
- <el-button type="primary" @click="onstatus" >设置机台状态</el-button>
|
|
|
+ <!-- <el-button type="primary" @click="onstatus" >设置机台状态</el-button> -->
|
|
|
<el-button type="primary" @click="oncomplaints" >客诉记录</el-button>
|
|
|
<el-button type="primary" @click="onClear" >换型清场</el-button>
|
|
|
- <el-button type="primary" @click="onClear2" >换型清场</el-button>
|
|
|
+ <!-- <el-button type="primary" @click="onClear2" >换型清场</el-button> -->
|
|
|
</header>
|
|
|
<el-container>
|
|
|
<el-aside width="200px">
|
|
|
@@ -991,7 +991,7 @@
|
|
|
:row-style="{ height: '20px' }"
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
:header-cell-style="{ padding: '0px' }"
|
|
|
- highlight-current-row="true"
|
|
|
+ highlight-current-row="true" @row-dblclick="gytableDatadoubleClick"
|
|
|
style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
<!-- <el-table-column align="left" label="选择" prop="工单编号" width="100"/> -->
|
|
|
@@ -1444,6 +1444,344 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog
|
|
|
+ v-model="chanliangVisible"
|
|
|
+ title="日产量上报"
|
|
|
+ destroy-on-close
|
|
|
+ width="60%"
|
|
|
+ style="height: 110vh;"
|
|
|
+ >
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="工单编号:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.工单编号" id="工单编号" @blur="getCPMCsubmit()" @keydown="ent1($event)" :clearable="true" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18">
|
|
|
+ <el-form-item label="产品名称:" prop="perTenThousand" class="mab" label-width="150">
|
|
|
+ <el-input v-model="formdata3.value.cpmc" id="产品名称" :clearable="true" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="印件号:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.yjno" id="印件号" @focus="yjnoHandleFocus()" @blur="getYJMCsubmit()" @keydown="ent1($event)" :clearable="true" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="18">
|
|
|
+ <el-form-item label="印件名称:" prop="perTenThousand" class="mab" label-width="150">
|
|
|
+ <el-input v-model="formdata3.value.cpmc" id="印件名称" :clearable="true" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="14">
|
|
|
+ <el-form-item label="工序名称:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.gxmc" id="工序名称" @focus="gxmcHandleFocus()" @blur="getGXsubmit()" @keydown="ent1($event)" :clearable="true" style="width: 350px;" />
|
|
|
+ <el-input v-model="formdata3.value.gxh" id="工序号" :readonly=true :clearable="true" style="width: 50px; margin-left: 10px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="10">
|
|
|
+ <el-form-item label="工艺名称:" prop="perTenThousand" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.gymc" id="工艺名称" :readonly=true :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="日期:" prop="flatFeed" class="mab">
|
|
|
+ <el-input type="date" max="9999-12-31" v-model="formdata3.sczl_rq" id="日期" @focus="rqHandleFocus()" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="机器:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.sczl_jtbh" id="机器" @keydown="ent1($event)" @blur="getJtbhsubmit()" :clearable="true" style="width: 100px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
+ <el-form-item label="流程单号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
+ <el-input v-model="formdata3.value.num" id="流程单号" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" placeholder="" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="墨色:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.色度数" id="墨色" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="加工联数:" prop="flatFeed" class="mab" >
|
|
|
+ <el-input v-model="formdata3.value.sczl_ls" id="加工联数" @keydown="ent1($event)" :clearable="true" style="width: 100px; margin-right: 30px;" />
|
|
|
+ <el-input v-model="mult1" id="mult1" @keydown="ent1($event)" @blur="mult()" style="width: 50px;" />X
|
|
|
+ <el-input v-model="mult2" id="mult2" @keydown="ent1($event)" @blur="mult()" style="width: 60px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="产量:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.产量" id="产量" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="制程废品:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value制程废品" id="制程废品" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="制程次品:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.制程次品" id="制程次品" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="前工序废:" prop="flatFeed" class="mab" >
|
|
|
+ <el-input v-model="formdata3.value.前工序废" id="前工序废" @keydown="ent1($event)" :clearable="true" style="width: 100px; margin-right: 30px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="来料异常:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.来料异常" id="来料异常" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="10">
|
|
|
+ <el-form-item label="换型类型:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.换型类型" id="换型类型" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="30">
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="装版总工时:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.装版总工时" id="装版总工时" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="装版补产工时:" prop="flatFeed" class="mab" >
|
|
|
+ <el-input v-model="formdata3.value.装版补产工时" id="装版补产工时" @keydown="ent1($event)" :clearable="true" style="width: 100px; margin-right: 30px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="打样总工时:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.打样总工时" id="打样总工时" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="打样补产工时:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.打样补产工时" id="打样补产工时" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="保养工时:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.保养工时" id="保养工时" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="异常总工时:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.异常总工时" id="异常总工时" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" placeholder="" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="异常类型:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.异常类型" id="异常类型" @keydown="ent1($event)" @blur="getJtbhsubmit()" :clearable="true" style="width: 100px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
+ <el-form-item label="异常补贴工时" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
+ <el-input v-model="formdata3.value.异常补时" id="异常补贴工时" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" placeholder="" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="通电时间:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.通电时间" id="通电时间" @keydown="ent1($event)" @blur="getJtbhsubmit()" :clearable="true" style="width: 100px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
+ <el-form-item label="定额代号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
+ <el-input v-model="formdata3.value.dedh" id="定额代号" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" placeholder="" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="码开始行:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.码开始行" id="码开始行" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="码结束行:" prop="flatFeed" class="mab" >
|
|
|
+ <el-input v-model="formdata3.value.码结束行" id="码结束行" @keydown="ent1($event)" :clearable="true" style="width: 100px; margin-right: 30px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="主电表:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.主电表" id="主电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="10">
|
|
|
+ <el-form-item label="辅电表:" prop="flatFeed" class="mab">
|
|
|
+ <el-input v-model="formdata3.value.辅电表" id="辅电表" @keydown="ent1($event)" :clearable="true" style="width: 200px;" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <div style="display: flex;">
|
|
|
+ <div style="width: 131vh;">组员及分配比例</div>
|
|
|
+ <div style="width: 13vh;">特殊组员</div>
|
|
|
+ <div>拉料人员</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="10" style="margin-top: 1vh;">
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.bzdh" id="bzdh" @keydown="ent($event, '辅电表', 'bzdh', 'bh1')" placeholder="ZI00401" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员1['编号']" id="bh1" @keydown="ent($event, 'bzdh', 'bh1', 'bh2')" @keyup.enter.native="getygsubmit($event, '1')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员2['编号']" id="bh2" @keydown="ent($event, 'bh1', 'bh2', 'bh3')" @keyup.enter.native="getygsubmit($event, '2')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员3['编号']" id="bh3" @keydown="ent($event, 'bh2', 'bh3', 'bh4')" @keyup.enter.native="getygsubmit($event, '3')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员4['编号']" id="bh4" @keydown="ent($event, 'bh3', 'bh4', 'bh5')" @keyup.enter.native="getygsubmit($event, '4')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员5['编号']" id="bh5" @keydown="ent($event, 'bh4', 'bh5', 'bh6')" @keyup.enter.native="getygsubmit($event, '5')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员6['编号']" id="bh6" @keydown="ent($event, 'bh5', 'bh6', 'bh7')" @keyup.enter.native="getygsubmit($event, '6')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员7['编号']" id="bh7" @keydown="ent($event, 'bh6', 'bh7', 'bh8')" @keyup.enter.native="getygsubmit($event, '7')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员8['编号']" id="bh8" @keydown="ent($event, 'bh7', 'bh8', 'bh9')" @keyup.enter.native="getygsubmit($event, '8')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员9['编号']" id="bh9" @keydown="ent($event, 'bh8', 'bh9', 'bh10')" @keyup.enter.native="getygsubmit($event, '9')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员10['编号']" id="bh10" @keydown="ent($event, 'bh9', 'bh10', 'bh11')" @keyup.enter.native="getygsubmit($event, '10')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.拉料['编号']" @keydown="ent($event, 'bh10', 'bh11', 'name1')" @keyup.enter.native="getygsubmit($event, '11')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <el-row :gutter="10" style="margin-top: 10px;">
|
|
|
+ <el-col :span="2">
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员1['姓名']" id="name1" @keydown="ent($event, 'bh11', 'name1', 'name2')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员2['姓名']" id="name2" @keydown="ent($event, 'name1', 'name2', 'name3')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员3['姓名']" id="name3" @keydown="ent($event, 'name2', 'name3', 'name4')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员4['姓名']" id="name4" @keydown="ent($event, 'name3', 'name4', 'name5')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员5['姓名']" id="name5" @keydown="ent($event, 'name4', 'name5', 'name6')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员6['姓名']" id="name6" @keydown="ent($event, 'name5', 'name6', 'name7')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员7['姓名']" id="name7" @keydown="ent($event, 'name6', 'name7', 'name8')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员8['姓名']" id="name8" @keydown="ent($event, 'name7', 'name8', 'name9')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员9['姓名']" id="name9" @keydown="ent($event, 'name8', 'name9', 'name10')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员10['姓名']" id="name10" @keydown="ent($event, 'name9', 'name10', 'name11')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.拉料['姓名']" id="name11" @keydown="ent($event, 'name10', 'name11', 'rate1')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="10" style="margin-top: 10px;">
|
|
|
+ <el-col :span="2">
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员1['比例']" id="rate1" @keydown="ent($event, 'name11', 'rate1', 'rate2')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员2['比例']" id="rate2" @keydown="ent($event, 'rate1', 'rate2', 'rate3')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员3['比例']" id="rate3" @keydown="ent($event, 'rate2', 'rate3', 'rate4')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员4['比例']" id="rate4" @keydown="ent($event, 'rate3', 'rate4', 'rate5')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员5['比例']" id="rate5" @keydown="ent($event, 'rate4', 'rate5', 'rate6')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员6['比例']" id="rate6" @keydown="ent($event, 'rate5', 'rate6', 'rate7')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员7['比例']" id="rate7" @keydown="ent($event, 'rate6', 'rate7', 'rate8')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员8['比例']" id="rate8" @keydown="ent($event, 'rate7', 'rate8', 'rate9')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员9['比例']" id="rate9" @keydown="ent($event, 'rate8', 'rate9', 'rate10')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <el-input v-model="formdata3.value.组员10['比例']" id="rate10" @keydown="ent($event, 'rate9', 'rate10', '工单编号')" placeholder="" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- </el-scrollbar> -->
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="closeDialog">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="chanliangenterDialog">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
<el-dialog v-model="MachineVisible" :before-close="closeMachineVisible" :title="type === '0' ? '新增' : '机台状态显示'"
|
|
|
destroy-on-close width="80%" style="height: 100%;">
|
|
|
<div class="button-container">
|
|
|
@@ -1508,7 +1846,10 @@ import {
|
|
|
MachineDetailList,
|
|
|
ComplaintRecord,
|
|
|
remodelGetTab,
|
|
|
- ModelChangeRecord
|
|
|
+ ModelChangeRecord,
|
|
|
+ MachineChanliangDetail,
|
|
|
+ chanliangEdit,
|
|
|
+ productionGdmc,
|
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
|
|
|
|
import {
|
|
|
@@ -1661,6 +2002,7 @@ const GetdialogSbyxgl = async () => {
|
|
|
// return require(`@/assets/${status}.png`);
|
|
|
// }
|
|
|
const classbz=ref([])
|
|
|
+const GDBH=ref()
|
|
|
//当前生产订单
|
|
|
const FacilityProduction = async () => {
|
|
|
const response = await facilityProduction({machine:JTMC});
|
|
|
@@ -1729,8 +2071,8 @@ const FacilityWorklist = async () => {
|
|
|
//检验记录
|
|
|
const InspectionRecord = async () => {
|
|
|
console.log(formData.value.班组)
|
|
|
- // const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:formData.value.班组});
|
|
|
- const response = await inspectionRecord({machine:'JY01#',Gd_gdbh:'2311114',team:'A班'});
|
|
|
+ const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:BZMC.value});
|
|
|
+ // const response = await inspectionRecord({machine:'JY01#',Gd_gdbh:'2311114',team:'A班'});
|
|
|
// const response = await inspectionRecord({machine:'JY01#',Gd_gdbh:'2312191',team:'A班'});
|
|
|
console.log(response)
|
|
|
if(response.code==0){
|
|
|
@@ -1780,7 +2122,7 @@ const FacilityDetail = async () => {
|
|
|
formData.value.production_now=0
|
|
|
formData.value.production_all=0
|
|
|
// const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team: formData.value.班组 });
|
|
|
- const response = await facilityDetail({ machine: 'JY01#', Gd_gdbh: '2312191', team: 'A班' });
|
|
|
+ const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team: BZMC.value });
|
|
|
// const response = await facilityDetail({ machine: JTMC, Gd_gdbh: '2311114', team:'A班' });
|
|
|
if (response.code === 0) {
|
|
|
console.log('123123')
|
|
|
@@ -1798,7 +2140,7 @@ const getygsubmit = (event, inputName) => {
|
|
|
let combinedString = 'sczl_bh' + inputName;
|
|
|
console.log(combinedString)
|
|
|
// let variableName = 'sczl_gdbh'+inputName;
|
|
|
- let variableValue = eval('formData3.value.' + combinedString);
|
|
|
+ let variableValue = eval('formdata3.value.' + combinedString);
|
|
|
console.log(variableValue)
|
|
|
GetYg(variableValue,inputName)
|
|
|
}
|
|
|
@@ -2044,10 +2386,20 @@ const Complaints = async() => {
|
|
|
// console.log(sbzyData[0].产品代号)
|
|
|
// console.log(sbzyData[0].产品代号)
|
|
|
// const res = await ComplaintRecord({productCode :cpcode.value})
|
|
|
- const res = await ComplaintRecord({productCode :'100601011'})
|
|
|
+ if(finishedcode.value==null){
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '请先选择产品',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const res = await ComplaintRecord({productCode :finishedcode.value})
|
|
|
if (res.code === 0) {
|
|
|
if(res.data==null){
|
|
|
- console.log('暂无客诉记录')
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '此产品暂无客诉记录',
|
|
|
+ })
|
|
|
}else{
|
|
|
complaintsData.splice(0, complaintsData.length, ...res.data);
|
|
|
console.log(complaintsData);
|
|
|
@@ -2078,7 +2430,8 @@ function onClear() {
|
|
|
RemodelGetTab()
|
|
|
}
|
|
|
function onClear2() {
|
|
|
- console.log(formData.value.class)
|
|
|
+ console.log(formData.value.工单编号)
|
|
|
+ console.log(BZMC)
|
|
|
}
|
|
|
const RemodelGetTab = async() => {
|
|
|
const response = await remodelGetTab()
|
|
|
@@ -2175,6 +2528,7 @@ function ondianjian() {
|
|
|
}
|
|
|
|
|
|
const onyinban = async() => {
|
|
|
+ console.log(formData.value.productCodes)
|
|
|
const res = await facilityPrintGetTab({productCode:formData.value.productCode})
|
|
|
if(res.code===0){
|
|
|
yinbantreeData.value=[{
|
|
|
@@ -2246,7 +2600,7 @@ const facilityPrintDetailItem = async (value) => {
|
|
|
try {
|
|
|
// 调用接口获取巡检项目数据
|
|
|
// const response = await facilityPrintDetail({ workOrder: formData.value.工单编号,code:value,productCode:productCode.value });
|
|
|
- const response = await facilityPrintDetail({ workOrder: '2312165',code:'0521',productCode:'104601001' });
|
|
|
+ const response = await facilityPrintDetail({ workOrder: formData.value.工单编号,code:value,productCode:formData.value.productCode });
|
|
|
// 检查接口返回的状态码
|
|
|
if (response.code === 0) {
|
|
|
console.log(response)
|
|
|
@@ -2288,6 +2642,8 @@ const yinbanNodeClick = (node, check, nodeData) => {
|
|
|
// 点击的是子节点,或者没有子节点
|
|
|
// 执行相应的子节点单击事件处理逻辑
|
|
|
facilityPrintDetailItem(node.code)
|
|
|
+ // console.log()
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
const xunchaNodeClick = (node, check, nodeData) => {
|
|
|
@@ -2297,7 +2653,11 @@ const xunchaNodeClick = (node, check, nodeData) => {
|
|
|
}
|
|
|
|
|
|
const fieldInspectionRecord = async () => {
|
|
|
- const response = await FieldInspectionRecord({ workOrder: '2311114',team:'A班',start:'2024-01-19 08:30:00' });
|
|
|
+ let time = new Date();
|
|
|
+ time.setDate(time.getDate() - 0); // 今天的前N天的日期,N自定义
|
|
|
+ time= `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}`;
|
|
|
+ console.log(time+' 08:30:00')
|
|
|
+ const response = await FieldInspectionRecord({ workOrder: formData.value.工单编号,team:BZMC.value,start:time+' 08:30:00' });
|
|
|
if (response.code === 0) {
|
|
|
xunchaselectData.value=response.data
|
|
|
}
|
|
|
@@ -2613,8 +2973,221 @@ const BZhandle = (val, row) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+const chanliangVisible = ref(false)
|
|
|
+const formdata3=reactive([])
|
|
|
+function gytableDatadoubleClick(row, column, event) {
|
|
|
+ console.log(row)
|
|
|
+ MachineChanliang(row.UniqId)
|
|
|
+
|
|
|
+}
|
|
|
+//获取详细信息
|
|
|
+const MachineChanliang = async(value) => {
|
|
|
+ const response = await MachineChanliangDetail({UniqId:value});
|
|
|
+ if (response.code === 0) {
|
|
|
+ console.log(response)
|
|
|
+ chanliangVisible.value=true
|
|
|
+ formdata3.value=response.data
|
|
|
+ const pattern = /-(.*?)〖(.*?)$/;
|
|
|
+ const matches = formdata3.value.gxmc.match(pattern);
|
|
|
+ formdata3.value.gymc=matches[1]
|
|
|
+ console.log(formdata3.value.拉料['姓名'])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const yjnoArr = ref([0])
|
|
|
+ const yjnoHandleFocus = () =>{
|
|
|
+ if(yjnoArr.value[0] == 0){
|
|
|
+ formdata3.value.yjno = 1;
|
|
|
+ }else{
|
|
|
+ formdata3.value.yjno = yjnoArr.value[0];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const gxmc = ref('')
|
|
|
+ //工单编号回车事件
|
|
|
+ const getCPMCsubmit = () => {
|
|
|
+ if(formdata3.value.工单编号!=''){
|
|
|
+ productionGdmc({gdbh:formdata3.value.工单编号}).then(response=>{
|
|
|
+ if (response.code === 0) {
|
|
|
+ formdata3.value.cpmc = response.data.Gd_cpmc
|
|
|
+ yjnoArr.value = response.data.yjno;
|
|
|
+
|
|
|
+ document.getElementById('产品名称').style.color = 'red';
|
|
|
+ }else{
|
|
|
+ formdata3.value.工单编号 = '';
|
|
|
+ formdata3.value.cpmc = '';
|
|
|
+ gxmc.value = '';
|
|
|
+ document.getElementById('产品名称').style.color = 'black';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '请注意, 工单编号输入空置, 除非有特殊需要!'
|
|
|
+ })
|
|
|
+
|
|
|
+ gxmc.value = '';
|
|
|
+ document.getElementById('产品名称').style.color = 'black';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //印件号失去焦点事件
|
|
|
+ const getYJMCsubmit = () => {
|
|
|
+ if(formdata3.value.工单编号!='' && formdata3.value.yjno!=''){
|
|
|
+ //获取印件名称
|
|
|
+ productionYjmc({gdbh:formdata3.value.工单编号,yjno:formdata3.value.yjno}).then(response=>{
|
|
|
+ if (response.code === 0) {
|
|
|
+ formData.value.yj_yjmc = response.data.yj_yjmc
|
|
|
+ gxmc.value = response.data.gxmc
|
|
|
+ formData.value.sczl_gxmc = gxmc.value.sczl_gxmc;
|
|
|
+ setColorReadonly('印件名称')
|
|
|
+
|
|
|
+ }else{
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '印件编号不存在, 将恢复默认值, 请仔细确认数据准确性!'
|
|
|
+ })
|
|
|
+ formData.value.sczl_yjno = yjnoArr.value[0];
|
|
|
+ formData.value.yj_yjmc = '';
|
|
|
+ gxmc.value = '';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '印件编号不存在, 将恢复默认值, 请仔细确认数据准确性!'
|
|
|
+ })
|
|
|
+ formData.value.sczl_yjno = yjnoArr.value[0];
|
|
|
+ formData.value.yj_yjmc = '';
|
|
|
+ gxmc.value = '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //日报表修改弹窗确定
|
|
|
+ const chanliangenterDialog = async () => {
|
|
|
+ SubmitDailyProduction()
|
|
|
+ }
|
|
|
+ //日报表上传
|
|
|
+ const SubmitDailyProduction = async () => {
|
|
|
+
|
|
|
+ const restoredData = {
|
|
|
+ // sczl_gdbh:formData3.value.order,
|
|
|
+ // sczl_yjno:formData3.value.yjno,
|
|
|
+ // sczl_gxh:formData3.value.gxh,
|
|
|
+ // sczl_gxmc: formData3.value.gxmc,
|
|
|
+ // sczl_bzdh: formData3.value.sczl_bzdh,
|
|
|
+ // sczl_bh1: formData3.value.sczl_bh1,
|
|
|
+ // sczl_bh2: formData3.value.sczl_bh2,
|
|
|
+ // sczl_bh3: formData3.value.sczl_bh3,
|
|
|
+ // sczl_bh4: formData3.value.sczl_bh4,
|
|
|
+ // sczl_bh5: formData3.value.sczl_bh5,
|
|
|
+ // sczl_bh6: formData3.value.sczl_bh6,
|
|
|
+ // sczl_bh7: formData3.value.sczl_bh7,
|
|
|
+ // sczl_bh8: formData3.value.sczl_bh8,
|
|
|
+ // sczl_bh9: formData3.value.sczl_bh9,
|
|
|
+ // sczl_bh10: formData3.value.sczl_bh10,
|
|
|
+ // sczl_bh98:formData3.value.sczl_bh11,
|
|
|
+ // sczl_rate1: formData3.value.sczl_rate1,
|
|
|
+ // sczl_rate2: formData3.value.sczl_rate2,
|
|
|
+ // sczl_rate3: formData3.value.sczl_rate3,
|
|
|
+ // sczl_rate4: formData3.value.sczl_rate4,
|
|
|
+ // sczl_rate5: formData3.value.sczl_rate5,
|
|
|
+ // sczl_rate6: formData3.value.sczl_rate6,
|
|
|
+ // sczl_rate7: formData3.value.sczl_rate7,
|
|
|
+ // sczl_rate8: formData3.value.sczl_rate8,
|
|
|
+ // sczl_rate9: formData3.value.sczl_rate9,
|
|
|
+ // sczl_rate10: formData3.value.sczl_rate10,
|
|
|
+ // sczl_jtbh: formData3.value.sczl_jtbh,
|
|
|
+ sczl_rq: formdata3.value.日期,
|
|
|
+ sczl_num: formdata3.value.sczl_num,
|
|
|
+ // sczl_rq: formData3.value.sczl_rq,
|
|
|
+ sczl_cl: formdata3.value.产量,
|
|
|
+ sczl_zcfp: formdata3.value.制程废品,
|
|
|
+ sczl_zccp: formdata3.value.制程次品,
|
|
|
+ sczl_前工序废: formdata3.value.前工序废,
|
|
|
+ sczl_来料少数: formdata3.value.来料异常,
|
|
|
+ sczl_ls: formdata3.value.联数,
|
|
|
+ sczl_ms: formdata3.value.色度数,
|
|
|
+ sczl_装版总工时: formdata3.value.sczl_装版总工时,
|
|
|
+ sczl_打样总工时: formdata3.value.打样总工时,
|
|
|
+ sczl_设备运行工时: formdata3.value.sczl_设备运行工时,
|
|
|
+ 码包: formdata3.value.码包,
|
|
|
+ 辅电表: formdata3.value.辅电表,
|
|
|
+ sczl_bh98: formdata3.value.拉料['编号'],
|
|
|
+ UniqId: formdata3.value.UniqId,
|
|
|
+ // bom: formData3.value.formattedArray
|
|
|
+ }
|
|
|
+ console.log(restoredData)
|
|
|
+ // console.log(formData3.value.formattedArray)
|
|
|
+ const response = await chanliangEdit(restoredData);
|
|
|
+ console.log(response)
|
|
|
+ if (response.code === 0) {
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: '成功'
|
|
|
+ })
|
|
|
+ FacilityDetail()
|
|
|
+ chanliangVisible.value=false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const ent1 = (event) => {
|
|
|
+ const inputs = document.getElementsByTagName('input');
|
|
|
+ const currentIndex = Array.from(inputs).indexOf(event.target);
|
|
|
+
|
|
|
+ if (event.keyCode === 13 || event.keyCode === 40) { // Enter 或向下箭头
|
|
|
+ for (let i = currentIndex + 1; i < inputs.length; i++) {
|
|
|
+ if (!inputs[i].readOnly) {
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (event.keyCode === 38) { // 向上箭头
|
|
|
+ for (let i = currentIndex - 1; i >= 0; i--) {
|
|
|
+ if (!inputs[i].readOnly) {
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (event.keyCode === 8) { // 删除箭头
|
|
|
+ if (event.target.selectionStart === 0) {
|
|
|
+ for (let i = currentIndex - 1; i >= 0; i--) {
|
|
|
+ if (!inputs[i].readOnly) {
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].setSelectionRange(0, 0);
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (event.keyCode === 37) { // 向左箭头
|
|
|
+ if (event.target.selectionStart === 0) {
|
|
|
+ for (let i = currentIndex - 1; i >= 0; i--) {
|
|
|
+ if (!inputs[i].readOnly) {
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (event.keyCode === 39) { // 向右箭头
|
|
|
+ if (event.target.selectionStart === event.target.value.length) {
|
|
|
+ for (let i = currentIndex + 1; i < inputs.length; i++) {
|
|
|
+ if (!inputs[i].readOnly) {
|
|
|
+ nextTick(()=>{
|
|
|
+ inputs[i].focus();
|
|
|
+ inputs[i].select();
|
|
|
+ })
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
// ============== 表格控制部分结束 ===============
|
|
|
|
|
|
// 获取需要的字典 可能为空 按需保留
|
|
|
@@ -2630,6 +3203,7 @@ const multipleSelection = ref([])
|
|
|
// 多选
|
|
|
const handleSelectionChange = (val) => {
|
|
|
multipleSelection.value = val
|
|
|
+ console.log(val)
|
|
|
}
|
|
|
|
|
|
// 删除行
|
|
|
@@ -2688,6 +3262,7 @@ const updateCompanyFunc = async(row) => {
|
|
|
}
|
|
|
}
|
|
|
const cpcode=ref('')
|
|
|
+const finishedcode=ref()
|
|
|
const yjupdateCompanyFunc = async(row) => {
|
|
|
const res = await facilityProcedure({ Gd_gdbh: row['工单编号|质量信息'].substring(0, 7) })
|
|
|
console.log(res)
|
|
|
@@ -2697,6 +3272,9 @@ const yjupdateCompanyFunc = async(row) => {
|
|
|
console.log(row)
|
|
|
cpcode.value=row.产品代号
|
|
|
console.log(cpcode)
|
|
|
+ // console.log(row.产品代号)
|
|
|
+ finishedcode.value=row.产品代号
|
|
|
+ console.log(finishedcode.value)
|
|
|
}
|
|
|
|
|
|
// 删除行
|