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

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

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