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