功能优化

This commit is contained in:
bns_han 2024-03-07 11:38:10 +08:00
parent 7f33b1a081
commit 197964ee1b
1 changed files with 13 additions and 2 deletions

View File

@ -26,6 +26,7 @@
placeholder="请选择设备类型" placeholder="请选择设备类型"
clearable filterable clearable filterable
style="width: 240px" style="width: 240px"
@change="selectDevice"
> >
<el-option <el-option
v-for="typeItem in typeList" v-for="typeItem in typeList"
@ -39,7 +40,7 @@
<el-select <el-select
v-model="queryParams.modelId" v-model="queryParams.modelId"
placeholder="请选择规格型号" placeholder="请选择规格型号"
clearable clearable filterable
style="width: 240px" style="width: 240px"
> >
<el-option <el-option
@ -365,7 +366,7 @@
<el-button type="primary" @click="downloadCode"> </el-button> <el-button type="primary" @click="downloadCode"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<div style="background-color;: transparent"> <div style="background-color: transparent">
<div <div
id="qrCode" id="qrCode"
v-for="(codeItem, codeIndex) in checkboxModel" v-for="(codeItem, codeIndex) in checkboxModel"
@ -391,6 +392,7 @@
</template> </template>
<script> <script>
import {addMachine, delMachine, getMachine, listMachine, updateMachine,supplierInfoList,getListByMaType} from "@/api/store/tools";
import { listType, getType, delType, addType, updateType, refreshCache, } from "@/api/system/dict/type"; import { listType, getType, delType, addType, updateType, refreshCache, } from "@/api/system/dict/type";
import { listLabelBind, addLabelBind, delLabelBind } from "@/api/store/label"; import { listLabelBind, addLabelBind, delLabelBind } from "@/api/store/label";
import { getTypeList } from "@/api/store/warehousing"; import { getTypeList } from "@/api/store/warehousing";
@ -517,6 +519,15 @@ export default {
}) })
}, },
//
selectDevice(id){
console.log(id)
getListByMaType({typeId:id}).then(response => {
this.modelList = response.data;
}
);
},
/** 查询字典类型列表 */ /** 查询字典类型列表 */
getList() { getList() {