This commit is contained in:
bryan sun
2019-12-25 17:52:44 +08:00
8 changed files with 46 additions and 38 deletions

View File

@@ -21,7 +21,7 @@
<!--:value="item.value"/>-->
<!--</el-select>-->
<span>机床图号:</span>
<el-select v-model="machineNameValue" placeholder="机床号" style="margin-right: 10px; width: 150px" size="small" clearable @change="machineChange">
<el-select v-model="machineNameValue" placeholder="机床号" style="margin-right: 10px; width: 150px" size="small" filterable clearable @change="machineChange">
<el-option
v-for="item in machineName"
:key="item.value"
@@ -326,6 +326,7 @@ export default {
this.check3 = 0
}
searchTable(this.entryNameValue, this.machineValue, this.check2, this.GroupNumValue, this.check3, this.PartDrawingNumber, this.pageCurrent, this.pageSize).then(response => {
console.log(response.data)
this.tableData = response.data.rows
this.total = response.data.total
this.listLoading = false

View File

@@ -10,7 +10,7 @@
<!-- <el-button type="primary" icon="el-icon-edit" size="small" @click="addMaterial()">新增</el-button>-->
</el-row>
</div>
<el-table :data="tableData1" stripe highlight-current-row border height="600px" style="width: 790px" size="mini">
<el-table :data="tableData1" stripe highlight-current-row border height="600px" style="width: 639px" size="mini">
<el-table-column label="名称" prop="物料名称" align="center" width="150" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.物料名称 }}
@@ -26,21 +26,21 @@
{{ scope.row.物料规格 }}
</template>
</el-table-column>
<el-table-column label="物料来源" prop="物料来源" align="center" width="80">
<template slot-scope="scope">
{{ scope.row.物料来源 }}
</template>
</el-table-column>
<!-- <el-table-column label="仓库" prop="仓库名称" align="center" min-width="90">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.仓库名称 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="货位" prop="货位名称" align="center" width="80">
<template slot-scope="scope">
{{ scope.row.货位名称 }}
</template>
</el-table-column>
<!--<el-table-column label="物料来源" prop="物料来源" align="center" width="80">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.物料来源 }}-->
<!--</template>-->
<!--</el-table-column>-->
<!--&lt;!&ndash; <el-table-column label="仓库" prop="仓库名称" align="center" min-width="90">&ndash;&gt;-->
<!--&lt;!&ndash; <template slot-scope="scope">&ndash;&gt;-->
<!--&lt;!&ndash; {{ scope.row.仓库名称 }}&ndash;&gt;-->
<!--&lt;!&ndash; </template>&ndash;&gt;-->
<!--&lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!--<el-table-column label="货位" prop="货位名称" align="center" width="80">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.货位名称 }}-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="货位存量" align="center" width="100" prop="货位存量">
<template slot-scope="scope">
<template v-if="scope.row.changeValue">
@@ -220,7 +220,7 @@ export default {
method: 'post',
data: {
type: '1',
name: `库存管理_库存盘点_物料货位数量_查询数据`,
name: `库存管理_库存盘点_物料货位数量_查询数据_新`,
param: `物料名称_check=${check1}&物料名称=${this.materialName}&物料规格_check=${check2}&物料规格=${this.materialSpec}&物料型号_check=${check3}&物料型号=${this.materialModel}`,
Pagination: this.pageCurrent + '&' + this.pageSize
}

View File

@@ -142,6 +142,7 @@ export default {
this.search2()
this.search4()
this.search5()
this.search6()
},
methods: {
fetchData() {

View File

@@ -327,18 +327,28 @@ export default {
},
// 保存行价格
saveRowPrice() {
this.count = 0
for (let i = 0; i < this.tableData2.length; i++) {
if (this.checkBox[i] === false) {
this.count = this.count + 1
}
}
if (this.tableData2.length === 0) {
this.$message.error('请选择零件')
} else {
this.a = 0
for (let i = 0; i < this.tableData2.length; i++) {
saveRowPrice(this.tableData2[i].工序流水号, 0, this.tableData2[i].工艺计划流水号, 0).then(response => {
this.a += parseInt(response.data[0].result)
if (this.a === this.tableData2.length) {
this.$message.success('保存成功')
this.searchTable()
}
})
if (this.count !== this.tableData2.length) {
this.a = 0
for (let i = 0; i < this.tableData2.length; i++) {
saveRowPrice(this.tableData2[i].工序流水号, 0, this.tableData2[i].工艺计划流水号, 0).then(response => {
this.a += parseInt(response.data[0].result)
if (this.a === this.tableData2.length) {
this.$message.success('保存成功')
this.searchTable()
}
})
}
} else {
this.$message.error('请选择需要外协工序')
}
}
},

View File

@@ -2,7 +2,7 @@
<div>
<el-card>
<span>项目名称</span>
<el-select v-model="projectValue" placeholder="请选择项目名称" filterable size="small" style="width: 185px">
<el-select v-model="projectValue" placeholder="请选择项目名称" clearable filterable size="small" style="width: 185px">
<el-option
v-for="item in project"
:key="item.value"
@@ -10,7 +10,7 @@
:value="item.value"/>
</el-select>
<span>机床图号</span>
<el-select v-model="machineValue" placeholder="请选择机床图号" filterable size="small" style="width: 185px">
<el-select v-model="machineValue" placeholder="请选择机床图号" clearable filterable size="small" style="width: 185px">
<el-option
v-for="item in machine"
:key="item.value"
@@ -18,7 +18,7 @@
:value="item.value"/>
</el-select>
<span>组号</span>
<el-select v-model="groupValue" placeholder="请选择组号" filterable size="small" style="width: 100px">
<el-select v-model="groupValue" placeholder="请选择组号" clearable filterable size="small" style="width: 100px">
<el-option
v-for="item in group"
:key="item.value"