修改_20190531

This commit is contained in:
jiangfuzhuang
2019-05-31 18:37:08 +08:00
parent f4bb03950e
commit c5a29599fc
6 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import request from '@/utils/request'
// 初始化机床项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 组件查询
export function searchgroup(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + num
}
})
}
// 车间生产管理工艺_备料管理_备料出库记录_视图_查询数据
export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_备料管理_备料出库记录_视图_查询数据',
param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&开始时间_check=' + check4 + '&开始时间=' + value4 + '&结束时间_check=' + check5 + '&结束时间=' + value5
}
})
}

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559288249209" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1672" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M858.286829 415.34439V155.797854c0-48.577561-40.210732-92.135024-92.110049-92.135025h-92.110048V0h-51.949269v63.637854H248.657171V0H196.732878v63.637854H104.597854C56.045268 63.637854 12.487805 103.848585 12.487805 155.772878v634.755122c0 48.577561 40.210732 92.110049 92.110049 92.110049h341.666341c58.642732 72.029659 145.732683 122.280585 249.556293 122.280585 174.204878 0 314.892488-140.68761 314.892488-316.565854 0-117.235512-60.316098-217.71239-152.426147-272.983414zM101.276098 113.88878h92.085073v33.492293h55.271024v-33.467317h375.18361V147.356098h51.924293v-33.467318h90.411707c21.803707 0 40.210732 18.407024 40.210732 40.160781v92.135024H64.437073V152.401171c0-21.753756 15.060293-38.51239 36.839025-38.512391z m0 710.131513c-21.803707 0-40.210732-18.407024-40.210732-40.210732V296.460488h741.950439v92.110049c-33.492293-11.738537-73.678049-21.778732-112.215415-21.778732-174.179902 0-316.540878 140.68761-316.540878 316.540878 0 51.949268 11.738537 97.155122 33.492293 140.68761H101.251122z m592.871024 122.280585c-145.707707 0-262.94322-118.933854-262.94322-262.968195s118.908878-262.94322 262.94322-262.94322 266.314927 118.908878 266.314927 262.94322S839.854829 946.325854 694.147122 946.325854z" fill="#ffffff" p-id="1673"></path><path d="M736.03122 683.332683v-167.486439h-51.949269v219.410732h214.41561V683.332683z" fill="#ffffff" p-id="1674"></path></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559288417172" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3010" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M958.750415 498.401284 818.891064 330.078671c-2.359744-2.859118-5.887081-4.500501-9.584286-4.500501l-206.881814 0 0-13.379729c0-35.311227-28.731368-64.030315-64.054875-64.030315L336.456427 248.168126c-27.634384-37.529755-72.125691-61.888536-122.30044-61.888536-83.807754 0-151.778822 67.946508-151.778822 151.755286 0 47.081295 21.440311 89.135086 55.082526 116.959805-0.001023-0.001023-0.00307-0.002047-0.004093-0.00307l0 232.80216c0 35.32453 28.730345 64.054875 64.029292 64.054875l6.746658 0c6.138814 48.365544 47.538713 85.875856 97.54564 85.875856 49.985438 0 91.384313-37.510312 97.523127-85.875856l155.070798 0c0.520863 0 1.035586-0.027629 1.554402-0.039909 0.25992 0.016373 0.517793 0.039909 0.781806 0.039909l135.633097 0c6.138814 48.365544 47.536666 85.875856 97.522104 85.875856 50.007951 0 91.407849-37.510312 97.546663-85.875856l26.183336 0c35.299971 0 64.030315-28.730345 64.030315-64.054875L961.622836 506.355443C961.621812 503.449253 960.600553 500.626975 958.750415 498.401284zM129.910257 325.577147l71.790046 0 0-93.149517c0-6.885827 5.570879-12.455683 12.455683-12.455683 6.885827 0 12.456706 5.569856 12.456706 12.455683l0 93.149517 2.140757 0c6.884804 0 12.455683 5.570879 12.455683 12.455683 0 6.885827-5.570879 12.456706-12.455683 12.456706l-2.159176 0c-0.194428 6.714935-5.676279 12.090363-12.438287 12.090363-6.760984 0-12.241812-5.376451-12.437264-12.090363l-71.808466 0c-6.885827 0-12.455683-5.570879-12.455683-12.456706C117.454574 331.149049 123.025453 325.577147 129.910257 325.577147zM285.777187 812.81109c-40.48097 0-73.420173-32.939203-73.420173-73.420173 0-40.46869 32.939203-73.396637 73.420173-73.396637 40.481993 0 73.396637 32.927947 73.396637 73.396637C359.172801 779.871887 326.258157 812.81109 285.777187 812.81109zM577.512574 687.791725c0 21.577434-17.564028 39.143509-39.142485 39.143509l-155.071821 0c-6.14086-48.345078-47.538713-85.851297-97.522104-85.851297-50.005904 0-91.40478 37.506219-97.54564 85.851297l-6.746658 0c-21.578458 0-39.118949-17.566074-39.118949-39.143509L142.364917 471.747227c21.376866 11.491729 45.821605 18.016329 71.790046 18.016329 83.808778 0 151.779845-67.898413 151.779845-151.730727 0-23.246447-5.237281-45.267996-14.583137-64.961524 0.001023 0.002047 0.00307 0.005117 0.004093 0.008186l187.013301 0c21.578458 0 39.142485 17.551748 39.142485 39.118949L577.511551 687.791725zM346.314958 263.377526c0 0 0.001023 0.001023 0.001023 0.001023C346.315982 263.378549 346.315982 263.377526 346.314958 263.377526zM348.068905 266.560008c0.00307 0.007163 0.007163 0.014326 0.011256 0.021489C348.075045 266.574335 348.071975 266.567171 348.068905 266.560008zM349.748151 269.791609c0.005117 0.010233 0.010233 0.021489 0.01535 0.031722C349.758384 269.813099 349.753267 269.801842 349.748151 269.791609zM773.860475 812.81109c-40.48097 0-73.396637-32.939203-73.396637-73.420173 0-40.46869 32.915667-73.396637 73.396637-73.396637 40.481993 0 73.421196 32.927947 73.421196 73.396637C847.281671 779.871887 814.342468 812.81109 773.860475 812.81109zM936.710446 687.791725c0 21.577434-17.540492 39.143509-39.119973 39.143509l-26.183336 0c-6.141884-48.345078-47.540759-85.851297-97.546663-85.851297-49.983391 0-91.38022 37.506219-97.521081 85.851297l-87.316671 0c8.390088-10.834766 13.402241-24.409946 13.402241-39.143509l0-337.302189 201.042829 0 59.041698 71.060429L757.68405 421.549965c-35.32453 0-64.054875 28.730345-64.054875 64.054875l0 40.212864c0 35.31225 28.730345 64.030315 64.054875 64.030315l179.026396 0L936.710446 687.791725zM936.710446 564.937676 757.68405 564.937676c-21.579481 0-39.143509-17.552771-39.143509-39.119973l0-40.212864c0-21.579481 17.564028-39.143509 39.143509-39.143509l124.678604 0c0.274246 0 0.541329-0.023536 0.810459-0.040932l53.537334 64.436568L936.710446 564.937676z" p-id="3011" fill="#ffffff"></path></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559288344072" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2217" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M399.36 536.84A55 55 0 0 0 460.61 626l70.6 72.72a55 55 0 1 0 34.24-36.52l-73.3-75.51a55.29 55.29 0 0 0 0.38-19.8l69.5-69.5a55 55 0 1 0-1.67-100l-69.34-70a55 55 0 1 0-34.76 36l73.67 74.42a54.91 54.91 0 0 0 0.39 20.64l-67.93 67.93a55 55 0 0 0-63.03 10.46z" p-id="2218" fill="#ffffff"></path><path d="M891 164.57c-12.66-3.71-91.55-26.8-172.69-49.62C536.09 63.73 520.74 63.73 512.5 63.73h-1c-8.25 0-23.6 0-205.77 51.23-81.14 22.82-160 45.91-172.69 49.62a44.07 44.07 0 0 0-35.74 43.21v277.93c0 55.41 11.8 112.58 35.09 169.94a564.11 564.11 0 0 0 91.68 150.94C307 904.26 411.86 960.27 511.81 960.27v-64c-81.13 0-168.22-47.78-238.94-131.09C203 682.89 161.3 578.42 161.3 485.72V223.25c155.16-45.72 324.39-92.69 350.7-95.44 26.31 2.75 195.54 49.72 350.7 95.44v262.47c0 92.7-41.71 197.17-111.57 279.46-70.73 83.31-157.82 131.09-238.94 131.09v64c99.95 0 204.82-56 287.73-153.67a564.12 564.12 0 0 0 91.69-150.94c23.28-57.36 35.09-114.53 35.09-169.94V207.79a44.07 44.07 0 0 0-35.7-43.22z" p-id="2219" fill="#ffffff"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559288483929" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3811" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M1011.76832 544.0768l-164.16256-435.42016h-176.91648v33.52576h135.02976l110.72 397.6448H678.5024L509.39392 696.2176 329.8816 539.82208H94.5408l110.6944-397.6448H342.8864v-33.52576H168.58112L7.28064 550.28224h0.90624a15.6672 15.6672 0 0 0-0.90624 5.22752v446.83264a15.64672 15.64672 0 0 0 15.60576 15.68256h978.2272a15.64672 15.64672 0 0 0 15.61088-15.68256v-446.83264a15.68256 15.68256 0 0 0-4.95616-11.43296z m-423.63904-341.09952h90.22976L506.79296 0 339.99872 202.97728H430.2336v219.84768h157.9008V202.97728z m-157.9008 270.58176h157.9008v-28.1856h-157.9008v28.1856z m-292.38272 471.22944l-27.27936-36.0704 252.48768-190.96064 109.12256 144.29184 284.16-186.56256-54.54848-72.14592 158.37696 21.98016-21.98016 158.37696-54.56384-72.13568-320.2304 213.83168-109.12256-144.2816-216.4224 163.67616z" fill="#ffffff" p-id="3812"></path></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,159 @@
<template>
<div class="app-container">
<el-card>
<el-row>
<span>机床编号:</span>
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="machineChange()">
<el-option
v-for="item in machineNumber"
:key="item.value"
:label="item.label"
:value="item.value">
<div style="float: left">{{ item.label }}</div>
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.name }}</div>
</el-option>
</el-select>
<span>组号:</span>
<el-select v-model="groupNumberValue" filterable placeholder="组号" size="small" clearable>
<el-option
v-for="item in groupNumber"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<span>零件图号:</span>
<el-input v-model="PartDrawingNumber" filterable placeholder="零件图号" style="width: 200px" size="small" clearable/>
<span class="demonstration">时间区间:</span>
<el-date-picker
v-model="startTime"
value-format="yyyy-MM-dd"
size="small"
style="width: 160px"
type="date"
placeholder="选择日期"/>
<span class="demonstration">~</span>
<el-date-picker
v-model="endTime"
value-format="yyyy-MM-dd"
size="small"
style="width: 160px"
type="date"
placeholder="选择日期"/>
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 15px" @click="selecttable">查询</el-button>
</el-row>
</el-card>
<el-card>
<el-table :data="tableData1" border size="mini" highlight-current-row style="width: 100%;margin-top: 15px" height="600px">
<el-table-column label="项目名称" align="center">
<template slot-scope="scope">
{{ scope.row.项目名称 }}
</template>
</el-table-column>
<el-table-column label="机床图号" align="center">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
<el-table-column label="机床名称" align="center">
<template slot-scope="scope">
{{ scope.row.机床名称 }}
</template>
</el-table-column>
<el-table-column label="组号" align="center">
<template slot-scope="scope">
{{ scope.row.组号 }}
</template>
</el-table-column>
<el-table-column label="零件图号" align="center">
<template slot-scope="scope">
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column label="零件名称" align="center">
<template slot-scope="scope">
{{ scope.row.零件名称 }}
</template>
</el-table-column>
<el-table-column label="质检类型" align="center">
<template slot-scope="scope">
{{ scope.row.质检类型 }}
</template>
</el-table-column>
<el-table-column label="数量" align="center">
<template slot-scope="scope">
{{ scope.row.数量 }}
</template>
</el-table-column>
</el-table>
</el-card>
</div>
</template>
<script>
import { initProject, searchgroup, selecttable } from '@/api/Assembly/SparePartsOutStockRecord'
// import { mapGetters } from 'vuex'
export default {
data() {
return {
PartDrawingNumber: '',
startTime: '',
endTime: '',
startTime_check: '',
endTime_check: '',
machineNumberValue: '',
machineNumber: [],
groupNumberValue: '',
groupNumber: [],
tableData1: []
}
},
created() {
},
mounted() {
this.initProject()
},
methods: {
initProject() {
initProject().then(response => {
for (let i = 0; i < response.data.length; i++) {
this.machineNumber.push({
label: response.data[i].机床图号,
name: response.data[i].项目名称,
value: response.data[i].机床流水号
})
}
})
},
machineChange() {
this.groupNumberValue = ''
this.groupNumber = []
searchgroup(this.machineNumberValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.groupNumber.push({
label: response.data[i].组号,
value: response.data[i].组件流水号
})
}
})
},
selecttable() {
this.tableData1 = []
if (this.machineNumberValue !== '' && this.machineNumberValue !== null) { this.check1 = 1 } else { this.check1 = 0 }
if (this.groupNumberValue !== '' && this.groupNumberValue !== null) { this.check2 = 1 } else { this.check2 = 0 }
if (this.PartDrawingNumber !== '' && this.PartDrawingNumber !== null) { this.check3 = 1 } else { this.check3 = 0 }
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
selecttable(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.PartDrawingNumber, this.startTime_check, this.startTime, this.endTime_check, this.endTime).then(response => {
this.tableData1 = response.data
console.log(response.data, 1111)
})
}
}
}
</script>
<style scoped>
</style>