Commit bea7eed3 by chenwq

fix(采购): 修复采购订单驳回和发货相关UI及逻辑问题

- 调整驳回和结束发货的提示文本样式和内容
- 优化发票记录表格中订单号的显示逻辑
- 修正发货数量输入框的边距和表格列宽
- 修改分配弹窗中的批量确认逻辑
- 调整发货单详情弹窗宽度并移除膜卷号显示
1 parent 3fd0f68e
......@@ -4,7 +4,7 @@
<div class="edit-order-dialog" v-if="dialogShow">
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" @refreshTable="refreshTable" :table-data="tableList" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope">
<div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;">
<el-select v-model="nowPurNumList[scope.index]" placeholder="请选择" clearable>
<el-option v-for="item in staffList" :key="item.uuid" :label="item.staffName" :value="item.uuid">
</el-option>
......@@ -26,9 +26,9 @@
</el-tooltip>
<div v-else>-</div>
</template>
<template slot="deliveryRemark" slot-scope="scope">
<div slot="deliveryRemark" slot-scope="scope" style="margin: 0 8px;">
<el-input v-model="scope.scope.deliveryRemark" maxlength="50" placeholder="请输入"></el-input>
</template>
</div>
</d2-table>
</div>
<div class="footer">
......@@ -229,9 +229,12 @@ export default {
},
handleBatchConfirm() {
this.nowPurNumList.forEach((item, idx) => {
this.tableList.forEach((item, idx) => {
this.nowPurNumList[idx] = this.batchForm.consignor
})
// this.nowPurNumList.forEach((item, idx) => {
// this.nowPurNumList[idx] = this.batchForm.consignor
// })
this.batchDialogVisible()
},
getStaffList() {
......
......@@ -24,7 +24,7 @@
</div> -->
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" :table-data="tableList">
<div slot="nowPurNum" slot-scope="scope">
<div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;">
<!-- 未退货才可以 -->
<div v-if="
(tableList[scope.index].purchaseNumber == 0 ||
......@@ -48,7 +48,7 @@
}}
</div>
</div>
<div slot="cardNum" slot-scope="scope">
<div slot="cardNum" slot-scope="scope" style="margin: 0 8px;">
<div v-if="tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)">
-
</div>
......@@ -311,6 +311,7 @@ export default {
{
label: "已发货数量",
prop: "purchaseNumber",
width: 120,
formatter: (cellValue) => {
return baseConfig.membraneTypeList.includes(cellValue.goodsType)
? `${cellValue.purchaseNumber || 0}卷`
......@@ -320,11 +321,13 @@ export default {
{
label: "本次发货数量",
prop: "",
width: 124,
addHtml: "nowPurNum"
},
{
label: "发货卡号",
prop: "",
width: 122,
addHtml: "cardNum"
}
]
......
<!-- 发货单详情弹窗 -->
<template>
<div>
<d2-dialog title="详细信息" :is-visible="detailVisible" class="stockMonthDailog" width="70%" :no-cancel="true" btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<d2-dialog title="详细信息" :is-visible="detailVisible" class="stockMonthDailog" width="1400px" :no-cancel="true" btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="detail-info">
<div>
发货单号:
......@@ -38,7 +38,7 @@
</div>
</div>
<d2-table ref="recordTable" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0" :table-data="item.goodsWarehousingList" :table-params="tableParams" :has-page="false">
<template slot="filmRollNo" slot-scope="scope">
<!-- <template slot="filmRollNo" slot-scope="scope">
<div v-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">
{{ scope.scope.filmRollList[0] }}
</div>
......@@ -51,7 +51,6 @@
</div>
</div>
<div slot="reference">
<!-- <img style="width: 14px;height: 13px;" src="./images/merchant_icon.png"> -->
<span style="color: #2A58AD;">(…{{ scope.scope.filmRollList.length }})</span>
</div>
</el-popover>
......@@ -59,7 +58,7 @@
<div v-else>
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ '-' }}</span>
</div>
</template>
</template> -->
</d2-table>
<div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
......@@ -100,12 +99,14 @@ export default {
formatter: (cellValue) => {
return (cellValue.increaseStockNum || cellValue.increaseStockNum == 0) ? (this.membraneTypeList.includes(cellValue.goodsType) ? parseFloat(cellValue.increaseStockNum / cellValue.alternateUnits).toFixed(2) : parseFloat(cellValue.increaseStockNum).toFixed(2)) + (this.membraneTypeList.includes(cellValue.goodsType) ? '卷' : '件') : '-'
}
}, {
label: '膜卷号',
name: '',
type: 'slot',
addHtml: 'filmRollNo'
}, {
},
// {
// label: '膜卷号',
// name: '',
// type: 'slot',
// addHtml: 'filmRollNo'
// },
{
label: '入库仓库',
prop: 'yqMerchantName'
// width: '150px'
......
......@@ -18,9 +18,12 @@
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn">
<el-tooltip slot="orderCode" slot-scope="scope" effect="dark" placement="top" :content="scope.columnsObj.formatter(scope.scope)">
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div slot="orderCode" slot-scope="scope">
<el-tooltip v-if="scope.scope.orderCode.split(',').length > 1" effect="dark" placement="top" :content="scope.columnsObj.formatter(scope.scope)">
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px">
......@@ -31,7 +34,7 @@
<auth-button :data="scope.scope" :show-btn-ids="['9090504']" />
</span>
<!-- 撤销 -->
<span v-if="scope.scope.putStatus == 0" style="margin-right: 10px">
<span v-if="[0, 1].includes(scope.scope.putStatus)" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090503']" />
</span>
<!-- 发货签收单 -->
......
......@@ -75,6 +75,9 @@
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
<p style="margin-left: 150px; color: #999999;">
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
</p>
</div>
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
......@@ -92,8 +95,8 @@
<el-input type="textarea" placeholder="请输入备注信息" maxlength="200" :rows="3" show-word-limit v-model.trim="terminateDelivery.terminateDeliveryInstruction" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
<p style="margin-left: 150px">
说明:结束发货后,订单发货完结,无法再重新进行发货操作。是否确定结束发货
<p style="margin-left: 150px; color: #999999;">
说明:结束发货后,整个采购订单发货完结,无法再重新进行发货操作。
</p>
</div>
<!-- <div class="footer">
......@@ -155,7 +158,7 @@ export default {
// ]
},
config: {
title: "驳回提示",
title: "驳回",
width: "750px"
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!