|
@@ -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();
|
|
|
};
|