Commit 046e3672 by chenwq

refactor(DeliverList): 优化签收对话框的交互和显示

- 修改签收对话框标题为"确认签收"
- 移除查看卡号功能及相关代码
- 调整签字区显示文字和样式
- 更新表格列配置,简化显示内容
- 修改关闭事件处理逻辑,使用自定义事件
1 parent fc1a0be9
<template> <template>
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" :hasFooter="false"> <GLDialog v-if="dialogShow" bigTitle="确认签收" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" @onCancel="handleDetailClose" @onOk="save">
<div class="detail-info"> <div class="detail-info">
<div> <div>
发货单号: 发货单号:
...@@ -16,23 +16,22 @@ ...@@ -16,23 +16,22 @@
</div> </div>
<!-- <template v-for="(item, index) in detailInfo.deliveryDetailList"> --> <!-- <template v-for="(item, index) in detailInfo.deliveryDetailList"> -->
<div class="table-wrap"> <div class="table-wrap">
<div class="detail-info"> <!-- <div class="detail-info">
<div> <div>
商品名称: 商品名称:
<span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{ detailInfo.specificationData }}</span> <span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{ detailInfo.specificationData }}</span>
</div> </div>
<div> <div>
发货数量: 发货数量:
<span>{{ membraneTypeList.includes(detailInfo.goodsType) ? `${detailInfo.purchaseNumber}卷` : <span>{{ membraneTypeList.includes(detailInfo.goodsType) ? `${detailInfo.purchaseNumber}卷` : `${detailInfo.purchaseNumber}件` }}</span>
`${detailInfo.purchaseNumber}件` }}</span>
<span class="lookNumber" @click="lookNumber(detailInfo.deliveryCardList)" v-if="detailInfo.deliveryCardList && detailInfo.deliveryCardList.length > 0">查看卡号</span>
</div> </div>
<div> <div>
可用库存数量: 可用库存数量:
<span>{{ detailInfo.stockNum }}{{ membraneTypeList.includes(detailInfo.goodsType) ? `米` : `件` }}</span> <span>{{ detailInfo.stockNum }}{{ membraneTypeList.includes(detailInfo.goodsType) ? `米` : `件` }}</span>
</div> </div>
</div> </div> -->
<el-form ref="addForm" :model="detailInfo" size="small" v-if="detailInfo.deliveryCardList === null || detailInfo.deliveryCardList.length == 0"> <!-- <el-form ref="addForm" :model="detailInfo" size="small" v-if="detailInfo.deliveryCardList === null || detailInfo.deliveryCardList.length == 0"> -->
<el-form ref="addForm" :model="detailInfo" size="small">
<GLTable :tableData="detailInfo.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false"> <GLTable :tableData="detailInfo.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> -->
...@@ -43,27 +42,22 @@ ...@@ -43,27 +42,22 @@
</template> </template>
</GLTable> </GLTable>
</el-form> </el-form>
<div v-else class="message"> <!-- <div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询 已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
</div> </div> -->
<div class="sign-box"> <div class="sign-box">
<div class="red-txt">*请在区域内签字完成</div> <div class="red-txt">*请在区域内签字完成</div>
<div class="background-text">点击开始签字</div> <div class="background-text">签字区</div>
<div class="signature-container"> <div class="signature-container">
<VueSignaturePad width="100%" height="100%" ref="signaturePad" :options="options" /> <VueSignaturePad width="100%" height="100%" ref="signaturePad" :options="options" />
</div> </div>
<div class="btns"> <div class="btns">
<el-button type="text" size="mini" @click="save">保存</el-button> <!-- <el-button type="text" size="mini" @click="save">保存</el-button> -->
<el-button type="text" size="mini" @click="clear">清除</el-button> <el-button type="text" size="mini" @click="clear">清除</el-button>
<el-button type="text" size="mini" @click="undo">撤销</el-button> <el-button type="text" size="mini" @click="undo">撤销</el-button>
</div> </div>
</div> </div>
</div> </div>
<!-- </template> -->
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="false">
</GLTable>
</el-dialog>
</GLDialog> </GLDialog>
</template> </template>
...@@ -97,7 +91,6 @@ export default { ...@@ -97,7 +91,6 @@ export default {
}, },
data() { data() {
return { return {
innerVisible: false,
options: { options: {
penColor: '#000', penColor: '#000',
minWidth: 1, minWidth: 1,
...@@ -115,28 +108,34 @@ export default { ...@@ -115,28 +108,34 @@ export default {
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: [
{ {
label: '入库数量', label: '商品名称',
prop: 'increaseStockNum', prop: ''
addHtml: 'increaseStockNum'
}, },
{ {
label: '入库仓库', label: '商品编号',
prop: 'yqMerchantName' prop: ''
}, },
{ {
label: '入库门店', label: '发货数量',
prop: 'merchantName' prop: ''
} },
]
},
innerParams: {
tableOption: false,
tableColumns: [
{ {
label: '卡号', label: '可用库存数量',
prop: 'cardNum', prop: ''
width: 630
} }
// {
// label: '入库数量',
// prop: 'increaseStockNum',
// addHtml: 'increaseStockNum'
// },
// {
// label: '入库仓库',
// prop: 'yqMerchantName'
// },
// {
// label: '入库门店',
// prop: 'merchantName'
// }
] ]
}, },
tableData: [], tableData: [],
...@@ -172,7 +171,7 @@ export default { ...@@ -172,7 +171,7 @@ export default {
}) })
}, },
handleDetailClose() { handleDetailClose() {
this.dialogShow = false this.$emit('handleClose')
}, },
getDetail() { getDetail() {
this.$apis.delivery.getDeliveryDetail({ id: this.info.id }).then(res => { this.$apis.delivery.getDeliveryDetail({ id: this.info.id }).then(res => {
...@@ -187,12 +186,6 @@ export default { ...@@ -187,12 +186,6 @@ export default {
this.detailInfo = data this.detailInfo = data
} }
}) })
},
lookNumber(data) {
this.innerVisible = true
this.tableData = data.map(item => {
return { cardNum: item }
})
} }
} }
} }
...@@ -255,7 +248,7 @@ export default { ...@@ -255,7 +248,7 @@ export default {
color: #ededed; color: #ededed;
font-size: 88px; font-size: 88px;
pointer-events: none; pointer-events: none;
letter-spacing: 8px; letter-spacing: 32px;
} }
::v-deep .vue-signature-pad { ::v-deep .vue-signature-pad {
...@@ -283,13 +276,6 @@ export default { ...@@ -283,13 +276,6 @@ export default {
} }
} }
.lookNumber {
font-size: 14px;
color: #5850ff !important;
cursor: pointer;
margin-left: 8px;
}
.look-card-wrap { .look-card-wrap {
max-height: 600px; max-height: 600px;
overflow-y: scroll; overflow-y: scroll;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</div> </div>
<deliver-add v-if="addVisible" :visible.sync="addVisible" :id="id" @handleSuccess="handleSearch"></deliver-add> <deliver-add v-if="addVisible" :visible.sync="addVisible" :id="id" @handleSuccess="handleSearch"></deliver-add>
<deliver-detail :visible.sync="detailVisible" :id="id"></deliver-detail> <deliver-detail :visible.sync="detailVisible" :id="id"></deliver-detail>
<sign-dialog v-if="signVisible" :visible.sync="signVisible" :info="signInfo" @refresh="handleSearch"></sign-dialog> <sign-dialog v-if="signVisible" :visible.sync="signVisible" :info="signInfo" @handleClose="signVisibleChange"></sign-dialog>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!