parent
							
								
									e9976e90f8
								
							
						
					
					
						commit
						e18ac963c8
					
				@ -0,0 +1,112 @@
 | 
				
			||||
<template>
 | 
				
			||||
  <el-form ref="requestForm" :model="request" label-width="45px">
 | 
				
			||||
    <el-row>
 | 
				
			||||
      <el-col :span="3">
 | 
				
			||||
        <el-form-item label="船号:">
 | 
				
			||||
          <vxe-pulldown ref="xDown4" transfer >
 | 
				
			||||
            <template #default>
 | 
				
			||||
              <vxe-input
 | 
				
			||||
                v-model="request.dcCh"
 | 
				
			||||
                placeholder="船号"
 | 
				
			||||
                style="height: 28px;
 | 
				
			||||
                      line-height: 28px; width: 150px;"
 | 
				
			||||
                suffix-icon="vxe-icon--search"
 | 
				
			||||
                @keyup="keyupEvent4"
 | 
				
			||||
                @focus="focusEvent4"
 | 
				
			||||
              />
 | 
				
			||||
            </template>
 | 
				
			||||
            <template #dropdown>
 | 
				
			||||
              <div class="my-dropdown  mytable " style="width: 250px">
 | 
				
			||||
                <vxe-grid
 | 
				
			||||
                  highlight-hover-row
 | 
				
			||||
                  height="auto"
 | 
				
			||||
                  :data="projectData"
 | 
				
			||||
                  :columns="projectColumns"
 | 
				
			||||
                  @cell-click="cellClickEvent"
 | 
				
			||||
                  show-overflow
 | 
				
			||||
                >
 | 
				
			||||
                  <template #wgbsEdit="{ row}">
 | 
				
			||||
                    <vxe-checkbox v-model="row.wgbs"  checked-value="Y" unchecked-value="N"   disabled ></vxe-checkbox>
 | 
				
			||||
                  </template>
 | 
				
			||||
                </vxe-grid>
 | 
				
			||||
              </div>
 | 
				
			||||
            </template>
 | 
				
			||||
          </vxe-pulldown>
 | 
				
			||||
        </el-form-item>
 | 
				
			||||
      </el-col>
 | 
				
			||||
      <el-col :span="2">
 | 
				
			||||
        <el-form-item label="批量:">
 | 
				
			||||
          <el-input v-model="request.dcPl" type="search" placeholder="批量" ></el-input>
 | 
				
			||||
        </el-form-item>
 | 
				
			||||
      </el-col>
 | 
				
			||||
      <el-col :span="6">
 | 
				
			||||
        <el-col :span="12">
 | 
				
			||||
          <el-form-item label="需求日期:" label-width="95px">
 | 
				
			||||
            <el-input v-model="request.form" type="search" placeholder="开始" />
 | 
				
			||||
          </el-form-item>
 | 
				
			||||
        </el-col>
 | 
				
			||||
        <el-col :span="1">
 | 
				
			||||
          <div style="width:100%;text-align:center;line-height: 28px;font-size: 14px">至</div>
 | 
				
			||||
        </el-col>
 | 
				
			||||
        <el-col :span="8">
 | 
				
			||||
          <el-form-item label-width="0px">
 | 
				
			||||
            <el-input v-model="request.to" type="search" placeholder="结束" />
 | 
				
			||||
          </el-form-item>
 | 
				
			||||
        </el-col>
 | 
				
			||||
      </el-col>
 | 
				
			||||
      <el-col :span="12" style="text-align: right">
 | 
				
			||||
        <el-button type="primary" @click="loadData">查询</el-button>
 | 
				
			||||
      </el-col>
 | 
				
			||||
    </el-row>
 | 
				
			||||
  </el-form>
 | 
				
			||||
</template>
 | 
				
			||||
 | 
				
			||||
<script>
 | 
				
			||||
import {getCzplBase} from "@/api/sjzx/jcsj";
 | 
				
			||||
 | 
				
			||||
