This commit is contained in:
liushuai
2020-04-02 18:25:25 +08:00
parent 3440f4e75e
commit 3397357a3e
18 changed files with 578 additions and 232 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="app-container">
<el-card>
<div style="margin-top: 8px;margin-bottom: 8px">
<div style="margin-top: 2px;margin-bottom: 2px">
<!--<span style="margin: 5px">领料单编号:</span>-->
<el-input v-model="pickingListNumber" placeholder="领料单编号或领料人" clearable size="small" style="width:200px" />
<span style="margin: 5px">创建时间:</span>
@@ -17,23 +17,23 @@
start-placeholder="开始日期"
end-placeholder="结束日期"/>
<el-button size="small" type="primary" icon="el-icon-search" style="margin: 0 0 0 10px" plain @click="searchList()">查询</el-button>
<el-button :disabled="审批未通过===true" size="small" style="float: right; margin-right: 30px" type="distribution" @click="inputPassword()">领料确认</el-button>
<el-button :disabled="审批未通过===true" size="small" style="margin-left: 100px" type="distribution" @click="inputPassword()">领料确认</el-button>
</div>
</el-card>
<div style="width: 29%;float: left;margin-right: 10px">
<div style="width: 21%;float: left;margin-right: 10px">
<el-card>
<el-table :data="pickListTable1" :row-class-name="tableRowClassName" class="shenpi" highlight-current-row border size="mini" width="100%" height="570px" @row-click="clickList">
<el-table-column prop="领料单编号" label="领料单编号" show-overflow-tooltip align="center" width="100px">
<el-table-column prop="领料单编号" label="领料单编号" show-overflow-tooltip align="center" width="95px">
<template slot-scope="scope">
{{ scope.row.领料单编号 }}
</template>
</el-table-column>
<el-table-column label="领料人" prop="领料人" show-overflow-tooltip align="center" min-width="60px">
<el-table-column label="领料人" prop="领料人" show-overflow-tooltip align="center" width="65px">
<template slot-scope="scope">
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column label="备注" prop="备注" show-overflow-tooltip align="center" min-width="90px">
<el-table-column label="备注" prop="备注" show-overflow-tooltip align="center" min-width="70px">
<template slot-scope="scope">
{{ scope.row.领料单备注 }}
</template>
@@ -51,7 +51,7 @@
</div>
</el-card>
</div>
<div style="width: 70%;float: left">
<div style="width: 62%;float: left">
<el-card>
<el-table :data="pickListTable2" :row-class-name="tableRowClassName1" highlight-current-row border style="width: 1000px" size="mini" height="600" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="45"/>
@@ -70,7 +70,7 @@
{{ scope.row.规格 || '—' }}
</template>
</el-table-column>
<el-table-column label="领用" align="center" width="70">
<el-table-column label="领用" align="center" width="50">
<template slot-scope="scope">
{{ scope.row.总数量 }}
</template>
@@ -80,17 +80,17 @@
<el-input-number :disabled="Number(scope.row.总数量) <= Number(scope.row.出库数量1) || scope.row.货位存量1 === null" :max="scope.row.货位存量1" v-model="scope.row.出库数量" size="mini" style="width: 100%"/>
</template>
</el-table-column>
<el-table-column label="备件" align="center" width="70">
<el-table-column label="备件" align="center" width="50">
<template slot-scope="scope">
{{ scope.row.备件数量 }}
</template>
</el-table-column>
<el-table-column label="库存" align="center" width="70">
<el-table-column label="库存" align="center" width="50">
<template slot-scope="scope">
{{ scope.row.货位存量1 }}
</template>
</el-table-column>
<el-table-column label="已领" align="center" width="70">
<el-table-column label="已领" align="center" width="50">
<template slot-scope="scope">
{{ scope.row.出库数量1 }}
</template>
@@ -108,7 +108,7 @@
<!-- <el-tag v-else-if="Number(scope.row.出库数量1) === 0" type="warning" size="mini">未领</el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="机床图号" prop="机床图号" align="center" width="100" show-overflow-tooltip>
<el-table-column label="机床图号" prop="机床图号" align="center" width="80" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
@@ -189,8 +189,8 @@
</el-dialog>
<el-dialog v-el-drag-dialog :visible.sync="dialogFormVisible3" title="领料确认" center width="380px">
<el-form ref="form3" :model="form3" :rules="rules3" label-position="left">
<el-form-item label="出库类别" prop="outTypeValue" label-width="100px">
<el-form ref="form3" :model="form3" :rules="rules3" label-position="right">
<el-form-item label="出库类别" prop="outTypeValue" label-width="100px" size="small">
<el-select v-model="form3.outTypeValue" size="small" placeholder="出库类别" style="width: 200px;margin-right:10px">
<el-option
v-for="item in outType"