This commit is contained in:
liushuai
2020-03-31 17:57:56 +08:00
5 changed files with 15 additions and 18 deletions

View File

@@ -53,8 +53,7 @@ export function search(pageCurrent, pageSize, check1, val1, check2, val2, check3
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '1', type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_按机床分组图号人员查', name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_按机床分组图号人员查',
param: `机床流水号_check=${check1}&机床流水号=${val1}&组件流水号_check=${check2}&组件流水号=${val2}&零件图号_check=${check3}&零件图号=${val3}&人员编号_check=${check4}&人员编号=${val4}&编制时间_check=${val5}&编制开始时间=${val5}&编制结束时间=${val6}`, param: `机床流水号_check=${check1}&机床流水号=${val1}&组件流水号_check=${check2}&组件流水号=${val2}&零件图号_check=${check3}&零件图号=${val3}&人员编号_check=${check4}&人员编号=${val4}&编制时间_check=${check5}&编制开始时间=${val5}&编制结束时间=${val6}&PageCurrent=${pageCurrent}&PageSize=${pageSize}&PageCount=1111=int=output&ItemCount=1111=int=output`
Pagination: pageCurrent + '&' + pageSize
} }
}) })
} }

View File

@@ -400,7 +400,7 @@ export function deleteOne(num0, num1) {
data: { data: {
UserID: state.state.user.id, UserID: state.state.user.id,
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '1',
name: '车间生产管理工艺_零件工序_删除数据_工序流水号', name: '车间生产管理工艺_零件工序_删除数据_工序流水号',
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
} }

View File

@@ -47,7 +47,7 @@
</div> </div>
</el-card> </el-card>
<el-row> <el-row>
<el-col style="width: 750px"> <el-col style="width: 700px">
<el-card> <el-card>
<el-table v-loading="loading" :data="tableData" size="mini" height="740" style="width: 750px" border stripe highlight-current-row @selection-change="handleSelectionChange" @row-click="click"> <el-table v-loading="loading" :data="tableData" size="mini" height="740" style="width: 750px" border stripe highlight-current-row @selection-change="handleSelectionChange" @row-click="click">
<el-table-column type="selection" align="center" width="50"/> <el-table-column type="selection" align="center" width="50"/>
@@ -81,7 +81,7 @@
{{ scope.row.批次数量 }} {{ scope.row.批次数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="工艺员" prop="工艺员" align="center" width="67px"> <el-table-column label="工艺员" prop="工艺员" align="center" width="90px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.工艺员 }} {{ scope.row.工艺员 }}
</template> </template>
@@ -115,7 +115,7 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
<el-col style="width: 1000px"> <el-col style="width: 680px">
<el-card v-if="tableData2.length"> <el-card v-if="tableData2.length">
<table class="tg"> <table class="tg">
<tr> <tr>
@@ -296,7 +296,7 @@ export default {
this.personValue ? check4 = 1 : check4 = 0 this.personValue ? check4 = 1 : check4 = 0
this.finishTime ? check5 = 1 : (check5 = 0, this.finishTime = '') this.finishTime ? check5 = 1 : (check5 = 0, this.finishTime = '')
search(this.pageCurrent, this.pageSize, check1, this.machineNumberValue, check2, this.groupNumberValue, check3, this.PrNum, check4, this.personValue, check5, this.finishTime[0], this.finishTime[1]).then(response => { search(this.pageCurrent, this.pageSize, check1, this.machineNumberValue, check2, this.groupNumberValue, check3, this.PrNum, check4, this.personValue, check5, this.finishTime[0], this.finishTime[1]).then(response => {
this.tableData = response.data.rows this.tableData = response.data.result
this.tableData.map(v => { this.tableData.map(v => {
this.$set(v) this.$set(v)
if (v.工艺员 === '超级管理员') { if (v.工艺员 === '超级管理员') {
@@ -304,7 +304,7 @@ export default {
} }
return v return v
}) })
this.total = response.data.total this.total = parseInt(response.data.output[0].ItemCount)
this.loading = false this.loading = false
}) })
}, },

View File

@@ -400,13 +400,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="零件图号"> <el-form-item label="零件图号">
<el-select <el-select v-model="tuhaoValue" placeholder="零件图号" size="small" filterable style="width:150px" @change="numChange1()">
v-model="tuhaoValue"
placeholder="零件图号"
size="small"
filterable
style="width:150px"
@change="numChange1()">
<el-option <el-option
v-for="item in tuhao" v-for="item in tuhao"
:key="item.value" :key="item.value"
@@ -1572,8 +1566,12 @@ export default {
if (this.partNumValue === '') { if (this.partNumValue === '') {
this.$message.error('请先选择一个零件') this.$message.error('请先选择一个零件')
} else { } else {
deleteOne(this.partNumValue, row.工序流水号).then(() => { deleteOne(this.partNumValue, row.工序流水号).then(response => {
if (response.data[0].结果 === '成功') {
this.searchDetail() this.searchDetail()
} else {
this.$message.error('此工序已加工,无法删除')
}
}) })
} }
}, },

View File

@@ -226,7 +226,7 @@ export default {
if (row.工序状态 !== 4 && row.工序间是否外协 !== 2) { if (row.工序状态 !== 4 && row.工序间是否外协 !== 2) {
XuanRu(this.PersonValue, row.工序流水号).then(response => { XuanRu(this.PersonValue, row.工序流水号).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.tableData1[this.index].状态 = '1' this.tableData1[this.index].状态 = 1
this.loading3 = true this.loading3 = true
this.tableData3 = [] this.tableData3 = []
getGongxu(this.工艺计划流水号).then(response => { getGongxu(this.工艺计划流水号).then(response => {