qushaowei
2023-09-01 ee3df152bfd2b3dd4083f7856caaf7f02601e180
src/views/eam/modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue
@@ -17,18 +17,21 @@
                @click="handleSW"
                :disabled=SWbuttonDistable
                type="primary"
                v-has="'dailyMaintenanceOrder:SW'"
              >开工</a-button>
              <a-button
                :style="{marginRight: '8px'}"
                @click="handleReport"
                :disabled="buttonDistable"
                type="primary"
                v-has="'dailyMaintenanceOrder:report'"
              >报工</a-button>
              <a-button
                :style="{marginRight: '8px'}"
                @click="handleReset"
                :disabled="revocationDistable"
                type="primary"
                v-has="'dailyMaintenanceOrder:reset'"
              >撤销</a-button>
            </a-row>
          </div>
@@ -103,6 +106,23 @@
                </a-form-item>
              </a-col>
            </a-row>
            <a-row :gutter="24">
              <a-col :span="24">
                <a-form-item
                  label="问题及处理措施描述"
                  :labelCol="{span:3}"
                  :wrapperCol="{span:18}"
                  class="hightColor"
                >
                  <a-textarea
                    allowClear
                    :disabled="this.model.status!='4'"
                    :placeholder="'请输入问题及处理措施描述'"
                    v-model="model.description"
                  />
                </a-form-item>
              </a-col>
            </a-row>
          </div>
          <a-tabs
@@ -126,8 +146,8 @@
                  :loading="loading"
                  @change="handleTableChange"
                  :pagination="ipagination"
                  :scroll="{ x: 'calc(1200px + 50%)', y: 900 }"
                >
                  <!-- :scroll="{ x: 'calc(1200px + 50%)', y: 900 }" -->
                  <!-- :scroll="{x:true}" -->
                  <template
                    v-for="col in columns"
@@ -327,6 +347,13 @@
        xs: { span: 24 },
        sm: { span: 18 },
      },
      validatorRules: {
        // description: {
        //   rules: [
        //     { required: true, message: '请输入描述!' },
        //   ]
        // }
      },
      columns: [
        {
          title: '#',
@@ -511,7 +538,7 @@
        okText: '确认',
        cancelText: '取消',
        onOk() {
          requestPut(that.url.report, { id: that.model.id, status: '5' }).then((res) => {
          requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description }).then((res) => {
            if (res.success) {
              that.model.status = '5'
              that.$message.success(res.message)