fix(wms/coil/do): 修复领料按钮显示和分页参数问题
调整领料按钮仅当dataType为1时显示,并将分页参数从materialQueryParams迁移至form对象以统一管理
This commit is contained in:
@@ -267,15 +267,15 @@
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<el-button type="primary" icon="el-icon-check" size="mini" @click="handlePickMaterial(item)"
|
||||
<el-button v-if="item.dataType == 1" type="primary" icon="el-icon-check" size="mini" @click="handlePickMaterial(item)"
|
||||
:loading="item.picking" class="action-btn">领料</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 分页 -->
|
||||
<pagination v-show="materialTotal > 0" :total="materialTotal" :page.sync="materialQueryParams.pageNum"
|
||||
:limit.sync="materialQueryParams.pageSize" @pagination="getMaterialCoil" />
|
||||
<pagination v-show="materialTotal > 0" :total="materialTotal" :page.sync="form.pageNum"
|
||||
:limit.sync="form.pageSize" @pagination="getMaterialCoil" />
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -320,6 +320,8 @@ export default {
|
||||
},
|
||||
// 表单参数
|
||||
form: {
|
||||
dataType: 1,
|
||||
// materialType: '原料',
|
||||
materialType: null,
|
||||
enterCoilNo: null,
|
||||
currentCoilNo: null,
|
||||
@@ -441,14 +443,14 @@ export default {
|
||||
},
|
||||
/** 物料搜索 */
|
||||
handleMaterialQuery() {
|
||||
this.materialQueryParams.pageNum = 1
|
||||
this.form.pageNum = 1
|
||||
this.getMaterialCoil()
|
||||
},
|
||||
/** 重置物料搜索 */
|
||||
resetMaterialQuery() {
|
||||
this.resetForm('materialQueryForm')
|
||||
this.materialQueryParams.enterCoilNo = null
|
||||
this.materialQueryParams.currentCoilNo = null
|
||||
this.form.enterCoilNo = null
|
||||
this.form.currentCoilNo = null
|
||||
this.handleMaterialQuery()
|
||||
},
|
||||
/** 领料操作 */
|
||||
|
||||
Reference in New Issue
Block a user