wenhongquan 3 years ago
parent
commit
1804db368c
1 changed files with 11 additions and 10 deletions
  1. 11 10
      src/views/Warehouse/index.vue

+ 11 - 10
src/views/Warehouse/index.vue

@@ -56,12 +56,14 @@
             <van-field
               v-model="item.name"
               label="名称"
-              :readonly="!iseditmap[index]"
+              :readonly="!isedit"
               input-align="right"
               placeholder="请选择名称"
-              @click="selectwz(index)"
-            />
-            
+            >
+             <template #button>
+               <van-button size="small" @click="selectwz(index)" type="primary" style="color:white">选择</van-button>
+             </template>
+            </van-field>
             <van-field
               v-model="item.model"
               label="型号"
@@ -129,8 +131,6 @@
           <van-picker
             :columns="goodlist"
             :default-index ="indexp"
-            confirm="sdss"
-            cancel="取消并编辑"
             @confirm="onConfirm"
             @cancel="showPicker = false"
           />
@@ -160,10 +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;
@@ -418,9 +419,9 @@ const getdata = () => {
 <style lang="scss">
 .content label,
 .content span {
-  font-size: 15px;
-  font-family: PingFangSC, PingFangSC-Regular;
-  color: #333333;
+  // font-size: 15px;
+  // font-family: PingFangSC, PingFangSC-Regular;
+  // color: #333333;
 }
 .bjbtn {
   font-size: 14px;