master
董哲奇 11 months ago
parent ce19c3b739
commit ca00e21e03

@ -4,7 +4,7 @@ export function 排产(data) {return request({url: '/sygdpc/pc', method: 'get',p
export function 获取排产结果(data) {return request({url: '/sygdpc/sygdjh', method: 'get',params:data})} export function 获取排产结果(data) {return request({url: '/sygdpc/sygdjh', method: 'get',params:data})}
export function 生成三月滚动(data) {return request({url: '/sygdpc/createSygdjh', method: 'get',params:data})} export function 生成月度计划(data) {return request({url: '/sygdpc/createSygdjh', method: 'get',params:data})}
export function getCdAll() {return request({url: '/sygdpc/getCdAll', method: 'get'})} export function getCdAll() {return request({url: '/sygdpc/getCdAll', method: 'get'})}
export function saveGxcd(data) {return request({url: '/sygdpc/saveGxcd', method: 'post', data})} export function saveGxcd(data) {return request({url: '/sygdpc/saveGxcd', method: 'post', data})}
export function removeGxcd(data) {return request({url: '/sygdpc/removeGxcd', method: 'post', data})} export function removeGxcd(data) {return request({url: '/sygdpc/removeGxcd', method: 'post', data})}

@ -12,7 +12,7 @@ export function getCnsb() {return request({url: '/dmSygdMx/getCnsb', method: 'po
export function saveMxList() {return request({url: '/dmSygdMx/saveList', method: 'post'})} export function saveMxList() {return request({url: '/dmSygdMx/saveList', method: 'post'})}
export function getYdjh(data) {return request({url: '/dmYdjh/getList', method: 'post', data})} export function getYdjh(data) {return request({url: '/dmYdjh/getList', method: 'post', data})}
export function tjydjh(data) {return request({url: '/dmYdjh/tj', method: 'post', data})} export function tjydjh(data) {return request({url: '/dmYdjh/tj', method: 'post', data})}
export function hz(data) {return request({url: '/dmYdjh/hz', method: 'post', data})} export function hz(data) {return request({url: '/dmYdjh/hz', method: 'post', params:data})}
export function ydjhxf(data) {return request({url: '/dmYdjh/xf', method: 'post', data})} export function ydjhxf(data) {return request({url: '/dmYdjh/xf', method: 'post', data})}
//采购计划到货情况 //采购计划到货情况

@ -77,14 +77,10 @@
highlight-hover-row highlight-hover-row
show-overflow show-overflow
show-header-overflow show-header-overflow
:scroll-y="{enabled: true}"
> >
</vxe-grid> </vxe-grid>
</div> </div>
</el-main> </el-main>
</el-container> </el-container>
</el-container> </el-container>

@ -62,7 +62,7 @@
<el-tab-pane label="前方三月需求计划" name="first"> <el-tab-pane label="前方三月需求计划" name="first">
<div class="mytable"> <div class="mytable">
<el-button type="success" @click="confirmModal"></el-button> <el-button type="success" @click="confirmModal"></el-button>
<el-button type="success" @click="jgcx"></el-button> <el-button type="success" @click="creatYdjh"></el-button>
<el-button type="success" @click="symxhz"></el-button> <el-button type="success" @click="symxhz"></el-button>
<vxe-grid <vxe-grid
id="id" id="id"

@ -49,6 +49,7 @@
highlight-current-row highlight-current-row
highlight-hover-row highlight-hover-row
show-overflow show-overflow
:scroll-y="{enabled: true}"
> >
</vxe-grid> </vxe-grid>
</div> </div>

@ -956,7 +956,11 @@ export default {
this.$message.warning('请先查询需要汇总的信息!'); this.$message.warning('请先查询需要汇总的信息!');
return return
} }
hz(this.list).then((res) => { const data={
from:this.queryParam.yf,
to:XEUtils.toDateString(XEUtils.getWhatMonth(this.queryParam.yf,0,'last'),'yyyy/MM/dd')
}
hz(data).then((res) => {
if (res.data) { if (res.data) {
this.list2=res.data.tzjhList this.list2=res.data.tzjhList
this.list3=res.data.dhList this.list3=res.data.dhList

@ -995,6 +995,7 @@ export default {
return; return;
} }
} }
console.log(this.queryParam)
ydjhxf(this.checkedList).then(res => { ydjhxf(this.checkedList).then(res => {
if (res.success) { if (res.success) {
this.initList() this.initList()

@ -103,6 +103,7 @@ export default {
fan:'1' fan:'1'
}, },
projectData:[], projectData:[],
projectData1:[],
monthList:[], monthList:[],
list: [], list: [],
checkedList: [], checkedList: [],
@ -241,6 +242,7 @@ export default {
initProject(){ initProject(){
getCzplBase({}).then(res=>{ getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm this.projectData=res.data.cbbm
this.projectData1=res.data.cbbm
}) })
}, },
cellClickEvent({row}){ cellClickEvent({row}){

@ -11,7 +11,7 @@
v-model="request.dcCh" v-model="request.dcCh"
placeholder="船号" placeholder="船号"
style="height: 28px; style="height: 28px;
line-height: 28px; width: 150px;" line-height: 28px; width: 140px;"
suffix-icon="vxe-icon--search" suffix-icon="vxe-icon--search"
@keyup="keyupEvent4" @keyup="keyupEvent4"
@focus="focusEvent4" @focus="focusEvent4"
@ -22,6 +22,7 @@
<vxe-grid <vxe-grid
highlight-hover-row highlight-hover-row
height="auto" height="auto"
:data="projectData" :data="projectData"
:columns="projectColumns" :columns="projectColumns"
@cell-click="cellClickEvent" @cell-click="cellClickEvent"
@ -157,6 +158,7 @@ export default {
dwList:[], dwList:[],
bfwzList:[], bfwzList:[],
projectData:[], projectData:[],
projectData1:[],
request:{ request:{
dcCh:'', dcCh:'',
dwh:'', dwh:'',
@ -373,6 +375,7 @@ export default {
initProject(){ initProject(){
getCzplBase({}).then(res=>{ getCzplBase({}).then(res=>{
this.projectData=res.data.cbbm this.projectData=res.data.cbbm
this.projectData1=res.data.cbbm
}) })
}, },
cellClickEvent({row}){ cellClickEvent({row}){
@ -383,7 +386,9 @@ export default {
this.$refs.xDown4.showPanel() this.$refs.xDown4.showPanel()
}, },
keyupEvent4(){ keyupEvent4(){
console.log(this.request.dcCh)
if (this.request.dcCh) { if (this.request.dcCh) {
console.log(this.request.dcCh)
this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1) this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
} else { } else {
this.projectData = this.projectData1.slice(0) this.projectData = this.projectData1.slice(0)

@ -2,17 +2,6 @@
<el-container style="height: 100%;position: absolute;width: 100%;"> <el-container style="height: 100%;position: absolute;width: 100%;">
<el-col :span="16" style="height:100%;"> <el-col :span="16" style="height:100%;">
<div style="color:#909399;font-size: 12px;height: 9%"> <div style="color:#909399;font-size: 12px;height: 9%">
所属公司
<el-select v-model="query.companyName" clearable placeholder="所属公司" style="width: 100px">
<el-option
v-for="item in dm_depart"
:key="item.depart_code"
:label="item.depart_name"
:value="item.depart_code"
/>
</el-select>
班组编码
<el-input v-model="query.resourcesCode" placeholder="班组编码" style="width: 100px" clearable />
班组名称 班组名称
<el-input v-model="query.resourcesName" placeholder="班组名称" style="width: 100px" clearable /> <el-input v-model="query.resourcesName" placeholder="班组名称" style="width: 100px" clearable />
班组分类 班组分类
@ -46,7 +35,7 @@
ref="bzxxTable" ref="bzxxTable"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:data="c_yhxxTableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" :data="c_yhxxTableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
height="calc(100% - 60px - 35px)" height="calc(100% - 80px - 35px)"
:header-cell-style="{ textAlign: 'center' }" :header-cell-style="{ textAlign: 'center' }"
:cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }"
width="100%" width="100%"
@ -63,24 +52,17 @@
<el-table-column label="序号" type="index" /> <el-table-column label="序号" type="index" />
<el-table-column label="班组编码" property="resourcesCode" /> <el-table-column label="班组编码" property="resourcesCode" />
<el-table-column label="班组名称" property="resourcesName" /> <el-table-column label="班组名称" property="resourcesName" />
<el-table-column label="是否资源" property="resource" />
<el-table-column label="所属工厂" property="factoryName" />
<el-table-column label="所属车间" property="workshopName" />
<el-table-column label="所属跨位" width="100px"> <el-table-column label="所属跨位" width="100px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ getKwName(scope.row.kw) }} {{ getKwName(scope.row.kw) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属产线" property="productionLineName" />
<el-table-column label="组织类型" property="resourcesType" />
<el-table-column label="外部对照码" property="comparisonCode" />
<el-table-column label="班组分类" property="classification" />
<el-table-column label="状态" property="flagStatus" /> <el-table-column label="状态" property="flagStatus" />
<!-- <el-table-column label="操作" fixed="right">--> <el-table-column label="操作" fixed="right">
<!-- <template slot-scope="scope">--> <template #default="{row}">
<!-- <el-button @click="handleDeleteYhxx2" type="text" size="small" style="text-align: center;color: red">删除</el-button>--> <el-button @click="(event)=>bzPersonAdd(event,row)" type="text" style="text-align: center;color: blue">编辑</el-button>
<!-- </template>--> </template>
<!-- </el-table-column>--> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:current-page="currentPage" :current-page="currentPage"
@ -177,7 +159,7 @@
class="bzryTable" class="bzryTable"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:data="bzryTableData" :data="bzryTableData"
height="calc(100% - 30px - 35px)" height="calc(100% - 80px - 35px)"
width="100%" width="100%"
:border="true" :border="true"
highlight-current-row highlight-current-row
@ -199,6 +181,23 @@
</el-table> </el-table>
</el-col> </el-col>
<tbfilter ref="tbFilter" :list="c_yhxxTableData" :filter="columnFilter" @execFilter="execFilter" /> <tbfilter ref="tbFilter" :list="c_yhxxTableData" :filter="columnFilter" @execFilter="execFilter" />
<el-dialog class="YhxxDialog" title="增加人员" :visible.sync="addPersonVisible" width="450px" center="">
<el-row>
<el-row>
<span style="width: 110px;display:inline-block;">所属班组</span>
<el-input v-model="selectedPerson.resourcesCode" style="width: 250px;display: none" />
<el-input v-model="selectedPerson.resourcesName" disabled placeholder="" style="width: 250px;" />
</el-row>
<el-row>
<span style="width: 110px;display:inline-block;">人员编码</span>
<el-input v-model="selectedPerson.userCode" placeholder="" style="width: 250px;" />
</el-row>
<el-row>
<span style="width: 110px;display:inline-block;">人员姓名</span>
<el-input v-model="selectedPerson.userName" placeholder="" style="width: 250px;" />
</el-row>
</el-row>
</el-dialog>
</el-container> </el-container>
</template> </template>
@ -222,6 +221,8 @@ export default {
components: { tbfilter }, components: { tbfilter },
data() { data() {
return { return {
selectedPerson:{},
addPersonVisible:false,
defaultHeight: { defaultHeight: {
height: '100%' height: '100%'
}, },
@ -291,6 +292,11 @@ export default {
}) })
}, },
methods: { methods: {
bzPersonAdd(e,row){
this.selectedPerson=row
this.addPersonVisible=true
e.preventDefault()
},
showFilter(column) { showFilter(column) {
this.$refs.tbFilter.showFilter(column) this.$refs.tbFilter.showFilter(column)
}, },
@ -299,7 +305,7 @@ export default {
this.$set(this.columnFilter, property, vals) this.$set(this.columnFilter, property, vals)
}, },
getHeight() { getHeight() {
this.defaultHeight.height = window.innerHeight - 140 + 'px' this.defaultHeight.height = window.innerHeight - 170 + 'px'
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val this.pageSize = val

Loading…
Cancel
Save