This commit is contained in:
zhangdingyu
2019-10-11 18:54:46 +08:00
parent 6db906876a
commit 67fefc10b4
2 changed files with 28 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
<div> <div>
<el-card> <el-card>
<span>供应商</span> <span>供应商</span>
<el-select v-model="supplierValue" placeholder="请选择供应商" filterable size="small" style="width: 200px" @change="supplierChange();searchContractDetail()"> <el-select v-model="supplierValue" placeholder="请选择供应商" filterable size="small" style="width: 180px" @change="supplierChange();searchContractDetail()">
<el-option <el-option
v-for="item in supplier" v-for="item in supplier"
:key="item.value" :key="item.value"
@@ -10,7 +10,7 @@
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<span style="margin-left: 5px">合同</span> <span style="margin-left: 5px">合同</span>
<el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 200px" @change="searchContractDetail()"> <el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 180px" @change="searchContractDetail()">
<el-option <el-option
v-for="item in contract" v-for="item in contract"
:key="item.value" :key="item.value"
@@ -22,27 +22,27 @@
<el-card> <el-card>
<el-table ref="multipleTable" :data="table1" border size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" :data="table1" border size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px" @selection-change="handleSelectionChange">
<el-table-column :selectable="selectable" type="selection" align="center" width="50px"/> <el-table-column :selectable="selectable" type="selection" align="center" width="50px"/>
<el-table-column label="合同编号" width="150px" align="center" show-overflow-tooltip prop="合同编号"> <el-table-column label="合同编号" width="120px" align="center" show-overflow-tooltip prop="合同编号">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.离线合同编号 }} {{ scope.row.离线合同编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="名称" width="200px" align="center" show-overflow-tooltip prop="物料名称"> <el-table-column label="名称" width="150px" align="center" show-overflow-tooltip prop="物料名称">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料名称 }} {{ scope.row.物料名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="规格型号" width="300px" align="center" show-overflow-tooltip> <el-table-column label="规格型号" width="180px" align="center" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料规格 + '&nbsp;' + scope.row.物料型号 }} {{ scope.row.物料规格 + '&nbsp;' + scope.row.物料型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="采购数量" align="center" width="180" show-overflow-tooltip prop="数量"> <el-table-column label="采购数量" align="center" width="100" show-overflow-tooltip prop="数量">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.数量 }} {{ scope.row.数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="已到数量" align="center" width="180" show-overflow-tooltip prop="到货数量"> <el-table-column label="已到数量" align="center" width="100" show-overflow-tooltip prop="到货数量">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.到货数量 }} {{ scope.row.到货数量 }}
</template> </template>
@@ -53,8 +53,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<span>仓库名称</span> <span v-show="false">仓库名称</span>
<el-select v-model="inventoryNumber" style="width: 200px" filterable size="small" placeholder="仓库名称" @change="getLocate"> <el-select v-show="false" v-model="inventoryNumber" style="width: 200px" filterable size="small" placeholder="仓库名称" @change="getLocate">
<el-option <el-option
v-for="item in inventoryName" v-for="item in inventoryName"
:key="item.value" :key="item.value"
@@ -105,7 +105,7 @@ export default {
}, },
mounted() { mounted() {
this.initSupplier() this.initSupplier()
this.getHouse() this.getLocate()
this.getpeopleid() this.getpeopleid()
}, },
methods: { methods: {
@@ -130,17 +130,17 @@ export default {
}, },
// 获取货位 // 获取货位
async getLocate() { async getLocate() {
this.locateNumber = ''
this.locateName = []
const param = { const param = {
url: url, url: url,
method: 'post', method: 'post',
data: { data: {
type: '1', type: '1',
name: '库存管理_货位主文件_查询数据', name: '库存管理_货位主文件_查询数据_查询全部'
param: `仓库流水号=${this.inventoryNumber}`
} }
} }
const res = await axios(param) const res = await axios(param)
this.locateName = []
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
this.locateName.push({ this.locateName.push({
label: res.data[i].货位名称, label: res.data[i].货位名称,

View File

@@ -2,7 +2,7 @@
<div> <div>
<el-card> <el-card>
<span>供应商</span> <span>供应商</span>
<el-select v-model="supplierValue" placeholder="请选择供应商" filterable size="small" style="width: 200px" @change="supplierChange();searchContractDetail()"> <el-select v-model="supplierValue" placeholder="请选择供应商" filterable size="small" style="width: 180px" @change="supplierChange();searchContractDetail()">
<el-option <el-option
v-for="item in supplier" v-for="item in supplier"
:key="item.value" :key="item.value"
@@ -10,7 +10,7 @@
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<span style="margin-left: 5px">合同</span> <span style="margin-left: 5px">合同</span>
<el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 200px" @change="searchContractDetail()"> <el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 180px" @change="searchContractDetail()">
<el-option <el-option
v-for="item in contract" v-for="item in contract"
:key="item.value" :key="item.value"
@@ -18,7 +18,7 @@
:value="item.value"/> :value="item.value"/>
</el-select> </el-select>
<span style="margin-left: 5px">合同类型</span> <span style="margin-left: 5px">合同类型</span>
<el-select v-model="TypeValue" filterable size="small" placeholder="合同类型" @change="contractTypeChange"> <el-select v-model="TypeValue" filterable size="small" placeholder="合同类型" style="width: 180px" @change="contractTypeChange">
<el-option <el-option
v-for="item in Type" v-for="item in Type"
:key="item.value" :key="item.value"
@@ -30,27 +30,27 @@
<el-card> <el-card>
<el-table ref="multipleTable" :data="table1" border size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" :data="table1" border size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px" @selection-change="handleSelectionChange">
<el-table-column :selectable="selectable" type="selection" align="center" width="50px"/> <el-table-column :selectable="selectable" type="selection" align="center" width="50px"/>
<el-table-column label="合同编号" width="150px" align="center" show-overflow-tooltip prop="合同编号"> <el-table-column label="合同编号" width="120px" align="center" show-overflow-tooltip prop="合同编号">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.合同编号 }} {{ scope.row.合同编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="名称" width="200px" align="center" show-overflow-tooltip prop="物料名称"> <el-table-column label="名称" width="150px" align="center" show-overflow-tooltip prop="物料名称">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料名称 }} {{ scope.row.物料名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="规格型号" width="300px" align="center" show-overflow-tooltip> <el-table-column label="规格型号" width="180px" align="center" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.物料规格 + '&nbsp;' + scope.row.物料型号 }} {{ scope.row.物料规格 + '&nbsp;' + scope.row.物料型号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="采购数量" align="center" width="180" show-overflow-tooltip prop="数量"> <el-table-column label="采购数量" align="center" width="100" show-overflow-tooltip prop="数量">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.数量 }} {{ scope.row.数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="已到数量" align="center" width="180" show-overflow-tooltip prop="到货数量"> <el-table-column label="已到数量" align="center" width="100" show-overflow-tooltip prop="到货数量">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.到货数量 }} {{ scope.row.到货数量 }}
</template> </template>
@@ -61,8 +61,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<span>仓库名称</span> <span v-show="false">仓库名称</span>
<el-select v-model="inventoryNumber" style="width: 200px" filterable size="small" placeholder="仓库名称" @change="getLocate"> <el-select v-show="false" v-model="inventoryNumber" style="width: 200px" filterable size="small" placeholder="仓库名称" @change="getLocate">
<el-option <el-option
v-for="item in inventoryName" v-for="item in inventoryName"
:key="item.value" :key="item.value"
@@ -116,7 +116,7 @@ export default {
}, },
created() { created() {
this.initSupplier() this.initSupplier()
this.getHouse() this.getLocate()
this.getpeopleid() this.getpeopleid()
}, },
methods: { methods: {
@@ -145,17 +145,18 @@ export default {
}, },
// 获取货位 // 获取货位
async getLocate() { async getLocate() {
this.locateNumber = ''
this.locateName = []
const param = { const param = {
url: url, url: url,
method: 'post', method: 'post',
data: { data: {
type: '1', type: '1',
name: '库存管理_货位主文件_查询数据', name: '库存管理_货位主文件_查询数据_查询全部'
param: `仓库流水号=${this.inventoryNumber}` // param: `仓库流水号=${this.inventoryNumber}`
} }
} }
const res = await axios(param) const res = await axios(param)
this.locateName = []
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
this.locateName.push({ this.locateName.push({
label: res.data[i].货位名称, label: res.data[i].货位名称,