Commit 08a2f7f8 by 王志慧

commit

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