Commit 08a2f7f8 by 王志慧

commit

1 parent 6dd51d50
...@@ -24,17 +24,16 @@ ...@@ -24,17 +24,16 @@
<div> <div>
发货数量: 发货数量:
<span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件` }}</span> <span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件` }}</span>
<span class="lookNumber" @click="innerVisible = true">查看卡号</span>
</div> </div>
<div> <div>
可用库存数量: 可用库存数量:
<span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span> <span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span>
</div> </div>
<div class="add-btn" @click="addLineTable(index)" v-if="index == 1"> <div class="add-btn" @click="addLineTable(index)">
添加入库记录 添加入库记录
</div> </div>
</div> </div>
<el-form ref="addForm" :model="item" size="small" :rules="rules" v-if="index == 1"> <el-form ref="addForm" :model="item" size="small" :rules="rules">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false"> <GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false">
<template slot="increaseStockNum" slot-scope="scope"> <template slot="increaseStockNum" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.increaseStockNum'" :rules="rules.increaseStockNum"> <el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.increaseStockNum'" :rules="rules.increaseStockNum">
...@@ -62,14 +61,10 @@ ...@@ -62,14 +61,10 @@
</div> </div>
</GLTable> </GLTable>
</el-form> </el-form>
<div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
</div>
</div> </div>
</template> </template>
<el-dialog width="60%" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="true"></GLTable>
</el-dialog>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogShow = false">关闭</el-button> <el-button size="small" @click="dialogShow = false">关闭</el-button>
<el-button type="primary" size="small" @click="handleSave">保存入库</el-button> <el-button type="primary" size="small" @click="handleSave">保存入库</el-button>
...@@ -119,7 +114,6 @@ export default { ...@@ -119,7 +114,6 @@ export default {
} }
} }
return { return {
innerVisible: false,
membraneTypeList: membraneTypeList, membraneTypeList: membraneTypeList,
dayjs: dayjs, dayjs: dayjs,
goodsList: [], goodsList: [],
...@@ -145,20 +139,6 @@ export default { ...@@ -145,20 +139,6 @@ export default {
} }
] ]
}, },
innerParams: {
tableOption: false,
tableColumns: [
{
label: '卡号',
prop: 'increaseStockNum'
}
]
},
tableData: [
{
increaseStockNum: 111111111111
}
],
rules: { rules: {
yqMerchantId: [{ required: true, message: '请选择入库仓库', trigger: 'change' }], yqMerchantId: [{ required: true, message: '请选择入库仓库', trigger: 'change' }],
merchantId: [{ required: true, message: '请选择入库门店', trigger: 'change' }], merchantId: [{ required: true, message: '请选择入库门店', trigger: 'change' }],
......
...@@ -24,22 +24,28 @@ ...@@ -24,22 +24,28 @@
<div> <div>
发货数量: 发货数量:
<span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件` }}</span> <span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件` }}</span>
<span class="lookNumber" @click="lookNumber(item.deliveryCardList)" v-if="item.deliveryCardList&&item.deliveryCardList.length > 0">查看卡号</span>
</div> </div>
<div> <div>
可用库存数量: 可用库存数量:
<span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span> <span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span>
</div> </div>
</div> </div>
<el-form ref="addForm" :model="item" size="small"> <el-form ref="addForm" :model="item" size="small" v-if="item.deliveryCardList===null">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false"> <GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false">
<template slot="increaseStockNum" slot-scope="scope"> <template slot="increaseStockNum" slot-scope="scope">
<span>{{ membraneTypeList.includes(scope.scope.goodsType) ? `${scope.scope.increaseStockNum}米` : `${scope.scope.increaseStockNum}件` }}</span> <span>{{ membraneTypeList.includes(scope.scope.goodsType) ? `${scope.scope.increaseStockNum}米` : `${scope.scope.increaseStockNum}件` }}</span>
</template> </template>
</GLTable> </GLTable>
</el-form> </el-form>
<div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
</div>
</div> </div>
</template> </template>
<el-dialog width="60%" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="true"></GLTable>
</el-dialog>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogShow = false">关闭</el-button> <el-button size="small" @click="dialogShow = false">关闭</el-button>
</span> </span>
...@@ -76,6 +82,7 @@ export default { ...@@ -76,6 +82,7 @@ export default {
}, },
data() { data() {
return { return {
innerVisible: false,
membraneTypeList: membraneTypeList, membraneTypeList: membraneTypeList,
dayjs: dayjs, dayjs: dayjs,
goodsList: [], goodsList: [],
...@@ -99,6 +106,20 @@ export default { ...@@ -99,6 +106,20 @@ export default {
} }
] ]
}, },
innerParams: {
tableOption: false,
tableColumns: [
{
label: '卡号',
prop: 'increaseStockNum'
}
]
},
tableData: [
{
increaseStockNum: 111111111111
}
],
detailInfo: {} detailInfo: {}
} }
}, },
...@@ -113,6 +134,10 @@ export default { ...@@ -113,6 +134,10 @@ export default {
this.detailInfo = res.data this.detailInfo = res.data
} }
}) })
},
lookNumber(data){
this.innerVisible =true
this.tableData = data
} }
} }
} }
......
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
], ],
tableButtonList: [ tableButtonList: [
{ {
type: 'GLButton', type: 'el-button',
name: '查看', name: '查看',
attrs: { attrs: {
type: 'text', type: 'text',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!