loulijun2021
2022-12-30 d1ce83391deac7bbafe7316e91ede5edd6ca30c9
src/views/zlgl/gxjybz.vue
@@ -60,16 +60,19 @@
          />
          <el-table-column
            prop="code"
            show-tooltip-when-overflow
            label="标准代码"
            sortable="custom"
          />
          <el-table-column
            prop="name"
            label="标准名称"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
            prop="descr"
            show-tooltip-when-overflow
            label="标准描述"
            sortable="custom"
          >
@@ -81,11 +84,13 @@
          <el-table-column
            prop="lm_user"
            label="创建人员"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
            prop="lm_date"
            label="创建时间"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
@@ -185,6 +190,7 @@
            fixed
          />
          <el-table-column
            show-tooltip-when-overflow
            prop="code"
            label="检验标准编码"
          >
@@ -208,6 +214,7 @@
          </el-table-column>
          <el-table-column
            prop="name"
            show-tooltip-when-overflow
            label="检验标准名称"
          >
            <template slot-scope="{row}">
@@ -230,6 +237,7 @@
          </el-table-column>
          <el-table-column
            prop="descr"
            show-tooltip-when-overflow
            label="检验描述描述"
          >
            <template slot-scope="{row}">
@@ -258,7 +266,13 @@
        <div class="footerButton">
          <el-button v-if="operation==='check'" @click="dialogVisibleCancel">返 回</el-button>
          <el-button v-if="operation!=='check'" @click="dialogVisibleCancel">取 消</el-button>
          <el-button v-if="operation!=='check'" type="primary" @click="dialogVisibleConfirm">提 交</el-button>
          <el-button
            v-if="operation!=='check'"
            :loading="$store.state.app.buttonIsDisabled"
            :disabled="$store.state.app.buttonIsDisabled"
            type="primary"
            @click="dialogVisibleConfirm"
          >提 交</el-button>
        </div>
      </span>
    </el-dialog>
@@ -446,6 +460,7 @@
    dialogVisibleConfirm() {
      this.$refs.dialogForm.validate(valid => {
        if (valid) {
          this.$store.state.app.buttonIsDisabled = true
          const tableData = []
          this.JYTableData = this.JYTableData.filter(item => item.code !== '')
          this.JYTableData.forEach((item, index) => {
@@ -464,9 +479,10 @@
          }
          AddUpdateStepCheckStaned(this.operation === 'add' ? 'Add' : 'Update', data).then(res => {
            if (res.code === '200') {
              this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.dialogVisible = false
              this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.getStepCheckStanedSearch()
              this.$store.state.app.buttonIsDisabled = false
            } else {
              this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!')
            }