Commit 567b0410 authored by tanjunxin's avatar tanjunxin

fix: 保密发料单新增细节优化

parent 30e98e0b
...@@ -315,6 +315,14 @@ export default { ...@@ -315,6 +315,14 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
itemCode: undefined,
itemName: undefined,
sapItemCode: undefined,
itemTypeId: 0,
}
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
<el-button size="mini" type="text" icon="el-icon-delete" @click="deleteRow($index)">删除</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="deleteRow($index)">删除</el-button>
<el-button size="mini" type="text" icon="el-icon-update" @click="updateRow($index)">修改</el-button> <el-button size="mini" type="text" icon="el-icon-update" @click="updateRow($index)">修改</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<!-- <!--
<pagination v-show="total > 0 && $attrs.optType !== 'add'" :total="total" :page.sync="queryParams.pageNum" <pagination v-show="total > 0 && $attrs.optType !== 'add'" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" /> --> :limit.sync="queryParams.pageSize" @pagination="getList" /> -->
</div> </div>
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
workstationName: null, workstationName: null,
}, },
// 表单参数 // 表单参数
form: { form: {
itemId: null, itemId: null,
sapItemCode: null, sapItemCode: null,
itemName: null, itemName: null,
...@@ -181,7 +181,8 @@ export default { ...@@ -181,7 +181,8 @@ export default {
}, },
handleItemSelect() { handleItemSelect() {
this.$refs.brSelectpro.showFlag = true; this.$refs.brSelectpro.resetQuery();
this.$refs.brSelectpro.showFlag = true;
}, },
onItemSelect(row) { onItemSelect(row) {
if (row != undefined && row != null) { if (row != undefined && row != null) {
...@@ -193,7 +194,7 @@ export default { ...@@ -193,7 +194,7 @@ export default {
/**表单提交 */ /**表单提交 */
submitForm() { submitForm() {
if(this.form.applyNum==0){ if(this.form.applyNum==0){
this.open = true; this.open = true;
this.$modal.confirm('申请数量需要输入数字'); this.$modal.confirm('申请数量需要输入数字');
...@@ -293,4 +294,4 @@ export default { ...@@ -293,4 +294,4 @@ export default {
} }
} }
}; };
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment