loulijun2021
2022-12-31 b012ab3a1e5495be068c543eb8f0482124db13b5
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
@@ -98,15 +103,16 @@
                <el-tooltip class="item" effect="dark" content="查看" placement="top">
                  <i
                    class="el-icon-view"
                    style="color: #42b983;cursor: pointer;margin-right: 15px;"
                    style="cursor: pointer;margin-right: 15px;"
                    :style="{color:$store.state.settings.theme}"
                    @click="check('check',row)"
                  />
                </el-tooltip>
                <el-tooltip class="item" effect="dark" content="编辑" placement="top">
                  <i class="el-icon-edit-outline" @click="edit('edit',row)" />
                  <i :style="{color:$store.state.settings.theme}" class="el-icon-edit-outline" @click="edit('edit',row)" />
                </el-tooltip>
                <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">
                  <i class="el-icon-delete" @click="del(row)" />
                  <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" />
                </el-tooltip>
              </div>
            </template>
@@ -135,7 +141,7 @@
    >
      <!--      @close="handleClose"-->
      <div style="margin-bottom: 10px">
        <i class="el-icon-s-comment" style="color:#42b983;" /> 标准信息:
        <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 标准信息:
      </div>
      <el-form
        ref="dialogForm"
@@ -161,7 +167,7 @@
        </el-form-item>
      </el-form>
      <div style="margin-bottom: 10px">
        <i class="el-icon-s-comment" style="color:#42b983;" /> 检验项信息:
        <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 检验项信息:
      </div>
      <div style="margin-bottom: 10px">
        <el-button v-if="operation==='add'||operation==='edit'" type="primary" @click="JYadd">新增</el-button>
@@ -185,6 +191,7 @@
            fixed
          />
          <el-table-column
            show-tooltip-when-overflow
            prop="code"
            label="检验标准编码"
          >
@@ -208,6 +215,7 @@
          </el-table-column>
          <el-table-column
            prop="name"
            show-tooltip-when-overflow
            label="检验标准名称"
          >
            <template slot-scope="{row}">
@@ -230,6 +238,7 @@
          </el-table-column>
          <el-table-column
            prop="descr"
            show-tooltip-when-overflow
            label="检验描述描述"
          >
            <template slot-scope="{row}">
@@ -258,7 +267,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 +461,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 +480,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' ? '添加失败!' : '修改失败!')
            }