export default {
 | 
				
			||||
  name:'ZyjhHead',
 | 
				
			||||
  data(){
 | 
				
			||||
    return {
 | 
				
			||||
      projectData:[],
 | 
				
			||||
      projectData1:[],
 | 
				
			||||
      projectColumns:[],
 | 
				
			||||
      request:{
 | 
				
			||||
        dcCh:'',
 | 
				
			||||
        dcPl:'',
 | 
				
			||||
      },
 | 
				
			||||
    }
 | 
				
			||||
  },
 | 
				
			||||
  created(){
 | 
				
			||||
    // this.initProject()
 | 
				
			||||
  },
 | 
				
			||||
  methods:{
 | 
				
			||||
    loadData(){
 | 
				
			||||
      const data=[
 | 
				
			||||
        {dcCh:'123',dcPl:'123',dcFd:'123',}
 | 
				
			||||
      ]
 | 
				
			||||
      this.$emit("initData",data)
 | 
				
			||||
    },
 | 
				
			||||
    initProject(){
 | 
				
			||||
      getCzplBase({}).then(res=>{
 | 
				
			||||
        this.projectData=res.data.cbbm
 | 
				
			||||
        this.projectData1=res.data.cbbm
 | 
				
			||||
      })
 | 
				
			||||
    },
 | 
				
			||||
    cellClickEvent({row}){
 | 
				
			||||
      this.request.dcCh = row.cbbm
 | 
				
			||||
      this.$refs.xDown4.hidePanel()
 | 
				
			||||
    },
 | 
				
			||||
    focusEvent4(){
 | 
				
			||||
      this.$refs.xDown4.showPanel()
 | 
				
			||||
    },
 | 
				
			||||
    keyupEvent4(){
 | 
				
			||||
      if (this.request.dcCh) {
 | 
				
			||||
        this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.request.dcCh.toUpperCase()) > -1)
 | 
				
			||||
      } else {
 | 
				
			||||
        this.projectData = this.projectData1.slice(0)
 | 
				
			||||
      }
 | 
				
			||||
    },
 | 
				
			||||
  }
 | 
				
			||||
}
 | 
				
			||||
</script>
 | 
				
			||||
@ -0,0 +1,98 @@
 | 
				
			||||
 | 
				
			||||
