This commit is contained in:
hayu 2026-01-22 12:16:44 +08:00
parent fcc4e79283
commit bb78496d2a
3 changed files with 13 additions and 3 deletions

View File

@ -154,8 +154,8 @@
import { onLoad } from '@dcloudio/uni-app'
import { onMounted, ref, reactive, computed } from 'vue'
import { getBranchListApi,getImpUnitListApi, getDepartListByImpUnitApi, getProListByDepartApi } from '@/services/materialsStation'
import { getTypeListApi } from '@/services/inStorage/index.js'
import { useMemberStore } from '@/stores'
import {getMaterialTypeList} from "../../../services/inStorage";
const memberStore = useMemberStore()
const userInfo = ref(memberStore.userInfo || {})
@ -289,7 +289,7 @@ const handleDepartChange= async () => {
const getTypeList = async () => {
try {
const res = await getTypeListApi({ level: 3, skipPermission: 1 })
const res = await getMaterialTypeList({ level: 3, skipPermission: 1 })
console.log('🚀 ~ getTypeList ~ res:', res)
typeList.value = []
if (res.data) {

View File

@ -108,7 +108,7 @@
@blur="fitNumChange"
></uni-easyinput>
</uni-forms-item> -->
<uni-section title="领用工器" type="line" />
<uni-section title="领用工" type="line" />
<eselect
v-model="equipmentId"
style="width: 100%; height: 90rpx; margin: 10px 0"

View File

@ -18,6 +18,16 @@ export const getTypeListApi = (data) => {
})
}
// 获取类型 3级 4级(根据typeId)---无companyId
export const getMaterialTypeList = (data) => {
return http({
method: 'GET',
url: '/material/ma_machine/getMaterialTypeList',
data,
})
}
// OCR入库
export const addMaMachineApi = (data) => {
return http({