This commit is contained in:
chenjianan
2019-01-29 15:29:23 +08:00
parent 547be03325
commit f2601e7c4e
2 changed files with 150 additions and 143 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"
@@ -152,9 +157,9 @@
</template> </template>
<script> <script>
import { initProject, searchmachine, searchTeam, searchPart, searchPeople, outlinePartOut, outRecord } from '@/api/Inventory/OfflinePartOut' import { initProject, searchmachine, searchTeam, searchPart, searchPeople, outlinePartOut, outRecord } from '@/api/Inventory/OfflinePartOut'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
Project: [], Project: [],
@@ -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
}) })
@@ -301,7 +307,7 @@ export default {
} }
} }
} }
} }
</script> </script>
<style scoped> <style scoped>