yuan
11 小时以前 9ca3e64f571c38aeae3f649efdfa2f5339019805
feat(设备管理): 新增设备编号和转数字段
已修改3个文件
32 ■■■■■ 文件已修改
src/views/equipmentManagement/ledger/Form.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/ledger/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionProcess/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/ledger/Form.vue
@@ -2,6 +2,11 @@
  <el-form :model="form" label-width="120px" :rules="formRules" ref="formRef">
    <el-row :gutter="20">
      <el-col :span="12">
        <el-form-item label="设备编号" prop="deviceCode">
          <el-input v-model="form.deviceCode" placeholder="请输入设备编号" />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="设备名称" prop="deviceName">
          <el-input v-model="form.deviceName" placeholder="请输入设备名称" />
        </el-form-item>
@@ -40,6 +45,14 @@
      <el-col :span="12">
        <el-form-item label="供应商" prop="supplierName">
          <el-input v-model="form.supplierName" placeholder="请输入供应商" />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="转数(转/min)" prop="rpm">
          <el-input-number :min="0" style="width: 100%"
                           v-model="form.rpm"
                           placeholder="请输入转数"
          />
        </el-form-item>
      </el-col>
      <el-col :span="12">
@@ -147,8 +160,8 @@
          />
        </el-form-item>
      </el-col>
            <el-col :span="12">
                <el-form-item label="预计运行时间" prop="planRuntimeTime">
      <el-col :span="12">
        <el-form-item label="预计运行时间" prop="planRuntimeTime">
                    <el-date-picker
                        style="width: 100%"
                        v-model="form.planRuntimeTime"
@@ -190,6 +203,7 @@
  '其他设备'
]);
const formRules = {
    deviceCode: [{ required: true, trigger: "blur", message: "请输入设备编号" }],
    deviceName: [{ required: true, trigger: "blur", message: "请输入" }],
    deviceModel: [{ required: true, trigger: "blur", message: "请输入" }],
    type: [{ required: true, trigger: "change", message: "请选择或输入设备类型" }],
@@ -214,6 +228,7 @@
}
const { form, resetForm } = useFormData({
  deviceCode: undefined, // 设备编号
  deviceName: undefined, // 设备名称
  deviceModel: undefined, // 规格型号
  deviceBrand: undefined, // 设备品牌
@@ -239,6 +254,7 @@
    }
  const { code, data } = await getLedgerById(id);
  if (code == 200) {
    form.deviceCode = data.deviceCode;
    form.deviceName = data.deviceName;
    form.deviceModel = data.deviceModel;
    form.deviceBrand = data.deviceBrand;
src/views/equipmentManagement/ledger/index.vue
@@ -122,6 +122,10 @@
  },
  [
    {
      label: "设备编号",
      prop: "deviceCode",
    },
    {
      label: "设备名称",
      prop: "deviceName",
    },
@@ -142,6 +146,10 @@
      prop: "supplierName",
    },
    {
      label: "转数(转/min)",
      prop: "rpm",
    },
    {
      label: "存放位置",
      prop: "storageLocation",
    },
src/views/productionManagement/productionProcess/index.vue
@@ -223,7 +223,7 @@
      width: 350,
      operation: [
        {
          name: "查看",
          name: "生产参数",
          type: "text",
          clickFun: row => {
            showProcessParamModal(row);
@@ -293,6 +293,7 @@
  // 设备列表列配置
  const deviceColumns = ref([
    { label: "设备编号", prop: "deviceCode" },
    { label: "设备名称", prop: "deviceName" },
    { label: "规格型号", prop: "deviceModel" },
    { label: "设备品牌", prop: "deviceBrand" },
@@ -318,6 +319,7 @@
  // 可选设备列表列配置
  const selectDeviceColumns = ref([
    { label: "设备编号", prop: "deviceCode" },
    { label: "设备名称", prop: "deviceName" },
    { label: "规格型号", prop: "deviceModel" },
    { label: "设备品牌", prop: "deviceBrand" },