From b44505d20c6815587cb52afdfa5d7750b01af6a1 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 8 Jul 2024 14:41:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E6=96=B9=E6=96=B0=E5=A2=9E=E5=8F=B8?= =?UTF-8?q?=E6=9C=BA=E5=92=8C=E8=BD=A6=E8=BE=86=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SelectBox/SelectBox.vue | 5 +- src/components/edittablehead/index.vue | 4 +- .../artery/addTripartiteTransfer.vue | 128 ++++++++++++++---- 3 files changed, 105 insertions(+), 32 deletions(-) diff --git a/src/components/SelectBox/SelectBox.vue b/src/components/SelectBox/SelectBox.vue index 76e9deda..fe2584ee 100644 --- a/src/components/SelectBox/SelectBox.vue +++ b/src/components/SelectBox/SelectBox.vue @@ -8,6 +8,7 @@ @blur="handleBlur" @change="handleChange" :clearable="props.clearable !== false" + :disabled="props.disabled === true" >
{ for (let i = 0; i < _oldArr.length; i++) { const value = _oldArr[i]; - if (item.prop !== value.prop) continue; + if (item.prop + item.label + item.type !== value.prop + value.label + value.type) continue; _setArr.push(item); _oldArr.splice(i, 1); break; @@ -170,7 +170,7 @@ const initTable = async () => { _setArr.push(..._oldArr); console.log('_setArr :>> ', _setArr); - columnRef.value = _setArr; + columnRef.value = [..._setArr]; handleClearTableQuery(_setArr); emit('update:modelValue', _setArr); } catch (error) { diff --git a/src/views/distribution/artery/addTripartiteTransfer.vue b/src/views/distribution/artery/addTripartiteTransfer.vue index 60a18731..5c7ac63c 100644 --- a/src/views/distribution/artery/addTripartiteTransfer.vue +++ b/src/views/distribution/artery/addTripartiteTransfer.vue @@ -70,6 +70,16 @@ class="m-2" placeholder="运费分摊方式" size="default" + @change=" + val => { + console.log('val :>> ', val); + if (val + '' === '2') return; + details.form.driverName = ''; + details.form.driverId = ''; + details.form.driverMobile = ''; + details.form.carNumber = ''; + } + " >
- +
- - +
-