Commit 1834f280 by 张立顺

商品编码字段添加

1 parent aa055cfd
...@@ -2,15 +2,18 @@ ...@@ -2,15 +2,18 @@
<template> <template>
<div class="addWrap"> <div class="addWrap">
<div class="d2-container-content gl-form-min" style="padding: 10px 20px"> <div class="d2-container-content gl-form-min" style="padding: 10px 20px">
<el-form :inline="true" size="small" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules" class="demo-form-inline"> <el-form :inline="true" size="small" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules"
class="demo-form-inline">
<el-form-item label="调出门店:" prop="callOutYqMerchantId"> <el-form-item label="调出门店:" prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId" style="width: 300px"> <el-select v-model="editAllocationForm.callOutYqMerchantId" style="width: 300px">
<el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName" :value="item.merchantNo" /> <el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="调入门店:" prop="callInYqMerchantId"> <el-form-item label="调入门店:" prop="callInYqMerchantId">
<el-select v-model="editAllocationForm.callInYqMerchantId" filterable style="width: 300px"> <el-select v-model="editAllocationForm.callInYqMerchantId" filterable style="width: 300px">
<el-option v-for="item in callInYqMerchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId" /> <el-option v-for="item in callInYqMerchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -20,13 +23,15 @@ ...@@ -20,13 +23,15 @@
<div class="gl-form-min"> <div class="gl-form-min">
<el-form :inline="true" size="small" :model="editAllocationForm"> <el-form :inline="true" size="small" :model="editAllocationForm">
<el-form-item label=""> <el-form-item label="">
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable /> <el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20"
clearable />
</el-form-item> </el-form-item>
<el-button @click="handleSearch" size="small" type="primary" style="marginleft: 15px">查询</el-button> <el-button @click="handleSearch" size="small" type="primary" style="marginleft: 15px">查询</el-button>
</el-form> </el-form>
</div> </div>
</div> </div>
<GLTable ref="allocationTable" :getListApi="getListApi" :pageConf="pageConf" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn"> <GLTable ref="allocationTable" :getListApi="getListApi" :pageConf="pageConf" :searchForm="searchFormSearch"
:tableParams="tableParams" :beforeSearchFn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">选择</el-button> <el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">选择</el-button>
</div> </div>
...@@ -40,9 +45,11 @@ ...@@ -40,9 +45,11 @@
</div> </div>
</GLTable> </GLTable>
</div> </div>
<glsx-form ref="allocationForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef" @handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form> <glsx-form ref="allocationForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form>
<!-- 盘点 --> <!-- 盘点 -->
<allocation-num-dialog :allocation-num-visible="allocationNumVisible" :allocation-info="allocationInfo" v-if="allocationNumVisible" @dialogClose="dialogClose" /> <allocation-num-dialog :allocation-num-visible="allocationNumVisible" :allocation-info="allocationInfo"
v-if="allocationNumVisible" @dialogClose="dialogClose" />
</div> </div>
</template> </template>
...@@ -87,6 +94,11 @@ export default { ...@@ -87,6 +94,11 @@ export default {
prop: 'goodsName' prop: 'goodsName'
}, },
{ {
label: '商品编码',
prop: 'productCode',
width: '250px'
},
{
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, },
...@@ -117,6 +129,11 @@ export default { ...@@ -117,6 +129,11 @@ export default {
prop: 'goodsName' prop: 'goodsName'
}, },
{ {
label: '商品编码',
prop: 'productCode',
width: '250px'
},
{
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, },
...@@ -288,17 +305,20 @@ export default { ...@@ -288,17 +305,20 @@ export default {
padding: 20px; padding: 20px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.count-txt { .count-txt {
font-weight: 700; font-weight: 700;
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.title { .title {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
padding: 17px 0; padding: 17px 0;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
<div class="gl-form-min"> <div class="gl-form-min">
<el-form ref="ruleForm" :model="searchForm" size="small" inline="true"> <el-form ref="ruleForm" :model="searchForm" size="small" inline="true">
<el-form-item label=""> <el-form-item label="">
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable /> <el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20"
clearable />
</el-form-item> </el-form-item>
<el-button @click="handleSearch" size="small" type="primary">查询</el-button> <el-button @click="handleSearch" size="small" type="primary">查询</el-button>
...@@ -14,7 +15,8 @@ ...@@ -14,7 +15,8 @@
</div> </div>
</div> </div>
<p class="title">盘存</p> <p class="title">盘存</p>
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf"> <GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn" :pageConf="pageConf">
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="inventory(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button> <el-button type="text" @click="inventory(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button>
</div> </div>
...@@ -25,9 +27,14 @@ ...@@ -25,9 +27,14 @@
<GLTable ref="recordTable2" :tableData="chooseDataList" :tableParams="tableParams2" :hasPage="false"> <GLTable ref="recordTable2" :tableData="chooseDataList" :tableParams="tableParams2" :hasPage="false">
<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>
...@@ -36,9 +43,11 @@ ...@@ -36,9 +43,11 @@
</div> </div>
</GLTable> </GLTable>
</div> </div>
<glsx-form ref="addInventoryForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef" @handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form> <glsx-form ref="addInventoryForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form>
<!-- 盘点 --> <!-- 盘点 -->
<inventory-num-dialog :inventory-num-visible="inventoryNumVisible" :record-info="recordInfo" v-if="inventoryNumVisible" @dialogClose="dialogClose" /> <inventory-num-dialog :inventory-num-visible="inventoryNumVisible" :record-info="recordInfo"
v-if="inventoryNumVisible" @dialogClose="dialogClose" />
</div> </div>
</template> </template>
...@@ -70,6 +79,11 @@ export default { ...@@ -70,6 +79,11 @@ export default {
prop: 'goodsName' prop: 'goodsName'
}, },
{ {
label: '商品编码',
prop: 'productCode',
width: '250px'
},
{
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, },
...@@ -101,6 +115,11 @@ export default { ...@@ -101,6 +115,11 @@ export default {
width: '160px' width: '160px'
}, },
{ {
label: '商品编码',
prop: 'productCode',
width: '250px'
},
{
label: '系列', label: '系列',
prop: 'sourceMaterialName', prop: 'sourceMaterialName',
width: '250px' width: '250px'
...@@ -272,20 +291,22 @@ export default { ...@@ -272,20 +291,22 @@ export default {
padding: 20px; padding: 20px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.count-txt { .count-txt {
font-weight: 700; font-weight: 700;
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.title { .title {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
padding: 17px 0; padding: 17px 0;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
margin-right: 10px; margin-right: 10px;
} }</style>
</style>
<!-- 盘点 --> <!-- 盘点 -->
<template> <template>
<GLDialog title="盘点" :visible.sync="inventoryNumVisible" class="inventoryNumDailog" @onCancel="handleClose" @onOk="handleAddConfirm"> <GLDialog title="盘点" :visible.sync="inventoryNumVisible" class="inventoryNumDailog" @onCancel="handleClose"
@onOk="handleAddConfirm">
<div class="gl-form-page gl-form-min"> <div class="gl-form-page gl-form-min">
<el-form ref="inventoryNumForm" :model="infoForm" :rules="formRules" label-width="154px" size="small"> <el-form ref="inventoryNumForm" :model="infoForm" :rules="formRules" label-width="154px" size="small">
<el-form-item label="盘点数量:" prop="inventoryNum"> <el-form-item label="盘点数量:" prop="inventoryNum">
...@@ -43,18 +44,18 @@ export default { ...@@ -43,18 +44,18 @@ export default {
}, },
recordInfo: { recordInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
watch: {}, watch: {},
created() {}, created() { },
components: {}, components: {},
computed: {}, computed: {},
mounted() {}, mounted() { },
methods: { methods: {
handleUpgradeNum(newVal) { handleUpgradeNum(newVal) {
...@@ -78,5 +79,4 @@ export default { ...@@ -78,5 +79,4 @@ export default {
} }
} }
</script> </script>
<style > <style ></style>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!