MONSTER-ygh 6 месяцев назад
Родитель
Сommit
ba33747cd6

+ 10 - 2
src/views/tourism/productManagement/detailsBox/commodityListDetails.vue

@@ -182,7 +182,11 @@ export default {
         this.formStatus = 1
       }else if(model=='EDITInit' || model=='DEATILSInit') { // 新增
         await this.getTableDeatilsFun(row)
-        await this.getStockList(row)
+        if(row.thirdGoodsSn){
+          await this.getStockList(row)
+        }else {
+          this.$set(this.form,'stockNum',row.quantity)
+        }
       }
       this.loading = false
     },
@@ -237,7 +241,11 @@ export default {
        const id = row.id
       this.loading = true
       try {
-        let res = await getTableDeatilsByIdApi(this.configUrl.stockList,{goodsId: row.goodsId})
+        let res = await getTableDeatilsByIdApi(this.configUrl.stockList,{
+          goods: row.thirdGoodsSn,
+          Page:1,
+          Limit:10,
+        })
         if(res.code == 200) {
           this.$set(this.form,'stockNum',0)
           if(res.data && res.data.length > 0) {

+ 4 - 0
src/views/tourism/productManagement/formBox/hotelsManagementForm.vue

@@ -155,6 +155,9 @@
               </el-form-item>
             </div>
           </el-form-item>
+          <el-form-item label="酒店编号:" prop="roomTypeCode">
+            <el-input style="width: 350px;" v-model="form.roomTypeCode" placeholder="请输入酒店编号" />
+          </el-form-item>
           <el-form-item label-width="80px" label="酒店介绍">
             <editor ref="editor" v-model="form.shopDetail" :fileSize="20" :min-height="200" />
           </el-form-item>
@@ -342,6 +345,7 @@ export default {
         longitude: [{ required: true, message: "请输入经度", trigger: ["change","blur"] }],
         latitude: [{ required: true, message: "请输入纬度", trigger: ["change","blur"] }],
         contactsMobile: [{ required: true, message: "请输入酒店电话", trigger: ["change","blur"] }],
+        roomTypeCode: [{ required: false, message: "请输入酒店编号", trigger: ["change","blur"] }],
 
         cancelOrderFlag: [{ required: true, message: "请选择是否自动审核退款", trigger: ["change","blur"] }],
         cancelOrderTime: [{ required: false, message: "请输入分钟", trigger: ["change","blur"] }],

+ 7 - 3
src/views/tourism/productManagement/formBox/houseTypeListForm.vue

@@ -111,13 +111,16 @@
             <el-input style="width: 350px;" v-model="form.networkProfile" placeholder="请输入网络" maxlength="50" show-word-limit />
           </el-form-item>
           <el-form-item label="窗户:" prop="windowsProfile">
-            <el-input style="width: 350px;" v-model="form.windowsProfile" placeholder="请输窗户" maxlength="50" show-word-limit />
+            <el-input style="width: 350px;" v-model="form.windowsProfile" placeholder="请输窗户" maxlength="50" show-word-limit />
           </el-form-item>
           <el-form-item label="有无早餐:" prop="dinnerProfile">
-            <el-input style="width: 350px;" v-model="form.dinnerProfile" placeholder="请输有无早餐" maxlength="50" show-word-limit />
+            <el-input style="width: 350px;" v-model="form.dinnerProfile" placeholder="请输有无早餐" maxlength="50" show-word-limit />
           </el-form-item>
           <el-form-item label="其他信息:" prop="otherProfile">
-            <el-input style="width: 350px;" type="textarea" v-model="form.otherProfile" placeholder="请输其他信息" maxlength="200" show-word-limit />
+            <el-input style="width: 350px;" type="textarea" v-model="form.otherProfile" placeholder="请输入其他信息" maxlength="200" show-word-limit />
+          </el-form-item>
+          <el-form-item label="房型编号:" prop="roomTypeCode">
+            <el-input style="width: 350px;" v-model="form.roomTypeCode" placeholder="请输入房型编号" />
           </el-form-item>
           <div class="form-title"><span>订购规则</span></div>
           <el-form-item label="单笔订单的最大预购数量:" prop="buyMax" label-width="320px">
@@ -267,6 +270,7 @@ export default {
         windowsProfile: [{ required: true, message: "请输入窗户", trigger: ["change","blur"] }],
         dinnerProfile: [{ required: true, message: "请输入有无早餐", trigger: ["change","blur"] }],
         otherProfile: [{ required: true, message: "请输入其他信息", trigger: ["change","blur"] }],
+        roomTypeCode: [{ required: false, message: "请输入房型编号", trigger: ["change","blur"] }],
        
         buyMax: [{ required: true, message: "请输入数量", trigger: ["change","blur"] }],
         inRoom: [{ required: true, message: "请选择时间", trigger: ["change","blur"] }],