loulijun2021
2022-12-29 21631208dfc6600deaa7bd4435074492c28b7f2c
src/views/sbgl/djbw.vue
@@ -97,10 +97,12 @@
            prop="code"
            label="部位编码"
            sortable="custom"
            show-tooltip-when-overflow
          />
          <el-table-column
            prop="name"
            label="部位名称"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
@@ -118,6 +120,7 @@
            prop="isscan"
            label="选择扫码"
            sortable="custom"
            show-tooltip-when-overflow
          >
            <template slot-scope="{row}">
              <div v-if="row.isscan==='Y'">
@@ -133,9 +136,14 @@
          <el-table-column
            prop="cycle"
            label="点检周期"
            show-tooltip-when-overflow
            sortable="custom"
          >
            <template slot-scope="{row}">
              <div v-if="row.cycle==='Y'">年</div>
              <div v-if="row.cycle==='S'">季</div>
              <div v-if="row.cycle==='M'">月</div>
              <div v-if="row.cycle==='W'">周</div>
              <div v-if="row.cycle==='D'">日</div>
            </template>
          </el-table-column>
@@ -143,10 +151,12 @@
            prop="lm_user"
            label="创建人员"
            sortable="custom"
            show-tooltip-when-overflow
          />
          <el-table-column
            prop="lm_date"
            label="创建时间"
            show-tooltip-when-overflow
            width="160"
            sortable="custom"
          />
@@ -233,7 +243,12 @@
      <span slot="footer" class="dialog-footer">
        <div class="footerButton">
          <el-button @click="dialogVisibleCancel">取 消</el-button>
          <el-button type="primary" @click="dialogVisibleConfirm">确 定</el-button>
          <el-button
            type="primary"
            :loading="$store.state.app.buttonIsDisabled"
            :disabled="$store.state.app.buttonIsDisabled"
            @click="dialogVisibleConfirm"
          >确 定</el-button>
        </div>
      </span>
    </el-dialog>
@@ -284,6 +299,10 @@
        { code: 'N', name: '否' }
      ],
      cycleArr: [
        { code: 'Y', name: '年' },
        { code: 'S', name: '季' },
        { code: 'M', name: '月' },
        { code: 'W', name: '周' },
        { code: 'D', name: '日' }
      ],
@@ -425,6 +444,7 @@
    dialogVisibleConfirm() {
      this.$refs.dialogForm.validate(valid => {
        if (valid) {
          this.$store.state.app.buttonIsDisabled = true
          const data = {
            id: this.dialogForm.id,
            checkitemcode: this.dialogForm.checkitemcode,
@@ -437,9 +457,10 @@
          }
          AddUpdateDeviceCheckItem(data).then(res => {
            if (res.code === '200') {
              this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.dialogVisible = false
              this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.getDeviceCheckItemSearch()
              this.$store.state.app.buttonIsDisabled = false
            } else {
              this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!')
            }