20200207LLJV1
This commit is contained in:
@@ -58,30 +58,30 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent10"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize10"
|
||||
:total="total10"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange10"
|
||||
@current-change="handleCurrentChange10"/>
|
||||
</div>
|
||||
<!--<div class="block">-->
|
||||
<!--<el-pagination-->
|
||||
<!--:current-page="pageCurrent10"-->
|
||||
<!--:page-sizes="[10, 20, 30, 40]"-->
|
||||
<!--:page-size="pageSize10"-->
|
||||
<!--:total="total10"-->
|
||||
<!--style="display:inline-block;width:50%"-->
|
||||
<!--layout="total, sizes, prev, pager, next, jumper"-->
|
||||
<!--@size-change="handleSizeChange10"-->
|
||||
<!--@current-change="handleCurrentChange10"/>-->
|
||||
<!--</div>-->
|
||||
</el-card>
|
||||
<el-card style="width: 1137px">
|
||||
<span>离线备料单号:</span>
|
||||
<el-input v-model="purchasingOrder" placeholder="离线备料单号" size="small" style="width: 160px" clearable/>
|
||||
<span style="margin-left: 10px">供应商:</span>
|
||||
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 150px" filterable clearable>
|
||||
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 150px" filterable clearable @change="searchTable">
|
||||
<el-option
|
||||
v-for="item in supplierNames"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent2=1;pageSize2=10;total2=0;searchTable()">查询</el-button>
|
||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="searchTable()">查询</el-button>
|
||||
<el-button type="primary" size="small" icon="el-icon-plus" style="margin-left: 10px" @click="addPurchaseOrder">创建采购计划单</el-button>
|
||||
<!--<el-tooltip :open-delay="1200" effect="dark" content="保存选中的采购计划单" placement="top">-->
|
||||
<!--<el-button type="baocun" size="small" icon="el-icon-download" style="margin-left: 10px" @click="saveMateriel">保存采购计划单</el-button>-->
|
||||
@@ -137,17 +137,17 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent2"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize2"
|
||||
:total="total2"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange2"
|
||||
@current-change="handleCurrentChange2"/>
|
||||
</div>
|
||||
<!--<div class="block">-->
|
||||
<!--<el-pagination-->
|
||||
<!--:current-page="pageCurrent2"-->
|
||||
<!--:page-sizes="[10, 20, 30, 40]"-->
|
||||
<!--:page-size="pageSize2"-->
|
||||
<!--:total="total2"-->
|
||||
<!--style="display:inline-block;width:50%"-->
|
||||
<!--layout="total, sizes, prev, pager, next, jumper"-->
|
||||
<!--@size-change="handleSizeChange2"-->
|
||||
<!--@current-change="handleCurrentChange2"/>-->
|
||||
<!--</div>-->
|
||||
</el-card>
|
||||
<el-card style="width: 1137px">
|
||||
<el-table v-loading="" :data="tableData3" stripe highlight-current-row border style="width: 100%;max-height: 300px;margin-top: 10px" size="mini">
|
||||
@@ -402,7 +402,7 @@ export default {
|
||||
})
|
||||
}
|
||||
})
|
||||
this.getTableData()
|
||||
// this.getTableData()
|
||||
}
|
||||
}, // 获取组号
|
||||
getGroup() {
|
||||
@@ -415,7 +415,7 @@ export default {
|
||||
value: response.data[i].组件流水号
|
||||
})
|
||||
}
|
||||
this.Group = response.data[0].组件流水号
|
||||
// this.Group = response.data[0].组件流水号
|
||||
})
|
||||
this.getTableData()
|
||||
},
|
||||
@@ -442,6 +442,10 @@ export default {
|
||||
// 按条件查询
|
||||
getTableData() {
|
||||
this.tableData10 = []
|
||||
if (!this.Machine && !this.Group && !this.number) {
|
||||
this.$message.error('请输入筛选条件!')
|
||||
return
|
||||
}
|
||||
if (this.Machine === '') {
|
||||
this.checkbox_Machine = 0
|
||||
} else {
|
||||
@@ -457,21 +461,20 @@ export default {
|
||||
} else {
|
||||
this.checkbox_number = 1
|
||||
}
|
||||
getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, '', '', this.pageCurrent10, this.pageSize10, this.ordername, this.order).then(response => {
|
||||
if (response.data.rows.length !== 0) {
|
||||
for (let i = 0; i < response.data.rows.length; i++) {
|
||||
getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, '', '', this.ordername, this.order).then(response => {
|
||||
if (response.data.length !== 0) {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.tableData10.push({
|
||||
工艺计划流水号: response.data.rows[i].工艺计划流水号,
|
||||
机床图号: response.data.rows[i].机床图号,
|
||||
组号: response.data.rows[i].组号,
|
||||
零件图号: response.data.rows[i].零件图号,
|
||||
零件名称: response.data.rows[i].零件名称,
|
||||
批次数量: response.data.rows[i].批次数量,
|
||||
材料: response.data.rows[i].材料
|
||||
工艺计划流水号: response.data[i].工艺计划流水号,
|
||||
机床图号: response.data[i].机床图号,
|
||||
组号: response.data[i].组号,
|
||||
零件图号: response.data[i].零件图号,
|
||||
零件名称: response.data[i].零件名称,
|
||||
批次数量: response.data[i].批次数量,
|
||||
材料: response.data[i].材料
|
||||
})
|
||||
}
|
||||
}
|
||||
this.total10 = response.data.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
@@ -492,11 +495,16 @@ export default {
|
||||
}
|
||||
},
|
||||
searchTable() {
|
||||
this.tableData = []
|
||||
if (!this.purchasingOrder && !this.supplierName) {
|
||||
this.$message.error('请输入筛选条件!')
|
||||
return
|
||||
}
|
||||
this.purchasingOrder ? this.check3 = 1 : this.check3 = 0
|
||||
this.supplierName ? this.check4 = 1 : this.check4 = 0
|
||||
searchPurchaseOrder(this.pageCurrent2, this.pageSize2, this.check3, this.purchasingOrder, this.check4, this.supplierName).then(response => {
|
||||
this.tableData = response.data.rows
|
||||
this.total2 = response.data.total
|
||||
searchPurchaseOrder(this.check3, this.purchasingOrder, this.check4, this.supplierName).then(response => {
|
||||
this.tableData = response.data
|
||||
// this.total2 = response.data.total
|
||||
})
|
||||
},
|
||||
handleSizeChange2(val) { // 采购单列表分页
|
||||
|
||||
Reference in New Issue
Block a user