NVARBARdialog

This commit is contained in:
zhangdingyu
2019-10-10 20:05:03 +08:00
parent 5bb1402474
commit e2ae5962ce
3 changed files with 42 additions and 34 deletions

View File

@@ -10,7 +10,7 @@
:value="item.value"/>
</el-select>
<span>合同</span>
<el-select v-model="contractValue" placeholder="请选择合同" filterable size="small" style="width: 200px">
<el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 200px">
<el-option
v-for="item in contract"
:key="item.value"
@@ -20,20 +20,16 @@
<el-button type="success" size="small" style="margin-left: 10px" @click="searchContractDetail">查询明细</el-button>
</el-card>
<el-card>
<el-table ref="multipleTable" :data="table1" border size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px" height="350px" @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 label="名称" width="200px" align="center" show-overflow-tooltip prop="物料名称">
<template slot-scope="scope">
<el-tooltip :content="scope.row.物料名称" effect="dark">
<span>{{ scope.row.物料名称 }}</span>
</el-tooltip>
{{ scope.row.物料名称 }}
</template>
</el-table-column>
<el-table-column label="规格型号" min-width="300px" align="center" show-overflow-tooltip>
<el-table-column label="规格型号" width="300px" align="center" show-overflow-tooltip>
<template slot-scope="scope">
<el-tooltip :content="scope.row.物料规格 + ' ' + scope.row.物料型号" effect="dark">
<span>{{ scope.row.物料规格 + ' ' + scope.row.物料型号 }}</span>
</el-tooltip>
{{ scope.row.物料规格 + '&nbsp;' + scope.row.物料型号 }}
</template>
</el-table-column>
<el-table-column label="采购数量" align="center" width="180" show-overflow-tooltip prop="数量">
@@ -233,7 +229,6 @@ export default {
// 获取人员编号
getpeopleid() {
this.inventoryPeople = Cookie.get('id')
console.log(this.inventoryPeople)
},
// 查询离线合同明细
async searchContractDetail() {
@@ -256,7 +251,6 @@ export default {
this.$set(v, '本次到货数量', v.数量 - v.到货数量)
return v
})
console.log(res.data)
if (res.data.length > 0) {
this.supplierName = res.data[0].供应商名称
this.contractNumber = res.data[0].离线合同编号
@@ -278,7 +272,6 @@ export default {
} else if (!this.locateNumber) {
this.$message.warning('请选择货位或者扫码货位二维码')
} else {
console.log(this.multipleSelection)
const materialGroup = []
const numberGroup = []
const partGroup = []
@@ -293,7 +286,6 @@ export default {
center: 'true',
type: 'warning'
}).then(async() => {
console.log(materialGroup, partGroup, numberGroup, this.locateNumber)
const param = {
url: url,
method: 'post',

View File

@@ -126,11 +126,11 @@
</el-row>
</el-form>
</el-card>
<el-table v-show="true" :data="tableData" border style="width: 100%;margin-top:20px;">
<el-table v-show="false" :data="tableData" border style="width: 100%;margin-top:20px;">
<el-table-column v-for="item of tableHeader" :key="item" :label="item">
<el-table-column label="重量" width="120">
<template slot-scope="scope">
{{ scope.row.address }}
<!--{{ scope.row[${item}重量] }}-->
</template>
</el-table-column>
<el-table-column label="金额" width="120">