| | |
| | | machineryTypeName?: string; |
| | | workshopId?: number; |
| | | workshopName?: string; |
| | | collectDeviceCode?: string; |
| | | collectEnabled?: boolean; |
| | | status?: number; |
| | | lastMaintenTime?: string; |
| | | lastCheckTime?: string; |
| | |
| | | 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) }); |
| | | } |
| | | |
| | |
| | | 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: { |
| | |
| | | }; |
| | | |
| | | /** ★ 打包开关:只改这一行 */ |
| | | export const ACTIVE_COMPANY: CompanyCode = "changhui"; |
| | | export const ACTIVE_COMPANY: CompanyCode = "kangyi"; |
| | | |
| | | export const APP_COMPANY: AppCompanyConfig = COMPANY_PROFILES[ACTIVE_COMPANY]; |
| | |
| | | { |
| | | "name" : "新疆长辉电力", |
| | | "appid" : "__UNI__59EDE0D", |
| | | "description" : "新疆长辉电力", |
| | | "name": "康意智能", |
| | | "appid": "__UNI__2CEB659", |
| | | "description": "康意智能", |
| | | "versionName" : "1.0.0", |
| | | "versionCode" : 100, |
| | | "transformPx" : false, |
| | |
| | | "desc" : "您的位置信息将用于考勤打卡范围校验" |
| | | } |
| | | }, |
| | | "requiredPrivateInfos" : [ "getLocation" ], |
| | | "requiredPrivateInfos": [ |
| | | "getLocation" |
| | | ], |
| | | "setting" : { |
| | | "urlCheck" : false |
| | | }, |
| | |
| | | brand: "", |
| | | machineryTypeId: undefined, |
| | | workshopId: undefined, |
| | | collectDeviceCode: "", |
| | | collectEnabled: false, |
| | | status: 1, |
| | | productionEfficiency: undefined, |
| | | conveyorBelt: undefined, |
| | |
| | | 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), |
| | |
| | | </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> |
| | |
| | | <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> |