zhangwencui
10 天以前 e8dfe17e4afe9c065b25e2f8e5025b37cee5c4e1
康意修改
已修改5个文件
30 ■■■■■ 文件已修改
src/api/equipment.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/company.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/manifest.json 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/mes/dv/machinery/form.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/mes/dv/machinery/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/equipment.ts
@@ -29,6 +29,8 @@
  machineryTypeName?: string;
  workshopId?: number;
  workshopName?: string;
  collectDeviceCode?: string;
  collectEnabled?: boolean;
  status?: number;
  lastMaintenTime?: string;
  lastCheckTime?: string;
@@ -347,7 +349,7 @@
  return request<Workshop[]>('/mes/md-workshop/simple-list', { header: authHeader(accessToken) });
}
export function getMachineryPage(accessToken: string, params: { pageNo: number; pageSize: number; code?: string; name?: string; workshopId?: number; status?: number; machineryTypeId?: number }) {
export function getMachineryPage(accessToken: string, params: { pageNo: number; pageSize: number; code?: string; name?: string; workshopId?: number; status?: number; machineryTypeId?: number; collectDeviceCode?: string; collectEnabled?: boolean }) {
  return request<PageResult<Machinery>>(`/mes/dv/machinery/page${toQuery(params)}`, { header: authHeader(accessToken) });
}
src/config/company.ts
@@ -49,7 +49,7 @@
    key: "kangyi",
    name: "康意智能",
    homeVariant: "kangyi-intelligent",
    apiBaseUrl: "http://101.245.92.159:9006/admin-api",
    apiBaseUrl: "http://101.245.92.159:9008/admin-api",
    webBaseUrl: "http://101.245.92.159:9008",
  },
  lanyu: {
@@ -83,6 +83,6 @@
};
/** ★ 打包开关:只改这一行 */
export const ACTIVE_COMPANY: CompanyCode = "changhui";
export const ACTIVE_COMPANY: CompanyCode = "kangyi";
export const APP_COMPANY: AppCompanyConfig = COMPANY_PROFILES[ACTIVE_COMPANY];
src/manifest.json
@@ -1,7 +1,7 @@
{
    "name" : "新疆长辉电力",
    "appid" : "__UNI__59EDE0D",
    "description" : "新疆长辉电力",
    "name": "康意智能",
    "appid": "__UNI__2CEB659",
    "description": "康意智能",
    "versionName" : "1.0.0",
    "versionCode" : 100,
    "transformPx" : false,
@@ -97,7 +97,9 @@
                "desc" : "您的位置信息将用于考勤打卡范围校验"
            }
        },
        "requiredPrivateInfos" : [ "getLocation" ],
        "requiredPrivateInfos": [
            "getLocation"
        ],
        "setting" : {
            "urlCheck" : false
        },
src/pages/mes/dv/machinery/form.vue
@@ -51,6 +51,8 @@
    brand: "",
    machineryTypeId: undefined,
    workshopId: undefined,
    collectDeviceCode: "",
    collectEnabled: false,
    status: 1,
    productionEfficiency: undefined,
    conveyorBelt: undefined,
@@ -163,6 +165,8 @@
        brand: form.brand?.trim(),
        specification: form.specification?.trim(),
        machineryTypeId: numberValue(form.machineryTypeId),
        collectDeviceCode: form.collectDeviceCode?.trim() || undefined,
        collectEnabled: form.collectEnabled === true,
        workshopId: numberValue(form.workshopId),
        status: Number(form.status || 1),
        productionEfficiency: numberValue(form.productionEfficiency),
@@ -230,6 +234,12 @@
        </picker>
        <text v-else class="value">{{ statusText() }}</text>
      </view>
      <view class="field"><text>数采设备编号</text><input v-model="form.collectDeviceCode" :disabled="readonly" placeholder="请输入编号,如 C01" /></view>
      <view class="field">
        <text>启用数采</text>
        <switch v-if="!readonly" :checked="form.collectEnabled === true" color="#1677ff" @change="form.collectEnabled = $event.detail.value" />
        <text v-else class="value">{{ form.collectEnabled ? '是' : '否' }}</text>
      </view>
      <view class="field"><text>生产效率</text><input v-model="form.productionEfficiency" :disabled="readonly" type="digit" placeholder="请输入生产效率(每小时)" /></view>
      <view class="field"><text>传送履带</text><input v-model="form.conveyorBelt" :disabled="readonly" type="number" placeholder="请输入传送履带数量" /></view>
      <view class="field"><text>规格型号</text><input v-model="form.specification" :disabled="readonly" placeholder="请输入规格型号" /></view>
src/pages/mes/dv/machinery/index.vue
@@ -160,6 +160,8 @@
              <view class="grid">
                <text>品牌:{{ item.brand || '—' }}</text>
                <text>规格型号:{{ item.specification || '—' }}</text>
                <text>数采设备编号:{{ item.collectDeviceCode || '—' }}</text>
                <text>启用数采:{{ item.collectEnabled ? '是' : '否' }}</text>
                <text>所属车间:{{ item.workshopName || '—' }}</text>
                <text>生产效率(/h):{{ numberText(item.productionEfficiency) }}</text>
                <text>传送履带:{{ numberText(item.conveyorBelt) }}</text>