This commit is contained in:
zhangdingyu
2019-02-12 09:42:34 +08:00
2 changed files with 11 additions and 4 deletions

View File

@@ -36,13 +36,14 @@ export function searchTeam(machineNumber) {
}) })
} }
// 初始化物料 // 初始化物料
export function searchPart() { export function searchPart(data1) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '1', type: '1',
name: '库存管理_离线外购件_出库查询' name: '库存管理_离线外购件_出库查询',
param: '离线合同编号=' + data1
} }
}) })
} }

View File

@@ -1,5 +1,10 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card>
<span style="margin: 5px">离线合同编号</span>
<el-input v-model="offlineContract" clearable size="small" style="width:200px" />
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchPurchasePartinfo()">查询</el-button>
</el-card>
<el-card> <el-card>
<el-table <el-table
v-loading="listLoading" v-loading="listLoading"
@@ -186,7 +191,8 @@ export default {
tableDataOut: [], tableDataOut: [],
listLoading: '', listLoading: '',
listLoading1: '', listLoading1: '',
partnumber: '' partnumber: '',
offlineContract: null // 离线合同编号
} }
}, },
computed: { computed: {
@@ -236,7 +242,7 @@ export default {
searchPurchasePartinfo() { searchPurchasePartinfo() {
this.listLoading = true this.listLoading = true
this.tableDataBasic = [] this.tableDataBasic = []
searchPart().then(response => { searchPart(this.offlineContract).then(response => {
this.tableDataBasic = response.data this.tableDataBasic = response.data
this.listLoading = false this.listLoading = false
}) })