src/api/environmentAccess/unattendedWeighbridgeSystem.js
@@ -1,5 +1,6 @@
import request from "@/utils/request";
// ==================== 手工过磅记录(历史) ====================
// 查询无人值守地磅系统分页列表
export function listWeighbridgeSystem(query) {
  return request({
@@ -44,3 +45,56 @@
    params: { id },
  });
}
// ==================== 自动称重记录 ====================
export function listWeighbridgeRecord(query) {
  return request({ url: "/environmentAccess/weighbridgeRecordPage", method: "get", params: query });
}
export function getWeighbridgeRecord(id) {
  return request({ url: "/environmentAccess/weighbridgeRecordInfo", method: "get", params: { id } });
}
// 第一次称重(皮重)
export function firstWeighbridgeWeight(data) {
  return request({ url: "/environmentAccess/weighbridgeFirstWeight", method: "post", data });
}
// 第二次称重(毛重)
export function secondWeighbridgeWeight(data) {
  return request({ url: "/environmentAccess/weighbridgeSecondWeight", method: "post", data });
}
// 红外偏移检测
export function infraredCheck(params) {
  return request({ url: "/environmentAccess/weighbridgeInfraredCheck", method: "post", params });
}
// 订单自动匹配
export function matchWeighbridgeOrder(orderNo) {
  return request({ url: "/environmentAccess/weighbridgeMatchOrder", method: "get", params: { orderNo } });
}
// 上传ERP
export function syncWeighbridgeErp(id) {
  return request({ url: "/environmentAccess/weighbridgeSyncErp", method: "post", params: { id } });
}
// 磅单打印数据(含二维码)
export function getWeighbridgePrintInfo(id) {
  return request({ url: "/environmentAccess/weighbridgePrintInfo", method: "get", params: { id } });
}
// 扫码核验磅单
export function verifyWeighbridgeQr(code) {
  return request({ url: "/environmentAccess/weighbridgeVerifyQr", method: "get", params: { code } });
}
export function addWeighbridgeRecord(data) {
  return request({ url: "/environmentAccess/weighbridgeRecordAdd", method: "post", data });
}
export function updateWeighbridgeRecord(data) {
  return request({ url: "/environmentAccess/weighbridgeRecordUpdate", method: "put", data });
}
export function delWeighbridgeRecord(ids) {
  return request({ url: "/environmentAccess/weighbridgeRecordDelete", method: "delete", data: ids });
}
// ERP上传日志
export function listWeighbridgeErpLog(query) {
  return request({ url: "/environmentAccess/weighbridgeErpLogPage", method: "get", params: query });
}
// 今日概览
export function getWeighbridgeOverview() {
  return request({ url: "/environmentAccess/weighbridgeOverview", method: "get" });
}