Commit 59b71024 by 张立顺

字段添加

1 parent 416a6695
<!-- 盘点详情弹窗弹窗 --> <!-- 盘点详情弹窗弹窗 -->
<template> <template>
<GLDialog bigTitle="详细信息" <GLDialog bigTitle="详细信息" :visible.sync="allocationDetailVisible" class="inventoryDetailDailog" mode="big" okText="关闭"
:visible.sync="allocationDetailVisible" @onCancel="handleClose" @onOk="handleClose">
class="inventoryDetailDailog"
mode="big"
okText="关闭"
@onCancel="handleClose"
@onOk="handleClose">
<div> <div>
<div class="d2-container-content"> <div class="d2-container-content">
<GLTable ref="recordTable" <GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:getListApi="getListApi"
:searchForm="searchFormSearch"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"> :beforeSearchFn="beforeSearchFn">
</GLTable> </GLTable>
</div> </div>
...@@ -47,6 +39,11 @@ export default { ...@@ -47,6 +39,11 @@ export default {
prop: 'goodsName' prop: 'goodsName'
}, },
{ {
label: '商品编码',
prop: 'productCode',
// width: 250
},
{
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, },
...@@ -74,7 +71,7 @@ export default { ...@@ -74,7 +71,7 @@ export default {
}, },
allocationInfo: { allocationInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
...@@ -104,6 +101,7 @@ export default { ...@@ -104,6 +101,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.inventoryDetailDailog .el-dialog { .inventoryDetailDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
......
<!-- 盘点详情弹窗弹窗 --> <!-- 盘点详情弹窗弹窗 -->
<template> <template>
<GLDialog bigTitle="详细信息" :visible.sync="inventoryDetailVisible" :before-close="handleClose" class="inventoryDetailDailog" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose"> <GLDialog bigTitle="详细信息" :visible.sync="inventoryDetailVisible" :before-close="handleClose"
class="inventoryDetailDailog" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose">
<div> <div>
<div class="header" slot="header" style="padding: 10px 20px"> <div class="header" slot="header" style="padding: 10px 20px">
<!-- <GLCombiForm ref="showSearch" <!-- <GLCombiForm ref="showSearch"
...@@ -10,12 +11,18 @@ ...@@ -10,12 +11,18 @@
:form-data="showFormData"></GLCombiForm> --> :form-data="showFormData"></GLCombiForm> -->
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn"> <GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn">
<template slot="profitAndLoss" slot-scope="scope"> <template slot="profitAndLoss" slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0"> <span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0" style="color: blue">{{ '+' + parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> <span v-if="parseFloat(scope.scope.profitAndLoss) > 0" style="color: blue">{{ '+' +
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" style="color: red">{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> : '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" style="color: red">{{
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
: '件') }}</span>
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span> </span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
...@@ -55,6 +62,11 @@ export default { ...@@ -55,6 +62,11 @@ export default {
// width: '200px' // width: '200px'
}, },
{ {
label: '商品编码',
prop: 'productCode',
// width: 250
},
{
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, },
...@@ -97,12 +109,12 @@ export default { ...@@ -97,12 +109,12 @@ export default {
}, },
recordInfo: { recordInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
computed: {}, computed: {},
mounted() {}, mounted() { },
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
...@@ -125,6 +137,7 @@ export default { ...@@ -125,6 +137,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.inventoryDetailDailog .el-dialog { .inventoryDetailDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!