|
@@ -11,6 +11,7 @@
|
|
|
<!-- <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="oncomplaints" >客诉记录</el-button>
|
|
|
<el-button type="primary" @click="onClear" >换型清场</el-button>
|
|
<el-button type="primary" @click="onClear" >换型清场</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="onADD">新增</el-button>
|
|
|
<!-- <el-button type="primary" @click="onClear2" >换型清场</el-button> -->
|
|
<!-- <el-button type="primary" @click="onClear2" >换型清场</el-button> -->
|
|
|
</header>
|
|
</header>
|
|
|
<el-container>
|
|
<el-container>
|
|
@@ -1456,11 +1457,11 @@
|
|
|
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
v-model="chanliangVisible"
|
|
v-model="chanliangVisible"
|
|
|
- title="查改"
|
|
|
|
|
destroy-on-close
|
|
destroy-on-close
|
|
|
width="60%"
|
|
width="60%"
|
|
|
style="height: 110vh;"
|
|
style="height: 110vh;"
|
|
|
:before-close="closechanliangVisible"
|
|
:before-close="closechanliangVisible"
|
|
|
|
|
+ :title="type2 === 'create' ? '新增' : '修改'"
|
|
|
>
|
|
>
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
@@ -1508,10 +1509,15 @@
|
|
|
<el-input v-model="formdata3.value.rq" id="日期" @keydown="ent1($event)" @blur="getJtbhsubmit()" :clearable="true" style="width: 100px;" />
|
|
<el-input v-model="formdata3.value.rq" id="日期" @keydown="ent1($event)" @blur="getJtbhsubmit()" :clearable="true" style="width: 100px;" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
|
|
|
|
+ <el-col :span="6">
|
|
|
<el-form-item label="机器:" prop="flatFeed" class="mab">
|
|
<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-input v-model="formdata3.value.sczl_jtbh" id="机器" @keydown="ent1($event)" @blur="getJtbhsubmit()" :clearable="true" style="width: 100px;" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="7">
|
|
|
|
|
+ <el-form-item label="开工时间:" prop="flatFeed" class="mab">
|
|
|
|
|
+ <el-input v-model="formdata3.value.starttime" id="日期" @keydown="ent1($event)" @blur="getJtbhsubmit()" style="width: 100px;" />
|
|
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
|
|
<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-form-item label="流程单号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
@@ -1861,7 +1867,8 @@ import {
|
|
|
chanliangEdit,
|
|
chanliangEdit,
|
|
|
productionGdmc,
|
|
productionGdmc,
|
|
|
productionYjmc,
|
|
productionYjmc,
|
|
|
- ChanliangDel
|
|
|
|
|
|
|
+ ChanliangDel,
|
|
|
|
|
+ ChanliangAdd
|
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -2295,6 +2302,12 @@ const getTableList = async() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getTableData()
|
|
getTableData()
|
|
|
|
|
+const type2 = ref('')
|
|
|
|
|
+//新增
|
|
|
|
|
+function onADD(){
|
|
|
|
|
+ type2.value="create"
|
|
|
|
|
+ MachineChanliang(uid.value)
|
|
|
|
|
+}
|
|
|
//删除
|
|
//删除
|
|
|
function onDel() {
|
|
function onDel() {
|
|
|
Chanliangdel()
|
|
Chanliangdel()
|
|
@@ -3010,13 +3023,14 @@ const chanliangVisible = ref(false)
|
|
|
const formdata3=reactive([])
|
|
const formdata3=reactive([])
|
|
|
function gytableDatadoubleClick(row, column, event) {
|
|
function gytableDatadoubleClick(row, column, event) {
|
|
|
console.log(row)
|
|
console.log(row)
|
|
|
|
|
+ type2.value="update"
|
|
|
MachineChanliang(row.UniqId)
|
|
MachineChanliang(row.UniqId)
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
const uid=ref()
|
|
const uid=ref()
|
|
|
function getUid(row, column, event) {
|
|
function getUid(row, column, event) {
|
|
|
uid.value=row.UniqId
|
|
uid.value=row.UniqId
|
|
|
- console.log(uid)
|
|
|
|
|
|
|
+ console.log(uid.value)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//获取详细信息
|
|
//获取详细信息
|
|
@@ -3028,6 +3042,7 @@ const MachineChanliang = async(value) => {
|
|
|
formdata3.value=response.data
|
|
formdata3.value=response.data
|
|
|
const pattern = /-(.*?)〖(.*?)$/;
|
|
const pattern = /-(.*?)〖(.*?)$/;
|
|
|
const matches = formdata3.value.gxmc.match(pattern);
|
|
const matches = formdata3.value.gxmc.match(pattern);
|
|
|
|
|
+ console.log(matches)
|
|
|
formdata3.value.gymc=matches[1]
|
|
formdata3.value.gymc=matches[1]
|
|
|
formdata3.value.sczl_jtbh=JTMC
|
|
formdata3.value.sczl_jtbh=JTMC
|
|
|
formdata3.value.rq=date
|
|
formdata3.value.rq=date
|
|
@@ -3145,7 +3160,90 @@ const MachineChanliang = async(value) => {
|
|
|
}
|
|
}
|
|
|
//日报表修改弹窗确定
|
|
//日报表修改弹窗确定
|
|
|
const chanliangenterDialog = async () => {
|
|
const chanliangenterDialog = async () => {
|
|
|
- SubmitDailyProduction()
|
|
|
|
|
|
|
+ // SubmitDailyProduction()
|
|
|
|
|
+ if (type2.value === 'update') {
|
|
|
|
|
+ SubmitDailyProduction()
|
|
|
|
|
+ } else if (type2.value === 'create') {
|
|
|
|
|
+ add()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ //日报表新增
|
|
|
|
|
+ const add = async () => {
|
|
|
|
|
+ console.log(formdata3.value)
|
|
|
|
|
+ const restoredData = {
|
|
|
|
|
+ sczl_gdbh:formdata3.value.工单编号,
|
|
|
|
|
+ sczl_yjno:formdata3.value.yjno,
|
|
|
|
|
+ sczl_gxh:formdata3.value.gxh,
|
|
|
|
|
+ sczl_gxmc: formdata3.value.gxmc,
|
|
|
|
|
+ sczl_bzdh: formdata3.value.bzdh,
|
|
|
|
|
+ sczl_bh1: formdata3.value.组员1['编号'],
|
|
|
|
|
+ sczl_bh2: formdata3.value.组员2['编号'],
|
|
|
|
|
+ sczl_bh3: formdata3.value.组员3['编号'],
|
|
|
|
|
+ sczl_bh4: formdata3.value.组员4['编号'],
|
|
|
|
|
+ sczl_bh5: formdata3.value.组员5['编号'],
|
|
|
|
|
+ sczl_bh6: formdata3.value.组员6['编号'],
|
|
|
|
|
+ sczl_bh7: formdata3.value.组员7['编号'],
|
|
|
|
|
+ sczl_bh8: formdata3.value.组员8['编号'],
|
|
|
|
|
+ sczl_bh9: formdata3.value.组员9['编号'],
|
|
|
|
|
+ sczl_bh10: formdata3.value.组员10['编号'],
|
|
|
|
|
+ sczl_bh98:formdata3.value.组员1['编号'],
|
|
|
|
|
+ sczl_rate1: formdata3.value.组员1['比例'],
|
|
|
|
|
+ sczl_rate2: formdata3.value.组员2['比例'],
|
|
|
|
|
+ sczl_rate3: formdata3.value.组员3['比例'],
|
|
|
|
|
+ sczl_rate4: formdata3.value.组员4['比例'],
|
|
|
|
|
+ sczl_rate5: formdata3.value.组员5['比例'],
|
|
|
|
|
+ sczl_rate6: formdata3.value.组员6['比例'],
|
|
|
|
|
+ sczl_rate7: formdata3.value.组员7['比例'],
|
|
|
|
|
+ sczl_rate8: formdata3.value.组员8['比例'],
|
|
|
|
|
+ sczl_rate9: formdata3.value.组员9['比例'],
|
|
|
|
|
+ sczl_rate10: formdata3.value.组员10['比例'],
|
|
|
|
|
+ sczl_jtbh: formdata3.value.sczl_jtbh,
|
|
|
|
|
+ 开工时间:"2024-03-12 08:30:00",
|
|
|
|
|
+ 码开始行:formdata3.value.码开始行,
|
|
|
|
|
+ 码结束行:formdata3.value.码结束行,
|
|
|
|
|
+ sys_id:"[68-ED-A4-26-5F-37/JY01#]",
|
|
|
|
|
+ sczl_装版工时:formdata3.value.装版工时,
|
|
|
|
|
+ sczl_打样工时:formdata3.value.打样工时,
|
|
|
|
|
+ sczl_异常类型1:formdata3.value.异常类型,
|
|
|
|
|
+ sczl_异常工时1:formdata3.value.异常总工时,
|
|
|
|
|
+ sczl_dedh:formdata3.value.dedh,
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ sczl_rq: formdata3.value.rq,
|
|
|
|
|
+ sczl_num: formdata3.value.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_打样总工时: formdata3.value.打样补产工时,
|
|
|
|
|
+ sczl_设备运行工时: formdata3.value.通电工时,
|
|
|
|
|
+ 码包: 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 ChanliangAdd(restoredData);
|
|
|
|
|
+ console.log(response)
|
|
|
|
|
+ if (response.code === 0) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '成功'
|
|
|
|
|
+ })
|
|
|
|
|
+ FacilitychanLiang()
|
|
|
|
|
+ FacilityDetail()
|
|
|
|
|
+ chanliangVisible.value=false
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
//日报表上传
|
|
//日报表上传
|
|
|
const SubmitDailyProduction = async () => {
|
|
const SubmitDailyProduction = async () => {
|