Commit 389bcfb8 by 王志慧

commit

1 parent bb1b422c
......@@ -2,7 +2,7 @@
export const defaultStatusOptions = [
{
id: 1,
label: "待审核"
label: "运营审核"
},
{
id: 2,
......@@ -15,6 +15,10 @@ export const defaultStatusOptions = [
{
id: 4,
label: "已驳回"
},
{
id:5,
label:'商务审核'
}
]
// 发货状态
......
......@@ -24,16 +24,17 @@
<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)">
<div class="add-btn" @click="addLineTable(index)" v-if="index == 1">
添加入库记录
</div>
</div>
<el-form ref="addForm" :model="item" size="small" :rules="rules">
<el-form ref="addForm" :model="item" size="small" :rules="rules" v-if="index == 1">
<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">
......@@ -61,9 +62,14 @@
</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>
......@@ -92,7 +98,6 @@ export default {
get() {
if (this.visible) {
this.getDetail()
}
return this.visible
},
......@@ -114,6 +119,7 @@ export default {
}
}
return {
innerVisible: false,
membraneTypeList: membraneTypeList,
dayjs: dayjs,
goodsList: [],
......@@ -139,6 +145,20 @@ 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' }],
......@@ -210,18 +230,18 @@ export default {
this.$apis.delivery.getDeliveryDetail({ id: this.id }).then(res => {
if (res.code == 0) {
res.data.deliveryDetailList.forEach(item => {
item.goodsWarehousingList =[
{
increaseStockNum: '',
yqMerchantId: '',
yqMerchantName: '',
merchantId: '',
merchantName: ''
}
]
item.goodsWarehousingList = [
{
increaseStockNum: '',
yqMerchantId: '',
yqMerchantName: '',
merchantId: '',
merchantName: ''
}
]
})
this.detailInfo = res.data
this.getMerchantList()
this.getMerchantList()
}
})
},
......@@ -304,6 +324,13 @@ export default {
color: #5850ff;
cursor: pointer;
}
.lookNumber {
font-size: 14px;
color: #5850ff;
cursor: pointer;
margin-left: 8px;
}
}
.table-wrap {
border: 1px solid #e5e5e5;
......@@ -318,5 +345,9 @@ export default {
/deep/ td.el-table__cell {
height: 64px;
}
.message {
font-size: 14px;
color: #666666;
}
}
</style>
......@@ -219,7 +219,7 @@ export default {
fn: '取消'
},
condition: row => {
return row.status == 1
return row.status == 1&&row.purchaseType == 1
},
listeners: {
click: this.handleCancel
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!