chore: 保存盘点开发前改动

This commit is contained in:
zgw
2026-06-25 17:42:39 +08:00
parent 1af5b3cbd3
commit 4b8bc03343
114 changed files with 10005 additions and 1392 deletions

View File

@@ -9,14 +9,14 @@
<!-- 扫码区域 -->
<view class="scan-section">
<view class="scan-header">
<text class="scan-title">扫描出库物料条码</text>
<text class="scan-title">扫描托盘条码</text>
<view class="scan-btn" @click="startScan">
<uni-icons type="scan" size="18" color="#fa8c16"></uni-icons>
<text class="scan-btn-text orange">扫码</text>
<uni-icons type="scan" size="18" color="#1890ff"></uni-icons>
<text class="scan-btn-text">扫码</text>
</view>
</view>
<view class="input-wrap">
<input class="scan-input" v-model="barcode" placeholder="请输入或扫描物料条码"
<input class="scan-input" v-model="barcode" placeholder="请输入或扫描托盘条码"
@confirm="handleBarcode" focus />
</view>
</view>
@@ -24,18 +24,6 @@
<!-- 出库信息 -->
<view class="form-section" v-if="outboundInfo">
<text class="form-title">出库信息</text>
<view class="info-row">
<text class="info-label">物料编码</text>
<text class="info-value">{{ outboundInfo.materialCode }}</text>
</view>
<view class="info-row">
<text class="info-label">物料名称</text>
<text class="info-value">{{ outboundInfo.materialName }}</text>
</view>
<view class="info-row">
<text class="info-label">规格型号</text>
<text class="info-value">{{ outboundInfo.spec }}</text>
</view>
<view class="info-row">
<text class="info-label">托盘号</text>
<text class="info-value">{{ outboundInfo.trayCode }}</text>
@@ -54,12 +42,34 @@
</view>
</view>
<!-- 托盘物料信息 -->
<view class="form-section" v-if="outboundInfo">
<text class="form-title">托盘物料信息</text>
<view class="material-card" v-for="(item, index) in outboundInfo.materials" :key="item.jobDetailId || index">
<view class="material-header">
<text class="material-code">{{ item.materialCode }}</text>
<text class="material-qty">出库 {{ item.quantity }}</text>
</view>
<view class="material-name">{{ item.materialName }}</view>
<view class="material-meta">
<text>批次:{{ item.lotNo || '-' }}</text>
<text>库存:{{ item.stockQuantity || 0 }}</text>
<text>剩余:{{ item.residualQuantity || 0 }}</text>
</view>
<view class="material-confirm">
<text class="material-confirm-label">实际出库</text>
<input class="material-input" v-model="item.actualQuantity" type="number"
:placeholder="'计划 ' + item.quantity" />
</view>
</view>
</view>
<!-- 确认信息 -->
<view class="form-section" v-if="outboundInfo">
<text class="form-title">确认信息</text>
<view class="form-item">
<text class="form-label">实际数量</text>
<input class="form-input" v-model="confirmQty" type="number" :placeholder="'出库数量: ' + outboundInfo.quantity" />
<text class="form-label">实际总数</text>
<text class="info-value highlight">{{ calculateConfirmQty() }}</text>
</view>
<view class="form-item">
<text class="form-label">备注</text>
@@ -69,7 +79,7 @@
<!-- 操作按钮 -->
<view class="btn-section" v-if="outboundInfo">
<button class="btn btn-orange" @click="confirmOutbound">确认出库</button>
<button class="btn btn-primary" @click="confirmOutbound">确认出库</button>
<button class="btn btn-default" @click="resetForm">重置</button>
</view>
</view>
@@ -109,28 +119,50 @@
},
handleBarcode() {
if (!this.barcode) {
this.$modal.msg('请输入物料条码')
this.$modal.msg('请输入托盘条码')
return
}
var that = this
var params = { taskNo: this.taskNo, barcode: this.barcode }
getOutboundDetail(params).then(function(res) {
that.outboundInfo = res.data
that.confirmQty = String(res.data.quantity)
var data = res.data || {}
var materials = (data.materials || []).map(function(item) {
return Object.assign({}, item, {
actualQuantity: String(item.quantity || '')
})
})
that.outboundInfo = Object.assign({}, data, { materials: materials })
that.confirmQty = that.calculateConfirmQty()
that.$modal.msgSuccess('出库信息获取成功')
}).catch(function() {
that.outboundInfo = null
})
},
confirmOutbound() {
if (!this.confirmQty) {
this.$modal.msg('请输入实际数量')
if (!this.outboundInfo || !this.outboundInfo.materials || this.outboundInfo.materials.length === 0) {
this.$modal.msg('未获取到出库物料明细')
return
}
var missing = this.outboundInfo.materials.find(function(item) {
return !item.actualQuantity || Number(item.actualQuantity) <= 0
})
if (missing) {
this.$modal.msg('请输入每个物料的实际出库数量')
return
}
this.confirmQty = this.calculateConfirmQty()
var data = {
taskNo: this.taskNo,
barcode: this.barcode,
trayCode: this.barcode,
quantity: this.confirmQty,
materials: this.outboundInfo.materials.map(function(item) {
return {
jobDetailId: item.jobDetailId,
stockDetailId: item.stockDetailId,
quantity: item.actualQuantity
}
}),
remark: this.form.remark
}
var that = this
@@ -146,6 +178,15 @@
this.form = {
remark: ''
}
},
calculateConfirmQty() {
if (!this.outboundInfo || !this.outboundInfo.materials) {
return ''
}
var total = this.outboundInfo.materials.reduce(function(sum, item) {
return sum + Number(item.actualQuantity || 0)
}, 0)
return String(total)
}
}
}
@@ -159,10 +200,11 @@
.page-container {
padding: 24rpx;
padding-bottom: 60rpx;
}
.task-info {
background: #fff7e6;
background: #e6f7ff;
border-radius: 12rpx;
padding: 20rpx 24rpx;
margin-bottom: 24rpx;
@@ -173,7 +215,7 @@
.task-label {
font-size: 26rpx;
color: #fa8c16;
color: #1890ff;
}
.task-value {
@@ -207,19 +249,16 @@
display: flex;
align-items: center;
padding: 8rpx 20rpx;
border: 1rpx solid #fa8c16;
border: 1rpx solid #1890ff;
border-radius: 8rpx;
}
.scan-btn-text {
font-size: 24rpx;
color: #1890ff;
margin-left: 8rpx;
}
.scan-btn-text.orange {
color: #fa8c16;
}
.input-wrap {
border: 1rpx solid #e8e8e8;
border-radius: 8rpx;
@@ -227,8 +266,14 @@
}
.scan-input {
width: 100%;
font-size: 28rpx;
padding: 16rpx;
word-break: break-all;
min-width: 0;
height: auto;
line-height: 1.4;
box-sizing: border-box;
}
.form-section {
@@ -240,6 +285,7 @@
}
.form-title {
display: block;
font-size: 30rpx;
font-weight: 500;
color: #333;
@@ -263,10 +309,16 @@
.form-input {
flex: 1;
width: 0;
min-width: 0;
box-sizing: border-box;
font-size: 28rpx;
border: 1rpx solid #e8e8e8;
border-radius: 8rpx;
padding: 16rpx;
word-break: break-all;
height: auto;
line-height: 1.4;
}
.info-row {
@@ -287,12 +339,79 @@
}
.info-value.highlight {
color: #fa8c16;
color: #1890ff;
font-weight: 500;
}
.material-card {
padding: 18rpx 0;
border-bottom: 1rpx solid #f5f5f5;
}
.material-card:last-child {
border-bottom: 0;
}
.material-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.material-code {
font-size: 28rpx;
color: #333;
font-weight: 500;
}
.material-qty {
font-size: 26rpx;
color: #1890ff;
font-weight: 500;
}
.material-name {
font-size: 26rpx;
color: #666;
margin-bottom: 10rpx;
}
.material-meta {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
font-size: 24rpx;
color: #999;
}
.material-confirm {
display: flex;
align-items: center;
margin-top: 16rpx;
}
.material-confirm-label {
width: 140rpx;
font-size: 26rpx;
color: #666;
}
.material-input {
flex: 1;
width: 0;
min-width: 0;
box-sizing: border-box;
font-size: 26rpx;
border: 1rpx solid #e8e8e8;
border-radius: 8rpx;
padding: 12rpx 16rpx;
height: auto;
line-height: 1.4;
}
.btn-section {
padding: 24rpx 0;
padding: 8rpx 0 24rpx;
}
.btn {
@@ -301,8 +420,8 @@
margin-bottom: 20rpx;
}
.btn-orange {
background: #fa8c16;
.btn-primary {
background: #1890ff;
color: #fff;
}

View File

@@ -0,0 +1,416 @@
<template>
<view class="page-container">
<view class="form-section">
<text class="form-title">空托盘出库</text>
<view class="form-item">
<text class="form-label">仓库</text>
<picker class="form-picker" mode="selector" :range="warehouseOptions" range-key="warehouseName"
:value="warehouseIndex" @change="handleWarehouseChange">
<view class="picker-value" :class="{ placeholder: !warehouseId }">
{{ selectedWarehouseName || '请选择仓库' }}
</view>
</picker>
</view>
<view class="type-section" v-if="warehouseId">
<view class="type-header">
<text class="type-title">库内空托盘类型</text>
<text class="type-total">合计 {{ totalEmptyTrayCount }}</text>
</view>
<view class="type-empty" v-if="emptyTrayTypes.length === 0">
<text class="empty-text">当前仓库暂无可出库空托盘</text>
</view>
<view
class="type-card"
:class="{ active: selectedTrayType && selectedTrayType.barcodePrefix === item.barcodePrefix }"
v-for="(item, index) in emptyTrayTypes"
:key="item.barcodePrefix || index"
@click="selectTrayType(index)"
>
<view class="type-main">
<text class="type-name">{{ item.formatName || '托盘条码' }}</text>
<text class="type-prefix">{{ item.barcodePrefix }}</text>
</view>
<view class="type-count">
<text class="type-count-value">{{ item.quantity }}</text>
<text class="type-count-unit">个</text>
</view>
</view>
</view>
<view class="form-item">
<text class="form-label">出库数量</text>
<input class="form-input" v-model="quantity" type="number" placeholder="请输入出库数量" />
</view>
</view>
<view class="summary-section">
<view class="summary-row">
<text class="summary-label">作业类型</text>
<text class="summary-value">空容器出库</text>
</view>
<view class="summary-row">
<text class="summary-label">托盘类型</text>
<text class="summary-value">{{ selectedTrayTypeName || '未选择' }}</text>
</view>
<view class="summary-row">
<text class="summary-label">下发方式</text>
<text class="summary-value muted">生成后自动下发 WCS</text>
</view>
</view>
<view class="btn-section">
<button class="btn btn-primary" :disabled="!canSubmit || submitting" @click="submitEmptyTray">
{{ submitting ? '提交中...' : '生成空托出库作业' }}
</button>
<button class="btn btn-default" @click="resetQuantity">重置数量</button>
</view>
</view>
</template>
<script>
import { getWarehouseOptions } from '@/api/warehouse/inbound'
import { getEmptyTrayOutboundTypes, submitEmptyTrayOutbound } from '@/api/warehouse/outbound'
export default {
data() {
return {
warehouseOptions: [],
warehouseIndex: 0,
warehouseId: '',
warehouseName: '',
emptyTrayTypes: [],
trayTypeIndex: -1,
quantity: '',
submitting: false
}
},
computed: {
selectedWarehouseName() {
if (this.warehouseName) return this.warehouseName
var selected = this.warehouseOptions[this.warehouseIndex]
return selected && selected.warehouseId === this.warehouseId ? selected.warehouseName : ''
},
selectedTrayType() {
if (this.trayTypeIndex < 0) return null
return this.emptyTrayTypes[this.trayTypeIndex] || null
},
selectedTrayTypeName() {
var type = this.selectedTrayType
if (!type) return ''
return (type.formatName || '托盘条码') + '(' + type.barcodePrefix + ')'
},
selectedAvailableCount() {
var type = this.selectedTrayType
return type ? Number(type.quantity || 0) : 0
},
totalEmptyTrayCount() {
return this.emptyTrayTypes.reduce(function(total, item) {
return total + (Number(item.quantity) || 0)
}, 0)
},
canSubmit() {
var qty = Number(this.quantity)
return !!this.warehouseId && !!this.selectedTrayType && qty > 0 && qty <= this.selectedAvailableCount
}
},
onLoad() {
this.loadWarehouseOptions()
},
methods: {
loadWarehouseOptions() {
var that = this
getWarehouseOptions().then(function(res) {
that.warehouseOptions = res.data || res.rows || []
}).catch(function() {
that.warehouseOptions = []
})
},
handleWarehouseChange(e) {
var index = Number(e.detail.value)
var selected = this.warehouseOptions[index]
if (!selected) return
this.warehouseIndex = index
this.warehouseId = selected.warehouseId
this.warehouseName = selected.warehouseName
this.quantity = ''
this.resetTrayType()
this.loadEmptyTrayCount()
},
loadEmptyTrayCount() {
var that = this
if (!this.warehouseId) {
this.emptyTrayTypes = []
this.resetTrayType()
return
}
getEmptyTrayOutboundTypes(this.warehouseId).then(function(res) {
var list = Array.isArray(res.data) ? res.data : []
that.emptyTrayTypes = list.map(function(item) {
return {
formatId: item.formatId,
formatName: item.formatName,
barcodePrefix: item.barcodePrefix,
quantity: Number(item.quantity || 0)
}
})
that.resetTrayType()
if (that.emptyTrayTypes.length === 1) {
that.selectTrayType(0)
}
}).catch(function() {
that.emptyTrayTypes = []
that.resetTrayType()
})
},
selectTrayType(index) {
var selected = this.emptyTrayTypes[index]
if (!selected) return
this.trayTypeIndex = index
this.quantity = ''
},
resetTrayType() {
this.trayTypeIndex = -1
},
submitEmptyTray() {
var qty = Number(this.quantity)
if (!this.warehouseId) {
this.$modal.msg('请选择仓库')
return
}
if (!this.selectedTrayType) {
this.$modal.msg('请选择空托盘类型')
return
}
if (!qty || qty <= 0) {
this.$modal.msg('请输入有效的出库数量')
return
}
if (qty > this.selectedAvailableCount) {
this.$modal.msg('出库数量不能大于当前类型空托盘数量')
return
}
var that = this
var data = {
warehouseId: this.warehouseId,
barcodePrefix: this.selectedTrayType.barcodePrefix,
quantity: qty
}
this.$modal.confirm('是否确认生成空托出库作业并下发 WCS?').then(function() {
that.submitting = true
return submitEmptyTrayOutbound(data)
}).then(function(res) {
that.$modal.msgSuccess(res.msg || '空托出库作业生成成功')
that.quantity = ''
that.loadEmptyTrayCount()
}).catch(function() {}).finally(function() {
that.submitting = false
})
},
resetQuantity() {
this.quantity = ''
}
}
}
</script>
<style lang="scss" scoped>
page {
background-color: #f5f7fa;
min-height: 100%;
}
.page-container {
padding: 24rpx;
padding-bottom: 60rpx;
}
.form-section,
.summary-section {
background: #fff;
border-radius: 16rpx;
padding: 28rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
}
.form-title {
display: block;
font-size: 30rpx;
font-weight: 500;
color: #333;
margin-bottom: 24rpx;
padding-bottom: 16rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.form-item {
display: flex;
align-items: center;
padding: 16rpx 0;
}
.form-label {
width: 160rpx;
flex-shrink: 0;
font-size: 28rpx;
color: #666;
}
.form-input,
.form-picker {
flex: 1;
width: 0;
min-width: 0;
box-sizing: border-box;
}
.form-input,
.picker-value {
width: 100%;
min-height: 72rpx;
padding: 16rpx;
border: 1rpx solid #e8e8e8;
border-radius: 8rpx;
background: #fff;
font-size: 28rpx;
color: #333;
box-sizing: border-box;
}
.picker-value.placeholder {
color: #c0c4cc;
}
.type-section {
margin: 18rpx 0;
}
.type-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14rpx;
}
.type-title {
font-size: 26rpx;
color: #666;
}
.type-total {
font-size: 26rpx;
color: #1890ff;
}
.type-empty {
padding: 30rpx 0;
border: 1rpx dashed #d9d9d9;
border-radius: 12rpx;
display: flex;
justify-content: center;
}
.empty-text {
font-size: 26rpx;
color: #999;
}
.type-card {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 22rpx;
margin-bottom: 16rpx;
border: 1rpx solid #e8e8e8;
border-radius: 12rpx;
background: #fff;
}
.type-card.active {
border-color: #1890ff;
background: #e6f7ff;
}
.type-main {
flex: 1;
min-width: 0;
}
.type-name {
display: block;
font-size: 28rpx;
color: #333;
margin-bottom: 8rpx;
}
.type-prefix {
font-size: 24rpx;
color: #1890ff;
}
.type-count {
display: flex;
align-items: baseline;
margin-left: 20rpx;
}
.type-count-value {
font-size: 40rpx;
font-weight: 600;
color: #096dd9;
}
.type-count-unit {
margin-left: 4rpx;
font-size: 24rpx;
color: #666;
}
.summary-row {
display: flex;
justify-content: space-between;
padding: 12rpx 0;
}
.summary-label {
font-size: 26rpx;
color: #999;
}
.summary-value {
font-size: 26rpx;
color: #333;
}
.summary-value.muted {
color: #52c41a;
}
.btn-section {
padding: 8rpx 0 24rpx;
}
.btn {
font-size: 30rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
}
.btn-primary {
background: #1890ff;
color: #fff;
}
.btn-primary[disabled] {
background: #b0d4f5;
color: #fff;
}
.btn-default {
background: #fff;
color: #666;
border: 1rpx solid #d9d9d9;
}
</style>

View File

@@ -1,411 +0,0 @@
<template>
<view class="page-container">
<!-- 任务信息 -->
<view class="task-info" v-if="taskNo">
<text class="task-label">异常任务编号</text>
<text class="task-value">{{ taskNo }}</text>
</view>
<!-- 扫码区域 -->
<view class="scan-section">
<view class="scan-header">
<text class="scan-title">扫描异常物料条码</text>
<view class="scan-btn" @click="startScan">
<uni-icons type="scan" size="18" color="#f5222d"></uni-icons>
<text class="scan-btn-text red">扫码</text>
</view>
</view>
<view class="input-wrap">
<input class="scan-input" v-model="barcode" placeholder="请输入或扫描物料条码"
@confirm="handleBarcode" focus />
</view>
</view>
<!-- 异常信息填写 -->
<view class="form-section">
<text class="form-title">异常信息</text>
<view class="form-item">
<text class="form-label">异常类型</text>
<picker mode="selector" :range="exceptionTypes" range-key="label" @change="onTypeChange">
<view class="picker-value">{{ selectedType ? selectedType.label : '请选择异常类型' }}</view>
</picker>
<uni-icons type="bottom" size="16" color="#ccc"></uni-icons>
</view>
<view class="form-item">
<text class="form-label">处理方式</text>
<picker mode="selector" :range="handleMethods" range-key="label" @change="onMethodChange">
<view class="picker-value">{{ selectedMethod ? selectedMethod.label : '请选择处理方式' }}</view>
</picker>
<uni-icons type="bottom" size="16" color="#ccc"></uni-icons>
</view>
<view class="form-item">
<text class="form-label">异常描述</text>
<input class="form-input" v-model="form.description" placeholder="请描述异常情况" />
</view>
<view class="form-item column">
<text class="form-label">拍照留证</text>
<view class="photo-list">
<view class="photo-item" v-for="(photo, index) in photos" :key="index"
@click="previewPhoto(index)">
<image :src="photo" mode="aspectFill" class="photo-img"></image>
</view>
<view class="photo-add" @click="takePhoto" v-if="photos.length < 3">
<uni-icons type="plusempty" size="28" color="#ccc"></uni-icons>
</view>
</view>
</view>
</view>
<!-- 出库信息(扫码后显示) -->
<view class="form-section" v-if="outboundInfo">
<text class="form-title">出库任务信息</text>
<view class="info-row">
<text class="info-label">物料编码</text>
<text class="info-value">{{ outboundInfo.materialCode }}</text>
</view>
<view class="info-row">
<text class="info-label">物料名称</text>
<text class="info-value">{{ outboundInfo.materialName }}</text>
</view>
<view class="info-row">
<text class="info-label">出库数量</text>
<text class="info-value">{{ outboundInfo.quantity }}</text>
</view>
<view class="info-row">
<text class="info-label">出库口</text>
<text class="info-value">{{ outboundInfo.portName }}</text>
</view>
</view>
<!-- 操作按钮 -->
<view class="btn-section">
<button class="btn btn-danger" @click="submitException">提交异常确认</button>
<button class="btn btn-default" @click="resetForm">重置</button>
</view>
</view>
</template>
<script>
import { getOutboundDetail, submitOutboundException } from '@/api/warehouse/outbound'
export default {
data() {
return {
taskNo: '',
barcode: '',
outboundInfo: null,
photos: [],
exceptionTypes: [
{ value: 'damage', label: '物料损坏' },
{ value: 'missing', label: '物料缺失' },
{ value: 'wrong', label: '物料错误' },
{ value: 'qty_mismatch', label: '数量不符' },
{ value: 'other', label: '其他异常' }
],
handleMethods: [
{ value: 'return', label: '退回入库' },
{ value: 'replace', label: '更换物料' },
{ value: 'skip', label: '跳过本次' },
{ value: 'manual', label: '人工处理' }
],
selectedType: null,
selectedMethod: null,
form: {
description: ''
}
}
},
onLoad(options) {
if (options.taskNo) {
this.taskNo = options.taskNo
}
},
methods: {
startScan() {
var that = this
uni.scanCode({
onlyFromCamera: false,
scanType: ['barCode', 'qrCode'],
success: function(res) {
that.barcode = res.result
that.handleBarcode()
}
})
},
handleBarcode() {
if (!this.barcode) {
this.$modal.msg('请输入物料条码')
return
}
var that = this
var params = { taskNo: this.taskNo, barcode: this.barcode }
getOutboundDetail(params).then(function(res) {
that.outboundInfo = res.data
that.$modal.msgSuccess('出库信息获取成功')
}).catch(function() {
that.outboundInfo = null
})
},
onTypeChange(e) {
this.selectedType = this.exceptionTypes[e.detail.value]
},
onMethodChange(e) {
this.selectedMethod = this.handleMethods[e.detail.value]
},
takePhoto() {
var that = this
uni.chooseImage({
count: 1,
sourceType: ['camera', 'album'],
success: function(res) {
that.photos = that.photos.concat(res.tempFilePaths)
}
})
},
previewPhoto(index) {
uni.previewImage({
current: this.photos[index],
urls: this.photos
})
},
submitException() {
if (!this.barcode) {
this.$modal.msg('请输入物料条码')
return
}
if (!this.selectedType) {
this.$modal.msg('请选择异常类型')
return
}
if (!this.selectedMethod) {
this.$modal.msg('请选择处理方式')
return
}
var data = {
taskNo: this.taskNo,
barcode: this.barcode,
exceptionType: this.selectedType.value,
handleMethod: this.selectedMethod.value,
description: this.form.description
}
var that = this
submitOutboundException(data).then(function() {
that.$modal.msgSuccess('异常确认提交成功')
that.resetForm()
})
},
resetForm() {
this.barcode = ''
this.outboundInfo = null
this.photos = []
this.selectedType = null
this.selectedMethod = null
this.form = {
description: ''
}
}
}
}
</script>
<style lang="scss" scoped>
page {
background-color: #f5f7fa;
min-height: 100%;
}
.page-container {
padding: 24rpx;
}
.task-info {
background: #fff1f0;
border-radius: 12rpx;
padding: 20rpx 24rpx;
margin-bottom: 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.task-label {
font-size: 26rpx;
color: #f5222d;
}
.task-value {
font-size: 26rpx;
color: #333;
font-weight: 500;
}
.scan-section {
background: #fff;
border-radius: 16rpx;
padding: 28rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
}
.scan-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
}
.scan-title {
font-size: 30rpx;
font-weight: 500;
color: #333;
}
.scan-btn {
display: flex;
align-items: center;
padding: 8rpx 20rpx;
border: 1rpx solid #f5222d;
border-radius: 8rpx;
}
.scan-btn-text {
font-size: 24rpx;
margin-left: 8rpx;
}
.scan-btn-text.red {
color: #f5222d;
}
.input-wrap {
border: 1rpx solid #e8e8e8;
border-radius: 8rpx;
padding: 4rpx;
}
.scan-input {
font-size: 28rpx;
padding: 16rpx;
}
.form-section {
background: #fff;
border-radius: 16rpx;
padding: 28rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
}
.form-title {
font-size: 30rpx;
font-weight: 500;
color: #333;
margin-bottom: 24rpx;
padding-bottom: 16rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.form-item {
display: flex;
align-items: center;
padding: 16rpx 0;
}
.form-item.column {
flex-direction: column;
align-items: flex-start;
}
.form-label {
font-size: 28rpx;
color: #666;
width: 160rpx;
flex-shrink: 0;
}
.form-item.column .form-label {
width: auto;
margin-bottom: 16rpx;
}
.form-input {
flex: 1;
font-size: 28rpx;
border: 1rpx solid #e8e8e8;
border-radius: 8rpx;
padding: 16rpx;
}
.picker-value {
flex: 1;
font-size: 28rpx;
color: #333;
padding: 16rpx;
}
.photo-list {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.photo-item {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
overflow: hidden;
}
.photo-img {
width: 100%;
height: 100%;
}
.photo-add {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
border: 1rpx dashed #d9d9d9;
display: flex;
align-items: center;
justify-content: center;
}
.info-row {
display: flex;
justify-content: space-between;
padding: 16rpx 0;
border-bottom: 1rpx solid #f5f5f5;
}
.info-label {
font-size: 28rpx;
color: #999;
}
.info-value {
font-size: 28rpx;
color: #333;
}
.btn-section {
padding: 24rpx 0;
}
.btn {
font-size: 30rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
}
.btn-danger {
background: #f5222d;
color: #fff;
}
.btn-default {
background: #fff;
color: #666;
border: 1rpx solid #d9d9d9;
}
</style>

View File

@@ -9,20 +9,20 @@
</view>
<view class="card-info">
<text class="card-title">出库确认</text>
<text class="card-desc">扫描出库物料条码进行出库确认</text>
<text class="card-desc">扫描托盘条码进行出库确认</text>
</view>
</view>
<uni-icons type="right" size="18" color="#ccc"></uni-icons>
</view>
<view class="menu-card" @click="navigateTo('/pages/warehouse/outbound/exception')">
<view class="menu-card" @click="navigateTo('/pages/warehouse/outbound/emptyTray')">
<view class="card-left">
<view class="card-icon red">
<uni-icons type="info" size="24" color="#fff"></uni-icons>
<view class="card-icon blue">
<uni-icons type="paperplane" size="24" color="#fff"></uni-icons>
</view>
<view class="card-info">
<text class="card-title">出库异常确认</text>
<text class="card-desc">处理出库过程中的异常情况</text>
<text class="card-title">空托盘出库</text>
<text class="card-desc">选择仓库和数量后生成出库作业</text>
</view>
</view>
<uni-icons type="right" size="18" color="#ccc"></uni-icons>
@@ -106,8 +106,6 @@
handleTask(item) {
if (item.type === 'confirm') {
this.$tab.navigateTo('/pages/warehouse/outbound/confirm?taskNo=' + item.taskNo)
} else if (item.type === 'exception') {
this.$tab.navigateTo('/pages/warehouse/outbound/exception?taskNo=' + item.taskNo)
}
}
}
@@ -159,8 +157,8 @@
background: linear-gradient(135deg, #fa8c16, #ffa940);
}
.card-icon.red {
background: linear-gradient(135deg, #f5222d, #ff4d4f);
.card-icon.blue {
background: linear-gradient(135deg, #1890ff, #40a9ff);
}
.card-info {
@@ -242,10 +240,6 @@
color: #fa8c16;
}
.task-type.exception {
color: #f5222d;
}
.task-no {
font-size: 24rpx;
color: #999;
@@ -305,8 +299,4 @@
background: #f6ffed;
}
.task-status.exception {
color: #f5222d;
background: #fff1f0;
}
</style>