Browse Source

新增点击全选

dev
qb 4 months ago
parent
commit
8401ca1f72
  1. 29
      src/views/distribution/inventory/CreateOrder.vue
  2. 29
      src/views/waybill/CreateZeroOrder.vue

29
src/views/distribution/inventory/CreateOrder.vue

@ -616,6 +616,7 @@
<el-form-item label="件数:" label-width="fit-content" prop="num" class="el-times">
<el-input-number
@focus="handleInputFocus"
:disabled="details.submitType === 'haveData'"
:controls="false"
v-model="item.num"
@ -631,6 +632,7 @@
<el-form-item label="体积(方):" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="item.volume"
controls-position="right"
@ -644,6 +646,7 @@
<el-form-item label="重量(kg):" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="item.weight"
controls-position="right"
@ -657,6 +660,7 @@
<el-form-item label="单价:" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="item.price"
controls-position="right"
@ -670,6 +674,7 @@
<el-form-item label="运费小计:" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="item.subtotalFreight"
:precision="2"
@ -742,6 +747,7 @@
></el-input> -->
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -755,6 +761,7 @@
<el-form-item label="送货费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -767,6 +774,7 @@
<el-form-item label="提货费:">
<el-input-number
@focus="handleInputFocus"
:disabled="!query.isPickUp"
:controls="false"
:precision="2"
@ -779,6 +787,7 @@
<el-form-item label="仓库管理费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -791,6 +800,7 @@
<el-form-item label="仓储费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -805,6 +815,7 @@
<el-row>
<el-form-item label="仓储操作费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -817,6 +828,7 @@
<el-form-item label="仓储分拣费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -829,6 +841,7 @@
<el-form-item label="其它费用:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -840,6 +853,7 @@
</el-form-item>
<el-form-item label="保价费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
v-model="query.insuranceFee"
@ -851,6 +865,7 @@
</el-form-item>
<el-form-item label="申明价值:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
v-model="query.claimingValue"
@ -865,6 +880,7 @@
<el-row>
<el-form-item label="安装费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -917,6 +933,7 @@
<el-form-item label-width="fit-content" label="现付:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -931,6 +948,7 @@
<el-row>
<el-form-item label-width="fit-content" label="到付:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -943,6 +961,7 @@
<el-form-item label-width="fit-content" label="月结:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -955,6 +974,7 @@
<el-form-item label-width="fit-content" label="回付:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -980,6 +1000,7 @@
<el-form-item label="三方操作费:" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="query.thirdOperationFee"
controls-position="right"
@ -1018,6 +1039,7 @@
<el-form-item label="回单" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="query.receiptNum"
controls-position="right"
@ -1167,6 +1189,7 @@
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '方数'">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="slotProps.scope.row.confirmVolume"
:precision="4"
@ -1176,6 +1199,7 @@
<template v-else-if="slotProps.scope.column.label === '重量'">
<el-input-number
@focus="handleInputFocus"
:controls="false"
v-model="slotProps.scope.row.confirmWeight"
:precision="3"
@ -3717,6 +3741,11 @@ const handleComputedPlanPrice = submitData => {
}
};
/** 聚焦后全选 */
const handleInputFocus = e => {
e.srcElement.select();
};
const getTranslationArr = codeArr => {
const _nameArr = [];
let _item = {};

29
src/views/waybill/CreateZeroOrder.vue

@ -575,6 +575,7 @@
<el-form-item label="件数:" label-width="fit-content" prop="num" class="el-times">
<el-input-number
@focus="handleInputFocus"
:disabled="query.zeroEditStatus === 0"
:value-on-clear="0"
:controls="false"
@ -588,6 +589,7 @@
<el-form-item label="体积(方):" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
v-model="item.volume"
@ -600,6 +602,7 @@
<el-form-item label="重量(kg):" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
v-model="item.weight"
@ -612,6 +615,7 @@
<el-form-item label="单价:" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
v-model="item.price"
@ -624,6 +628,7 @@
<el-form-item label="运费小计:" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
v-model="item.subtotalFreight"
@ -681,6 +686,7 @@
<el-form-item label="运费:">
<!-- <el-input v-model="details.totalObj.totalFreight" disabled></el-input> -->
<el-input-number
@focus="handleInputFocus"
:controls="false"
:precision="2"
:min="0"
@ -693,6 +699,7 @@
<el-form-item label="送货费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -704,6 +711,7 @@
<el-form-item label="提货费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -715,6 +723,7 @@
<el-form-item label="仓库管理费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -726,6 +735,7 @@
<el-form-item label="仓储费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -739,6 +749,7 @@
<el-row>
<el-form-item label="仓储操作费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -750,6 +761,7 @@
<el-form-item label="仓储分拣费:">
<el-input-number
@focus="handleInputFocus"
:controls="false"
controls-position="right"
:precision="2"
@ -762,6 +774,7 @@
<el-form-item label="其它费用:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -772,6 +785,7 @@
</el-form-item>
<el-form-item label="保价费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -782,6 +796,7 @@
</el-form-item>
<el-form-item label="申明价值:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -795,6 +810,7 @@
<el-row>
<el-form-item label="回扣:" style="flex: none !important">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -805,6 +821,7 @@
</el-form-item>
<el-form-item label="安装费:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -862,6 +879,7 @@
<el-form-item label-width="fit-content" label="现付:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -875,6 +893,7 @@
<el-row>
<el-form-item label-width="fit-content" label="到付:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -886,6 +905,7 @@
<el-form-item label-width="fit-content" label="月结:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -897,6 +917,7 @@
<el-form-item label-width="fit-content" label="回付:">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -922,6 +943,7 @@
<div style="font-size: 14px">代收货款:</div>
<el-form-item label-width="0">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
:precision="2"
@ -947,6 +969,7 @@
<el-form-item label="三方操作费:" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
v-model="query.thirdOperationFee"
@ -984,6 +1007,7 @@
<el-form-item label="回单" label-width="fit-content" class="el-times">
<el-input-number
@focus="handleInputFocus"
:value-on-clear="0"
:controls="false"
v-model="query.receiptNum"
@ -2617,6 +2641,11 @@ const handlePrice = (isAll = false, type) => {
(isAll || type === 'warehouseSorting') && handleWarehouseSortingFee();
};
/** 聚焦后全选 */
const handleInputFocus = e => {
e.srcElement.select();
};
/** 重置值 */
const handleRefreshText = (key, value, refreshValue?: string | number) => {
if (value) return;

Loading…
Cancel
Save