export default function () {
 | 
				
			||||
  const options={
 | 
				
			||||
    height:700,
 | 
				
			||||
    align:'center',
 | 
				
			||||
    border: true,
 | 
				
			||||
    resizable: true,
 | 
				
			||||
    showOverflow: true,
 | 
				
			||||
    data:[]
 | 
				
			||||
  }
 | 
				
			||||
  const columns = [
 | 
				
			||||
    { type: 'seq',title:'序号', width: 60 },
 | 
				
			||||
    {field: 'dcCh', title: '船号', width: 120},
 | 
				
			||||
    {field: 'dcPl', title: '批量', width: 120},
 | 
				
			||||
    {field: 'dcFd', title: '分段', width: 120},
 | 
				
			||||
    {field: 'zl', title: '组立', width: 120},
 | 
				
			||||
    {field: 'kw', title: '跨位', width: 120},
 | 
				
			||||
    {field: 'tzbh', title: '套料图号', width: 120},
 | 
				
			||||
    {field: '', title: '材质', width: 120},
 | 
				
			||||
    {field: '', title: '规格', width: 120},
 | 
				
			||||
    {field: '', title: '炉批号', width: 120},
 | 
				
			||||
    {field: '', title: '小组需求期', width: 120},
 | 
				
			||||
    {field: '', title: '大组需求期', width: 120},
 | 
				
			||||
 | 
				
			||||
    {field: '', title: '上料计划日期', width: 120},
 | 
				
			||||
    {field: '', title: '预处理垛位', width: 120},
 | 
				
			||||
    {field: '', title: '层数', width: 120},
 | 
				
			||||
    {field: '', title: '派工人', width: 120},
 | 
				
			||||
    {field: '', title: '施工人', width: 120},
 | 
				
			||||
    {field: '', title: '派工时间', width: 120},
 | 
				
			||||
    {field: '', title: '反馈人', width: 120},
 | 
				
			||||
    {field: '', title: '反馈时间', width: 120},
 | 
				
			||||
    {field: '', title: '备注', width: 120},
 | 
				
			||||
 | 
				
			||||
    {field: '', title: '抛丸计划日期', width: 120},
 | 
				
			||||
    {field: '', title: '取自预处理垛位', width: 120},
 | 
				
			||||
    {field: '', title: '取自层数', width: 120},
 | 
				
			||||
    {field: '', title: '派工人', width: 120},
 | 
				
			||||
    {field: '', title: '施工人', width: 120},
 | 
				
			||||
    {field: '', title: '派工时间', width: 120},
 | 
				
			||||
    {field: '', title: '反馈人', width: 120},
 | 
				
			||||
    {field: '', title: '反馈时间', width: 120},
 | 
				
			||||
    {field: '', title: '备注', width: 120},
 | 
				
			||||
 | 
				
			||||
    {field: '', title: '划线计划日期', width: 120},
 | 
				
			||||
    {field: '', title: '取自理料垛位', width: 120},
 | 
				
			||||
    {field: '', title: '取自层数', width: 120},
 | 
				
			||||
    {field: '', title: '派工人', width: 120},
 | 
				
			||||
    {field: '', title: '施工人', width: 120},
 | 
				
			||||
    {field: '', title: '派工时间', width: 120},
 | 
				
			||||
    {field: '', title: '划线长度', width: 120},
 | 
				
			||||
    {field: '', title: '反馈人', width: 120},
 | 
				
			||||
    {field: '', title: '反馈时间', width: 120},
 | 
				
			||||
    {field: '', title: '备注', width: 120},
 | 
				
			||||
    {field: '', title: '是否借用', width: 120},
 | 
				
			||||
    {field: '', title: '借用船号', width: 120},
 | 
				
			||||
    {field: '', title: '借用批量', width: 120},
 | 
				
			||||
    {field: '', title: '借用分段', width: 120},
 | 
				
			||||
    {field: '', title: '借用组立', width: 120},
 | 
				
			||||
    {field: '', title: '借用跨位', width: 120},
 | 
				
			||||
    {field: '', title: '借用套料图号', width: 120},
 | 
				
			||||
 | 
				
			||||
    {field: '', title: '切割计划日期', width: 120},
 | 
				
			||||
    {field: '', title: '取自理料垛位', width: 120},
 | 
				
			||||
    {field: '', title: '取自层数', width: 120},
 | 
				
			||||
    {field: '', title: '派工人', width: 120},
 | 
				
			||||
    {field: '', title: '施工人', width: 120},
 | 
				
			||||
    {field: '', title: '派工时间', width: 120},
 | 
				
			||||
    {field: '', title: '切割长度', width: 120},
 | 
				
			||||
    {field: '', title: '反馈人', width: 120},
 | 
				
			||||
    {field: '', title: '反馈时间', width: 120},
 | 
				
			||||
    {field: '', title: '备注', width: 120},
 | 
				
			||||
    {field: '', title: '是否借用', width: 120},
 | 
				
			||||
    {field: '', title: '借用船号', width: 120},
 | 
				
			||||
    {field: '', title: '借用批量', width: 120},
 | 
				
			||||
    {field: '', title: '借用分段', width: 120},
 | 
				
			||||
    {field: '', title: '借用组立', width: 120},
 | 
				
			||||
    {field: '', title: '借用跨位', width: 120},
 | 
				
			||||
    {field: '', title: '借用套料图号', width: 120},
 | 
				
			||||
 | 
				
			||||
    {field: '', title: '再处理计划日期', width: 120},
 | 
				
			||||
    {field: '', title: '曲加工标识', width: 120},
 | 
				
			||||
    {field: '', title: '坡口标识', width: 120},
 | 
				
			||||
    {field: '', title: '型材标识', width: 120},
 | 
				
			||||
    {field: '', title: '备注', width: 120},
 | 
				
			||||
 | 
				
			||||
    {field: '', title: '配盘计划日期', width: 120},
 | 
				
			||||
    {field: '', title: '托盘表号', width: 120},
 | 
				
			||||
    {field: '', title: '预摆放位置', width: 120},
 | 
				
			||||
    {field: '', title: '预摆放层数', width: 120},
 | 
				
			||||
    {field: '', title: '备注', width: 120},
 | 
				
			||||
  ]
 | 
				
			||||
 | 
				
			||||
  return {
 | 
				
			||||
    options,
 | 
				
			||||
    columns,
 | 
				
			||||
  }
 | 
				
			||||
}
 | 
				
			||||
