diff --git a/src/api/device.ts b/src/api/device.ts
index c3cad9e..689553f 100644
--- a/src/api/device.ts
+++ b/src/api/device.ts
@@ -23,4 +23,8 @@ export function getSubList(params) {
// 新增申领备件时获取备件列表
export function getApplyDeviceList() {
return http.get('/eam/device-accounts/selectAll')
+}
+// 设备分页列表
+export function selectAllByParams(params) {
+ return http.get('/eam/device-accounts/selectAllByParams',{params})
}
\ No newline at end of file
diff --git a/src/api/mold.ts b/src/api/mold.ts
index 8190163..0721f13 100644
--- a/src/api/mold.ts
+++ b/src/api/mold.ts
@@ -18,4 +18,9 @@ export function moldList(params) {
// 新增申领备件时获取模具列表
export function getApplyMoldList() {
return http.get('/eam/item-accounts/selectAll')
+}
+
+// 新增申领备件时获取模具列表
+export function getAllMoldByParams(data) {
+ return http.post('/eam/mold-accounts/noPage',data)
}
\ No newline at end of file
diff --git a/src/components/device/slectDeviceList.vue b/src/components/device/slectDeviceList.vue
new file mode 100644
index 0000000..d697d0d
--- /dev/null
+++ b/src/components/device/slectDeviceList.vue
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/item/slectItemList.vue b/src/components/item/slectItemList.vue
index 8c67e40..e205dbd 100644
--- a/src/components/item/slectItemList.vue
+++ b/src/components/item/slectItemList.vue
@@ -12,10 +12,13 @@
- 备件名称:{{item.name}}
+ 名称: {{item.name}}
- 备件编码:{{item.number}}
+ 型号: {{item.specifications}}
+
+
+ 编码: {{item.number}}
@@ -75,9 +78,11 @@
const form1 = ref({
number: "",
name:"",
+ specifications:"",
qty: 0,
temporarilyNumber:"",//;临时选中的编码
temporarilyName:"",//临时选中的名称
+ temporarilySpecifications:"",//临时选中的型号
searchName:"",//模糊搜索
})
onLoad((option) => {
@@ -90,6 +95,7 @@
if(type==1){
form1.value.number = form1.value.temporarilyNumber
form1.value.name = form1.value.temporarilyName
+ form1.value.specifications = form1.value.temporarilySpecifications
}
emits('chooseItem1',type,form1);
}
@@ -107,6 +113,7 @@
let arr1 = props.singleColumnList.filter(cur=>cur.number == item.number)
form1.value.temporarilyNumber = arr1[0].number;
form1.value.temporarilyName = arr1[0].name;
+ form1.value.temporarilySpecifications = arr1[0].specifications;
}
diff --git a/src/pages/repairOrder/addServiceRecord.vue b/src/pages/repairOrder/addServiceRecord.vue
index 16171f8..2cd2d36 100644
--- a/src/pages/repairOrder/addServiceRecord.vue
+++ b/src/pages/repairOrder/addServiceRecord.vue
@@ -169,9 +169,11 @@
const form1 = ref({
number: "",
name:"",
+ specifications:"",
qty: 0,
temporarilyNumber:"",//;临时选中的编码
temporarilyName:"",//临时选中的名称
+ temporarilySpecifications:"",//临时选中的型号
searchName:"",//模糊搜索
})
@@ -273,6 +275,7 @@
if(type==1){
form1.value.number = forms.value.temporarilyNumber
form1.value.name =forms.value.temporarilyName
+ form1.value.specifications = form1.value.temporarilySpecifications
}
await getSparePartsList(null,null);
isShowSelectItem.value = false;
diff --git a/src/pages/sparePartsApplication/addForm.vue b/src/pages/sparePartsApplication/addForm.vue
index ff06973..6e7b203 100644
--- a/src/pages/sparePartsApplication/addForm.vue
+++ b/src/pages/sparePartsApplication/addForm.vue
@@ -77,7 +77,7 @@