Commit 8af959b1 by qinjianhui

fix: 补胚数量修改

parent e11e7f9f
......@@ -107,6 +107,7 @@ export interface ProductList {
isReplenishment?: boolean
thirdSkuCode?: string | null
supplierProductNo?: string | null
replenishmentSumNum?: number | null
}
export interface cardImages {
title: string
......
......@@ -647,18 +647,18 @@
class="goods-item-info-item"
>
<span class="goods-item-info-item-label">补胚数量:</span>
<span class="goods-item-info-item-value">
{{ item.replenishmentNum || 0 }}
<span class="goods-item-info-item-value" :title="item.replenishmentSumNum">
{{ item.replenishmentSumNum || 0 }}
</span>
<el-icon
<el-button
v-if="status === 'WAIT_SHIPMENT'"
class="icon"
style="color: #f56c6c; font-size: 24px"
title="申请补胚"
link
size="small"
type="success"
@click="applyForReplenishment(item)"
>申请补胚</el-button
>
<Edit />
</el-icon>
<!-- f -->
</div>
<div class="goods-item-info-item">
<span class="goods-item-info-item-label">克重:</span>
......@@ -843,20 +843,17 @@
:color="row.createTime ? '#409EFF' : ''"
:timestamp="row.createTime"
>创建时间
</el-timeline-item
>
</el-timeline-item>
<el-timeline-item
:color="row.startStockingTime ? '#E6A23C' : ''"
:timestamp="row.startStockingTime"
>确认时间
</el-timeline-item
>
</el-timeline-item>
<el-timeline-item
:color="row.finishTime ? '#67C23A' : ''"
:timestamp="row.finishTime"
>完成时间
</el-timeline-item
>
</el-timeline-item>
</el-timeline>
<!-- <div class="order-time-box">
<div class="order-time-item">
......@@ -1138,8 +1135,7 @@
:show-copy-sub-shop-number="false"
@on-change="rightChange"
>
<template #default
>
<template #default>
<div class="menu-item" @click="rightChange('order-number')">
复制订单号
</div>
......@@ -1420,31 +1416,54 @@
</span>
</template>
</ElDialog>
<el-dialog v-model="logisticsVisible" :close-on-click-modal="false" width="700px" title="更新物流信息">
<el-dialog
v-model="logisticsVisible"
:close-on-click-modal="false"
width="700px"
title="更新物流信息"
>
<el-form
v-if="logisticsVisible"
ref="logisticsFormRef" label-width="100px" label-position="left"
:model="logisticsForm">
ref="logisticsFormRef"
label-width="100px"
label-position="left"
:model="logisticsForm"
>
<el-form-item prop="processNumber" label="物流处理号">
<el-input v-model="logisticsForm.processNumber" placeholder="请输入物流处理号" clearable></el-input>
<el-input
v-model="logisticsForm.processNumber"
placeholder="请输入物流处理号"
clearable
></el-input>
</el-form-item>
<el-form-item prop="trackingNumber" label="物流跟踪号">
<el-input v-model="logisticsForm.trackingNumber" placeholder="请输入物流跟踪号" clearable></el-input>
<el-input
v-model="logisticsForm.trackingNumber"
placeholder="请输入物流跟踪号"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="logisticsForm.trackingNumber" prop="expressSheetUrl" label="物流面单">
<el-form-item
v-if="logisticsForm.trackingNumber"
prop="expressSheetUrl"
label="物流面单"
>
<el-upload accept=".pdf" action="" :before-upload="expressSheetUpload">
<el-button type="primary">点击上传</el-button>
</el-upload>
<div v-if="logisticsForm.expressSheet" class="file">
<span>{{ logisticsForm.expressSheet.name }}</span>
<el-icon @click="logisticsForm.expressSheet=null" class="expressSheetClose">
<el-icon
@click="logisticsForm.expressSheet = null"
class="expressSheetClose"
>
<Close></Close>
</el-icon>
</div>
</el-form-item>
</el-form>
<template #footer>
<el-button @click="logisticsVisible=false">取消</el-button>
<el-button @click="logisticsVisible = false">取消</el-button>
<el-button type="primary" @click="logisticsSubmit"> 确定</el-button>
</template>
</el-dialog>
......@@ -1455,7 +1474,7 @@ import {
ArrowDown,
CaretBottom,
CaretTop,
Edit,
// Edit,
WarningFilled,
} from '@element-plus/icons-vue'
import {
......@@ -1515,7 +1534,8 @@ import {
WarehouseListData,
cardImages,
AddressInfo,
LogisticsData, LogisticsFormData,
LogisticsData,
LogisticsFormData,
} from '@/types/api/podUsOrder'
import usePageList from '@/utils/hooks/usePageList'
import { useValue } from '@/utils/hooks/useValue'
......@@ -1537,7 +1557,7 @@ import platformJson from '../../../json/platform.json'
declare global {
interface Window {
ActiveXObject: {
new(type: string): XMLHttpRequest
new (type: string): XMLHttpRequest
}
VBS_BinaryToArray: {
(data: unknown): { toArray(): number[] }
......@@ -3084,7 +3104,7 @@ const applyForReplenishment = async (row: ProductList | undefined) => {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /.+/,
inputValue: row ? String(row.replenishmentNum || '') : '',
inputValue: row ? String(row.replenishmentSumNum || '') : '',
inputErrorMessage: '请输入补胚数量',
inputPlaceholder: '补胚数量',
}).then(async (res) => {
......@@ -3265,7 +3285,6 @@ const replenishmentSuccess = async () => {
overflow-y: auto;
}
.tabs-node_count {
display: inline-block;
min-width: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment