MrShi
2024-02-05 5019ed6016b47221321bf395cd102dc4b51b4724
company/src/components/business/dispatchReview.vue
@@ -10,7 +10,7 @@
        <div class="form_item">
          <div class="form_item_label"><span>*</span>审核说明:</div>
          <div class="form_item_val">
            <el-input type="textarea" v-model="form.checkInfo" :rows="2" placeholder="请输入"></el-input>
            <el-input type="textarea" v-model="checkInfo" :rows="2" placeholder="请输入"></el-input>
          </div>
        </div>
      </div>
@@ -41,9 +41,9 @@
              <el-table-column
                  label="状态">
                <template slot-scope="{row}">
                  <span v-if="row.status === 0">待审核</span>
                  <span v-if="row.status === 1">审核通过</span>
                  <span v-if="row.status === 2">审核不通过</span>
                  <span :class="'du-status'+row.status" v-if="row.unitStatus === 0">待审核</span>
                  <span :class="'du-status'+row.status"  v-if="row.unitStatus === 1">审核通过</span>
                  <span :class="'du-status'+row.status"  v-if="row.unitStatus === 2">审核不通过</span>
                </template>
              </el-table-column>
            </el-table>
@@ -67,8 +67,8 @@
        data () {
            return {
                // 表单数据
              checkInfo:'',
                form: {
                  checkInfo:'',
                  duSolutionList:[]
                },
              duSolutionList:[],
@@ -90,7 +90,8 @@
            this.title=title
            this.visible=true
            this.form ={}
            this.form = target;
            this.checkInfo=''
            this.form = target
            this.duSolutionList=[]
            var duSolutionList = this.form.duSolutionList;
            duSolutionList.forEach(item => {
@@ -115,7 +116,7 @@
            this.$dialog.messageConfirm('确认进行该操作吗?')
                .then(() => {
                  this.isWorking = true
                  checkWorktype({id:this.form.id,checkInfo:this.form.checkInfo,worktypeStatus:type})
                  checkWorktype({id:this.form.id,checkInfo:this.checkInfo,worktypeStatus:type})
                      .then(response => {
                        this.visible = false
                        this.$emit('success')