qushaowei
2023-10-24 98383b4460ed643d3a1dadd256f81aaa283aa71a
验收单
已修改2个文件
179 ■■■■■ 文件已修改
src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue 166 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue
@@ -47,69 +47,103 @@
            </a-form-item>
          </a-col>
        </a-row>
        <a-table
          ref="table"
          bordered
          rowKey="id"
          :columns="columns"
          :dataSource="dataSource"
          :pagination="false"
        >
          <!-- @change="handleTableChange" -->
          <!-- :pagination="ipagination" -->
          <template
            v-for="col in columns"
            :slot="col.dataIndex"
            slot-scope='text, record, index'
          >
            <div :key="col.dataIndex">
              <a-input
                :value="text"
                v-if="col.dataIndex == 'position'"
                @change="(e)=>handleChange(e, record.key, col, index)"
                :disabled="false"
                placeholder="请输入保养部位"
              />
              <a-textarea
                :value="text"
                v-if="col.dataIndex == 'content'"
                :maxLength="500"
                auto-size
                placeholder="请输入保养内容"
                @change="(e)=>handleChange(e, record.key, col, index)"
              />
              <a-textarea
                :value="text"
                v-if="col.dataIndex == 'standard'"
                :maxLength="500"
                auto-size
                placeholder="请输入保养标准"
                @change="(e)=>handleChange(e, record.key, col, index)"
                :disabled="false"
              />
              <a-select
                v-if="col.dataIndex == 'firstInspect'"
                :value="text"
                @change="(e) => handleChange(e, record.key, col, index)"
                style="width: 100%"
              >
                <a-select-option value="1">通过</a-select-option>
                <a-select-option value="2">未通过</a-select-option>
              </a-select>
              <a-select
                v-if="col.dataIndex == 'secondInspect'"
                :value="text"
                @change="(e) => handleChange(e, record.key, col, index)"
                style="width: 100%"
              >
                <a-select-option value="1">通过</a-select-option>
                <a-select-option value="2">未通过</a-select-option>
              </a-select>
            </div>
          </template>
        </a-table>
        <!-- <div :style="{height: '140px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}">
          <a-row :gutter="24">
            <a-col :span="12">
              <a-form-item
                :labelCol="labelCol"
                :wrapperCol="wrapperCol"
                label="验收结果"
              >
              </a-form-item>
            </a-col>
          </a-row>
          <a-row :gutter="24">
            <a-col :span="24">
              <a-form-item
                :labelCol="{span:3}"
                :wrapperCol="{span:21}"
                label="备注"
              >
                <a-textarea
                  allow-clear
                  :disabled="disableSubmit"
                  :placeholder="disableSubmit?'':'请输入备注'"
                  v-decorator="['remark', {}]"
                />
              </a-form-item>
            </a-col>
          </a-row>
        </div> -->
      </a-form>
    </a-spin>
    <a-table
      ref="table"
      bordered
      rowKey="id"
      :columns="columns"
      :dataSource="dataSource"
      :pagination="false"
    >
      <!-- @change="handleTableChange" -->
      <!-- :pagination="ipagination" -->
      <template
        v-for="col in columns"
        :slot="col.dataIndex"
        slot-scope='text, record, index'
      >
        <div :key="col.dataIndex">
          <a-input
            :value="text"
            v-if="col.dataIndex == 'position'"
            @change="(e)=>handleChange(e, record.key, col, index)"
            :disabled="false"
            placeholder="请输入保养部位"
          />
          <a-textarea
            :value="text"
            v-if="col.dataIndex == 'content'"
            :maxLength="500"
            auto-size
            placeholder="请输入保养内容"
            @change="(e)=>handleChange(e, record.key, col, index)"
          />
          <a-textarea
            :value="text"
            v-if="col.dataIndex == 'standard'"
            :maxLength="500"
            auto-size
            placeholder="请输入保养标准"
            @change="(e)=>handleChange(e, record.key, col, index)"
            :disabled="false"
          />
          <a-input
            :value="text"
            v-if="col.dataIndex == 'firstInspect'"
            @change="(e)=>handleChange(e, record.key, col, index)"
            :disabled="false"
            placeholder="请输入第一次检"
          />
          <a-input
            :value="text"
            v-if="col.dataIndex == 'secondInspect'"
            @change="(e)=>handleChange(e, record.key, col, index)"
            :disabled="false"
            placeholder="请输入第二次检"
          />
        </div>
      </template>
    </a-table>
    <div :style="{height: '60px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}">
      <a-row :gutter="24">
        <a-col :span="12">
        <a-col :span="7">
          <a-form-item
            :labelCol="labelCol"
            :wrapperCol="wrapperCol"
@@ -119,7 +153,7 @@
            <span v-else>-</span>
          </a-form-item>
        </a-col>
        <a-col :span="12">
        <a-col :span="17">
          <a-form-item
            :labelCol="labelCol"
            :wrapperCol="wrapperCol"
@@ -131,12 +165,12 @@
        </a-col>
      </a-row>
    </div>
    <a-button
    <!-- <a-button
      style="width: 100%; margin-top: 0px; margin-bottom: 8px"
      type="dashed"
      icon="plus"
      @click="addHour"
    >添加内容</a-button>
    >添加内容</a-button> -->
    <template slot="footer">
      <a-button
        :style="{marginRight: '8px'}"
@@ -240,9 +274,9 @@
  methods: {
    addHour() {
      this.dataSource.push({ id: '', maintenanceOrderId: this.model.id, position: '', content: '', standard: '', firstInspect: '', secondInspect: '' })
    },
    // addHour() {
    //   this.dataSource.push({ id: '', maintenanceOrderId: this.model.id, position: '', content: '', standard: '', firstInspect: '', secondInspect: '' })
    // },
    edit(record) {
      let that = this;
@@ -321,10 +355,10 @@
          target['standard'] = value.target.value;
        }
        if (column.dataIndex == 'firstInspect') {
          target[column.dataIndex] = value.target.value;
          target[column.dataIndex] = value;
        }
        if (column.dataIndex == 'secondInspect') {
          target[column.dataIndex] = value.target.value;
          target[column.dataIndex] = value;
        }
        //显示带过来的数据
        that.dataSource = temp;
src/views/eam/modules/daily3MaintenanceOrder/StoveCategoryModal.vue
@@ -506,6 +506,7 @@
            un-checked-children="否"
            :checked="model.result_21 == '1'"
            @change="handle21Switch(model.result_21)"
            :disabled=this.disabled21Switch
          />
          <span
            class="ant-descriptions-title"
@@ -521,6 +522,7 @@
            v-model="model.sort"
            :min=0
            :max=20
            :disabled=this.disabled22Switch
          />
          <span
            class="ant-descriptions-title"
@@ -531,6 +533,7 @@
            un-checked-children="否"
            :checked="model.result_22 == '1'"
            @change="handle22Switch(model.result_22)"
            :disabled=this.disabled22Switch
          />
          <span
            class="ant-descriptions-title"
@@ -623,6 +626,8 @@
      dataSource: [],
      model: {},
      departs: [],
      disabled21Switch: false,
      disabled22Switch: false,
      labelCol: {
        xs: { span: 24 },
        sm: { span: 6 },
@@ -653,7 +658,8 @@
    edit(record) {
      let that = this;
      this.disabled21Switch = false
      this.disabled22Switch = false
      this.form.resetFields();
      this.model = Object.assign({}, record);
      this.getStoveCategory()
@@ -723,6 +729,7 @@
      } else {
        this.model.result_1 = '0'
      }
      this.model = Object.assign({}, this.model);
    },
@@ -909,8 +916,10 @@
    handle21Switch(result_21) {
      if ('0' == result_21) {
        this.model.result_21 = '1'
        this.disabled22Switch = true
      } else {
        this.model.result_21 = '0'
        this.disabled22Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
@@ -918,8 +927,10 @@
    handle22Switch(result_22) {
      if ('0' == result_22) {
        this.model.result_22 = '1'
        this.disabled21Switch = true
      } else {
        this.model.result_22 = '0'
        this.disabled21Switch = false
      }
      this.model = Object.assign({}, this.model);
    },