|
@@ -1,1618 +0,0 @@
|
|
|
-<!-- 采购模块 物料采购详细页面-->
|
|
|
-<!--2019年5月20日 11:35:53 by zw-->
|
|
|
-<template>
|
|
|
- <div class="content">
|
|
|
- <div style="background-color: #fff;"
|
|
|
- class="tabs-main sparepart-table">
|
|
|
- <el-tabs v-model="activeName"
|
|
|
- type="card"
|
|
|
- @tab-click="tabClick">
|
|
|
- <el-tab-pane v-for="item in getTabMapOptions"
|
|
|
- :key="item.key"
|
|
|
- class="overview-main"
|
|
|
- :label="languageVal == 'en' ? item.labelEn : item.label"
|
|
|
- :name="item.key">
|
|
|
- <!-- 采购申请单 -->
|
|
|
- <TableView v-if="item.key == 'SQ' && activeName == 'SQ'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="header">
|
|
|
- <BaseHeaderLayout>
|
|
|
- <template slot="left">
|
|
|
- <!-- -->
|
|
|
- <ws-button type="primary"
|
|
|
- v-hasPermission="
|
|
|
- `${$permission(
|
|
|
- 'PERMISSIONS.PURMAAPPLINFO_SUBMITTOENQUIRY'
|
|
|
- )}`
|
|
|
- "
|
|
|
- :disable="checkBtn"
|
|
|
- @click="enquiry(1)">{{ $t('button.enquiry') }}</ws-button>
|
|
|
- <!-- -->
|
|
|
- <ws-button type="primary"
|
|
|
- v-hasPermission="
|
|
|
- `${$permission(
|
|
|
- 'PERMISSIONS.PURMAAPPLINFO_SUBMITTOPURCHAS'
|
|
|
- )}`
|
|
|
- "
|
|
|
- :disable="checkBtn"
|
|
|
- @click="enquiry(2)">{{ $t('button.directsourcing') }}</ws-button>
|
|
|
- <!-- v-hasPermission="'procurement.spareMaterial.directShip'" -->
|
|
|
- <ws-button type="primary"
|
|
|
- v-hasPermission="
|
|
|
- `${$permission(
|
|
|
- 'PERMISSIONS.PURMAAPPLINFO_CREATEINSTORE'
|
|
|
- )}`
|
|
|
- "
|
|
|
- :disable="checkBtn"
|
|
|
- @click="enquiry(3)"
|
|
|
- v-if="isSupply">{{ $t('button.directShip') }}</ws-button>
|
|
|
- </template>
|
|
|
- <template slot="right">
|
|
|
- <BaseShipDropdown @change="seelctShips" />
|
|
|
- <span class="vertical-line">|</span>
|
|
|
- <el-popover v-model="searchDialog"
|
|
|
- popper-class="ser-pro-list-page-search-dialog"
|
|
|
- placement="bottom"
|
|
|
- trigger="click"
|
|
|
- :visible-arrow="false">
|
|
|
- <el-card shadow="never">
|
|
|
- <div slot="header"
|
|
|
- class="card-head">
|
|
|
- <span>{{ $t('zs.common.sizer') }}</span>
|
|
|
- <i class="el-icon-close"
|
|
|
- @click="searchDialog = false"></i>
|
|
|
- </div>
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.deptName')">
|
|
|
- <!-- <ws-select v-model="filtlistQuery.filtdeptNoSelected"
|
|
|
- style="width:20em">
|
|
|
- <ws-option v-for="item in deptList"
|
|
|
- :key="item.parameterKey"
|
|
|
- :label="
|
|
|
- language == 'en'
|
|
|
- ? item.parameterValueEn
|
|
|
- : item.parameterValue
|
|
|
- "
|
|
|
- :value="item.parameterKey" />
|
|
|
- </ws-select> -->
|
|
|
- <BaseDepartMentSelect v-model="filtlistQuery.filtdeptNoSelected"
|
|
|
- clearable
|
|
|
- :placeholder="$t('common.selected')"
|
|
|
- style="width:100%;" />
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="card-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{
|
|
|
- $t('button.reset')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <div slot="reference"
|
|
|
- class="pointer">
|
|
|
- <BaseHeaderFilter slot="reference"
|
|
|
- :total="total" />
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- <BaseInputSearch v-model="listQuery.title"
|
|
|
- :placeholder="$t('cg.querytitle')"
|
|
|
- @search="handleFilter('title')" />
|
|
|
- </template>
|
|
|
- </BaseHeaderLayout>
|
|
|
- </template>
|
|
|
- <template slot="body">
|
|
|
- <div :name="item.key"
|
|
|
- :type="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <!-- 列表 -->
|
|
|
- <ws-normal-table :height="tableViewBodyHeight - 40"
|
|
|
- :data="Info"
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- @sort-change="sortChange"
|
|
|
- @cell-click="applopenInfo">
|
|
|
- <ws-table-column width="30">
|
|
|
- <template slot-scope="scope">
|
|
|
- <ws-checkbox v-show="scope.row.listFlag"
|
|
|
- @change="chooseBill"
|
|
|
- v-model="scope.row.checked" />
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
-
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.spId')"
|
|
|
- width="50"
|
|
|
- align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- scope.$index +
|
|
|
- (listQuery.currentPage - 1) * listQuery.pageSize +
|
|
|
- 1
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vesselName')"
|
|
|
- min-width="150"
|
|
|
- prop="vesselName" />
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- prop="applNo"
|
|
|
- min-width="175"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartNo')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>
|
|
|
- {{ scope.row.applNo }}
|
|
|
- <el-tag v-show="scope.row.splitFlag == '1'"
|
|
|
- type="success"
|
|
|
- size="mini">{{ $t('cg.applicationFlagc') }}</el-tag>
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column prop="deviceName"
|
|
|
- min-width="180"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.sparepartContent')
|
|
|
- ">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- languageVal === 'en' &&
|
|
|
- scope.row.deviceNameEn &&
|
|
|
- scope.row.deviceNameEn.length > 0
|
|
|
- ? scope.row.deviceNameEn
|
|
|
- : scope.row.deviceName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- prop="title"
|
|
|
- min-width="200"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartTitle')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span :title="scope.row.title">{{
|
|
|
- scope.row.title
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column min-width="100"
|
|
|
- sortable
|
|
|
- prop="applUserName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.applUserName')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.applUserName }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeDate"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ $fd(scope.row.makeDate) }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column min-width="120"
|
|
|
- sortable
|
|
|
- prop="status"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <template slot-scope="scope">{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.statusNameEn
|
|
|
- : scope.row.statusName
|
|
|
- }}</template>
|
|
|
- </ws-table-column>
|
|
|
- </ws-normal-table>
|
|
|
- <!-- 列表 -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot="footer">
|
|
|
- <!-- 列表-页码 -->
|
|
|
- <pagination v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.currentPage"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getlistbyWhere" />
|
|
|
- <!-- 列表-页码 -->
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 采购申请单 -->
|
|
|
-
|
|
|
- <!-- 询价单 -->
|
|
|
- <TableView v-if="item.key == 'XJ' && activeName == 'XJ'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="header">
|
|
|
- <BaseHeaderLayout>
|
|
|
- <template slot="right">
|
|
|
- <ws-status-radio @changeStatus="setbySatus"></ws-status-radio>
|
|
|
- <BaseShipDropdown @change="seelctShips" />
|
|
|
- <span class="vertical-line">|</span>
|
|
|
- <el-popover v-model="searchDialog1"
|
|
|
- popper-class="ser-pro-list-page-search-dialog"
|
|
|
- placement="bottom"
|
|
|
- trigger="click"
|
|
|
- :visible-arrow="false">
|
|
|
- <el-card shadow="never">
|
|
|
- <div slot="header"
|
|
|
- class="card-head">
|
|
|
- <span>{{ $t('zs.common.sizer') }}</span>
|
|
|
- <i class="el-icon-close"
|
|
|
- @click="searchDialog1 = false"></i>
|
|
|
- </div>
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <ws-select v-model="filtlistQuery.filtstatuSelected"
|
|
|
- style="width:20em"
|
|
|
- multiple
|
|
|
- collapse-tags
|
|
|
- :placeholder="$t('common.selected')">
|
|
|
- <ws-option v-for="i in status"
|
|
|
- :key="i.status"
|
|
|
- :label="
|
|
|
- language == 'en'
|
|
|
- ? i.statusNameEn
|
|
|
- : i.statusName
|
|
|
- "
|
|
|
- :value="i.status" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="card-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{
|
|
|
- $t('button.reset')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <div slot="reference"
|
|
|
- class="pointer">
|
|
|
- <BaseHeaderFilter slot="reference"
|
|
|
- :total="total" />
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- <BaseInputSearch v-model="listQuery.title"
|
|
|
- :placeholder="$t('cg.querytitle31')"
|
|
|
- @search="handleFilter('title')" />
|
|
|
- </template>
|
|
|
- </BaseHeaderLayout>
|
|
|
- </template>
|
|
|
- <template slot="body">
|
|
|
- <div :type="item.key"
|
|
|
- :name="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <!-- 列表 -->
|
|
|
- <ws-normal-table :data="Info"
|
|
|
- element-loading-text="Loading"
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- @sort-change="sortChange"
|
|
|
- @row-click="applopenInfo"
|
|
|
- :height="tableViewBodyHeight - 40">
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.spId')"
|
|
|
- width="50"
|
|
|
- align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- scope.$index +
|
|
|
- (listQuery.currentPage - 1) * listQuery.pageSize +
|
|
|
- 1
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vesselName')"
|
|
|
- min-width="150"
|
|
|
- prop="vesselName" />
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- prop="enquiryNo"
|
|
|
- min-width="180"
|
|
|
- :label="$t('cg.cgsparedetail.enquiryno')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>
|
|
|
- {{ scope.row.enquiryNo }}
|
|
|
- <el-tag v-show="scope.row.splitFlag == '1'"
|
|
|
- type="success"
|
|
|
- size="mini">{{ $t('cg.applicationFlagc') }}</el-tag>
|
|
|
- <el-tag v-show="scope.row.splitFlag == '2'"
|
|
|
- size="mini">{{ $t('cg.applicationFlagh') }}</el-tag>
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column prop="deviceName"
|
|
|
- min-width="175"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.sparepartContent')
|
|
|
- ">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- languageVal === 'en' &&
|
|
|
- scope.row.deviceNameEn &&
|
|
|
- scope.row.deviceNameEn.length > 0
|
|
|
- ? scope.row.deviceNameEn
|
|
|
- : scope.row.deviceName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- prop="title"
|
|
|
- min-width="200"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartTitle')" />
|
|
|
- <ws-table-column min-width="100"
|
|
|
- sortable
|
|
|
- prop="makeUserName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeUserName')" />
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeDate"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ $fd(scope.row.makeDate) }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.status')"
|
|
|
- prop="status"
|
|
|
- min-width="120">
|
|
|
- <template slot-scope="scope">{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.statusNameEn
|
|
|
- : scope.row.statusName
|
|
|
- }}</template>
|
|
|
- </ws-table-column>
|
|
|
- </ws-normal-table>
|
|
|
- <!-- 列表 -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot="footer">
|
|
|
- <!-- 列表-页码 -->
|
|
|
- <pagination v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.currentPage"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getlistbyWhere" />
|
|
|
- <!-- 列表-页码 -->
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 询价单 -->
|
|
|
-
|
|
|
- <!-- 报价单 -->
|
|
|
- <TableView v-if="item.key == 'BJD' && activeName == 'BJD'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="header">
|
|
|
- <BaseHeaderLayout>
|
|
|
- <template slot="right">
|
|
|
- <ws-status-radio :showTrack="showTrack"
|
|
|
- @changeStatus="setbySatus"></ws-status-radio>
|
|
|
- <BaseShipDropdown @change="seelctShips" />
|
|
|
- <span class="vertical-line">|</span>
|
|
|
- <el-popover v-model="searchDialog3"
|
|
|
- popper-class="ser-pro-list-page-search-dialog"
|
|
|
- placement="bottom"
|
|
|
- trigger="click"
|
|
|
- :visible-arrow="false">
|
|
|
- <el-card shadow="never">
|
|
|
- <div slot="header"
|
|
|
- class="card-head">
|
|
|
- <span>{{ $t('zs.common.sizer') }}</span>
|
|
|
- <i class="el-icon-close"
|
|
|
- @click="searchDialog3 = false"></i>
|
|
|
- </div>
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <ws-select v-model="filtlistQuery.filtstatuSelected"
|
|
|
- style="width:20em"
|
|
|
- multiple
|
|
|
- collapse-tags
|
|
|
- :placeholder="$t('common.selected')">
|
|
|
- <ws-option v-for="i in status"
|
|
|
- :key="i.status"
|
|
|
- :label="
|
|
|
- language == 'en'
|
|
|
- ? i.statusNameEn
|
|
|
- : i.statusName
|
|
|
- "
|
|
|
- :value="i.status" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="card-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{
|
|
|
- $t('button.reset')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <div slot="reference"
|
|
|
- class="pointer">
|
|
|
- <BaseHeaderFilter slot="reference"
|
|
|
- :total="total" />
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- <BaseInputSearch v-model="listQuery.title"
|
|
|
- :placeholder="$t('cg.querytitle3')"
|
|
|
- @search="handleFilter('title')" />
|
|
|
- </template>
|
|
|
- </BaseHeaderLayout>
|
|
|
- </template>
|
|
|
- <template slot="body">
|
|
|
- <div :type="item.key"
|
|
|
- :name="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <!-- 列表 -->
|
|
|
- <ws-normal-table :span-method="arraySpanMethod"
|
|
|
- :data="Info"
|
|
|
- element-loading-text="Loading"
|
|
|
- :merge="['vendorDetailList']"
|
|
|
- fit
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- @sort-change="sortChange"
|
|
|
- :height="tableViewBodyHeight - 40">
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.spId')"
|
|
|
- width="50"
|
|
|
- align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.indexNum }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vesselName')"
|
|
|
- min-width="120"
|
|
|
- prop="vesselName" />
|
|
|
- <ws-table-column sortable
|
|
|
- prop="enquiryNo"
|
|
|
- min-width="130"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.enquiryNo')" />
|
|
|
- <ws-table-column prop="title"
|
|
|
- min-width="120"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartTitle')" />
|
|
|
- <ws-table-column sortable
|
|
|
- prop="inquiryEffectiveEnd"
|
|
|
- min-width="120"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.inquiryEffectiveEnd')
|
|
|
- " />
|
|
|
- <ws-table-column sortable
|
|
|
- prop="remainingDays"
|
|
|
- min-width="100"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.remainingDays')" />
|
|
|
- <ws-table-column prop="vendorName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vendorName')"
|
|
|
- min-width="200"
|
|
|
- :show-overflow-tooltip="false">
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.quotesNo')"
|
|
|
- min-width="160"
|
|
|
- :show-overflow-tooltip="false">
|
|
|
- <template slot-scope="scope"
|
|
|
- class="table-height">
|
|
|
- <span class="link-type link-style"
|
|
|
- @click="applopenInfo(scope.row)">{{ scope.row.quotesNo }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.status')"
|
|
|
- min-width="120"
|
|
|
- prop="status"
|
|
|
- :show-overflow-tooltip="false">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span class="link-style">{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.statusNameEn
|
|
|
- : scope.row.statusName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- </ws-normal-table>
|
|
|
- <!-- 列表 -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot="footer">
|
|
|
- <!-- 列表-页码 -->
|
|
|
- <pagination v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.currentPage"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getlistbyWhere" />
|
|
|
- <!-- 列表-页码 -->
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 报价单 -->
|
|
|
-
|
|
|
- <!-- 比价单 -->
|
|
|
- <TableView v-if="item.key == 'BJ' && activeName == 'BJ'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="header">
|
|
|
- <BaseHeaderLayout>
|
|
|
- <template slot="right">
|
|
|
- <ws-status-radio @changeStatus="setbySatus"></ws-status-radio>
|
|
|
- <BaseShipDropdown @change="seelctShips" />
|
|
|
- <span class="vertical-line">|</span>
|
|
|
- <el-popover v-model="searchDialog2"
|
|
|
- popper-class="ser-pro-list-page-search-dialog"
|
|
|
- placement="bottom"
|
|
|
- trigger="click"
|
|
|
- :visible-arrow="false">
|
|
|
- <el-card shadow="never">
|
|
|
- <div slot="header"
|
|
|
- class="card-head">
|
|
|
- <span>{{ $t('zs.common.sizer') }}</span>
|
|
|
- <i class="el-icon-close"
|
|
|
- @click="searchDialog2 = false"></i>
|
|
|
- </div>
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <ws-select v-model="filtlistQuery.filtstatuSelected"
|
|
|
- style="width:20em"
|
|
|
- multiple
|
|
|
- collapse-tags
|
|
|
- :placeholder="$t('common.selected')">
|
|
|
- <ws-option v-for="i in status"
|
|
|
- :key="i.status"
|
|
|
- :label="
|
|
|
- language == 'en'
|
|
|
- ? i.statusNameEn
|
|
|
- : i.statusName
|
|
|
- "
|
|
|
- :value="i.status" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="card-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{
|
|
|
- $t('button.reset')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <div slot="reference"
|
|
|
- class="pointer">
|
|
|
- <BaseHeaderFilter slot="reference"
|
|
|
- :total="total" />
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- <BaseInputSearch v-model="listQuery.title"
|
|
|
- :placeholder="$t('cg.querytitle12')"
|
|
|
- @search="handleFilter('title')" />
|
|
|
- </template>
|
|
|
- </BaseHeaderLayout>
|
|
|
- </template>
|
|
|
- <template slot="body">
|
|
|
- <div :type="item.key"
|
|
|
- :name="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <!-- 列表 -->
|
|
|
- <ws-normal-table :height="tableViewBodyHeight - 40"
|
|
|
- :span-method="arraySpanMethod2"
|
|
|
- :data="Info"
|
|
|
- element-loading-text="Loading"
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- @sort-change="sortChange"
|
|
|
- @row-click="applopenInfo">
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.spId')"
|
|
|
- width="50"
|
|
|
- align="center">
|
|
|
- <template slot-scope="scope">{{
|
|
|
- scope.row.indexNum
|
|
|
- }}</template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vesselName')"
|
|
|
- min-width="150"
|
|
|
- prop="vesselName" />
|
|
|
- <ws-table-column sortable
|
|
|
- prop="enquiryNo"
|
|
|
- min-width="150"
|
|
|
- :label="$t('cg.cgsparedetail.parityno')" />
|
|
|
-
|
|
|
- <ws-table-column prop="deviceName"
|
|
|
- min-width="150"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.sparepartContent1')
|
|
|
- ">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- languageVal === 'en' &&
|
|
|
- scope.row.deviceNameEn &&
|
|
|
- scope.row.deviceNameEn.length > 0
|
|
|
- ? scope.row.deviceNameEn
|
|
|
- : scope.row.deviceName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- prop="openParityWay"
|
|
|
- min-width="100"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.openParityWay')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.openParityWayEn
|
|
|
- : scope.row.openParityWay
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.vendorName')"
|
|
|
- min-width="165">
|
|
|
- <template slot-scope="scope"
|
|
|
- class="link-p">
|
|
|
- <div class="overEl">
|
|
|
- {{ $t('cg.supplierName') }}{{$t('common.colon')}}{{ scope.row.vendorName }}
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- {{ $t('cg.supplierLinkMan') }}{{$t('common.colon')}}{{ scope.row.linkMan
|
|
|
- }}{{ scope.row.telNumber }}
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeUserName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeUserName')" />
|
|
|
- <ws-table-column sortable
|
|
|
- width="100"
|
|
|
- prop="makeDate"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ $fd(scope.row.makeDate) }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.status')"
|
|
|
- prop="status"
|
|
|
- min-width="120">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.statusNameEn
|
|
|
- : scope.row.statusName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- </ws-normal-table>
|
|
|
- <!-- 列表 -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot="footer">
|
|
|
- <!-- 列表-页码 -->
|
|
|
- <pagination v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.currentPage"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getlistbyWhere" />
|
|
|
- <!-- 列表-页码 -->
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 比价单 -->
|
|
|
-
|
|
|
- <!--采购单 -->
|
|
|
- <TableView v-if="item.key == 'CG' && activeName == 'CG'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="header">
|
|
|
- <BaseHeaderLayout>
|
|
|
- <template slot="right">
|
|
|
- <ws-status-radio @changeStatus="setbySatus"></ws-status-radio>
|
|
|
- <BaseShipDropdown @change="seelctShips" />
|
|
|
- <span class="vertical-line">|</span>
|
|
|
- <el-popover v-model="searchDialog4"
|
|
|
- popper-class="ser-pro-list-page-search-dialog"
|
|
|
- placement="bottom"
|
|
|
- trigger="click"
|
|
|
- :visible-arrow="false">
|
|
|
- <el-card shadow="never">
|
|
|
- <div slot="header"
|
|
|
- class="card-head">
|
|
|
- <span>{{ $t('zs.common.sizer') }}</span>
|
|
|
- <i class="el-icon-close"
|
|
|
- @click="searchDialog4 = false"></i>
|
|
|
- </div>
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <ws-select v-model="filtlistQuery.filtstatuSelected"
|
|
|
- style="width:20em"
|
|
|
- multiple
|
|
|
- collapse-tags
|
|
|
- :placeholder="$t('common.selected')">
|
|
|
- <ws-option v-for="i in status"
|
|
|
- :key="i.status"
|
|
|
- :label="
|
|
|
- language == 'en'
|
|
|
- ? i.statusNameEn
|
|
|
- : i.statusName
|
|
|
- "
|
|
|
- :value="i.status" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="card-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{
|
|
|
- $t('button.reset')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <div slot="reference"
|
|
|
- class="pointer">
|
|
|
- <BaseHeaderFilter slot="reference"
|
|
|
- :total="total" />
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- <BaseInputSearch v-model="listQuery.title"
|
|
|
- :placeholder="$t('cg.querytitle1')"
|
|
|
- @search="handleFilter('title')" />
|
|
|
- </template>
|
|
|
- </BaseHeaderLayout>
|
|
|
- </template>
|
|
|
- <template slot="body">
|
|
|
- <div :type="item.key"
|
|
|
- :name="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <!-- 列表 -->
|
|
|
- <ws-normal-table :height="tableViewBodyHeight - 40"
|
|
|
- :data="Info"
|
|
|
- element-loading-text="Loading"
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- @sort-change="sortChange"
|
|
|
- @row-click="applopenInfo">
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.spId')"
|
|
|
- width="50"
|
|
|
- align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- scope.$index +
|
|
|
- (listQuery.currentPage - 1) * listQuery.pageSize +
|
|
|
- 1
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vesselName')"
|
|
|
- min-width="150"
|
|
|
- prop="vesselName" />
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- prop="purchaseNo"
|
|
|
- min-width="170"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartNo4')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.purchaseNo }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column prop="deviceName"
|
|
|
- min-width="170"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.sparepartContent1')
|
|
|
- ">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- languageVal === 'en' &&
|
|
|
- scope.row.deviceNameEn &&
|
|
|
- scope.row.deviceNameEn.length > 0
|
|
|
- ? scope.row.deviceNameEn
|
|
|
- : scope.row.deviceName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="80"
|
|
|
- prop="contractFlag"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.contractFlag')">
|
|
|
- <template slot-scope="scope"
|
|
|
- style="line-height:26px">
|
|
|
- <span>{{
|
|
|
- scope.row.contractFlag == 1
|
|
|
- ? $t('common.yes')
|
|
|
- : $t('common.no')
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column min-width="180"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vendorName')"
|
|
|
- class="link-p">
|
|
|
- <span slot-scope="scope"
|
|
|
- style="line-height:auto">
|
|
|
- <div>
|
|
|
- {{ $t('cg.supplierName') }}{{$t('common.colon')}}{{ scope.row.vendorName }}
|
|
|
- </div>
|
|
|
-
|
|
|
- <div>
|
|
|
- {{ $t('cg.supplierLinkMan') }}{{$t('common.colon')}}{{ scope.row.linkMan
|
|
|
- }}{{ scope.row.telNumber }}
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeUserName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeUserName')" />
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeDate"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ $fd(scope.row.makeDate) }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.status')"
|
|
|
- prop="status"
|
|
|
- min-width="120">
|
|
|
- <template slot-scope="scope">{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.statusNameEn
|
|
|
- : scope.row.statusName
|
|
|
- }}</template>
|
|
|
- </ws-table-column>
|
|
|
- </ws-normal-table>
|
|
|
- <!-- 列表 -->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot="footer">
|
|
|
- <!-- 列表-页码 -->
|
|
|
- <pagination v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.currentPage"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getlistbyWhere" />
|
|
|
- <!-- 列表-页码 -->
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 采购单 -->
|
|
|
-
|
|
|
- <!-- 结算单 -->
|
|
|
- <TableView v-if="item.key == 'JS' && activeName == 'JS'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="header">
|
|
|
- <BaseHeaderLayout>
|
|
|
- <template slot="right">
|
|
|
- <ws-status-radio @changeStatus="setbySatus"></ws-status-radio>
|
|
|
- <BaseShipDropdown v-model="vesselIdSelected"
|
|
|
- @change="seelctShips" />
|
|
|
- <span class="vertical-line">|</span>
|
|
|
- <el-popover v-model="searchDialog5"
|
|
|
- popper-class="ser-pro-list-page-search-dialog"
|
|
|
- placement="bottom"
|
|
|
- trigger="click"
|
|
|
- :visible-arrow="false">
|
|
|
- <el-card shadow="never">
|
|
|
- <div slot="header"
|
|
|
- class="card-head">
|
|
|
- <span>{{ $t('zs.common.sizer') }}</span>
|
|
|
- <i class="el-icon-close"
|
|
|
- @click="searchDialog5 = false"></i>
|
|
|
- </div>
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <ws-select v-model="filtlistQuery.filtstatuSelected"
|
|
|
- style="width:20em"
|
|
|
- multiple
|
|
|
- collapse-tags
|
|
|
- :placeholder="$t('common.selected')">
|
|
|
- <ws-option v-for="i in status"
|
|
|
- :key="i.status"
|
|
|
- :label="
|
|
|
- language == 'en'
|
|
|
- ? i.statusNameEn
|
|
|
- : i.statusName
|
|
|
- "
|
|
|
- :value="i.status" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div class="card-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{
|
|
|
- $t('button.reset')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <div slot="reference"
|
|
|
- class="pointer">
|
|
|
- <BaseHeaderFilter slot="reference"
|
|
|
- :total="total" />
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
- <BaseInputSearch v-model="listQuery.title"
|
|
|
- :placeholder="$t('cg.querytitle11')"
|
|
|
- @search="handleFilter('title')" />
|
|
|
- </template>
|
|
|
- </BaseHeaderLayout>
|
|
|
- </template>
|
|
|
- <template slot="body">
|
|
|
- <div :type="item.key"
|
|
|
- :name="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <!-- 列表 -->
|
|
|
- <ws-normal-table :height="tableViewBodyHeight - 40"
|
|
|
- :data="Info"
|
|
|
- element-loading-text="Loading"
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- @sort-change="sortChange"
|
|
|
- @row-click="applopenInfo">
|
|
|
- <ws-table-column :label="$t('cg.pSparepart.sparepartList.spId')"
|
|
|
- width="50"
|
|
|
- align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- scope.$index +
|
|
|
- (listQuery.currentPage - 1) * listQuery.pageSize +
|
|
|
- 1
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.vesselName')"
|
|
|
- min-width="150"
|
|
|
- prop="vesselName" />
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- prop="applNo"
|
|
|
- min-width="180"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartNo5')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.billNo }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <!-- <ws-table-column
|
|
|
- v-if="isHasFinance"
|
|
|
- sortable
|
|
|
- min-width="100"
|
|
|
- prop="payTypeName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.sparepartList2')"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.payTypeNameEn
|
|
|
- : scope.row.payTypeName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>-->
|
|
|
- <ws-table-column prop="deviceName"
|
|
|
- min-width="200"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.sparepartContent1')
|
|
|
- ">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- languageVal === 'en' &&
|
|
|
- scope.row.deviceNameEn &&
|
|
|
- scope.row.deviceNameEn.length > 0
|
|
|
- ? scope.row.deviceNameEn
|
|
|
- : scope.row.deviceName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="120"
|
|
|
- prop="totalAmountLower"
|
|
|
- :label="
|
|
|
- $t('cg.pSparepart.sparepartList.afterDiscountLower')
|
|
|
- ">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.totalAmountLower">{{
|
|
|
- parseFloat(
|
|
|
- parseFloat(scope.row.totalAmountLower) +
|
|
|
- parseFloat(scope.row.transFee || 0)
|
|
|
- ).toFixed(2) + resCurrencyId(scope.row)
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeUserName"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeUserName')" />
|
|
|
- <ws-table-column sortable
|
|
|
- min-width="100"
|
|
|
- prop="makeDate"
|
|
|
- :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ $fd(scope.row.makeDate) }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
-
|
|
|
- <ws-table-column sortable
|
|
|
- :label="$t('cg.pSparepart.sparepartList.status')"
|
|
|
- prop="status"
|
|
|
- min-width="120">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{
|
|
|
- language == 'en'
|
|
|
- ? scope.row.statusNameEn
|
|
|
- : scope.row.statusName
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </ws-table-column>
|
|
|
- </ws-normal-table>
|
|
|
- <!-- 列表 -->
|
|
|
- <div />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template slot="footer">
|
|
|
- <!-- 列表-页码 -->
|
|
|
- <pagination v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="listQuery.currentPage"
|
|
|
- :limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getlistbyWhere" />
|
|
|
- <!-- 列表-页码 -->
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 结算单 -->
|
|
|
-
|
|
|
- <!-- 备件统计 -->
|
|
|
- <TableView v-if="item.key == 'BJTJ' && activeName == 'BJTJ'"
|
|
|
- class="product"
|
|
|
- @body-height-change="bodyHeightChange">
|
|
|
- <template slot="body">
|
|
|
- <div :type="item.key"
|
|
|
- @create="showCreatedTimes">
|
|
|
- <div />
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </TableView>
|
|
|
- <!-- 备件统计 -->
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
- </div>
|
|
|
- <!-- 弹出页面-申请单筛选 -->
|
|
|
- <WinseaContentModal v-model='dialogSqFormVisible'
|
|
|
- :title="$t('button.filtration')">
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.deptName')">
|
|
|
- <ws-select v-model="filtlistQuery.filtdeptNoSelected"
|
|
|
- style="width:20em">
|
|
|
- <ws-option v-for="item in deptList"
|
|
|
- :key="item.parameterKey"
|
|
|
- :label="
|
|
|
- language == 'en' ? item.parameterValueEn : item.parameterValue
|
|
|
- "
|
|
|
- :value="item.parameterKey" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <template slot="footer"
|
|
|
- class="dialog-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{ $t('button.reset') }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </template>
|
|
|
- </WinseaContentModal>
|
|
|
- <!-- 弹出页面-申请单筛选 -->
|
|
|
- <!-- 弹出页面-筛选 -->
|
|
|
- <WinseaContentModal v-model='dialogFormVisible'
|
|
|
- :title="$t('button.filtration')">
|
|
|
- <el-form ref="spclearsplistqueryForm"
|
|
|
- :model="filtlistQuery">
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.makeDate')">
|
|
|
- <ws-date-picker v-model="filtlistQuery.filtmakeDate"
|
|
|
- type="daterange"
|
|
|
- style="width:20em"
|
|
|
- range-separator
|
|
|
- :start-placeholder="$t('cg.querybdate')"
|
|
|
- :end-placeholder="$t('cg.queryedate')"
|
|
|
- value-format="yyyy-MM-dd" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item :label="$t('cg.pSparepart.sparepartList.status')">
|
|
|
- <ws-select v-model="filtlistQuery.filtstatuSelected"
|
|
|
- style="width:20em"
|
|
|
- multiple
|
|
|
- collapse-tags
|
|
|
- :placeholder="$t('common.selected')">
|
|
|
- <ws-option v-for="i in status"
|
|
|
- :key="i.status"
|
|
|
- :label="language == 'en' ? i.statusNameEn : i.statusName"
|
|
|
- :value="i.status" />
|
|
|
- </ws-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div slot="footer"
|
|
|
- class="dialog-footer">
|
|
|
- <ws-button @click="clearfiltQuery">{{ $t('button.reset') }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="handleFilter('')">{{
|
|
|
- $t('button.filtration')
|
|
|
- }}</ws-button>
|
|
|
- </div>
|
|
|
- </WinseaContentModal>
|
|
|
- <!-- 弹出页面-筛选 -->
|
|
|
- <!-- 弹出页面-导入 -->
|
|
|
- <div class="myDialogDiv">
|
|
|
- <WinseaContentModal v-model='dialoguploadVisible'
|
|
|
- :title="$t('cg.applydetails.applicationForm')"
|
|
|
- @on-cancel="handleClose">
|
|
|
- <div class="myDialog1">
|
|
|
- <el-upload ref="upload"
|
|
|
- class="upload-demo"
|
|
|
- action
|
|
|
- :multiple="false"
|
|
|
- :file-list="fileList"
|
|
|
- :http-request="uploadSectionFile"
|
|
|
- :auto-upload="false">
|
|
|
- <ws-button slot="trigger"
|
|
|
- size="small"
|
|
|
- type="success"
|
|
|
- @click="tempFileDownLoad">{{ $t('cg.applydetails.eflashmtv') }}</ws-button>
|
|
|
- <ws-button slot="trigger"
|
|
|
- size="small"
|
|
|
- type="primary">{{
|
|
|
- $t('cg.applydetails.selectImport')
|
|
|
- }}</ws-button>
|
|
|
- <div slot="tip"
|
|
|
- class="el-upload__tip">
|
|
|
- {{ $t('cg.applydetails.importFile') }}
|
|
|
- </div>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- <span slot="footer"
|
|
|
- class="dialog-footer">
|
|
|
- <ws-button @click="dialoguploadVisible = false">{{
|
|
|
- $t('button.cancel')
|
|
|
- }}</ws-button>
|
|
|
- <ws-button type="primary"
|
|
|
- @click="subHandleClose">{{
|
|
|
- $t('button.confirm')
|
|
|
- }}</ws-button>
|
|
|
- </span>
|
|
|
- </WinseaContentModal>
|
|
|
- </div>
|
|
|
- <!-- 弹出页面-导入 -->
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-<script src="../../../viewsjs/procurement/procurementMaterial/sparepartList.js" />
|
|
|
-<style lang="scss" scoped>
|
|
|
-@import '~@/styles/variables.scss';
|
|
|
-.table-column-title {
|
|
|
- line-height: 32px;
|
|
|
- line-height: 25px;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
-}
|
|
|
-/deep/.tabs-main {
|
|
|
- .el-tabs__content {
|
|
|
- background-color: #fff;
|
|
|
- height: 100% !important;
|
|
|
- overflow-y: hidden !important;
|
|
|
- // height: calc(100vh- 70px);
|
|
|
- // overflow-y: auto;
|
|
|
- }
|
|
|
-}
|
|
|
-.allShips {
|
|
|
- margin-top: 0px !important;
|
|
|
-}
|
|
|
-.myDialog1 {
|
|
|
- height: 200px;
|
|
|
- overflow: auto;
|
|
|
-}
|
|
|
-/deep/.link-style {
|
|
|
- line-height: 43px;
|
|
|
-}
|
|
|
-/deep/.link-p {
|
|
|
- div {
|
|
|
- margin-top: 0;
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
-}
|
|
|
-/deep/.el-table {
|
|
|
- .cell {
|
|
|
- line-height: auto !important;
|
|
|
- height: auto !important;
|
|
|
- word-break: keep-all;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/deep/.el-textarea__inner {
|
|
|
- resize: none;
|
|
|
-}
|
|
|
-/deep/.tabs-main {
|
|
|
- .el-tabs__content {
|
|
|
- background-color: #fff;
|
|
|
- height: calc(100vh- 70px);
|
|
|
- overflow-y: auto;
|
|
|
- }
|
|
|
-}
|
|
|
-/deep/.certificate-overview {
|
|
|
- background-color: #eee;
|
|
|
- margin-bottom: 10px;
|
|
|
- .earlyWarning {
|
|
|
- .overview-num {
|
|
|
- color: $yellow !important;
|
|
|
- }
|
|
|
- }
|
|
|
- .overDue {
|
|
|
- .overview-num {
|
|
|
- color: $red !important;
|
|
|
- }
|
|
|
- }
|
|
|
- .overview-main {
|
|
|
- width: 100%;
|
|
|
- height: 50px;
|
|
|
- background-color: #fff;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- .svg-icon {
|
|
|
- width: 4.8em;
|
|
|
- height: 4.8em;
|
|
|
- padding-right: 30px;
|
|
|
- }
|
|
|
- .overview-box {
|
|
|
- width: 100%;
|
|
|
- display: inline-block;
|
|
|
- vertical-align: middle;
|
|
|
- padding-left: 30px;
|
|
|
- .overview-title {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
- .overview-num {
|
|
|
- line-height: 23px;
|
|
|
- font-size: 27px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .el-col:nth-child(1) .overview-main {
|
|
|
- width: calc(100% - 33px);
|
|
|
- }
|
|
|
- .el-col:nth-child(2) .overview-main {
|
|
|
- width: calc(100% - 33px);
|
|
|
- }
|
|
|
- .el-col:nth-child(3) .overview-main {
|
|
|
- width: calc(100% - 33px);
|
|
|
- }
|
|
|
-}
|
|
|
-.edit-input {
|
|
|
- width: 87%;
|
|
|
-}
|
|
|
-.spanSave,
|
|
|
-.saveSpan {
|
|
|
- float: right;
|
|
|
- font-size: 22px;
|
|
|
-}
|
|
|
-.dialogListquery {
|
|
|
- .el-form-item {
|
|
|
- margin-bottom: 15px;
|
|
|
- }
|
|
|
-}
|
|
|
-.remarkSpan {
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- display: inline-block;
|
|
|
- width: 87%;
|
|
|
-}
|
|
|
-.nav-bar {
|
|
|
- padding: 0px;
|
|
|
- margin-top: 10px;
|
|
|
-}
|
|
|
-.nav-search {
|
|
|
- float: right;
|
|
|
-}
|
|
|
-.searchThree,
|
|
|
-.searchTwo,
|
|
|
-.searchOne {
|
|
|
- float: left;
|
|
|
-}
|
|
|
-.searchTwo,
|
|
|
-.clearfix:after {
|
|
|
- /*伪元素是行内元素 正常浏览器清除浮动方法*/
|
|
|
- content: '';
|
|
|
- display: block;
|
|
|
- height: 0;
|
|
|
- clear: both;
|
|
|
- visibility: hidden;
|
|
|
-}
|
|
|
-.clearfix {
|
|
|
- *zoom: 1; /*ie6清除浮动的方式 *号只有IE6-IE7执行,其他浏览器不执行*/
|
|
|
-}
|
|
|
-.dropdown {
|
|
|
- margin-top: 10px;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-/deep/.el-dropdown-menu__item:not(.is-disabled):hover,
|
|
|
-/deep/.el-dropdown-menu__item:focus {
|
|
|
- background-color: #f5f7fa;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
-/deep/.content {
|
|
|
- .el-table {
|
|
|
- th {
|
|
|
- .cell {
|
|
|
- color: #333;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .el-dialog {
|
|
|
- position: fixed;
|
|
|
- top: 0px;
|
|
|
- right: 20%;
|
|
|
- overflow: auto;
|
|
|
- margin: 0;
|
|
|
- width: 26em !important;
|
|
|
- .el-dialog__footer {
|
|
|
- height: 50px;
|
|
|
- line-height: 50px;
|
|
|
- padding: 0 20px 0 0;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-.myDialogDiv {
|
|
|
- /deep/.el-dialog {
|
|
|
- position: fixed;
|
|
|
- top: 0px;
|
|
|
- right: 48%;
|
|
|
- overflow: auto;
|
|
|
- margin: 0;
|
|
|
- width: 25em !important;
|
|
|
- .el-dialog__footer {
|
|
|
- height: 50px;
|
|
|
- line-height: 50px;
|
|
|
- padding: 0 20px 0 0;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/deep/.dialog .el-dialog {
|
|
|
- position: relative;
|
|
|
-
|
|
|
- left: 64%;
|
|
|
- top: 0%;
|
|
|
- margin-right: 10%;
|
|
|
-
|
|
|
- background: #ffffff;
|
|
|
-
|
|
|
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
|
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
|
- -webkit-box-sizing: border-box;
|
|
|
-
|
|
|
- width: 539px;
|
|
|
-}
|
|
|
-/deep/.dialog .el-dialog__header,
|
|
|
-/deep/.dialog .el-dialog__footer {
|
|
|
- background-color: #f6f6f6;
|
|
|
-}
|
|
|
-/deep/.dialog .el-dialog__header {
|
|
|
- height: 50px;
|
|
|
- padding: auto 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.dropdownmenu {
|
|
|
- width: 160px;
|
|
|
- // margin-left: 75px !important;
|
|
|
-}
|
|
|
-/deep/.dropdownmenu .el-dropdown-menu__item {
|
|
|
- text-align: center;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-/deep/.dropdownmenu .popper__arrow {
|
|
|
- left: 30px;
|
|
|
-}
|
|
|
-/deep/.selectTitle {
|
|
|
- margin-bottom: 5px;
|
|
|
-}
|
|
|
-/deep/.select .el-select {
|
|
|
- width: 100%;
|
|
|
- margin-bottom: 20px;
|
|
|
-}
|
|
|
-.startDate {
|
|
|
- width: 93%;
|
|
|
- margin-bottom: 10px;
|
|
|
-}
|
|
|
-.endDate {
|
|
|
- width: 100%;
|
|
|
- margin-bottom: 20px;
|
|
|
-}
|
|
|
-/deep/.searchTwo .el-button--text {
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-/deep/.searchTwo .el-button--text:hover {
|
|
|
- color: #1d6ced;
|
|
|
-}
|
|
|
-
|
|
|
-/deep/.searchTwo {
|
|
|
- .el-dropdown {
|
|
|
- .el-dropdown-link {
|
|
|
- color: #606266;
|
|
|
- }
|
|
|
-
|
|
|
- .el-dropdown-link:hover {
|
|
|
- color: #1d6ced;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.searchThree {
|
|
|
- position: relative;
|
|
|
-}
|
|
|
-.searchThree .el-input--medium[data-v-226a5fb3] {
|
|
|
- margin-right: 30px;
|
|
|
-}
|
|
|
-.searchThree .el-input--medium {
|
|
|
- width: 240px;
|
|
|
-}
|
|
|
-/deep/.searchThree .el-input--medium .el-input__inner {
|
|
|
- padding-left: 12px;
|
|
|
-}
|
|
|
-/deep/.searchThree .el-input__prefix {
|
|
|
- left: 267px;
|
|
|
-}
|
|
|
-.searchIcon {
|
|
|
- font-size: 32px;
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- right: 0px;
|
|
|
-}
|
|
|
-.main-list {
|
|
|
- margin-top: 10px;
|
|
|
- height: auto;
|
|
|
- .pagination-container {
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
- // padding: 10px 20px 10px;
|
|
|
-}
|
|
|
-/deep/.main-list .el-table .button .cell {
|
|
|
- line-height: 20px;
|
|
|
- height: 20px;
|
|
|
- font-size: 12px;
|
|
|
- padding-left: 0px;
|
|
|
-}
|
|
|
-/deep/.main-list .el-table .labelState .cell {
|
|
|
- line-height: 20px;
|
|
|
-}
|
|
|
-.yhButton {
|
|
|
- height: 50px;
|
|
|
-}
|
|
|
-/deep/ .el-popper {
|
|
|
- /deep/ .popper__arrow {
|
|
|
- left: 30px !important;
|
|
|
- }
|
|
|
- padding: 5px 10px;
|
|
|
-}
|
|
|
-.guolvmsg {
|
|
|
- font-size: 14px;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
-.page-search-dialog {
|
|
|
- padding: 0px !important;
|
|
|
- border-width: 0px;
|
|
|
- & .el-card__header {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- & .card-head {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- & i {
|
|
|
- cursor: pointer;
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- & .el-card__body {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- padding: 10px 20px 20px 20px;
|
|
|
- & .el-form-item {
|
|
|
- margin: 0px;
|
|
|
- }
|
|
|
- & .card-footer {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-/deep/ .tabs-main .el-tabs__nav-wrap::after {
|
|
|
- border-bottom: 1px solid #eee !important;
|
|
|
-}
|
|
|
-</style>
|