Commit 046e3672 by chenwq

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

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