|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="14">
|
|
|
|
|
<el-col :span="16">
|
|
|
|
|
<el-form :inline="true" label-width="50px" label-position="left">
|
|
|
|
|
<el-form-item label="状态:">
|
|
|
|
|
<el-select v-model="queryParam.rqopt" placeholder="状态" clearable @change="ztChange" style="width: 80px">
|
|
|
|
@ -55,36 +55,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="期量:" label-width="40">
|
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="期量:" label-width="40">-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-select v-model="inParam.ql" placeholder="期量" clearable >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in this.dictData.dhql"-->
|
|
|
|
|
<!-- :key="item.bm"-->
|
|
|
|
|
<!-- :label="item.bmsm"-->
|
|
|
|
|
<!-- :value="item.bm"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="库位:" >
|
|
|
|
|
<el-input v-model="queryParam.kwh" type="search" placeholder="库位号" style="width: 80px" ></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="规格:">
|
|
|
|
|
<el-input v-model="queryParam.wpgg" type="search" placeholder="规格" ></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-select v-model="inParam.ql" placeholder="期量" clearable >
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in this.dictData.dhql"
|
|
|
|
|
:key="item.bm"
|
|
|
|
|
:label="item.bmsm"
|
|
|
|
|
:value="item.bm"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-form-item label="炉批:">
|
|
|
|
|
<el-input v-model="queryParam.lph" type="search" placeholder="炉批号" style="width: 100px" ></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="跨位:">-->
|
|
|
|
|
<!-- <el-input v-model="queryParam.kw" type="search" placeholder="跨位" ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item >
|
|
|
|
|
<el-checkbox v-model="queryParam.flag" >启用跨位</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item>-->
|
|
|
|
|
<!-- <el-checkbox v-model="queryParam.flag" >启用跨位</el-checkbox>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10" style="text-align: right">
|
|
|
|
|
<el-col :span="8" style="text-align: right">
|
|
|
|
|
<el-button type="success" @click="initList">查询</el-button>
|
|
|
|
|
<el-button type="success" @click="hdClick()">核对</el-button>
|
|
|
|
|
<!-- <el-button type="danger" @click="delOne('insert')">删除</el-button>-->
|
|
|
|
|
<el-button type="success" @click="saveOne()">保存</el-button>
|
|
|
|
|
<el-button type="success" @click="print()">打印</el-button>
|
|
|
|
|
<!-- <el-button type="success" @click="printPd()">盘点打印</el-button>-->
|
|
|
|
|
<el-button type="success" @click="exportExcel()">导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="10">-->
|
|
|
|
|
|
|
|
|
@ -201,16 +208,16 @@
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select v-model="inParam.pwwz" placeholder="抛丸位置" clearable style="width: 15%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in this.dictData.pwwz"
|
|
|
|
|
:key="item.bm"
|
|
|
|
|
:label="item.bmsm"
|
|
|
|
|
:value="item.bm"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
<!-- <el-select v-model="inParam.pwwz" placeholder="抛丸位置" clearable style="width: 15%">-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in this.dictData.pwwz"-->
|
|
|
|
|
<!-- :key="item.bm"-->
|
|
|
|
|
<!-- :label="item.bmsm"-->
|
|
|
|
|
<!-- :value="item.bm"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<el-input v-model="inParam.pwwz" placeholder="抛丸位置" ></el-input>
|
|
|
|
|
<el-select v-model="inParam.qgkw" placeholder="切割跨位" clearable style="width: 15%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in this.dictData.qgkw"
|
|
|
|
@ -354,12 +361,12 @@ import {
|
|
|
|
|
getKcAndSljh1,
|
|
|
|
|
slPrint,
|
|
|
|
|
kcAdnSlBd1,
|
|
|
|
|
kcAdnSlBd2, slPrintqx
|
|
|
|
|
kcAdnSlBd2, slPrintqx, kcAdnSlBdQX
|
|
|
|
|
} from '@/api/jhzxgl/pgd'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
|
import SljhPrint from "@/views/jhzxgl/components/SljhPrint";
|
|
|
|
|
import {null2str} from "@/utils/rpkj";
|
|
|
|
|
import {exportByExcel, null2str} from "@/utils/rpkj";
|
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
|
import { startLoading, endLoading } from '@/utils'
|
|
|
|
|
import { Message } from 'element-ui'
|
|
|
|
@ -376,7 +383,10 @@ export default {
|
|
|
|
|
kw:'',
|
|
|
|
|
sljhrq:'',
|
|
|
|
|
rqopt:'01',
|
|
|
|
|
flag:false
|
|
|
|
|
flag:false,
|
|
|
|
|
wpgg:'',
|
|
|
|
|
lph:'',
|
|
|
|
|
kwh:''
|
|
|
|
|
},
|
|
|
|
|
defaultHeight: { height: '' },
|
|
|
|
|
wgzyprintFlag:false,
|
|
|
|
@ -814,6 +824,9 @@ export default {
|
|
|
|
|
this.inParam.dw=0
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
exportExcel(){
|
|
|
|
|
exportByExcel(this.tableColumn1,this.$refs.xGrid.getTableData().visibleData,1,'上料派工单.xlsx')
|
|
|
|
|
},
|
|
|
|
|
cellClickEvent({row}) {
|
|
|
|
|
this.queryParam.xqdcch = row.cbbm
|
|
|
|
|
this.$refs.xDown4.hidePanel()
|
|
|
|
@ -881,37 +894,41 @@ export default {
|
|
|
|
|
updates2(){
|
|
|
|
|
let selectRecords = this.$refs.xGrid.getCheckboxRecords()
|
|
|
|
|
|
|
|
|
|
if(this.queryParam.rqopt!=='01'){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(selectRecords.length>0){
|
|
|
|
|
for(let i = 0; i < selectRecords.length; i++) {
|
|
|
|
|
console.log(selectRecords[i].ydid)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.inParam.dcch !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(selectRecords[i].ydid!==null || selectRecords[i].ydid!==''){
|
|
|
|
|
// this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
selectRecords[i].zych = this.inParam.dcch
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.dcpl !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(selectRecords[i].ydid!==null){
|
|
|
|
|
// this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
selectRecords[i].zypl = this.inParam.dcpl
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.lx !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(selectRecords[i].ydid!==null){
|
|
|
|
|
// this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
selectRecords[i].zylx = this.inParam.lx
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.qgkw !==''){
|
|
|
|
|
if(selectRecords[i].ydid!==null){
|
|
|
|
|
this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(selectRecords[i].ydid!==null){
|
|
|
|
|
// this.$message({ message: '改数据已经匹配生产计划', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
selectRecords[i].sldw = this.inParam.qgkw
|
|
|
|
|
}
|
|
|
|
|
if(this.inParam.pwwz!==''){
|
|
|
|
@ -1130,6 +1147,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
hdClick(){
|
|
|
|
|
|
|
|
|
|
if(this.queryParam.rqopt=='02'){
|
|
|
|
|
kcAdnSlBdQX({ "data1":this.$refs.xGrid.getCheckboxRecords(),}).then(res=>{
|
|
|
|
|
if(res.success){
|
|
|
|
|
this.initList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.queryParam.rqopt!=='01'){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -1139,10 +1165,10 @@ export default {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if(this.inParam.dcpl ===''){
|
|
|
|
|
// this.$message({ message: '请输入需求批量', type: 'warning' })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
if(this.inParam.dcpl ===''){
|
|
|
|
|
this.$message({ message: '请输入需求批量', type: 'warning' })
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let obj =this.$refs.xGrid.getTableData().visibleData;
|
|
|
|
|
if(obj.length<=0){
|
|
|
|
|
this.$message({ message: '页面无数据', type: 'warning' })
|
|
|
|
|