This commit is contained in:
chenjianan
2019-05-21 16:02:21 +08:00
parent 661aa80457
commit 8aded86549
3 changed files with 18 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
"@xkeshi/vue-barcode": "^1.0.0",
"axios": "0.18.0",
"echarts": "^4.2.0-rc.2",
"element-ui": "2.4.6",
"element-ui": "2.8.2",
"file-saver": "^1.3.8",
"html2canvas": "^1.0.0-alpha.12",
"jquery": "^3.3.1",

View File

@@ -51,6 +51,16 @@
border
highlight-current-row
@row-click="click">
<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.零件图号 }}

View File

@@ -2,7 +2,7 @@
<div class="app-container">
<el-card>
<span>工艺员:</span>
<el-select v-model="CraftmenValue" placeholder="工艺员" size="small" style="width:100px" @change="clearDetail();searchParts()">
<el-select v-model="CraftmenValue" placeholder="工艺员" size="small" style="width:100px" @change="clearDetail();">
<el-option
v-for="item in Craftmen"
:key="item.value"
@@ -10,16 +10,16 @@
:value="item.value"/>
</el-select>
<span>零件号:</span>
<el-select v-model="partNumValue" filterable clearable placeholder="零件号" size="small" @clear="clearDetail" @change="searchDetail()">
<el-input v-model="partNumber" clearable placeholder="零件号" size="small" style="width:200px">
<el-button slot="append" icon="el-icon-right" @click="searchParts();partNumValue=''"/>
</el-input>
<el-select v-model="partNumValue" placeholder="选择零件编制工艺定额" size="small" @clear="clearDetail" @change="searchDetail()">
<el-option
v-for="item in partNum"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<el-button type="success" icon="el-icon-search" style="margin: 10px;" size="small" @click="searchDetail">
查询
</el-button>
<el-checkbox v-model="checked" :disabled="isShow2" size="small" style="margin:10px">是否核准</el-checkbox>
<el-button v-show="isShow2" type="danger" icon="el-icon-edit" size="small" @click="returnEdit">在制零件工艺调整
</el-button>
@@ -554,6 +554,7 @@ export default {
},
data() {
return {
partNumber: '',
options: [],
weight: '',
dialogMateria2: false,
@@ -1080,7 +1081,7 @@ export default {
this.isShow1 = true
this.isShow2 = false
this.checked1 = true
getPartnames1(this.CraftmenValue, this.partNumValue).then(response => {
getPartnames1(this.CraftmenValue, this.partNumber).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.partNum.push({
label: response.data[i].零件图号,