qushaowei
2025-05-15 2bd54f454ea035ebc10e4d5bf4e50169c3929c5c
src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue
@@ -117,14 +117,14 @@
                  <a-textarea
                    allowClear
                    :disabled="this.model.status!='4'"
                    :placeholder="'请输入问题及处理措施描述'"
                    :placeholder="'请维修人员签字填写!'"
                    v-model="model.description"
                  />
                </a-form-item>
              </a-col>
              <a-col :span="7">
                <a-form-item
                  label="报工人"
                  label="保养人"
                  :labelCol="{span:4}"
                  :wrapperCol="{span:17}"
                  class="hightColor"
@@ -132,7 +132,7 @@
                  <a-input
                    :disabled="this.model.status!='4'"
                    allow-clear
                    placeholder="请输入报工人"
                    placeholder="请输入保养人"
                    v-model="model.maintenanceUserId"
                  />
                </a-form-item>
@@ -170,7 +170,7 @@
                    slot-scope='text, record, index'
                  >
                    <div :key="col.dataIndex">
                      <span
                      <!-- <span
                        v-show=" col.dataIndex == 'photo' && !text"
                        style="font-size: 12px;font-style: italic;"
                      >无图片</span>
@@ -181,7 +181,7 @@
                        height="25px"
                        alt=""
                        style="max-width:80px;font-size: 12px;font-style: italic;"
                      />
                      /> -->
                      <!-- 示意图 开始 -->
                      <!-- <Tooltip
                        placement="top"
@@ -211,8 +211,9 @@
                        :value="text"
                        v-show="col.dataIndex == 'maintenanceOrderDetailUda1'"
                        @change="(e)=>handleChange(e, record.key, col, index)"
                        :disabled="record.disabled"
                        :disabled="true"
                      />
                      <!-- :disabled="record.disabled" -->
                    </div>
                  </template>
                </a-table>
@@ -248,7 +249,7 @@
                <maintenance-standard-planning-material :maintenanceStandardId='maintenanceStandardId' />
              </div>
            </a-tab-pane>
            <a-tab-pane
           <a-tab-pane
              tab='危险防控'
              key="3"
            >
@@ -269,7 +270,7 @@
              >
                <maintenance-standard-work-instruction :maintenanceStandardId='maintenanceStandardId' />
              </div>
            </a-tab-pane>
            </a-tab-pane>-->
            <a-tab-pane
              tab='实际用料'
              key="5"
@@ -284,7 +285,7 @@
                  :equipmentId="this.model.equipmentId"
                ></actual-material-edit-table>
              </div>
            </a-tab-pane>-->
            </a-tab-pane>
            <a-tab-pane
              tab='实际工时'
              key="6"
@@ -304,6 +305,7 @@
            <a-tab-pane
              tab='炉类报告'
              key="7"
              v-if="this.model.isNotStoveCategoryFlag"
            >
              <div
                class="table-operator"
@@ -347,7 +349,6 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { requestPut, getAction, downFile, postAction } from '@/api/manage'
import Tooltip from 'ant-design-vue/es/tooltip'
import { preview } from 'vue-photo-preview'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import Vue from 'vue'
@@ -474,11 +475,11 @@
        //   align: 'center',
        //   dataIndex: 'workingHourQuota',
        // },
        {
          title: '保养周期',
          align: 'center',
          dataIndex: 'maintenanceCycleName',
        },
        // {
        //   title: '保养周期',
        //   align: 'center',
        //   dataIndex: 'maintenanceCycleName',
        // },
        // {
        //   title: '维保专业',
        //   align: 'center',
@@ -493,7 +494,7 @@
        },
      ],
      url: {
        list: "/eam/dailyMaintenanceOrderDetail/getDailyMaintenanceOrderDetailList",
        list: "/eam/dailyMaintenanceOrderDetail/get3MaintenanceOrderDetailList",
        urlDownload: window._CONFIG['staticDomainURL'],
        download: '/sys/upload/downloadFile',
        editStatus: "/eam/dailyMaintenanceOrder/editStatus",
@@ -512,6 +513,7 @@
  methods: {
    handleShow(record) {
      debugger
      this.model = Object.assign({}, record);
      this.maintenanceStandardId = record.maintenanceStandardId
      this.maintenanceOrderId = record.id
@@ -564,7 +566,6 @@
      return "background-color:rgba(127, 127, 127,0.08)";
    },
    handleCancel() {
      debugger
      this.maintenanceOrderId = '-1'
      this.$emit('ok');
      this.alterFlag = new Date();
@@ -609,16 +610,16 @@
    handleReport() {
      const that = this;
      that.confirmLoading = true;
      for (let i = 0; i < that.dataSource.length; i++) {
        let o = this.dataSource[i]
        if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') {
          that.$message.warning("请填写第" + (i + 1) + "保养人!");
          that.confirmLoading = false;
          return
        }
      }
      // for (let i = 0; i < that.dataSource.length; i++) {
      //   let o = this.dataSource[i]
      //   if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') {
      //     that.$message.warning("请填写第" + (i + 1) + "保养人!");
      //     that.confirmLoading = false;
      //     return
      //   }
      // }
      if (that.model.maintenanceUserId == null || that.model.maintenanceUserId == "") {
        that.$message.warning("请填写报工人!");
        that.$message.warning("请填写保养人!");
        that.confirmLoading = false;
        return
      }