@ -0,0 +1,39 @@
 | 
				
			||||
<template>
 | 
				
			||||
  <el-container>
 | 
				
			||||
    <el-header style="padding: 15px">
 | 
				
			||||
      <ZyjhHead ref="zyjhSearchParams" @initData="initData" />
 | 
				
			||||
    </el-header>
 | 
				
			||||
    <el-main>
 | 
				
			||||
      <VxeGrid v-bind="gridOptions" />
 | 
				
			||||
    </el-main>
 | 
				
			||||
  </el-container>
 | 
				
			||||
</template>
 | 
				
			||||
 | 
				
			||||
<script>
 | 
				
			||||
import zyjhConfig from "@/views/jhzxgl/zyjh/index";
 | 
				
			||||
import ZyjhHead from "@/views/jhzxgl/zyjh/comps/head.vue";
 | 
				
			||||
 | 
				
			||||
export default {
 | 
				
			||||
  name:"Zyjh",
 | 
				
			||||
  components: {ZyjhHead},
 | 
				
			||||
  data(){
 | 
				
			||||
    return {
 | 
				
			||||
      gridOptions:{}
 | 
				
			||||
    }
 | 
				
			||||
  },
 | 
				
			||||
  created(){
 | 
				
			||||
    const {options,columns}=zyjhConfig()
 | 
				
			||||
    this.gridOptions=options
 | 
				
			||||
    this.gridOptions.columns=columns
 | 
				
			||||
    console.log(this.gridOptions)
 | 
				
			||||
  },
 | 
				
			||||
  mounted(){
 | 
				
			||||
 | 
				
			||||
  },
 | 
				
			||||
  methods:{
 | 
				
			||||
    initData(data){
 | 
				
			||||
      this.gridOptions.data=data;
 | 
				
			||||
    }
 | 
				
			||||
  }
 | 
				
			||||
}
 | 
				
			||||
</script>
 | 
				
			||||
@ -0,0 +1,29 @@
 | 
				
			||||
import Konva from "konva";
 | 
				
			||||
 | 
				
			||||
const sliao=function (options){
 | 
				
			||||
  const width=options.width||window.innerWidth
 | 
				
			||||
  const height=options.width||window.innerHeight
 | 
				
			||||
 | 
				
			||||
  const slOption={
 | 
				
			||||
    title:'上  料  作  业  区'
 | 
				
			||||
  }
 | 
				
			||||
  function drawTitle(){
 | 
				
			||||
    return new Konva.Text({
 | 
				
			||||
      x:15,
 | 
				
			||||
      y:8,
 | 
				
			||||
      width:width-30,
 | 
				
			||||
      height:20,
 | 
				
			||||
      lineHeight:1,
 | 
				
			||||
      stroke:'blue',
 | 
				
			||||
      strokeWidth:2,
 | 
				
			||||
      text:slOption.title,
 | 
				
			||||
      align:'center',
 | 
				
			||||
      fontSize:32,
 | 
				
			||||
    })
 | 
				
			||||
  }
 | 
				
			||||
  return {
 | 
				
			||||
    drawTitle
 | 
				
			||||
  }
 | 
				
			||||
}
 | 
				
			||||
 | 
				
			||||
export default sliao
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue