778 lines
20 KiB
Vue
778 lines
20 KiB
Vue
<template>
|
||
<view>
|
||
<view class="normar_container">
|
||
<page-nav title="新建收货任务"></page-nav>
|
||
<scroll-view class="container" scroll-y>
|
||
<u-form class="form_box" :model="formData" :rules="rules" ref="formRef" label-width="150rpx">
|
||
<!-- 基础信息 -->
|
||
<view class="section">
|
||
<view class="section-title">基础信息</view>
|
||
|
||
<!-- 店铺信息 -->
|
||
<u-form-item label="货主" @click="openStorePicker">
|
||
<view class="store-select-display">
|
||
<text :class="['store-select-text', !formData.store_id ? 'store-select-placeholder' : '']">{{ storeName || '请选择货主' }}</text>
|
||
<u-icon name="arrow-right" size="24rpx" color="#c0c4cc"></u-icon>
|
||
</view>
|
||
</u-form-item>
|
||
|
||
<!-- 来货方式 -->
|
||
<u-form-item label="来货方式" prop="delivery_method" required>
|
||
<u-radio-group v-model="formData.delivery_method">
|
||
<u-radio v-for="item in deliveryMethods" :key="item.value" :name="item.value"
|
||
:label="item.label"></u-radio>
|
||
</u-radio-group>
|
||
</u-form-item>
|
||
|
||
<!-- 车牌号(货车时显示) -->
|
||
<u-form-item v-if="formData.delivery_method === 'truck'" label="车牌号" prop="license_plate">
|
||
<view class="tracking-input-wrap">
|
||
<u-input v-model="formData.license_plate" placeholder="请输入车牌号" maxlength="20" />
|
||
<view class="scan-camera-btn" @click="handleLicensePlateCapture">
|
||
<u-icon name="camera" size="34rpx" color="#2979ff"></u-icon>
|
||
</view>
|
||
</view>
|
||
</u-form-item>
|
||
|
||
<!-- 物流单号(非货车时显示) -->
|
||
<u-form-item v-if="formData.delivery_method !== 'truck' && formData.delivery_method !== 'other'"
|
||
label="物流单号" prop="tracking_number">
|
||
<view class="tracking-input-wrap">
|
||
<u-input v-model="formData.tracking_number" placeholder="请输入快递/物流单号" maxlength="100" />
|
||
<view class="scan-camera-btn" @click="handleTrackingScan">
|
||
<u-icon name="camera" size="34rpx" color="#2979ff"></u-icon>
|
||
</view>
|
||
</view>
|
||
</u-form-item>
|
||
</view>
|
||
|
||
<!-- 装卸信息 -->
|
||
<view class="section">
|
||
<view class="section-title">装卸信息</view>
|
||
|
||
<!-- 装卸方式 -->
|
||
<u-form-item label="装卸方式" prop="loading_method" required>
|
||
<u-radio-group v-model="formData.loading_method">
|
||
<u-radio v-for="item in loadingMethods" :key="item.value" :name="item.value"
|
||
:label="item.label"></u-radio>
|
||
</u-radio-group>
|
||
</u-form-item>
|
||
|
||
<!-- 总箱数 -->
|
||
<u-form-item label="总箱数" prop="total_boxes">
|
||
<u-input v-model="formData.total_boxes" type="number" placeholder="请输入总箱数" />
|
||
</u-form-item>
|
||
|
||
<!-- 总托盘数 -->
|
||
<u-form-item label="总托盘数" prop="total_pallets">
|
||
<u-input v-model="formData.total_pallets" type="number" placeholder="请输入总托盘数" />
|
||
</u-form-item>
|
||
|
||
<!-- 录像设备 -->
|
||
<u-form-item label="录像设备">
|
||
<u-input v-model="formData.video_device_id" placeholder="直接扫描收货区录像码" maxlength="50" />
|
||
</u-form-item>
|
||
</view>
|
||
|
||
<!-- 备注信息 -->
|
||
<view class="section">
|
||
<view class="section-title">备注信息</view>
|
||
<u-form-item label="备注">
|
||
<u-input v-model="formData.remark" type="textarea" placeholder="请输入备注信息" height="120" />
|
||
</u-form-item>
|
||
</view>
|
||
</u-form>
|
||
</scroll-view>
|
||
<view class="submit-area">
|
||
<u-button type="primary" @click="handleSubmit" :loading="submitting">
|
||
创建收货任务
|
||
</u-button>
|
||
<u-button @click="handleReset">
|
||
重置
|
||
</u-button>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 货主选择器 -->
|
||
<inputAndSelect title="选择货主" :list="storeList" :show="showStorePicker" :value="formData.store_id"
|
||
searchBorder="none" @change="handleStoreChange" @close="showStorePicker=false"></inputAndSelect>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
storeName: "不设置",
|
||
formData: {
|
||
store_id: null,
|
||
delivery_method: 'truck',
|
||
license_plate: '',
|
||
tracking_number: '',
|
||
loading_method: 'with_pallet',
|
||
video_device_id: '',
|
||
total_boxes: '',
|
||
total_pallets: '',
|
||
remark: '',
|
||
status: 'receiving',
|
||
},
|
||
|
||
showStorePicker: false,
|
||
|
||
deliveryMethods: [{
|
||
value: 'truck',
|
||
label: '货车'
|
||
},
|
||
{
|
||
value: 'express',
|
||
label: '快递'
|
||
},
|
||
{
|
||
value: 'other',
|
||
label: '其他'
|
||
},
|
||
],
|
||
|
||
loadingMethods: [{
|
||
value: 'with_pallet',
|
||
label: '带托盘'
|
||
},
|
||
{
|
||
value: 'without_pallet',
|
||
label: '不带托盘'
|
||
},
|
||
],
|
||
|
||
storeList: [],
|
||
|
||
rules: {
|
||
'delivery_method': [{
|
||
required: true,
|
||
message: '请选择来货方式',
|
||
trigger: 'blur'
|
||
}],
|
||
'loading_method': [{
|
||
required: true,
|
||
message: '请选择装卸方式',
|
||
trigger: 'blur'
|
||
}],
|
||
'license_plate': [{
|
||
validator: (rule, value, callback) => {
|
||
if (this.formData.delivery_method === 'truck' && !value) {
|
||
callback(new Error('车牌号不能为空'));
|
||
} else {
|
||
callback();
|
||
}
|
||
},
|
||
trigger: 'blur'
|
||
}],
|
||
'tracking_number': [{
|
||
validator: (rule, value, callback) => {
|
||
const method = this.formData.delivery_method;
|
||
if (method === 'express' && !value) {
|
||
callback(new Error('物流单号不能为空'));
|
||
} else {
|
||
callback();
|
||
}
|
||
},
|
||
trigger: 'blur'
|
||
}],
|
||
'total_boxes': [{
|
||
type: 'number',
|
||
message: '箱数必须为数字',
|
||
trigger: 'blur'
|
||
}],
|
||
'total_pallets': [{
|
||
type: 'number',
|
||
message: '托盘数必须为数字',
|
||
trigger: 'blur'
|
||
}],
|
||
},
|
||
submitting: false,
|
||
recognizingPlate: false,
|
||
};
|
||
},
|
||
|
||
methods: {
|
||
normalizeSpeechText(message) {
|
||
const rawText = String(message || '').trim();
|
||
if (!rawText) {
|
||
return '';
|
||
}
|
||
|
||
const digitMap = {
|
||
'0': '零',
|
||
'1': '一',
|
||
'2': '二',
|
||
'3': '三',
|
||
'4': '四',
|
||
'5': '五',
|
||
'6': '六',
|
||
'7': '七',
|
||
'8': '八',
|
||
'9': '九'
|
||
};
|
||
|
||
const normalizeCodeSegment = (segment) => {
|
||
return segment
|
||
.split('-')
|
||
.map(part => String(part || '')
|
||
.split('')
|
||
.map(char => (digitMap[char] || char))
|
||
.join(''))
|
||
.join('的');
|
||
};
|
||
|
||
return rawText.replace(/([A-Za-z0-9]+(?:-[A-Za-z0-9]+)+)/g, normalizeCodeSegment);
|
||
},
|
||
speakMessage(message, options = {}) {
|
||
const text = this.normalizeSpeechText(message);
|
||
if (!text) {
|
||
return;
|
||
}
|
||
|
||
const tools = this.$tools;
|
||
if (!tools || typeof tools.speakText !== 'function') {
|
||
return;
|
||
}
|
||
|
||
try {
|
||
const task = tools.speakText(text, options);
|
||
if (task && typeof task.catch === 'function') {
|
||
task.catch(error => {
|
||
console.warn('[ReceivingCreate] 语音播报失败:', error);
|
||
});
|
||
}
|
||
} catch (error) {
|
||
console.warn('[ReceivingCreate] 语音播报异常:', error);
|
||
}
|
||
},
|
||
stopSpeak() {
|
||
const tools = this.$tools;
|
||
if (!tools || typeof tools.stopSpeak !== 'function') {
|
||
return;
|
||
}
|
||
|
||
try {
|
||
tools.stopSpeak();
|
||
} catch (error) {
|
||
console.warn('[ReceivingCreate] 停止语音播报异常:', error);
|
||
}
|
||
},
|
||
showToastMessage(title, icon = 'none', options = {}) {
|
||
const message = String(title || '').trim();
|
||
if (!message) {
|
||
return;
|
||
}
|
||
|
||
uni.showToast({
|
||
title: message,
|
||
icon
|
||
});
|
||
|
||
if (options.speak !== false) {
|
||
this.speakMessage(options.speakText || message, options.voiceOptions || {});
|
||
}
|
||
},
|
||
extractErrorMessage(error, fallback = '操作失败') {
|
||
if (!error) {
|
||
return fallback;
|
||
}
|
||
|
||
if (typeof error === 'string') {
|
||
return error;
|
||
}
|
||
|
||
if (typeof error.message === 'string' && error.message.trim()) {
|
||
return error.message.trim();
|
||
}
|
||
|
||
if (Array.isArray(error) && error.length) {
|
||
const firstError = error[0];
|
||
if (typeof firstError === 'string') {
|
||
return firstError;
|
||
}
|
||
if (firstError && typeof firstError.message === 'string') {
|
||
return firstError.message;
|
||
}
|
||
}
|
||
|
||
return fallback;
|
||
},
|
||
getPlatformInfo() {
|
||
const systemInfo = typeof uni.getSystemInfoSync === 'function' ? uni.getSystemInfoSync() : {};
|
||
return {
|
||
platform: systemInfo.platform || 'unknown',
|
||
uniPlatform: systemInfo.uniPlatform || 'unknown',
|
||
system: systemInfo.system || '',
|
||
model: systemInfo.model || '',
|
||
appVersion: systemInfo.appVersion || ''
|
||
};
|
||
},
|
||
arrayBufferToBase64(buffer) {
|
||
if (uni.arrayBufferToBase64) {
|
||
return uni.arrayBufferToBase64(buffer);
|
||
}
|
||
|
||
let binary = '';
|
||
const bytes = new Uint8Array(buffer);
|
||
const length = bytes.byteLength;
|
||
for (let i = 0; i < length; i += 1) {
|
||
binary += String.fromCharCode(bytes[i]);
|
||
}
|
||
|
||
if (typeof btoa === 'function') {
|
||
return btoa(binary);
|
||
}
|
||
|
||
throw new Error('当前环境不支持 ArrayBuffer 转 Base64');
|
||
},
|
||
readFileBase64ByPlus(filePath) {
|
||
return new Promise((resolve, reject) => {
|
||
if (typeof plus === 'undefined' || !plus.io || !plus.io.resolveLocalFileSystemURL) {
|
||
reject(new Error('PLUS 文件系统不可用'));
|
||
return;
|
||
}
|
||
|
||
plus.io.resolveLocalFileSystemURL(filePath, (entry) => {
|
||
entry.file((file) => {
|
||
const reader = new plus.io.FileReader();
|
||
reader.onloadend = (event) => {
|
||
const result = String(event?.target?.result || event?.result || '');
|
||
resolve(result.replace(/^data:.*?;base64,/, ''));
|
||
};
|
||
reader.onerror = (error) => reject(error);
|
||
reader.readAsDataURL(file);
|
||
}, reject);
|
||
}, reject);
|
||
});
|
||
},
|
||
readFileBase64ByRequest(filePath) {
|
||
return new Promise((resolve, reject) => {
|
||
uni.request({
|
||
url: filePath,
|
||
method: 'GET',
|
||
responseType: 'arraybuffer',
|
||
success: (res) => {
|
||
try {
|
||
resolve(this.arrayBufferToBase64(res.data));
|
||
} catch (error) {
|
||
reject(error);
|
||
}
|
||
},
|
||
fail: (error) => reject(error)
|
||
});
|
||
});
|
||
},
|
||
async getImageBase64(filePath) {
|
||
const platformInfo = this.getPlatformInfo();
|
||
console.log('[ReceivingCreate] 图片转Base64平台信息:', platformInfo);
|
||
console.log('[ReceivingCreate] 图片转Base64文件路径:', filePath);
|
||
|
||
const tryByFileSystemManager = () => new Promise((resolve, reject) => {
|
||
try {
|
||
const fileSystemManager = uni.getFileSystemManager && uni.getFileSystemManager();
|
||
if (!fileSystemManager || typeof fileSystemManager.readFile !== 'function') {
|
||
reject(new Error('getFileSystemManager.readFile 不可用'));
|
||
return;
|
||
}
|
||
|
||
console.log('[ReceivingCreate] 图片转Base64读取分支: getFileSystemManager.readFile');
|
||
fileSystemManager.readFile({
|
||
filePath,
|
||
encoding: 'base64',
|
||
success: ({ data }) => resolve(String(data || '')),
|
||
fail: (error) => reject(error)
|
||
});
|
||
} catch (error) {
|
||
reject(error);
|
||
}
|
||
});
|
||
|
||
return new Promise((resolve, reject) => {
|
||
if (!filePath) {
|
||
reject(new Error('图片路径无效'));
|
||
return;
|
||
}
|
||
|
||
tryByFileSystemManager()
|
||
.then(resolve)
|
||
.catch((fileSystemError) => {
|
||
console.warn('[ReceivingCreate] getFileSystemManager 分支失败:', fileSystemError);
|
||
console.log('[ReceivingCreate] 图片转Base64读取分支: plus.io.FileReader');
|
||
this.readFileBase64ByPlus(filePath)
|
||
.then(resolve)
|
||
.catch((plusError) => {
|
||
console.warn('[ReceivingCreate] plus.io.FileReader 分支失败:', plusError);
|
||
console.log('[ReceivingCreate] 图片转Base64读取分支: uni.request(arraybuffer)');
|
||
this.readFileBase64ByRequest(filePath)
|
||
.then(resolve)
|
||
.catch((requestError) => {
|
||
console.error('[ReceivingCreate] uni.request(arraybuffer) 分支失败:', requestError);
|
||
reject(requestError);
|
||
});
|
||
});
|
||
});
|
||
});
|
||
},
|
||
extractLicensePlate(response) {
|
||
if (!response) {
|
||
return '';
|
||
}
|
||
|
||
const directFields = [
|
||
response.license_plate,
|
||
response.licensePlate,
|
||
response.plate_number,
|
||
response.plateNo,
|
||
response.plate_number_text,
|
||
response.number
|
||
];
|
||
const directMatch = directFields.find(value => typeof value === 'string' && value.trim());
|
||
if (directMatch) {
|
||
return directMatch.trim();
|
||
}
|
||
|
||
const data = response.data;
|
||
if (data && typeof data === 'object') {
|
||
return this.extractLicensePlate(data);
|
||
}
|
||
|
||
if (Array.isArray(data) && data.length) {
|
||
return this.extractLicensePlate(data[0]);
|
||
}
|
||
|
||
return '';
|
||
},
|
||
async handleLicensePlateCapture() {
|
||
if (this.recognizingPlate) {
|
||
return;
|
||
}
|
||
|
||
try {
|
||
const chooseResult = await new Promise((resolve, reject) => {
|
||
uni.chooseImage({
|
||
count: 1,
|
||
sourceType: ['camera'],
|
||
sizeType: ['compressed'],
|
||
success: resolve,
|
||
fail: reject
|
||
});
|
||
});
|
||
|
||
const filePath = chooseResult?.tempFilePaths?.[0] || chooseResult?.tempFiles?.[0]?.path;
|
||
if (!filePath) {
|
||
throw new Error('未获取到拍照文件');
|
||
}
|
||
|
||
this.recognizingPlate = true;
|
||
uni.showLoading({ title: '识别车牌中', mask: true });
|
||
|
||
const imageBase64 = await this.getImageBase64(filePath);
|
||
if (!imageBase64) {
|
||
throw new Error('图片转换失败');
|
||
}
|
||
|
||
const recognizeParams = {
|
||
image_base64: imageBase64
|
||
};
|
||
console.log('[ReceivingCreate] 车牌识别请求参数:', {
|
||
...recognizeParams,
|
||
image_base64: `${imageBase64.slice(0, 80)}...`,
|
||
image_base64_length: imageBase64.length
|
||
});
|
||
|
||
const result = await this.$http('common.recognizeLicensePlate', recognizeParams, '', false);
|
||
console.log('[ReceivingCreate] 车牌识别接口返回:', result);
|
||
const licensePlate = this.extractLicensePlate(result);
|
||
if (!licensePlate) {
|
||
throw new Error((result && result.message) || '未识别到车牌号');
|
||
}
|
||
|
||
this.formData.license_plate = licensePlate;
|
||
this.showToastMessage('识别成功', 'success', {
|
||
speakText: `识别成功,车牌:${licensePlate}`
|
||
});
|
||
} catch (error) {
|
||
const errMsg = String(error?.errMsg || error?.message || error || '').toLowerCase();
|
||
if (errMsg.includes('cancel')) {
|
||
return;
|
||
}
|
||
|
||
this.showToastMessage((error && error.message) || '车牌识别失败');
|
||
} finally {
|
||
this.recognizingPlate = false;
|
||
uni.hideLoading();
|
||
}
|
||
},
|
||
normalizeUniScanResult(scanResult) {
|
||
if (!scanResult) {
|
||
return '';
|
||
}
|
||
|
||
if (typeof scanResult === 'string') {
|
||
return scanResult.trim();
|
||
}
|
||
|
||
if (typeof scanResult.result === 'string') {
|
||
return scanResult.result.trim();
|
||
}
|
||
|
||
if (Array.isArray(scanResult.result)) {
|
||
const firstResult = scanResult.result.find(item => item);
|
||
if (typeof firstResult === 'string') {
|
||
return firstResult.trim();
|
||
}
|
||
if (firstResult && typeof firstResult.data === 'string') {
|
||
return firstResult.data.trim();
|
||
}
|
||
}
|
||
|
||
if (typeof scanResult.data === 'string') {
|
||
return scanResult.data.trim();
|
||
}
|
||
|
||
return '';
|
||
},
|
||
handleTrackingScan() {
|
||
uni.scanCode({
|
||
onlyFromCamera: false,
|
||
scanType: ['qrCode', 'barCode', 'datamatrix', 'pdf417'],
|
||
success: (res) => {
|
||
const rawCode = this.normalizeUniScanResult(res);
|
||
if (!rawCode) {
|
||
this.showToastMessage('未识别到有效内容');
|
||
return;
|
||
}
|
||
|
||
this.formData.tracking_number = rawCode;
|
||
this.speakMessage('扫描成功');
|
||
},
|
||
fail: (error) => {
|
||
const errMsg = String(error?.errMsg || '').toLowerCase();
|
||
if (errMsg.includes('cancel')) {
|
||
return;
|
||
}
|
||
|
||
this.showToastMessage('扫码失败,请重试');
|
||
}
|
||
});
|
||
},
|
||
async loadStore() {
|
||
try {
|
||
const res = await this.$http("common.store", {});
|
||
if (res.stores) {
|
||
this.storeList = res.stores;
|
||
}
|
||
} catch (error) {
|
||
console.error('加载货主失败:', error);
|
||
}
|
||
},
|
||
async scan(data) {
|
||
// 解析广播扫描数据
|
||
// 携带REC标识头数据,自动填充录像设备
|
||
if (data && data.data) {
|
||
const scanText = data.data.trim();
|
||
|
||
// 检查是否包含REC标识头,不是则直接忽略
|
||
if (scanText.startsWith('REC')) {
|
||
// 提取REC后面的设备编号
|
||
// 格式可能为:REC-设备编号 或 REC设备编号
|
||
let deviceCode = '';
|
||
|
||
// 处理不同格式的REC标识
|
||
if (scanText.startsWith('REC-')) {
|
||
// 格式: REC-设备编号
|
||
deviceCode = scanText.substring(4).trim();
|
||
} else if (scanText.startsWith('REC')) {
|
||
// 格式: REC设备编号
|
||
deviceCode = scanText.substring(3).trim();
|
||
}
|
||
|
||
// 如果成功提取到设备编号
|
||
if (deviceCode) {
|
||
// 自动填充到录像设备字段
|
||
this.formData.video_device_id = deviceCode;
|
||
|
||
// 可选:给用户一个提示
|
||
this.showToastMessage(`已扫描录像设备: ${deviceCode}`, 'success');
|
||
}
|
||
// 如果没有提取到设备编号,也直接忽略,不提示用户
|
||
return;
|
||
}
|
||
|
||
if (this.formData.delivery_method === 'express') {
|
||
this.formData.tracking_number = scanText;
|
||
this.speakMessage('扫描成功');
|
||
}
|
||
}
|
||
},
|
||
async handleSubmit() {
|
||
try {
|
||
await this.$refs.formRef.validate();
|
||
|
||
this.submitting = true;
|
||
|
||
const submitData = {
|
||
...this.formData
|
||
};
|
||
|
||
const result = await this.$http("storage.receiving.create",submitData);
|
||
if(result.code==200){
|
||
this.showToastMessage('创建成功', 'success');
|
||
}else{
|
||
throw new Error("创建失败"+result.message);
|
||
|
||
}
|
||
setTimeout(() => {
|
||
uni.navigateTo({
|
||
url: `./receivingDetail?id=${result.id}`
|
||
});
|
||
}, 1500);
|
||
|
||
} catch (error) {
|
||
this.showToastMessage(this.extractErrorMessage(error, '创建失败'));
|
||
} finally {
|
||
this.submitting = false;
|
||
}
|
||
},
|
||
|
||
handleReset() {
|
||
this.speakMessage('请确认重置表单');
|
||
uni.showModal({
|
||
title: '确认重置',
|
||
content: '确定要重置所有表单数据吗?',
|
||
success: (res) => {
|
||
if (res.confirm) {
|
||
this.$refs.formRef.resetFields();
|
||
this.storeName = "不设置";
|
||
this.formData.store_id = null;
|
||
this.showToastMessage('已重置表单');
|
||
} else {
|
||
this.showToastMessage('已取消', 'none', {
|
||
speak: false
|
||
});
|
||
}
|
||
}
|
||
});
|
||
},
|
||
|
||
openStorePicker() {
|
||
this.showStorePicker = true;
|
||
},
|
||
|
||
handleStoreChange(option) {
|
||
if (!option) {
|
||
this.storeName = "不设置";
|
||
this.formData.store_id = null;
|
||
} else {
|
||
this.storeName = option.label;
|
||
this.formData.store_id = option.value;
|
||
}
|
||
this.showStorePicker = false;
|
||
},
|
||
},
|
||
|
||
onLoad() {
|
||
this.$store.dispatch('broadcast/setCallbacks', {
|
||
onResult: this.scan
|
||
});
|
||
this.$store.dispatch('broadcast/start');
|
||
this.loadStore();
|
||
},
|
||
onShow() {
|
||
this.$store.dispatch('broadcast/resume');
|
||
},
|
||
onHide() {
|
||
this.$store.dispatch('broadcast/pause');
|
||
this.stopSpeak();
|
||
},
|
||
onUnload() {
|
||
this.$store.dispatch('broadcast/stop');
|
||
this.stopSpeak();
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.container {
|
||
flex: 1;
|
||
height: 100rpx;
|
||
|
||
.form_box {
|
||
padding: 20rpx;
|
||
}
|
||
}
|
||
|
||
.section {
|
||
background-color: #fff;
|
||
border-radius: 16rpx;
|
||
padding: 30rpx;
|
||
margin-bottom: 30rpx;
|
||
|
||
.section-title {
|
||
font-size: 32rpx;
|
||
font-weight: bold;
|
||
color: #333;
|
||
margin-bottom: 30rpx;
|
||
padding-bottom: 20rpx;
|
||
border-bottom: 2rpx solid #f0f0f0;
|
||
}
|
||
}
|
||
|
||
.tracking-input-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
width: 100%;
|
||
|
||
::v-deep .u-input {
|
||
flex: 1;
|
||
}
|
||
|
||
.scan-camera-btn {
|
||
width: 76rpx;
|
||
height: 76rpx;
|
||
border-radius: 38rpx;
|
||
background: #eef4ff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-shrink: 0;
|
||
box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.12);
|
||
|
||
&:active {
|
||
opacity: 0.85;
|
||
}
|
||
}
|
||
}
|
||
|
||
.submit-area {
|
||
display: flex;
|
||
flex-direction: row;
|
||
padding: 20rpx;
|
||
gap: 20rpx;
|
||
border-top: 1px solid rgba(0, 0, 0, .3);
|
||
background-color: #FFF;
|
||
}
|
||
|
||
.store-select-display {
|
||
width: 100%;
|
||
min-height: 72rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.store-select-text {
|
||
flex: 1;
|
||
font-size: 28rpx;
|
||
color: #303133;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.store-select-placeholder {
|
||
color: #c0c4cc;
|
||
}
|
||
</style> |