You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.0 KiB

12 months ago
import request from '@/utils/request'
11 months ago
// 设备工序列表
export function regionList() {
12 months ago
return request({
11 months ago
url: 'api/fab/regionList',
12 months ago
method: 'get'
})
}
11 months ago
// export function regionList() {
// const res = [
// { value: '111-02', label: 'TP5000冲床加工' },
// { value: '111 03', label: '警平' },
// { value: '111-04', label: '激光切闻' },
// { value: '111-05', label: '复合机' },
// { value: '111-06', label: 'Amada 801冲床' },
// { value: '111-07', label: 'TruBend 7038' },
// { value: '111-08', label: 'TruBend 5170' },
// { value: '111 09', label: 'TruBend Cell 7000' },
// { value: '111-10', label: 'LAG Robot Bending Cell' },
// { value: '111-12', label: '气保焊' },
// { value: '111-13', label: '姆柱焊、点焊' },
// { value: '111-14', label: '林肯焊接机器人' },
// { value: '111-15', label: '铜冲机' },
// { value: '111-16', label: '铜弯机' },
// { value: '111-22', label: '钳床' },
// { value: '111-23', label: '压铆机' },
// { value: '111-24', label: '斯图加特焊接机器人' }
// ]
// return new Promise((resolve, reject) => {
// resolve(res)
// })
// }
// 根据工序获取设备点位信息
export function regionPoints(code) {
return request({
url: 'api/fab/regionPoints?regionCode=' + code,
12 months ago
method: 'get'
})
}
11 months ago
// export function regionPoints(code) {
// let res = {'OUT3': '1234', 'OUT2': '2234', 'N1': '123', 'N2': '223'}
// return new Promise((resolve, reject) => {
// resolve(res)
// })
// }
12 months ago
11 months ago
// 根据工序查询订单
export function regionOrder(code) {
12 months ago
return request({
11 months ago
url: 'api/fab/regionOrder?regionCode=' + code,
12 months ago
method: 'get'
})
}
11 months ago
// export function regionOrder(code) {
// const res = {
// content: [{ order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }]
// }
// return new Promise((resolve, reject) => {
// resolve(res)
// })
// }
12 months ago
11 months ago
// 根据工单查询匹配库存
export function getMaterListByOrder(code, order) {
12 months ago
return request({
11 months ago
url: 'api/fab/getMaterListByOrder?regionCode=' + code + '&?order=' + order,
12 months ago
method: 'get'
})
}
11 months ago
// export function getMaterListByOrder(code, order) {
// let res = {
// content: [{ point_code: 'XXS23023012334', region_code: '800034202869', point_type: '120', point_status: '2' }]
// }
// return new Promise((resolve, reject) => {
// resolve(res)
// })
// }
12 months ago
11 months ago
// 呼叫库存物料
export function callMater(data) {
12 months ago
return request({
11 months ago
url: 'api/fab/callMater',
method: 'post',
12 months ago
data
})
}
11 months ago
// 呼叫空料框
export function callEmp(data) {
12 months ago
return request({
11 months ago
url: 'api/fab/callEmp',
12 months ago
method: 'post',
data
})
}
11 months ago
// 工序下料
export function sendMater(data) {
12 months ago
return request({
11 months ago
url: 'api/fab/sendMater',
12 months ago
method: 'post',
11 months ago
data
12 months ago
})
}
export default {
11 months ago
regionList, regionPoints, regionOrder, getMaterListByOrder, callMater, callEmp, sendMater
12 months ago
}