Parcourir la source

Merge branch 'master' of http://132.232.92.186:3000/XinXiBu/oa-system

liuhj il y a 1 an
Parent
commit
bc4b4529fe
1 fichiers modifiés avec 12 ajouts et 2 suppressions
  1. 12 2
      src/components/OP/OpCarTouristGuideGroundId.vue

+ 12 - 2
src/components/OP/OpCarTouristGuideGroundId.vue

@@ -80,6 +80,12 @@
             </el-form>
             <el-form :model="OpCarTouristGuideGroundData" ref="OpCarTouristGuideGroundData"
                 :rules="OpCarTouristGuideGroundDataRules" label-width="100px" class="demo-ruleForm">
+                <div>
+                    <el-form-item label="费用名称:" prop="priceName" label-width="160px">
+                            <el-input placeholder="费用名称" v-model="OpCarTouristGuideGroundData.priceName">
+                            </el-input>
+                        </el-form-item>
+                </div>
                 <div style="display: flex;">
                     <div style="width: 25%;display: flex;">
                         <div style="width: 70%;">
@@ -234,7 +240,8 @@ export default {
                 orbitalPrivateTransfer: 0,
                 createUserId: 0,
                 remark: '',
-                priceType: 0
+                priceType: 0,
+                priceName:'',
             },
             IsAuditGM: 0,
             VisitDate: '',
@@ -279,6 +286,7 @@ export default {
                             }
                           }, trigger: 'blur'
                 },],
+                priceName: { required: true, message: '请输入费用名称', trigger: ['blur', 'change'] },
             },
             restaurants: [],
             options: [],
@@ -415,6 +423,7 @@ export default {
                     that.OpCarTouristGuideGroundData.orbitalPrivateTransfer = carTouristGuideGround.orbitalPrivateTransfer;
                     that.OpCarTouristGuideGroundData.remark = carTouristGuideGround.remark;
                     that.OpCarTouristGuideGroundData.priceType = carTouristGuideGround.priceType;
+                    that.OpCarTouristGuideGroundData.priceName = carTouristGuideGround.priceName;
                 }
             })
         },
@@ -454,7 +463,8 @@ export default {
                                     orbitalPrivateTransfer: that.OpCarTouristGuideGroundData.orbitalPrivateTransfer,
                                     createUserId: that.OpCarTouristGuideGroundData.createUserId,
                                     remark: that.OpCarTouristGuideGroundData.remark,
-                                    priceType: that.OpCarTouristGuideGroundData.priceType
+                                    priceType: that.OpCarTouristGuideGroundData.priceType,
+                                    priceName: that.OpCarTouristGuideGroundData.priceName,
                                 }
                             }).then(function (res) {
                                 if (res.data.code == 200) {