Browse Source
feat(inspection): 新增验货申请审核页面并完善相关功能
feat(inspection): 新增验货申请审核页面并完善相关功能
- 添加 inspectionRequestAudit.vue 页面实现验货申请审核功能 - 更新 com_inspectionRequestDetailTab.vue 和 com_inspectionRequestPoDetailTab.vue 中的数据获取逻辑以支持分页结构 - 在 api/inspection/inspectionRequestHeader.js 中新增删除、确认、审核等接口 - 在 inspectionRequestList.vue 中实现数据导入导出功能 - 添加 Excel 模板下载和数据预览上传功能 - 实现表格行样式标记,对修改过的验货数量进行标红显示 - 优化状态选项值从大写改为首字母大写格式以保持一致性 - 增加确认和删除操作的 API 调用及错误处理逻辑master
5 changed files with 958 additions and 14 deletions
-
26src/api/inspection/inspectionRequestHeader.js
-
2src/views/modules/inspection/com_inspectionRequestDetailTab.vue
-
2src/views/modules/inspection/com_inspectionRequestPoDetailTab.vue
-
653src/views/modules/inspection/inspectionRequestAudit.vue
-
289src/views/modules/inspection/inspectionRequestList.vue
@ -0,0 +1,653 @@ |
|||||
|
<template> |
||||
|
<div class="customer-css"> |
||||
|
<!-- 查询条件 --> |
||||
|
<el-form :inline="true" label-width="90px" class="search-form-inline"> |
||||
|
<!-- 第一行 --> |
||||
|
<div class="search-row"> |
||||
|
<el-form-item> |
||||
|
<span style="cursor: pointer" slot="label" @click="getBaseList(1100)"><a href="#">供应商编码</a></span> |
||||
|
<el-input v-model="searchData.supplierNo" class="input-small" @keyup.enter.native="getMainData"/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="供应商名称"> |
||||
|
<el-input v-model="searchData.supplierName" class="input-small" @keyup.enter.native="getMainData"/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="申请日期"> |
||||
|
<div class="date-range"> |
||||
|
<el-date-picker v-model="searchData.requestDateStart" type="date" value-format="yyyy-MM-dd" placeholder="开始" class="date-small"/> |
||||
|
<span class="split">-</span> |
||||
|
<el-date-picker v-model="searchData.requestDateEnd" type="date" value-format="yyyy-MM-dd" placeholder="结束" class="date-small"/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="状态"> |
||||
|
<el-select v-model="searchData.status" clearable class="input-mini" placeholder="全部" disabled> |
||||
|
<el-option label="已确认" value="Confirmed" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- 第二行 --> |
||||
|
<div class="search-row"> |
||||
|
<el-form-item label="申请单号"> |
||||
|
<el-input v-model="searchData.requestNo" class="input-small" @keyup.enter.native="getMainData"/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item> |
||||
|
<span style="cursor: pointer" slot="label" @click="getBaseList(2016, 'createBy')"><a href="#">申请人员</a></span> |
||||
|
<el-input v-model="searchData.createBy" class="input-small" @keyup.enter.native="getMainData"/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="建议验货日期"> |
||||
|
<div class="date-range"> |
||||
|
<el-date-picker v-model="searchData.needInspectDateStart" type="date" value-format="yyyy-MM-dd" placeholder="开始" class="date-small"/> |
||||
|
<span class="split">-</span> |
||||
|
<el-date-picker v-model="searchData.needInspectDateEnd" type="date" value-format="yyyy-MM-dd" placeholder="结束" class="date-small"/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</div> |
||||
|
|
||||
|
<!-- 按钮 --> |
||||
|
<div class="search-btn-row"> |
||||
|
<el-button type="primary" class="customer-bun-min" @click="getMainData">查询</el-button> |
||||
|
</div> |
||||
|
</el-form> |
||||
|
|
||||
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
||||
|
|
||||
|
<el-table |
||||
|
:height="height" |
||||
|
:data="mainDataList" |
||||
|
border |
||||
|
ref="mainTable" |
||||
|
highlight-current-row |
||||
|
@row-click="changeData" |
||||
|
v-loading="dataListLoading" |
||||
|
:row-class-name="mainTableRowClassName" |
||||
|
style="margin-top: 0px; width: 100%;"> |
||||
|
<el-table-column |
||||
|
v-for="(item,index) in columnArray1" :key="index" |
||||
|
:sortable="item.columnSortable" |
||||
|
:prop="item.columnProp" |
||||
|
:header-align="item.headerAlign" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
:fixed="item.fixed==''?false:item.fixed" |
||||
|
:min-width="item.columnWidth" |
||||
|
:label="item.columnLabel"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
||||
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
||||
|
style="width: 100px; height: 100px"/></span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-link v-if="scope.row.status === '已确认' || scope.row.statusDb === 'Confirmed'" |
||||
|
style="cursor: pointer; color: #409EFF; margin-right: 10px;" |
||||
|
@click="auditInspection(scope.row)">审核</el-link> |
||||
|
<span v-if="scope.row.status === '已审核' || scope.row.statusDb === 'Audited'" |
||||
|
style="color: #909399;">已审核</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
|
||||
|
<!-- 分页插件 --> |
||||
|
<el-pagination style="margin-top: 0px" |
||||
|
@size-change="sizeChangeHandle" |
||||
|
@current-change="currentChangeHandle" |
||||
|
:current-page="pageIndex" |
||||
|
:page-sizes="[20, 50, 100, 200, 500]" |
||||
|
:page-size="pageSize" |
||||
|
:total="totalPage" |
||||
|
layout="total, sizes, prev, pager, next, jumper"> |
||||
|
</el-pagination> |
||||
|
|
||||
|
<!-- 详情页签 --> |
||||
|
<el-tabs v-model="activeTab" style="margin-top: 0px; width: 99%;" @tab-click="handleTabClick" class="customer-tab" type="border-card"> |
||||
|
<!-- 基本信息 --> |
||||
|
<el-tab-pane label="基本信息" name="base"> |
||||
|
<inspection-request-detail :detail-data="currentRow" /> |
||||
|
</el-tab-pane> |
||||
|
<!-- 验货明细 --> |
||||
|
<el-tab-pane label="验货明细" name="detail"> |
||||
|
<inspection-request-detail-tab ref="inspectionDetailTab" :detail-data="currentRow" :table-height="detailHeight" /> |
||||
|
</el-tab-pane> |
||||
|
<!-- 验货关联PO明细 --> |
||||
|
<el-tab-pane label="验货关联PO明细" name="poDetail"> |
||||
|
<inspection-request-po-detail-tab ref="poDetailTab" :detail-data="currentRow" :table-height="detailHeight" /> |
||||
|
</el-tab-pane> |
||||
|
<!-- 验货结果 --> |
||||
|
<el-tab-pane label="验货结果" name="result"> |
||||
|
<inspection-result-tab ref="resultTab" :detail-data="currentRow" :table-height="detailHeight" /> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { searchInspectionRequestHeaderList, auditInspectionRequest } from '@/api/inspection/inspectionRequestHeader.js' |
||||
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
||||
|
import ComInspectionRequestDetail from './com_inspectionRequestDetail.vue' |
||||
|
import ComInspectionRequestDetailTab from './com_inspectionRequestDetailTab.vue' |
||||
|
import ComInspectionRequestPoDetailTab from './com_inspectionRequestPoDetailTab.vue' |
||||
|
import ComInspectionResultTab from './com_inspectionResultTab.vue' |
||||
|
|
||||
|
export default { |
||||
|
components: { |
||||
|
Chooselist, |
||||
|
InspectionRequestDetail: ComInspectionRequestDetail, |
||||
|
InspectionRequestDetailTab: ComInspectionRequestDetailTab, |
||||
|
InspectionRequestPoDetailTab: ComInspectionRequestPoDetailTab, |
||||
|
InspectionResultTab: ComInspectionResultTab |
||||
|
}, |
||||
|
data () { |
||||
|
return { |
||||
|
functionId: this.$route.meta.menuId, |
||||
|
height: 400, |
||||
|
detailHeight: 400, |
||||
|
currentRow: {}, |
||||
|
tagNo: '', |
||||
|
searchType: '', |
||||
|
activeTab: 'base', |
||||
|
searchData: { |
||||
|
requestNo: '', |
||||
|
supplierNo: '', |
||||
|
supplierName: '', |
||||
|
status: 'Confirmed', // 默认只查询已确认的 |
||||
|
qcOperator: '', |
||||
|
createBy: '', |
||||
|
requestDateStart: '', |
||||
|
requestDateEnd: '', |
||||
|
needInspectDateStart: '', |
||||
|
needInspectDateEnd: '', |
||||
|
planStartDate: '', |
||||
|
planEndDate: '', |
||||
|
page: 1, |
||||
|
limit: 50 |
||||
|
}, |
||||
|
pageIndex: 1, |
||||
|
pageSize: 50, |
||||
|
totalPage: 0, |
||||
|
mainDataList: [], |
||||
|
dataListLoading: false, |
||||
|
columnArray1: [ |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1RequestNo', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'requestNo', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '申请单号', |
||||
|
columnWidth: '120', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1RequestDate', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'requestDate', |
||||
|
headerAlign: 'center', |
||||
|
align: 'center', |
||||
|
columnLabel: '申请日期', |
||||
|
columnWidth: '120', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1SupplierNo', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'supplierNo', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '供应商编码', |
||||
|
columnWidth: '120', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1SupplierName', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'supplierName', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '供应商名称', |
||||
|
columnWidth: '150', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1CreateBy', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'createBy', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '申请人员', |
||||
|
columnWidth: '100', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1NeedInspectDate', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'needInspectDate', |
||||
|
headerAlign: 'center', |
||||
|
align: 'center', |
||||
|
columnLabel: '建议验货日期', |
||||
|
columnWidth: '120', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1InspectAddress', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'inspectAddress', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '验货地址', |
||||
|
columnWidth: '200', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1Contact', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'inspectContract', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '联系人', |
||||
|
columnWidth: '150', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1Remark', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'remark', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: '备注', |
||||
|
columnWidth: '150', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1Status', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'status', |
||||
|
headerAlign: 'center', |
||||
|
align: 'center', |
||||
|
columnLabel: '状态', |
||||
|
columnWidth: '100', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1PlanStartDate', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'planStartDate', |
||||
|
headerAlign: 'center', |
||||
|
align: 'center', |
||||
|
columnLabel: '计划验货日期', |
||||
|
columnWidth: '120', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: this.functionId, |
||||
|
serialNumber: 'InspectionAuditTable1QcOperator', |
||||
|
tableId: 'InspectionAuditTable1', |
||||
|
tableName: '验货申请审核', |
||||
|
columnProp: 'qcOperator', |
||||
|
headerAlign: 'center', |
||||
|
align: 'left', |
||||
|
columnLabel: 'QC人员', |
||||
|
columnWidth: '100', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: false |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
}, |
||||
|
mounted () { |
||||
|
this.$nextTick(() => { |
||||
|
this.height = (window.innerHeight - 220) / 2 |
||||
|
this.detailHeight = (window.innerHeight - 220) / 2 |
||||
|
this.getMainData() |
||||
|
}) |
||||
|
}, |
||||
|
methods: { |
||||
|
// 获取基础数据列表 |
||||
|
getBaseList (val, type) { |
||||
|
this.tagNo = val |
||||
|
this.searchType = type || '' |
||||
|
this.$nextTick(() => { |
||||
|
let strVal = '' |
||||
|
let conSql = '' |
||||
|
if (val === 1100) { |
||||
|
strVal = this.searchData.supplierNo || '' |
||||
|
conSql = " and site = '" + this.$store.state.user.site + "'" |
||||
|
} |
||||
|
if (val === 2016) { |
||||
|
strVal = type === 'createBy' ? (this.searchData.createBy || '') : '' |
||||
|
} |
||||
|
this.$refs.baseList.init(val, strVal, conSql) |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
/* 列表方法的回调 */ |
||||
|
getBaseData (val) { |
||||
|
if (this.tagNo === 1100) { |
||||
|
this.searchData.supplierNo = val.supplier_no || '' |
||||
|
this.searchData.supplierName = val.supplier_name || '' |
||||
|
} |
||||
|
if (this.tagNo === 2016) { |
||||
|
if (this.searchType === 'createBy') { |
||||
|
this.searchData.createBy = val.username || val.user_display || val.name |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
// 查询数据 |
||||
|
getMainData () { |
||||
|
this.searchData.limit = this.pageSize |
||||
|
this.searchData.page = this.pageIndex |
||||
|
this.searchData.status = 'Confirmed' // 强制只查询已确认的 |
||||
|
this.dataListLoading = true |
||||
|
|
||||
|
searchInspectionRequestHeaderList(this.searchData).then(({ data }) => { |
||||
|
if (data.code === 0) { |
||||
|
this.mainDataList = data.page.list |
||||
|
this.pageIndex = data.page.currPage |
||||
|
this.pageSize = data.page.pageSize |
||||
|
this.totalPage = data.page.totalCount |
||||
|
|
||||
|
this.$nextTick(() => { |
||||
|
if (this.$refs.mainTable) { |
||||
|
this.$refs.mainTable.clearSelection() |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
// 判断是否有数据 |
||||
|
if (this.mainDataList.length > 0) { |
||||
|
this.$refs.mainTable.setCurrentRow(this.mainDataList[0]) |
||||
|
this.changeData(this.mainDataList[0]) |
||||
|
} else { |
||||
|
this.changeData(null) |
||||
|
} |
||||
|
} |
||||
|
this.dataListLoading = false |
||||
|
}).catch(() => { |
||||
|
this.dataListLoading = false |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 每页数 |
||||
|
sizeChangeHandle (val) { |
||||
|
this.pageSize = val |
||||
|
this.pageIndex = 1 |
||||
|
this.getMainData() |
||||
|
}, |
||||
|
|
||||
|
// 当前页 |
||||
|
currentChangeHandle (val) { |
||||
|
this.pageIndex = val |
||||
|
this.getMainData() |
||||
|
}, |
||||
|
|
||||
|
// 页签点击事件 |
||||
|
handleTabClick (tab) { |
||||
|
if (tab.name === 'detail') { |
||||
|
this.$nextTick(() => { |
||||
|
if (this.$refs.inspectionDetailTab) { |
||||
|
this.$refs.inspectionDetailTab.loadDetailList() |
||||
|
} |
||||
|
}) |
||||
|
} else if (tab.name === 'poDetail') { |
||||
|
this.$nextTick(() => { |
||||
|
if (this.$refs.poDetailTab) { |
||||
|
this.$refs.poDetailTab.loadDetailList() |
||||
|
} |
||||
|
}) |
||||
|
} else if (tab.name === 'result') { |
||||
|
this.$nextTick(() => { |
||||
|
if (this.$refs.resultTab) { |
||||
|
this.$refs.resultTab.loadDetailList() |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
// 行点击事件 |
||||
|
changeData (row) { |
||||
|
this.currentRow = row ? JSON.parse(JSON.stringify(row)) : {} |
||||
|
}, |
||||
|
|
||||
|
// 主表格行样式(验货申请中有数量修改时标红) |
||||
|
mainTableRowClassName ({ row }) { |
||||
|
if (row.hasModifiedQty === true || |
||||
|
row.hasModifiedQty === 'true' || |
||||
|
row.hasModifiedQty === 'Y' || |
||||
|
row.hasModifiedQty === 'y' || |
||||
|
row.hasModifiedQty === 1 || |
||||
|
row.hasModifiedQty === '1') { |
||||
|
return 'modified-request-row' |
||||
|
} |
||||
|
return '' |
||||
|
}, |
||||
|
|
||||
|
// 审核验货申请 |
||||
|
auditInspection (row) { |
||||
|
this.$confirm('确定要审核该验货申请吗?', '提示', { |
||||
|
confirmButtonText: '确定', |
||||
|
cancelButtonText: '取消', |
||||
|
type: 'warning' |
||||
|
}).then(() => { |
||||
|
auditInspectionRequest(row.requestNo).then(({ data }) => { |
||||
|
if (data.code === 0) { |
||||
|
this.$message.success('审核成功') |
||||
|
this.getMainData() |
||||
|
} else { |
||||
|
this.$message.error(data.msg || '审核失败') |
||||
|
} |
||||
|
}).catch((error) => { |
||||
|
console.error('审核接口错误:', error) |
||||
|
this.$message.error('审核失败,请稍后重试') |
||||
|
}) |
||||
|
}).catch(() => { |
||||
|
this.$message.info('已取消审核') |
||||
|
}) |
||||
|
} |
||||
|
}, |
||||
|
created () { |
||||
|
this.getMainData() |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
.search-form-inline { |
||||
|
padding: 10px 15px 0 0; |
||||
|
background: #fff; |
||||
|
} |
||||
|
|
||||
|
.search-row { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
flex-wrap: nowrap; |
||||
|
margin-bottom: 6px; |
||||
|
} |
||||
|
|
||||
|
.search-btn-row { |
||||
|
margin-top: 10px; |
||||
|
padding-left: 8px; |
||||
|
} |
||||
|
|
||||
|
.input-small { |
||||
|
width: 110px; |
||||
|
} |
||||
|
|
||||
|
.input-mini { |
||||
|
width: 90px; |
||||
|
} |
||||
|
|
||||
|
.date-small { |
||||
|
width: 130px; |
||||
|
} |
||||
|
|
||||
|
.date-range { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.split { |
||||
|
padding: 0 6px; |
||||
|
color: #606266; |
||||
|
font-size: 13px; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-form-item { |
||||
|
margin-right: 18px; |
||||
|
margin-bottom: 6px; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-form-item__label { |
||||
|
font-size: 13px; |
||||
|
color: #606266; |
||||
|
padding-right: 8px; |
||||
|
line-height: 32px; |
||||
|
font-weight: 500; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-form-item__content { |
||||
|
line-height: normal; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-input__inner { |
||||
|
height: 32px; |
||||
|
line-height: 32px; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-date-editor .el-input__inner { |
||||
|
padding-right: 10px; |
||||
|
padding-left: 10px; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-date-editor .el-input__prefix { |
||||
|
display: none; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-date-editor .el-input__suffix { |
||||
|
display: none; |
||||
|
} |
||||
|
|
||||
|
/deep/ .customer-tab .el-tabs__content { |
||||
|
padding: 5px !important; |
||||
|
} |
||||
|
|
||||
|
// 主表格行样式 - 验货申请中有数量修改时标红 |
||||
|
/deep/ .el-table__body tr.modified-request-row { |
||||
|
background-color: #fef0f0 !important; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-table__body tr.modified-request-row > td { |
||||
|
background-color: #fef0f0 !important; |
||||
|
color: #f56c6c !important; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-table__body tr.modified-request-row:hover > td { |
||||
|
background-color: #fde2e2 !important; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-table__row.current-row.modified-request-row { |
||||
|
background-color: #fef0f0 !important; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-table__row.current-row.modified-request-row > td { |
||||
|
background-color: #fef0f0 !important; |
||||
|
color: #f56c6c !important; |
||||
|
} |
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue