Переглянути джерело

指定门店的操作调整

lsx 2 роки тому
батько
коміт
30d19d227f
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      src/views/business/ticket/create.vue

+ 4 - 3
src/views/business/ticket/create.vue

@@ -139,6 +139,7 @@
               style="width: 240px;"
               filterable
               clearable
+              multiple
             >
               <el-option
                 v-for="(item, index) in siteList"
@@ -152,7 +153,7 @@
               </el-option>
             </el-select>
           </el-form-item>
-          <div class="tip" v-if="form.type == 'online'">注:盲票指定门店后只在该门店扫码时展示该盲票</div>
+          
           <el-form-item label="销售范围" prop="saleChannelType" v-if="form.type == 'offline'">
             <el-radio-group v-model="form.saleChannelType" size="small" @change="$refs['form'].clearValidate()">
               <el-radio :label="1">所有渠道</el-radio>
@@ -400,7 +401,7 @@ export default {
           disabled:true,
           title, picUrl, quantity, pkgUnit, saleCommRate, saleChannelType,
           channelIdList: saleChannelType == 2 ? channelList.map(item => item.channelId) : [],
-          siteIdList: saleChannelType == 2 ? channelList[0].channelId : [],
+          siteIdList: saleChannelType == 2 ? channelList.map(item => item.channelId) : [],
           type: JSON.parse(type).value,
           facePrice:accDiv(facePrice, 100),
           salePrice:accDiv(salePrice, 100),
@@ -565,7 +566,7 @@ export default {
             data.channelIdList = []
           }
           if( data.type == 'online' && data.saleChannelType == 2 ) {
-            data.channelIdList = [data.siteIdList]
+            data.channelIdList = data.siteIdList
           }
           if( data.type == 'offline' && data.saleChannelType == 1 ){
             data.siteIdList = []