Commit bea7eed3 by chenwq

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

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