浏览代码

媒体来源可修改

xgb 3 天之前
父节点
当前提交
0a47b1e071
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      src/views/hisStore/components/productOrder.vue

+ 20 - 0
src/views/hisStore/components/productOrder.vue

@@ -305,6 +305,18 @@
                     />
             </el-select>
         </el-form-item>
+        <!--     媒体来源   -->
+        <el-form-item label="媒体来源" prop="orderMedium" >
+          <el-select style="width: 200px" v-model="editForm.orderMedium" placeholder="请选择媒体来源" clearable size="small" >
+            <el-option
+              v-for="item in orderMediumOptions"
+              :key="item.dictValue"
+              :label="item.dictLabel"
+              :value="item.dictValue"
+            />
+          </el-select>
+        </el-form-item>
+
 
         <el-form-item label="物流状态" prop="deliveryStatus" >
 
@@ -626,6 +638,7 @@ export default {
         mark:"",
         userPhone:null,
         offlinePayAmount: 0.00,
+        orderMedium:null,
       },
       editRules: {
         userPhone: [
@@ -636,6 +649,7 @@ export default {
       createTypeOptions:[],
       deliveryStatusOptions:[],
       orderTypeOptions:[],
+      orderMediumOptions:[],
       payTypeOptions:[],
       statusOptions:[],
       certificates:null,
@@ -656,6 +670,9 @@ export default {
     this.getDicts("store_order_type").then((response) => {
       this.orderTypeOptions = response.data;
     });
+    this.getDicts("store_order_medium").then((response) => {
+      this.orderMediumOptions = response.data;
+    });
     this.getDicts("store_order_status").then((response) => {
       this.statusOptions = response.data;
     });
@@ -907,6 +924,9 @@ export default {
         if(this.order.orderType!=null){
           this.editForm.orderType=this.order.orderType.toString();
         }
+        if(this.order.orderMedium!=null){
+          this.editForm.orderMedium=this.order.orderMedium.toString();
+        }
         this.editForm.scheduleId=this.order.scheduleId;
         this.editForm.orderVisit = this.order.orderVisit;