Merge remote-tracking branch 'origin/master'

master
xhj 5 months ago
commit 132dfaae5d

@ -649,9 +649,55 @@ export default {
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' } filterRender: { name: 'FilterCombination' }
}, },
{
field: 'yzDcCh',
title: '配盘船号',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'yzDcPl',
title: '配盘批量',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'yzDcFd',
title: '配盘分段',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'yzZl',
title: '配盘组立',
width: 100,formatter:this.zlFormat,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'yzTz',
title: '配盘特征',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'yzLx',
title: '配盘流向',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
{
field: 'yzXj',
title: '配盘下级',
width: 100,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' }
},
] ]
} }
}, },
@ -666,7 +712,15 @@ export default {
}, },
methods: { methods: {
zlFormat({cellValue}){
if(cellValue==='D'){
return '中大组立'
}
if(cellValue==='X'){
return '小组立'
}
return cellValue
},
cellClickEvent({row}) { cellClickEvent({row}) {
this.queryParam.dcch = row.cbbm this.queryParam.dcch = row.cbbm
this.$refs.xDown4.hidePanel() this.$refs.xDown4.hidePanel()

@ -11,7 +11,7 @@
<vxe-pulldown ref="xDown4" transfer > <vxe-pulldown ref="xDown4" transfer >
<template #default> <template #default>
<vxe-input <vxe-input
v-model="queryParam.dcch" v-model="queryParam.dcCh"
placeholder="船号" placeholder="船号"
style="height: 28px; style="height: 28px;
line-height: 28px; width: 140px;" line-height: 28px; width: 140px;"
@ -50,22 +50,9 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="14"></el-col>
<!-- <el-select v-model="inParam.zt" placeholder="状态" clearable >-->
<!-- <el-option-->
<!-- v-for="item in this.dictData.kwxxs"-->
<!-- :key="item.bm"-->
<!-- :label="item.bmsm"-->
<!-- :value="item.bm"-->
<!-- >-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- <el-input v-model="inParam.rqfw" placeholder="日期范围" clearable style="width: 200px" />-->
<!-- <el-button type="info" @click="plClick"></el-button>-->
</el-col>
<el-col :span="10" > <el-col :span="10" >
<el-form-item style="float: right" > <el-form-item style="float: right" >
<el-button <el-button
type="success" type="success"
@click="toolbarButtonClickEvent('save')" @click="toolbarButtonClickEvent('save')"
@ -142,7 +129,7 @@ export default {
data() { data() {
return { return {
queryParam: { queryParam: {
dcch:'', dcCh:'',
},inParam:{ },inParam:{
@ -170,7 +157,7 @@ export default {
{ type: 'seq', width: 40, title: '序号' }, { type: 'seq', width: 40, title: '序号' },
{ {
field: 'dcCh', field: 'dcCh',
title: '船号',editRender: { name: 'input' }, title: '船号',editRender: { name: '$select',options: [], },
width: 120, width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' } filterRender: { name: 'FilterCombination' }
@ -198,7 +185,7 @@ export default {
}, },
{ {
field: 'zl', field: 'zl',
title: '组立',editRender: { name: 'input' }, title: '组立',editRender: { name: '$select',options: [{label: '小组立',value:'X'},{label: '中大组立',value:'D'}], },
width: 120, width: 120,
filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
filterRender: { name: 'FilterCombination' } filterRender: { name: 'FilterCombination' }
@ -249,7 +236,7 @@ export default {
}, },
methods: { methods: {
cellClickEvent({row}) { cellClickEvent({row}) {
this.queryParam.dcch = row.cbbm this.queryParam.dcCh = row.cbbm
this.$refs.xDown4.hidePanel() this.$refs.xDown4.hidePanel()
}, },
focusEvent4() { focusEvent4() {
@ -274,6 +261,17 @@ export default {
this.dictData = res.data this.dictData = res.data
this.projectData=res.data.cbbm this.projectData=res.data.cbbm
this.projectData1=res.data.cbbm this.projectData1=res.data.cbbm
const select=this.$refs.xGrid.getColumnByField('dcCh')
const chList=[]
console.log(this.projectData1)
res.data.cbbm.forEach(item=>{
const data={
label:item.cbbm,
value:item.cbbm
}
chList.push(data)
})
select.editRender.options=chList
// console.log(this.dictData) // console.log(this.dictData)
// const xGrid = this.$refs.xGrid // const xGrid = this.$refs.xGrid
// //
@ -285,12 +283,11 @@ export default {
}) })
}, },
initList() { initList() {
yppyzcx(this.request).then((res) => { yppyzcx(this.queryParam).then((res) => {
this.list = res.data this.list = res.data
if (this.$refs.xGrid) { if (this.$refs.xGrid) {
this.$refs.xGrid.loadData(this.list) this.$refs.xGrid.loadData(this.list)
} }
}) })
}, },
@ -331,10 +328,6 @@ export default {
} = this.$refs.xGrid.getRecordset() } = this.$refs.xGrid.getRecordset()
switch (code) { switch (code) {
case 'insert': case 'insert':
if(this.request.dwbm==='' ||this.request.dwbm===null){
this.$message({ message: '请选择需求单位!', type: 'warning' })
return
}
this.$refs.xGrid.insertAt({ this.$refs.xGrid.insertAt({
}, -1).then(({ row }) => { }, -1).then(({ row }) => {

@ -121,7 +121,8 @@ const baifang=function (option={}) {
zxZtName:'HXFK', zxZtName:'HXFK',
list:[{ list:[{
id:zyjh.id, id:zyjh.id,
hxfkry: worker.userCode hxfkry: worker.userCode,
zt:zyjh.zt
}], }],
ycldwInfo:info ycldwInfo:info
}).then(res=>{ }).then(res=>{

@ -68,6 +68,7 @@ export default {
const data = { const data = {
id: item.id, id: item.id,
llry: worker.userCode,// llry: worker.userCode,//
zt:item.zt
} }
tmpArr.push(data) tmpArr.push(data)
} }

@ -121,7 +121,8 @@ const baifang=function (option={}) {
zxZtName:'PWFK', zxZtName:'PWFK',
list:[{ list:[{
id:zyjh.id, id:zyjh.id,
pwfkry: worker.userCode pwfkry: worker.userCode,
zt:zyjh.zt
}], }],
ycldwInfo:info ycldwInfo:info
}).then(res=>{ }).then(res=>{

@ -65,7 +65,8 @@ export default {
} }
const tmpArr=[{ const tmpArr=[{
id:item.id, id:item.id,
pwry:worker.userCode pwry:worker.userCode,
zt:item.zt
}] }]
this.paigong0(tmpArr) this.paigong0(tmpArr)
break break
@ -134,6 +135,7 @@ export default {
const data={ const data={
id:item.id, id:item.id,
pwry:worker.userCode,// pwry:worker.userCode,//
zt:item.zt
} }
tmpArr.push(data) tmpArr.push(data)
} }

@ -1,14 +1,15 @@
<template> <template>
<div> <div>
<div class="btn"> <div class="btn">
<button @click="reset"></button> <VxeButton status="primary" content="重置" @click="reset" />
<button @click="btnClick"></button> <VxeButton status="primary" content="提交" @click="btnClick" />
</div> </div>
<VxeGrid ref="vxeGrid" v-bind="gridOptions" @checkbox-change="checkboxChange" /> <VxeGrid ref="vxeGrid" v-bind="gridOptions" @checkbox-change="checkboxChange" />
</div> </div>
</template> </template>
<script> <script>
import XEUtils from 'xe-utils'
import { EventBus } from '@/event-bus.js' import { EventBus } from '@/event-bus.js'
import paoWanPgdConfig from "@/views/zyjhzx/pwanpgong/comps/pgdTable"; import paoWanPgdConfig from "@/views/zyjhzx/pwanpgong/comps/pgdTable";
import {getDw, pwpg} from "@/api/zyjh"; import {getDw, pwpg} from "@/api/zyjh";
@ -125,7 +126,8 @@ export default {
const workBook = XLSX.utils.book_new(); const workBook = XLSX.utils.book_new();
const sheet = XLSX.utils.json_to_sheet(printData) const sheet = XLSX.utils.json_to_sheet(printData)
XLSX.utils.book_append_sheet(workBook, sheet, "sheetName"); XLSX.utils.book_append_sheet(workBook, sheet, "sheetName");
XLSX.writeFile(workBook, '抛丸计划.xlsx') const date=XEUtils.toDateString(new Date(),'yyyyMMdd')
XLSX.writeFile(workBook, `抛丸计划${date}.xlsx`)
} }
}, },
checkboxChange({row}){ checkboxChange({row}){
@ -150,10 +152,5 @@ export default {
<style scoped> <style scoped>
.btn{ .btn{
text-align: right; text-align: right;
button{
width: 15%;
margin-right: 5px;
background-color: blue;
}
} }
</style> </style>

@ -91,8 +91,9 @@ export default function (_height=0) {
{field: 'pl', title: '批量', width: 50}, {field: 'pl', title: '批量', width: 50},
{field: 'fd', title: '分段',width: 50,visible:false}, {field: 'fd', title: '分段',width: 50,visible:false},
{field: 'tlth', title: '套料图号',width: 120}, {field: 'tlth', title: '套料图号',width: 120},
{field: 'wph', title: '材质', width: 60,},
{field: 'wpgg', title: '物品规格', width: 120,}, {field: 'wpgg', title: '物品规格', width: 120,},
{field: 'wlh', title: '物料号', width: 130,}, {field: 'lph', title: '物料号', width: 130,},
{field: 'kw', title: '垮位',width: 130,formatter: kwFormat}, {field: 'kw', title: '垮位',width: 130,formatter: kwFormat},
{field: 'zl', title: '组立', width: 70,formatter: zlFormat}, {field: 'zl', title: '组立', width: 70,formatter: zlFormat},
{field: 'nbsbm', title: '入库批号',minWidth: 100,}, {field: 'nbsbm', title: '入库批号',minWidth: 100,},

@ -249,7 +249,7 @@ export default {
width:31.5%; width:31.5%;
height: 93.5vh; height: 93.5vh;
position: absolute; position: absolute;
top:20px; top:10px;
right:10px; right:10px;
border: none; border: none;
margin: 0; margin: 0;

@ -121,7 +121,8 @@ const baifang=function (option={}) {
zt:'42', zt:'42',
list:[{ list:[{
id:zyjh.id, id:zyjh.id,
qgfkry: worker.userCode qgfkry: worker.userCode,
zt:zyjh.zt
}], }],
ycldwInfo:info ycldwInfo:info
}).then(res=>{ }).then(res=>{

@ -390,6 +390,7 @@ export default {
sljhrq:item.sljhrq, sljhrq:item.sljhrq,
qgjhrq:item.qgjhrq, qgjhrq:item.qgjhrq,
wlh:item.slwlh, wlh:item.slwlh,
lph:item.sllph,
nbsbm:item.nbsbm, nbsbm:item.nbsbm,
bfr:that.getCurrentWorker()?.userCode, bfr:that.getCurrentWorker()?.userCode,
type:'YCL' type:'YCL'

Loading…
Cancel
Save