| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012 |
- <template>
- <div class="ele-body">
- <el-card shadow="never">
- <!-- <div class="page-title">-->
- <!-- <headerTitle title="出库单详情"></headerTitle>-->
- <!-- </div>-->
- <!-- <div class="stepsStatus">-->
- <!-- <el-steps :active="active" align-center>-->
- <!-- <el-step title="创建"></el-step>-->
- <!-- <el-step title="待审核"></el-step>-->
- <!-- <el-step :title="stepsTitle" :status="stepsStatus"></el-step>-->
- <!-- </el-steps>-->
- <!-- </div>-->
- <div>
- <div class="content-detail">
- <header-title title="基本信息" size="16px"></header-title>
- <div class="mt20">
- <el-form label-width="120px">
- <el-col :span="8">
- <el-form-item label="出库单号:">
- <span>{{ infoData.bizNo && infoData.bizNo.toString() }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出库物品类型:">
- <span>{{
- handleAssetType(infoData?.extInfo?.assetType)
- }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出库场景:">
- <span>{{ getSceneState(infoData.bizType) }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="关联订单:">
- <span>{{ extInfo?.documentSource }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="infoData.bizType == 3">
- <el-form-item label="客户名称:">
- <span>{{ infoData.clientName }}</span>
- </el-form-item> </el-col
- ><el-col :span="8" v-if="infoData.bizType == 3">
- <el-form-item label="客户联系人:">
- <span>{{ infoData.clientUser }}</span>
- </el-form-item> </el-col
- ><el-col :span="8" v-if="infoData.bizType == 3">
- <el-form-item label="客户电话:">
- <span>{{ infoData.clientPhone }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item
- :label="infoData.bizType == 4 ? '领料单:' : '来源单据:'"
- >
- <span>{{ infoData.sourceBizNo }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="领料人联系方式:">
- <span>{{ infoData.fromUserPhone }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出库登记人:">
- <span>{{ infoData.extInfo?.createUserName }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="权属部门:">
- <span>{{ infoData.extInfo?.deptName }}</span>
- </el-form-item>
- </el-col>
- <!-- <el-col :span="8">
- <el-form-item label="创建时间">
- <span>{{ infoData.createTime }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出库时间">
- <span>{{ infoData.createTime }}</span>
- </el-form-item>
- </el-col> -->
- <el-col :span="8">
- <el-form-item label="状态:">
- <span>{{ stepsTitle }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="领料人部门:">
- <span>{{ infoData?.extInfo?.verifyDeptName }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="领料人:">
- <span>{{ infoData.fromUser }}</span>
- </el-form-item>
- </el-col>
- <el-col :span="16">
- <el-form-item label="备注:">
- <span>{{ infoData.remark }}</span>
- </el-form-item>
- </el-col>
- </el-form>
- </div>
- </div>
- <div class="content-detail mt20">
- <header-title title="产品信息" size="16px"></header-title>
- <el-table
- ref="productListTable"
- :data="productList"
- border
- tooltip-effect="dark"
- :max-height="300"
- :header-cell-style="rowClass"
- @selection-change="handleSelectionProductChange"
- >
- <el-table-column label="序号" type="index" width="50">
- </el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- :selectable="selectable"
- >
- </el-table-column>
- <el-table-column
- minWidth="150"
- label="出库单号"
- prop="bizNo"
- align="center"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="仓库"
- prop="warehouseName"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="编码"
- prop="categoryCode"
- align="center"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="名称"
- align="center"
- prop="categoryName"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- v-if="clientEnvironmentId == 4"
- label="级别"
- prop="level"
- align="center"
- >
- </el-table-column>
- <el-table-column
- label="型号"
- align="center"
- prop="categoryModel"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="规格"
- align="center"
- prop="specification"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="牌号"
- align="center"
- prop="brandNum"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- v-for="(item, index) in newColumns"
- :key="index"
- :label="item.label"
- :align="item.align"
- :prop="item.prop"
- :show-overflow-tooltip="item.showOverflowTooltip"
- ></el-table-column>
- <el-table-column
- label="批次号"
- prop="batchNo"
- align="center"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="最小包装单元"
- align="center"
- width="120"
- prop="minPackingQuantity"
- >
- <template slot-scope="{ row, $index }">
- {{ row.minPackingQuantity }} {{ row.measureUnit }} /{{
- row.packingUnit
- }}
- </template>
- </el-table-column>
- <el-table-column
- label="包装数量"
- prop="packingQuantity"
- align="center"
- >
- <template slot-scope="{ row, $index }">
- {{ row.packingQuantity }} {{ row.packingUnit }}
- </template>
- </el-table-column>
- <el-table-column
- label="计量数量"
- prop="measureQuantity"
- width="100"
- align="center"
- >
- </el-table-column>
- <el-table-column label="计量单位" prop="measureUnit" align="center">
- <template slot-scope="{ row, $index }">
- <template>
- {{ row.measureUnit }}
- </template>
- </template>
- </el-table-column>
- <el-table-column
- label="重量"
- prop="weight"
- align="center"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="重量单位"
- prop="weightUnit"
- align="center"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column label="单价" prop="price" align="center">
- <template slot-scope="{ row }">
- <template>
- {{ row.price ? row.price : ' ' + '元' }}/{{ row.measureUnit }}
- </template>
- </template>
- </el-table-column>
- <el-table-column
- label="金额"
- align="center"
- prop="contentImage"
- :show-overflow-tooltip="true"
- >
- <template slot-scope="{ row, $index }">
- {{ row.totalMoney ? row.totalMoney : 0 }}
- </template>
- </el-table-column>
- <el-table-column
- v-if="clientEnvironmentId == 4"
- label="采购原因"
- align="center"
- prop="purpose"
- :show-overflow-tooltip="true"
- ></el-table-column>
- </el-table>
- </div>
- <div class="mt20">
- <header-title :title="`包装明细`" size="16px"></header-title>
- <el-table
- ref="showPackingListTable"
- :data="showPackingList"
- tooltip-effect="dark"
- :max-height="300"
- border
- @selection-change="handleSelectionChange"
- :row-class-name="tableRowClassName"
- :header-cell-style="rowClass"
- v-el-table-infinite-scroll="pickingHandleScroll"
- >
- <el-table-column
- label="序号"
- type="index"
- width="50"
- align="center"
- >
- </el-table-column>
- <el-table-column
- type="selection"
- :selectable="selectablePick"
- width="55"
- align="center"
- >
- </el-table-column>
- <el-table-column
- label="编码"
- prop="categoryCode"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="名称"
- prop="categoryName"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="批次号"
- prop="batchNo"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="发货条码"
- prop="barcodes"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="包装编码"
- prop="packageNo"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="包装数量"
- prop="packingQuantity"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="包装单位"
- prop="packingUnit"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="计量数量"
- prop="measureQuantity"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="计量单位"
- prop="measureUnit"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="物料代号"
- prop="materielDesignation"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="客户代号"
- prop="clientCode"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="刻码"
- prop="engrave"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="重量"
- prop="weight"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="重量单位"
- prop="weightUnit"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="质检结果"
- prop="result"
- :show-overflow-tooltip="true"
- >
- <template slot-scope="{ row }">
- <span>{{ qualityResults[row.result] }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="质检状态"
- prop="status"
- :show-overflow-tooltip="true"
- >
- <template slot-scope="{ row }">
- <span>{{ qualityStatus[row.status] }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="生产日期"
- prop="productionDate"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- <el-table-column
- label="采购日期"
- prop="purchaseDate"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
- </el-table>
- </div>
- <div class="mt20">
- <header-title :title="`物料明细`" size="16px"> </header-title>
- <el-table
- ref="multipleTable"
- :data="showMaterialList"
- tooltip-effect="dark"
- :max-height="300"
- :row-class-name="tableRowClassName"
- :header-cell-style="rowClass"
- border
- style="width: 100%"
- stripe
- height="300px"
- v-el-table-infinite-scroll="materielHandleScroll"
- >
- <el-table-column label="序号" type="index" width="50">
- </el-table-column>
- <el-table-column
- label="编码"
- prop="categoryCode"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="名称"
- prop="categoryName"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column label="批次号" prop="batchNo"></el-table-column>
- <el-table-column
- label="物料编码"
- prop="materialCode"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="发货条码"
- prop="barcodes"
- :show-overflow-tooltip="true"
- ></el-table-column>
- <el-table-column
- label="计量数量"
- prop="measureQuantity"
- ></el-table-column>
- <el-table-column
- label="计量单位"
- prop="measureUnit"
- ></el-table-column>
- <el-table-column label="物料代号" prop="materielDesignation">
- </el-table-column>
- <el-table-column label="客户代号" prop="clientCode">
- </el-table-column>
- <el-table-column label="刻码" prop="engrave"> </el-table-column>
- <el-table-column width="100" label="重量" prop="weight">
- </el-table-column>
- <el-table-column label="重量单位" prop="weightUnit">
- </el-table-column>
- <el-table-column label="质检结果" prop="result" width="120">
- <template slot-scope="{ row }">
- <span>{{ qualityResults[row.result] }}</span>
- </template>
- </el-table-column>
- <el-table-column label="质检状态" prop="status" width="120">
- <template slot-scope="{ row }">
- <span>{{ qualityStatus[row.status] }}</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </el-card>
- </div>
- </template>
- <script>
- import elTableInfiniteScroll from 'el-table-infinite-scroll';
- import { getFile } from '@/api/system/file/index.js';
- // import { allCategoryLevel } from '@/api/classifyManage';
- import { useDictLabel } from '@/utils/dict';
- import { outputSceneStateEnum } from '@/enum/dict';
- import { mapGetters, mapActions } from 'vuex';
- import {
- allCategoryLevel,
- getInfoBySourceBizNoAPI,
- getInfoBySourceBizNoAll
- } from '@/api/wms';
- import { getUserDetail } from '@/api/system/organization/index.js';
- import { fieldModelAPI } from '@/api/main';
- export default {
- components: {},
- directives: {
- 'el-table-infinite-scroll': elTableInfiniteScroll
- },
- data() {
- return {
- newColumns: [], // 动态表头
- qualityStatus: {
- 0: '未质检',
- 1: '已质检'
- }, // 质检状态 0未检 1已检
- qualityResults: {
- 1: '合格',
- 2: '不合格'
- }, // 质检结果 1合格 2不合格
- productList: [], // 产品列表
- showPackingList: [], // 展示的包装列表
- packingList: [], // 包装列表
- showMaterialList: [], // 展示物料列表
- materialList: [], // 物料列表
- extInfo: {}, // 扩展信息
- pageSize: 20,
- pickingPageNum: 1,
- materielPageNum: 1,
- codeList: [],
- infoData: {},
- stepsTitle: '已完成',
- stepsStatus: 'success',
- active: 0,
- multipleSelection: [],
- productSelection: []
- };
- },
- watch: {
- 'infoData.verifyStatus': {
- immediate: true,
- handler(val) {
- if (val == 0) {
- this.active = 1;
- this.stepsTitle = '未审核';
- this.stepsStatus = 'wait';
- } else if (val == 1) {
- this.active = 2;
- this.stepsTitle = '审核中';
- this.stepsStatus = 'process';
- } else if (val == 2) {
- this.active = 2;
- this.stepsTitle = '审核通过';
- this.stepsStatus = 'success';
- } else if (val == 3) {
- this.active = 2;
- this.stepsTitle = '驳回';
- this.stepsStatus = 'error';
- }
- }
- },
- packingList: {
- handler(newVal) {
- console.log('包装列表', newVal);
- console.log('当前包装列表加载页数', this.pickingPageNum);
- this.showPackingList = newVal.slice(
- 0,
- this.pageSize * (this.pickingPageNum > 0 ? this.pickingPageNum : 1)
- );
- },
- deep: true
- },
- materialList: {
- handler(newVal) {
- console.log('物料列表', newVal);
- console.log('当前物料列表加载页数', this.materielPageNum);
- this.showMaterialList = newVal.slice(
- 0,
- this.pageSize *
- (this.materielPageNum > 0 ? this.materielPageNum : 1)
- );
- },
- deep: true
- }
- },
- computed: {
- ...mapGetters(['getDictValue']),
- clientEnvironmentId() {
- return this.$store.state.user.info.clientEnvironmentId;
- }
- },
- created() {
- this.getFieldModel();
- this.requestDict('类型用途');
- this.getAllCategoryType();
- // this._getInfo();
- },
- methods: {
- selectable(row, index) {
- let arr = this.multipleSelection.map((item) => {
- return item.batchNo + item.categoryId;
- });
- return !arr.includes(row.batchNo + row.categoryId);
- },
- selectablePick(row, index) {
- let arr = this.productSelection.map((item) => {
- return item.batchNo + item.categoryId;
- });
- return !arr.includes(row.batchNo + row.categoryId);
- },
- // 获取动态表头
- getFieldModel() {
- fieldModelAPI({ fieldModel: 't_main_category' }).then((res) => {
- let newRes = res.map((m) => {
- return {
- prop: 'extField.' + m.prop,
- label: m.label,
- align: 'center',
- showOverflowTooltip: true
- };
- });
- this.newColumns = [...newRes];
- });
- },
- pickingHandleScroll() {
- console.log('---------pickingHandleScroll------------');
- if (this.showPackingList.length < this.packingList.length) {
- if (this.packingList.length > this.pageSize) {
- this.pickingPageNum += 1;
- }
- this.pickingFetchData();
- }
- },
- pickingFetchData() {
- const start = (this.pickingPageNum - 1) * this.pageSize;
- const end = start + this.pageSize;
- this.showPackingList = this.showPackingList.concat(
- this.packingList.slice(start, end)
- );
- },
- materielHandleScroll() {
- console.log('---------materielHandleScroll------------');
- if (this.showMaterialList.length < this.materialList.length) {
- if (this.materialList.length > this.pageSize) {
- this.materielPageNum += 1;
- }
- this.materielFetchData();
- }
- },
- materielFetchData() {
- const start = (this.materielPageNum - 1) * this.pageSize;
- const end = start + this.pageSize;
- this.showMaterialList = this.showMaterialList.concat(
- this.materialList.slice(start, end)
- );
- console.log(this.showMaterialList);
- },
- ...mapActions('dict', ['requestDict']),
- getSceneState: useDictLabel(outputSceneStateEnum),
- handleAssetType(r) {
- let codes = r && r.split(',');
- let name = codes?.map((code) => {
- return this.codeList.find((val) => val.dictCode == code)?.dictValue;
- });
- return name?.toString();
- },
- tableRowClassName({ row, rowIndex }) {
- console.log(row);
- if (row.result == 2) {
- return 'warning-row';
- } else {
- return '';
- }
- },
- rowClass({ row, column, rowIndex, columnIndex }) {
- if (rowIndex === 1) {
- return {
- display: 'none',
- background: '#EEEEEE'
- };
- }
- return { background: '#0000' };
- },
- async getAllCategoryType() {
- const { data } = await allCategoryLevel();
- this.codeList = data.map((item) => {
- return { dictCode: item.id, dictValue: item.name };
- });
- },
- async _getInfo(sourceBizNo, type, list = []) {
- const dataArray = await getInfoBySourceBizNoAll(sourceBizNo);
- let res = {};
- if (dataArray && dataArray.length > 0) {
- res = JSON.parse(JSON.stringify(dataArray[0]));
- res['outInDetailList'] = [];
- dataArray.forEach((item) => {
- console.log(item, 'item');
- item.outInDetailList.forEach((val) => {
- val['bizNo'] = item.bizNo;
- res['outInDetailList'].push(val);
- });
- });
- res['bizNo'] = dataArray.map((item) => item.bizNo);
- }
- let user = await getUserDetail(res.extInfo?.createUserId);
- res.extInfo['deptName'] = user.deptName;
- // res
- this.init(res, type);
- },
- init(res, type) {
- console.log(res, 'res');
- this.infoData = res;
- this.extInfo = res.extInfo;
- this.productList = res?.outInDetailList?.map(
- (productItem, productIndex) => {
- // productItem['bizNo'] = res.bizNo[productIndex]||res.bizNo[0];
- return {
- ...productItem,
- outInDetailRecordRequestList:
- productItem.outInDetailRecordRequestList.map((packingItem) => {
- return {
- ...packingItem,
- categoryName: productItem.categoryName,
- categoryCode: productItem.categoryCode,
- bizNo: productItem.bizNo,
- materialDetailList: packingItem.materialDetailList.map(
- (materialItem) => {
- return {
- ...materialItem,
- categoryName: productItem.categoryName,
- categoryCode: productItem.categoryCode
- };
- }
- )
- };
- })
- };
- }
- );
- // 获取包装维度数据
- const arr = [];
- for (const key in this.productList) {
- for (const k in this.productList[key].outInDetailRecordRequestList) {
- arr.push({
- ...this.productList[key].outInDetailRecordRequestList[k]
- });
- }
- }
- this.packingList = arr;
- // 获取物料维度数据
- let iArr = [];
- arr.forEach((item) => {
- item.materialDetailList.forEach((ele) => {
- iArr.push({ ...ele });
- });
- });
- this.materialList = iArr;
- console.log(this.packingList);
- console.log(this.materialList);
- this.pickingFetchData();
- this.materielFetchData();
- // if (type == 10) {
- // this.multipleSelection = this.showPackingList;
- // this.$emit('handleSave');
- // }
- },
- handleSelectionChange(val) {
- this.multipleSelection = val;
- },
- handleSelectionProductChange(val) {
- this.productSelection = val;
- },
- setMultipleSelection() {
- return (
- this.multipleSelection.map((item) => {
- item['outInCode'] = item.bizNo;
- item['packageId'] = item.id;
- item['wmsOutId'] = item.outInId;
- item['wmsOutNo'] = item.bizNo;
- item['outboundType'] = item.outType;
- item['outboundDetailId'] = item.id;
- item['productName'] = item.categoryName;
- item['productCode'] = item.categoryCode;
- item['measuringUnit'] = item.measureUnit;
- item['productId'] = item.categoryId;
- item['receiveTotalWeight'] = item.weight;
- item['provenance']= item['provenance']||[]
- this.productList.forEach((val) => {
- if (item.categoryCode == val.categoryCode) {
- item['warehouseId'] = val.warehouseId;
- item['warehouseName'] = val.warehouseName;
- }
- });
- item.id = '';
- return item;
- }) || []
- );
- },
- setProductSelection() {
- return (
- this.productSelection.map((item) => {
- item['outInCode'] = item.bizNo;
- item['wmsOutId'] = item.outInId;
- item['wmsOutNo'] = item.bizNo;
- item['outboundType'] = item.outType;
- // item['outboundDetailId'] = item.id;
- item['productName'] = item.categoryName;
- item['productCode'] = item.categoryCode;
- item['measuringUnit'] = item.measureUnit;
- item['productId'] = item.categoryId;
- item['receiveTotalWeight'] = item.weight;
- item['provenance']= item['provenance']||[]
- // this.productList.forEach((val) => {
- // if (item.categoryCode == val.categoryCode) {
- // item['warehouseId'] = val.warehouseId;
- // item['warehouseName'] = val.warehouseName;
- // }
- // });
- item.id = '';
- return item;
- }) || []
- );
- },
- getValue() {
- return [...this.setMultipleSelection(), ...this.setProductSelection()];
- },
- download(row) {
- if (row.storePath) {
- getFile({ objectName: row.storePath }, row.name);
- }
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .stepsStatus {
- width: 40%;
- margin: 0 auto;
- }
- .p20 {
- padding: 20px;
- }
- .flex {
- display: flex;
- }
- .title {
- justify-content: space-between;
- border-bottom: 1px solid #ccc;
- padding-bottom: 5px;
- span {
- font-size: 16px;
- }
- .col {
- padding-left: 40px;
- font-size: 14px;
- color: #aaaaaa;
- }
- }
- .degree {
- margin-right: 10px;
- padding: 0px 15px;
- color: #fff;
- font-size: 13px;
- line-height: 23px;
- border-radius: 23px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- span {
- width: 5px;
- height: 5px;
- border-radius: 100%;
- margin-right: 6px;
- background-color: #fff;
- }
- }
- .red {
- background-color: rgb(163, 0, 20);
- }
- .blue {
- background-color: #1989fa;
- }
- .createdInfo {
- justify-content: space-around;
- margin-top: 10px;
- font-size: 14px;
- .col {
- color: #6e6e6e;
- padding-right: 10px;
- }
- }
- .mt40 {
- margin-top: 40px;
- }
- .custSteps {
- margin-top: 20px;
- margin-left: 70px;
- .box {
- width: 158px;
- border: 1px solid #ccc;
- padding: 10px;
- flex-direction: row;
- flex-wrap: wrap;
- // justify-content: space-between;
- font-size: 12px;
- color: #9e9e9e;
- .x {
- width: 20px;
- height: 15px;
- margin-right: 5px;
- }
- .q {
- background-color: #d0e4d5;
- }
- .b {
- background-color: #1989fa;
- }
- .g {
- background-color: #157a2c;
- }
- .r {
- background-color: #a30014;
- }
- .a {
- align-items: center;
- margin-bottom: 10px;
- }
- .mr10 {
- margin-right: 10px;
- }
- .mb0 {
- margin-bottom: 0;
- }
- }
- .stepsInfo {
- // flex: 1;
- width: 483px;
- }
- }
- .mt20 {
- margin-top: 20px;
- }
- .content-detail {
- overflow: hidden;
- }
- .executor {
- font-size: 14px;
- .col {
- color: #6e6e6e;
- padding-right: 10px;
- }
- }
- .result {
- justify-content: space-around;
- }
- .mr20 {
- margin-right: 20px;
- }
- .details {
- font-size: 14px;
- margin-bottom: 10px;
- }
- .customSteps {
- margin-top: 40px;
- font-size: 14px;
- margin-left: 80px;
- .time {
- font-size: 12px;
- color: #6e6e6e;
- margin-right: 20px;
- position: relative;
- &::after {
- content: '';
- width: 1px;
- height: 100%;
- background-color: #157a2c;
- position: absolute;
- right: -26px;
- }
- }
- .flex:last-child {
- .time {
- &::after {
- display: none;
- }
- }
- }
- .round {
- margin-right: 20px;
- width: 10px;
- height: 10px;
- border-radius: 100%;
- background-color: #157a2c;
- position: relative;
- span {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 4px;
- height: 4px;
- background-color: #fff;
- border-radius: 100%;
- transform: translate(-2px, -2px);
- }
- }
- .text {
- .info {
- margin-top: 10px;
- width: 955px;
- background-color: #f0f3f3;
- overflow: hidden;
- padding: 10px;
- margin-bottom: 10px;
- }
- }
- }
- </style>
|