|
@@ -6,8 +6,13 @@
|
|
|
:title="Language.getNameTrl($i18n.locale, window)"
|
|
:title="Language.getNameTrl($i18n.locale, window)"
|
|
|
:is-go-back="false"
|
|
:is-go-back="false"
|
|
|
/>
|
|
/>
|
|
|
- <WindowTab @get-now-tab="getNowTab" />
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <WindowTab
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ tab && tab.tabDataSource && tab.tabDataSource.tabDataSourceGroupDtos
|
|
|
|
|
+ "
|
|
|
|
|
+ :tab-props="tab.tabDataSource.tabDataSourceGroupDtos"
|
|
|
|
|
+ @get-now-tab="getNowTab"
|
|
|
|
|
+ />
|
|
|
<div
|
|
<div
|
|
|
class="grid-container"
|
|
class="grid-container"
|
|
|
:style="{
|
|
:style="{
|
|
@@ -76,188 +81,21 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid-item-row2">
|
|
<div class="grid-item-row2">
|
|
|
- <div class="button_list">
|
|
|
|
|
- <a-breadcrumb v-if="nowTab === 'waiting'" separator="|">
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="isShowCreateRecordButton"
|
|
|
|
|
- @click="createAsset"
|
|
|
|
|
- >
|
|
|
|
|
- <plus-circle-two-tone />
|
|
|
|
|
- <span>{{ $t("lang.tabGridEdit.create") }}</span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="isShowNewPageCreateRecordButton"
|
|
|
|
|
- @click="createRecordInWindowEdit"
|
|
|
|
|
- >
|
|
|
|
|
- <plus-square-two-tone />
|
|
|
|
|
- <span>
|
|
|
|
|
- {{ $t("lang.tabGridEdit.createInNewPage") }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="isShowDeleteButton"
|
|
|
|
|
- @click="deleteRecords(true)"
|
|
|
|
|
- >
|
|
|
|
|
- <delete-two-tone />
|
|
|
|
|
- <span type="text">
|
|
|
|
|
- {{ $t("lang.tabGridEdit.remove") }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item v-if="dataChanged" @click="saveAllTabData">
|
|
|
|
|
- <save-two-tone />
|
|
|
|
|
- <span>
|
|
|
|
|
- {{ $t("lang.tabGridEdit.save") }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
-
|
|
|
|
|
- <a-breadcrumb-item
|
|
|
|
|
- v-if="isShowEditAllButton"
|
|
|
|
|
- @click="editAllTabData"
|
|
|
|
|
- >
|
|
|
|
|
- <edit-two-tone />
|
|
|
|
|
- <span type="text">
|
|
|
|
|
- {{ $t("lang.tabGridEdit.editAll") }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
-
|
|
|
|
|
- <a-breadcrumb-item @click="queryGridData(false)">
|
|
|
|
|
- <wallet-two-tone />
|
|
|
|
|
- <span>
|
|
|
|
|
- {{
|
|
|
|
|
- dataChanged
|
|
|
|
|
- ? $t("lang.tabGridEdit.revert")
|
|
|
|
|
- : $t("lang.tabGridEdit.refresh")
|
|
|
|
|
- }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item>
|
|
|
|
|
- <GridColumnDef
|
|
|
|
|
- :window-no="windowNo"
|
|
|
|
|
- :tab-index="tabIndex"
|
|
|
|
|
- :tab-grid-fields="tabGridFields"
|
|
|
|
|
- @property-changed="propertyChanged($event)"
|
|
|
|
|
- />
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item>
|
|
|
|
|
- <idcard-two-tone />
|
|
|
|
|
- <span> 添加验收人 </span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- </a-breadcrumb>
|
|
|
|
|
- <a-breadcrumb v-if="nowTab === 'running'" separator="|">
|
|
|
|
|
- <a-breadcrumb-item>
|
|
|
|
|
- <check-square-two-tone />
|
|
|
|
|
- <span>验收通过</span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- <a-breadcrumb-item>
|
|
|
|
|
- <close-circle-two-tone two-tone-color="#ff4548" />
|
|
|
|
|
- <span>取消验收</span>
|
|
|
|
|
- </a-breadcrumb-item>
|
|
|
|
|
- </a-breadcrumb>
|
|
|
|
|
- <a-breadcrumb v-if="nowTab === 'finish'" separator="|" />
|
|
|
|
|
- <TabButton
|
|
|
|
|
- :window="window"
|
|
|
|
|
- :simple-filter-params="searchText"
|
|
|
|
|
- :complex-filter-params="complexFilterParams"
|
|
|
|
|
- :uuid="uuid"
|
|
|
|
|
- :show-tab-dto="tab"
|
|
|
|
|
- :model-datas="modelDatas"
|
|
|
|
|
- :view-type="'Grid'"
|
|
|
|
|
- :tab-buttons="tab.tabGridView ? tab.tabGridView.tabButtons : null"
|
|
|
|
|
- :curd-window-function-access="curdWindowFunctionAccess"
|
|
|
|
|
- @save-view="backupView"
|
|
|
|
|
- @process-execute-finish="queryGridData(true)"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <NewTabButton
|
|
|
|
|
+ :window="window"
|
|
|
|
|
+ :now-tab="nowTab"
|
|
|
|
|
+ :simple-filter-params="searchText"
|
|
|
|
|
+ :complex-filter-params="complexFilterParams"
|
|
|
|
|
+ :uuid="uuid"
|
|
|
|
|
+ :show-tab-dto="tab"
|
|
|
|
|
+ :model-datas="modelDatas"
|
|
|
|
|
+ :view-type="'Grid'"
|
|
|
|
|
+ :curd-window-function-access="curdWindowFunctionAccess"
|
|
|
|
|
+ @create-record-in-window-edit="createRecordInWindowEdit"
|
|
|
|
|
+ @delete-records="deleteRecords"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <!-- <div class="grid-item-row2">
|
|
|
|
|
- <div>
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="btn-group" role="group">
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="isShowCreateRecordButton"
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-primary"
|
|
|
|
|
- @click="createRecord"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t("lang.tabGridEdit.create") }}
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="isShowNewPageCreateRecordButton"
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-primary"
|
|
|
|
|
- @click="createRecordInWindowEdit"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t("lang.tabGridEdit.createInNewPage") }}
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="dataChanged"
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-success"
|
|
|
|
|
- @click="saveAllTabData"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t("lang.tabGridEdit.save") }}
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-info"
|
|
|
|
|
- @click="queryGridData(false)"
|
|
|
|
|
- >
|
|
|
|
|
- {{
|
|
|
|
|
- dataChanged
|
|
|
|
|
- ? $t("lang.tabGridEdit.revert")
|
|
|
|
|
- : $t("lang.tabGridEdit.refresh")
|
|
|
|
|
- }}
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="isShowEditAllButton"
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-primary"
|
|
|
|
|
- @click="editAllTabData"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t("lang.tabGridEdit.editAll") }}
|
|
|
|
|
- </button>
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="isShowDeleteButton"
|
|
|
|
|
- type="button"
|
|
|
|
|
- class="btn btn-danger"
|
|
|
|
|
- @click="deleteRecords(true)"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t("lang.tabGridEdit.remove") }}
|
|
|
|
|
- </button>
|
|
|
|
|
- <TabButton
|
|
|
|
|
- :window="window"
|
|
|
|
|
- :simple-filter-params="searchText"
|
|
|
|
|
- :complex-filter-params="complexFilterParams"
|
|
|
|
|
- :uuid="uuid"
|
|
|
|
|
- :show-tab-dto="tab"
|
|
|
|
|
- :model-datas="modelDatas"
|
|
|
|
|
- :view-type="'Grid'"
|
|
|
|
|
- :tab-buttons="
|
|
|
|
|
- tab.tabGridView ? tab.tabGridView.tabButtons : null
|
|
|
|
|
- "
|
|
|
|
|
- :curd-window-function-access="curdWindowFunctionAccess"
|
|
|
|
|
- @save-view="backupView"
|
|
|
|
|
- @process-execute-finish="queryGridData(true)"
|
|
|
|
|
- />
|
|
|
|
|
- <GridColumnDef
|
|
|
|
|
- :window-no="windowNo"
|
|
|
|
|
- :tab-index="tabIndex"
|
|
|
|
|
- :tab-grid-fields="tabGridFields"
|
|
|
|
|
- @property-changed="propertyChanged($event)"
|
|
|
|
|
- />
|
|
|
|
|
- <button
|
|
|
|
|
- v-if="window.htmlHelpUrl != null && window.htmlHelpUrl != ''"
|
|
|
|
|
- class="btn btn-default"
|
|
|
|
|
- @click="openHtmlHelp(window.htmlHelpUrl)"
|
|
|
|
|
- >
|
|
|
|
|
- <span class="glyphicon glyphicon-question-sign" />
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div> -->
|
|
|
|
|
-
|
|
|
|
|
<div class="grid-item-row3-column1 tableFixHead">
|
|
<div class="grid-item-row3-column1 tableFixHead">
|
|
|
<!-- eslint-disable-next-line -->
|
|
<!-- eslint-disable-next-line -->
|
|
|
<div v-html="headerHtml" />
|
|
<div v-html="headerHtml" />
|
|
@@ -344,40 +182,6 @@
|
|
|
@complex-search="advancedSearchOk"
|
|
@complex-search="advancedSearchOk"
|
|
|
/>
|
|
/>
|
|
|
</a-drawer>
|
|
</a-drawer>
|
|
|
-
|
|
|
|
|
- <!-- eslint-disable-next-line -->
|
|
|
|
|
- <!-- <div class="grid-item-row4">
|
|
|
|
|
- <div v-html="footerHtml" />
|
|
|
|
|
-
|
|
|
|
|
- <div v-if="tab != null && tab.tabGridView != null">
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="pull-left">
|
|
|
|
|
- <span>
|
|
|
|
|
- {{
|
|
|
|
|
- $t("lang.tabGridEdit.pageInfo", {
|
|
|
|
|
- start:
|
|
|
|
|
- (pagination.current_page - 1) * pagination.per_page + 1,
|
|
|
|
|
- end: pagination.current_page * pagination.per_page,
|
|
|
|
|
- total: pagination.total,
|
|
|
|
|
- })
|
|
|
|
|
- }}
|
|
|
|
|
- </span>
|
|
|
|
|
- {{ $t("lang.tabGridEdit.pageSize") }}
|
|
|
|
|
- <PageSizeSelect
|
|
|
|
|
- :size="pagination.per_page"
|
|
|
|
|
- @page-size-changed="gridSizeSelect"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="pull-right">
|
|
|
|
|
- <VueBootstrapPagination
|
|
|
|
|
- :pagination="pagination"
|
|
|
|
|
- :callback="checkDataChangedQueryGridData"
|
|
|
|
|
- />
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div> -->
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<Modal v-model:show="modal1">
|
|
<Modal v-model:show="modal1">
|
|
|
<template #header>
|
|
<template #header>
|
|
@@ -417,8 +221,6 @@ import SimpleFilterPanel from '../filter/SimpleFilterPanel.vue';
|
|
|
import ComplexFilterPanel from '../filter/ComplexFilterPanel.vue';
|
|
import ComplexFilterPanel from '../filter/ComplexFilterPanel.vue';
|
|
|
import TabButton from '../tabView/TabButton.vue';
|
|
import TabButton from '../tabView/TabButton.vue';
|
|
|
|
|
|
|
|
-import GridColumnDef from '../tabGridView/GridColumnDef.vue';
|
|
|
|
|
-
|
|
|
|
|
import AuthImage from '../../widget/AuthImage.vue';
|
|
import AuthImage from '../../widget/AuthImage.vue';
|
|
|
import DataRecoveryResource from '../../api/base/DataRecoveryResource.js';
|
|
import DataRecoveryResource from '../../api/base/DataRecoveryResource.js';
|
|
|
import CurdWindowResourceV2 from '../../api/dic/CurdWindowResourceV2.js';
|
|
import CurdWindowResourceV2 from '../../api/dic/CurdWindowResourceV2.js';
|
|
@@ -426,6 +228,7 @@ import JsUtil from '../../common/JsUtil.js';
|
|
|
import { Notify, Uuid } from 'pc-component-v3';
|
|
import { Notify, Uuid } from 'pc-component-v3';
|
|
|
import WindowTab from './WindowTab.vue';
|
|
import WindowTab from './WindowTab.vue';
|
|
|
import AddAssets from './AddAssets.vue';
|
|
import AddAssets from './AddAssets.vue';
|
|
|
|
|
+import NewTabButton from './NewTabButton.vue';
|
|
|
|
|
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import {
|
|
import {
|
|
@@ -448,7 +251,7 @@ export default {
|
|
|
TabButton,
|
|
TabButton,
|
|
|
GridHeader,
|
|
GridHeader,
|
|
|
GridBody,
|
|
GridBody,
|
|
|
- GridColumnDef,
|
|
|
|
|
|
|
+ NewTabButton,
|
|
|
ComplexFilterPanel,
|
|
ComplexFilterPanel,
|
|
|
WindowTab,
|
|
WindowTab,
|
|
|
PlusCircleTwoTone,
|
|
PlusCircleTwoTone,
|
|
@@ -477,9 +280,9 @@ export default {
|
|
|
window: {},
|
|
window: {},
|
|
|
tabIndex: null,
|
|
tabIndex: null,
|
|
|
step: '0',
|
|
step: '0',
|
|
|
- nowTab: 'waiting', // 当前是哪个阶段
|
|
|
|
|
|
|
+ nowTab: null, // 当前是哪个阶段
|
|
|
nowAsset: '', // 所选资产分类名称
|
|
nowAsset: '', // 所选资产分类名称
|
|
|
- selectCategory:null, //所选资产分类数据
|
|
|
|
|
|
|
+ selectCategory: null, //所选资产分类数据
|
|
|
tab: {},
|
|
tab: {},
|
|
|
tabGridFields: [],
|
|
tabGridFields: [],
|
|
|
modelDatas: [],
|
|
modelDatas: [],
|
|
@@ -767,10 +570,12 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
getContext: Context,
|
|
getContext: Context,
|
|
|
|
|
|
|
|
- // 获取当前tab为待验收还是验收中、验收完成
|
|
|
|
|
|
|
+ // 获取当前tab为哪个阶段
|
|
|
getNowTab: function (tab) {
|
|
getNowTab: function (tab) {
|
|
|
this.nowTab = tab;
|
|
this.nowTab = tab;
|
|
|
console.log(this.nowTab);
|
|
console.log(this.nowTab);
|
|
|
|
|
+ this.pagination.current_page = 1;
|
|
|
|
|
+ this.queryGridData(true);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 页数改变
|
|
// 页数改变
|
|
@@ -797,7 +602,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 获取新增步骤信息
|
|
// 获取新增步骤信息
|
|
|
- getStepInfo: function (step, selected,record) {
|
|
|
|
|
|
|
+ getStepInfo: function (step, selected, record) {
|
|
|
this.step = step;
|
|
this.step = step;
|
|
|
this.nowAsset = selected;
|
|
this.nowAsset = selected;
|
|
|
this.selectCategory = record;
|
|
this.selectCategory = record;
|
|
@@ -810,11 +615,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 确认创建资产
|
|
// 确认创建资产
|
|
|
confirmCreate: function () {
|
|
confirmCreate: function () {
|
|
|
- if(!this.selectCategory){
|
|
|
|
|
|
|
+ if (!this.selectCategory) {
|
|
|
message.warning('请您先选择资产分类!');
|
|
message.warning('请您先选择资产分类!');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if(this.selectCategory.children && this.selectCategory.children.length){
|
|
|
|
|
|
|
+ if (this.selectCategory.children && this.selectCategory.children.length) {
|
|
|
message.warning('请您选择最后一级的资产分类!');
|
|
message.warning('请您选择最后一级的资产分类!');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -884,7 +689,7 @@ export default {
|
|
|
loadWindow: function () {
|
|
loadWindow: function () {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
if (_self.windowNo) {
|
|
if (_self.windowNo) {
|
|
|
- WindowServerUtil.getWindowById(_self.windowNo, function (data) {
|
|
|
|
|
|
|
+ WindowServerUtil.uniqueByNoWithRoleNew(_self.windowNo, function (data) {
|
|
|
WindowClientUtil.parseFilterSchema(data);
|
|
WindowClientUtil.parseFilterSchema(data);
|
|
|
_self.initWindow(data);
|
|
_self.initWindow(data);
|
|
|
});
|
|
});
|
|
@@ -954,7 +759,14 @@ export default {
|
|
|
this.tabIndex,
|
|
this.tabIndex,
|
|
|
this.tabGridFields,
|
|
this.tabGridFields,
|
|
|
);
|
|
);
|
|
|
-
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ _self.tab.tabDataSource.tabDataSourceGroupDtos &&
|
|
|
|
|
+ _self.tab.tabDataSource.tabDataSourceGroupDtos.length
|
|
|
|
|
+ ) {
|
|
|
|
|
+ _self.nowTab =
|
|
|
|
|
+ _self.tab.tabDataSource.tabDataSourceGroupDtos[0].groupName;
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(_self.nowTab, '_self.nowTab=======================');
|
|
|
_self.$nextTick(function () {
|
|
_self.$nextTick(function () {
|
|
|
// 设置复杂查询条件
|
|
// 设置复杂查询条件
|
|
|
if (
|
|
if (
|
|
@@ -1027,7 +839,16 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
simpleFilterCondition = _self.searchText;
|
|
simpleFilterCondition = _self.searchText;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ let groupNameOne;
|
|
|
|
|
+ if (
|
|
|
|
|
+ _self.tab.tabDataSource.tabDataSourceGroupDtos &&
|
|
|
|
|
+ _self.tab.tabDataSource.tabDataSourceGroupDtos.length
|
|
|
|
|
+ ) {
|
|
|
|
|
+ groupNameOne =
|
|
|
|
|
+ _self.tab.tabDataSource.tabDataSourceGroupDtos[0].groupName;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ groupNameOne = null;
|
|
|
|
|
+ }
|
|
|
var tabQueryParam = {
|
|
var tabQueryParam = {
|
|
|
range: {
|
|
range: {
|
|
|
start:
|
|
start:
|
|
@@ -1039,6 +860,7 @@ export default {
|
|
|
filterParams: filterParams,
|
|
filterParams: filterParams,
|
|
|
simpleFilterCondition: simpleFilterCondition,
|
|
simpleFilterCondition: simpleFilterCondition,
|
|
|
sortStr: _self.sortStr,
|
|
sortStr: _self.sortStr,
|
|
|
|
|
+ groupName: _self.nowTab ? _self.nowTab : groupNameOne,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
_self.dataChanged = false;
|
|
_self.dataChanged = false;
|