研发图纸文件管理系统-前端项目
longyvfengyun
2024-06-26 d652cf2dca471fed1af2db1809d90d21666ca737
反馈页面内容修改
1个文件已修改
62 ■■■■ 已修改文件
src/pages/workplace/workplaceList.vue 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/workplace/workplaceList.vue
@@ -5,8 +5,10 @@
import { getUserList } from "@/pages/permission/apis";
import { bomFeedbackListPage } from "@/pages/workplace/apis";
import { ExportFile } from "@/assets/exportFile";
import FeedbackDetails from "@/pages/resourceManage/components/feedbackDetails.vue";
import {getList} from "@/pages/resourceManage/ecr/apis";
export default {
  name: "workplaceList",
  components: {
@@ -14,7 +16,7 @@
    FeedbackDetails,
  },
  data() {
    let startTime = moment().add(-30, "day").format("YYYY-MM-DD");
    let startTime = moment().add(-20, "year").format("YYYY-MM-DD");
    let endTime = moment().format("YYYY-MM-DD");
    const columns = [
    {
@@ -151,6 +153,8 @@
          value: 124,
        },
      ],
        changeDescVisible: false,
        changeDesc: ""
    };
  },
  watch: {
@@ -175,7 +179,6 @@
              bar -
              parseInt(paddingBottom) -
              parseInt(paddingTop);
            console.log(h, "h", wraper, header, bar);
            this.y = h;
          }
        });
@@ -194,6 +197,31 @@
    showDetails(obj) {
      this.currFk = obj;
      this.detailsVisible = true;
    },
      searchEcrDetails(obj) {
            let params = {
                createTime: "1982-01-01 00:00:00",
              createTime1: moment().format("YYYY-MM-DD")+" 23:59:59",
              pageSize: 10,
              pageCurr: 1,
              number: obj.ecrNumber,
              subCode: obj.parentCode,
            };
            getList(params).then(res => {
                let { code, data, data2 } = res.data;
                let list = [];
                let total = 0;
                if (code && data) {
                    list = data2.list;
                }
                if(list.length !== 0) {
                    this.changeDesc = list[0].changeDescription;
                    this.changeDescVisible = true;
                }else {
                    alert("未匹配到变更记录,请查看料号和变更单流水号。")
                }
            });
    },
    resize() {
      setTimeout(() => {
@@ -384,15 +412,15 @@
                      </a-select>
                    </div>
                  </div>
                  <div class="filter-item">
                    <span class="filter-label">创建时间:</span>
                    <div class="filter-content">
                      <a-range-picker
                        v-model="createTimeRange"
                        @change="searchData"
                      />
                    </div>
                  </div>
<!--                  <div class="filter-item">-->
<!--                    <span class="filter-label">创建时间:</span>-->
<!--                    <div class="filter-content">-->
<!--                      <a-range-picker-->
<!--                        v-model="createTimeRange"-->
<!--                        @change="searchData"-->
<!--                      />-->
<!--                    </div>-->
<!--                  </div>-->
                  <div class="filter-item">
                    <span class="filter-label">问题反馈状态:</span>
                    <div class="filter-content">
@@ -428,6 +456,7 @@
            </template>
            <template slot="action" slot-scope="{ record }">
              <a href="#" @click="showDetails(record)">详情</a>
                <a v-if="record.parentCode&&record.ecrNumber" style="margin-left: 8px" href="#" @click="searchEcrDetails(record)">变更原因</a>
            </template>
          </advance-table>
        </a-card>
@@ -447,6 +476,15 @@
        <a-button class="btn" @click="detailsCancel">关闭</a-button>
      </div>
    </a-modal>
      <!-- 变更原因 -->
      <a-modal :visible="changeDescVisible" :width="760" title="变更原因" :destroyOnClose="true" :maskClosable="false"
               @cancel="changeDescVisible = false">
          <div class="footer" slot="footer">
              <a-button @click="changeDescVisible = false" type="primary">关闭</a-button>
          </div>
          <div class="change-desc-content">{{ this.changeDesc }}</div>
      </a-modal>
  </div>
</template>