qushaowei
2023-08-29 dc958126a95a7ccd46d90a1ca42eeb03789f9c33
src/views/eam/modules/specialtyMaintenanceOrder/SpecialyMaintenanceOrderExeDrawer.vue
@@ -17,18 +17,21 @@
                @click="handleSW"
                :disabled=SWbuttonDistable
                type="primary"
                v-has="'specialtyMaintenanceOrder:SW'"
              >开工</a-button>
              <a-button
                :style="{marginRight: '8px'}"
                @click="handleReport"
                :disabled="buttonDistable"
                type="primary"
                v-has="'specialtyMaintenanceOrder:report'"
              >报工</a-button>
              <a-button
                :style="{marginRight: '8px'}"
                @click="handleReset"
                :disabled="revocationDistable"
                type="primary"
                v-has="'specialtyMaintenanceOrder:reset'"
              >撤销</a-button>
            </a-row>
          </div>
@@ -233,10 +236,23 @@
                  :scroll="{ x: 'calc(1200px + 50%)', y: 900 }"
                >
                  <!-- :scroll="{x:true}" -->
                  <template slot="imgSlot" slot-scope="text,record">
                    <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
                    <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
                  </template>
                  <template
                    slot="imgSlot"
                    slot-scope="text,record"
                  >
                    <span
                      v-if="!text"
                      style="font-size: 12px;font-style: italic;"
                    >无图片</span>
                    <img
                      v-else
                      :src="getImgView(text)"
                      :preview="record.id"
                      height="25px"
                      alt=""
                      style="max-width:80px;font-size: 12px;font-style: italic;"
                    />
                  </template>
                </a-table>
              </div>
@@ -420,7 +436,7 @@
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          },
          width:60,
          width: 60,
        },
        {
          title: '部位',
@@ -638,11 +654,11 @@
    //报工
    handleReport() {
      var actualMaterials = this.$refs.actualMaterialTabel.dataSource;
      for(var i = 0;i<actualMaterials.length;i++){
            if(actualMaterials[i].isLock=='no'){
                this.$message.warn("实际用料第"+(i+1)+"行尚未锁料,请锁料后再进行报工");
                return false;
            }
      for (var i = 0; i < actualMaterials.length; i++) {
        if (actualMaterials[i].isLock == 'no') {
          this.$message.warn("实际用料第" + (i + 1) + "行尚未锁料,请锁料后再进行报工");
          return false;
        }
      }
      const that = this;
      that.confirmLoading = true;