Commit b384308d authored by 张海景's avatar 张海景

update:修改工装夹具领用单的参数

parent dc11fa44
......@@ -192,15 +192,20 @@ export default {
],
};
},
// watch: {
// // 根据名称筛选分类树
// itemTypeName(val) {
// this.$refs.tree.filter(val);
// },
// },
watch: {
// 根据名称筛选分类树
showFlag: {
handler (newName, oldName) {
console.log(newName, 'newName')
if (newName) {
this.getList();
}
},
immediate: true
}
},
created() {
console.log("日志:已进入brandSingle页面的列表查询方法"); // 在created钩子函数中输出日志
this.getList();
},
methods: {
// /** 查询物料编码列表 */
......
......@@ -317,12 +317,12 @@
@click="$refs['selectSnRef'].showFlag = true, currentInfo = scope.row"
></el-button>
</el-input>
<SelectSn ref="selectSnRef" @onSelected="onSelectSn" />
</template>
</el-table-column>
<el-table-column label="剩余寿命" prop="lifeTime" />
</el-table>
<SelectSn ref="selectSnRef" :id="currentInfo.itemId" @onSelected="onSelectSn" />
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
......@@ -368,6 +368,7 @@ export default {
// 是否显示弹出层
open: false,
currentInfo: {},
visible: false,
// 查询参数
queryParams: {
pageNum: 1,
......
......@@ -64,7 +64,7 @@
/>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="confirmSelect">确 定</el-button>
<el-button @click="showFlag = false">取 消</el-button>
<el-button @click="showFlag = false, visible = false">取 消</el-button>
</div>
</el-dialog>
</template>
......@@ -81,6 +81,11 @@ export default {
name: "MdItemSingle",
dicts: ["mes_tool_status"],
components: { Treeselect },
props: {
id: {
type: [Number||String]
}
},
data() {
return {
selectedItemId: '',
......@@ -100,8 +105,6 @@ export default {
itemList: null,
// 部门树选项
itemTypeOptions: undefined,
// 部门名称
itemTypeName: undefined,
defaultProps: {
children: "children",
label: "label",
......@@ -110,27 +113,33 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
typeStr: '2',
warehouseStr: '1'
status: 'STORE'
},
};
},
watch: {
// 根据名称筛选分类树
itemTypeName(val) {
this.$refs.tree.filter(val);
},
showFlag: {
handler (newName, oldName) {
console.log(newName, 'newName')
if (newName) {
this.getList();
}
},
immediate: true
}
},
created() {
},
mounted() {
this.getList();
},
methods: {
/** 查询物料编码列表 */
getList() {
this.loading = true;
this.queryParams.itemId = this.id
getTmToolSnList(this.queryParams).then((response) => {
this.itemList = response.rows;
this.total = response.total;
......
......@@ -81,8 +81,6 @@ export default {
itemList: null,
// 部门树选项
itemTypeOptions: undefined,
// 部门名称
itemTypeName: undefined,
defaultProps: {
children: "children",
label: "label",
......@@ -98,15 +96,21 @@ export default {
},
watch: {
// 根据名称筛选分类树
itemTypeName(val) {
this.$refs.tree.filter(val);
},
showFlag: {
handler (newName, oldName) {
console.log(newName, 'newName')
if (newName) {
this.getList();
}
},
immediate: true
}
},
created() {
},
mounted() {
this.getList();
// this.getList();
},
methods: {
/** 查询物料编码列表 */
......
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