qushaowei
2024-04-07 ce784aa1f8dd3c14386aeb016f0d034fac18fd3e
src/views/eam/modules/dailyMaintenanceOrder/MaintenanceOrderModal.vue
@@ -112,7 +112,7 @@
              <a-input
                allow-clear
                :disabled="true"
                :placeholder="disableSubmit?'':'请输入设备编码/名称/型号'"
                :placeholder="disableSubmit?'':'请输入统一编码/名称/型号'"
                v-decorator="['equipmentId', validatorRules.equipmentId ]"
              />
            </a-form-item>
@@ -180,7 +180,7 @@
                allow-clear
                :disabled="true"
                :placeholder="disableSubmit?'':'请输入责任班组'"
                v-decorator="['teamName', validatorRules.teamName ]"
                v-decorator="['teamName', {} ]"
              />
            </a-form-item>
          </a-col>
@@ -424,21 +424,26 @@
          },
          width: 50,
        },
        // {
        //   title: '部位',
        //   align: 'center',
        //   dataIndex: 'location'
        // },
        {
          title: '部位',
          title: '保养角色',
          align: 'center',
          dataIndex: 'location'
          dataIndex: 'maintenanceRole'
        },
        {
          title: '保养项目',
          title: '保养内容',
          align: 'center',
          dataIndex: 'maintenanceProjectName'
        },
        {
          title: '保养标准',
          align: 'center',
          dataIndex: 'standard'
        },
        // {
        //   title: '保养标准',
        //   align: 'center',
        //   dataIndex: 'standard'
        // },
        // {
        //   title: '方法',
        //   align: 'center',
@@ -449,12 +454,12 @@
        //   align: 'center',
        //   dataIndex: 'maintenanceTool'
        // },
        {
          title: '示意图',
          align: 'center',
          dataIndex: 'photo',
          scopedSlots: { customRender: 'photo' }
        },
        // {
        //   title: '示意图',
        //   align: 'center',
        //   dataIndex: 'photo',
        //   scopedSlots: { customRender: 'photo' }
        // },
        // {
        //   title: '维保专业',
        //   align: 'center',
@@ -488,7 +493,7 @@
        },
        useId: {
          rules: [
            { required: true, message: '请选择对象部门!' },
            { required: false, message: '请选择使用部门!' },
          ]
        },
        maintenanceCycleId: {
@@ -636,12 +641,12 @@
    onSearchMaintenanceStandard() {
      let data = this.form.getFieldsValue(['useId']);
      if (data.useId == null || data.useId == "") {
        this.$message.warning("请先选择对象部门!");
        return
      }
      // if (data.useId == null || data.useId == "") {
      //   this.$message.warning("请先选择使用部门!");
      //   return
      // }
      this.$refs.DailyMaintenanceStandardList.list(data.useId);
      this.$refs.DailyMaintenanceStandardList.title = "选择日常保养标准";
      this.$refs.DailyMaintenanceStandardList.title = "选择二级保养标准";
    },
    sendMaintenanceStandardRecord(data) {
      let record = data.record;