| | |
| | | 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: { |
| | |
| | | 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 = [ |
| | | { |
| | |
| | | value: 124, |
| | | }, |
| | | ], |
| | | changeDescVisible: false, |
| | | changeDesc: "" |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | bar - |
| | | parseInt(paddingBottom) - |
| | | parseInt(paddingTop); |
| | | console.log(h, "h", wraper, header, bar); |
| | | this.y = h; |
| | | } |
| | | }); |
| | |
| | | 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(() => { |
| | |
| | | </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"> |
| | |
| | | </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> |
| | |
| | | <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> |
| | | |