Bläddra i källkod

Merge branch 'cucu' of http://124.70.211.186:3000/zhangqi/laisiao into cucu

codeMan 1 år sedan
förälder
incheckning
e497956d3c
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      src/DRP/SDrpManagement/order/modules/add.vue

+ 6 - 2
src/DRP/SDrpManagement/order/modules/add.vue

@@ -22,8 +22,7 @@
                 placeholder="选择订单类型"
                 style="width: 100%"
               >
-                <a-select-option value="标准订单">标准订单</a-select-option>
-                <a-select-option value="特殊订单">特殊订单</a-select-option>
+                <a-select-option v-for="item in typeOptions" :key="item.index" :value="item.value">{{item.remarks}}</a-select-option>
               </a-select>
             </a-form-item>
           </a-col>
@@ -207,6 +206,11 @@ const submit = async () => {
     console.log('Failed:', errorInfo);
   }
 };
+const typeOptions = ref([])
+const orderType = async ()=>{
+  const res = await Api.optionstype('ordertype')
+  typeOptions.value = res.data
+}
 const resetForm = () => {
   formRef.value.resetFields();
 };