|
@@ -56,7 +56,7 @@
|
|
|
<van-field
|
|
|
v-model="item.name"
|
|
|
label="名称"
|
|
|
- :readonly="!isedit"
|
|
|
+ :readonly="!iseditmap[index]"
|
|
|
input-align="right"
|
|
|
placeholder="请选择名称"
|
|
|
@click="selectwz(index)"
|
|
@@ -129,6 +129,8 @@
|
|
|
<van-picker
|
|
|
:columns="goodlist"
|
|
|
:default-index ="indexp"
|
|
|
+ confirm="sdss"
|
|
|
+ cancel="取消并编辑"
|
|
|
@confirm="onConfirm"
|
|
|
@cancel="showPicker = false"
|
|
|
/>
|
|
@@ -158,7 +160,11 @@ import { useCommonStore } from '@/store';
|
|
|
const whdata = reactive({
|
|
|
value: { name: '', manageUnit: '', contactName: '', contactPhone: '' },
|
|
|
});
|
|
|
+const iseditmap = ref({})
|
|
|
const showPicker = ref(false);
|
|
|
+const onCancel = ()=>{
|
|
|
+ showPicker.value = false;
|
|
|
+}
|
|
|
const onConfirm=(value)=>{
|
|
|
wzdata.aar[currentindex.value].name = value;
|
|
|
showPicker.value = false;
|