|
@@ -13,7 +13,7 @@
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="classId" label="分类(class)">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="classId" label="分类(class)">
|
|
- <a-input placeholder="请输入" v-model:value="model.classId" AutoComplete='off'/>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="model.classId" placeholder="请选择" dictCode="project-class"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
@@ -68,22 +68,22 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="measurementUnit" label="计量单位(measurement unit)">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="measurementUnit" label="计量单位(measurement unit)">
|
|
- <a-input placeholder="请输入" v-model:value="model.measurementUnit" AutoComplete='off'/>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="model.measurementUnit" placeholder="请选择" dictCode="measurement_unit"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="harmfulSubstances" label="有害物质(harmful substances)">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="harmfulSubstances" label="有害物质(harmful substances)">
|
|
- <a-input placeholder="请输入" v-model:value="model.harmfulSubstances" AutoComplete='off'/>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="model.harmfulSubstances" placeholder="请选择" dictCode="yes_or_no" stringToNumber/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="virtualProduct" label="虚拟产品(virtual product)">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="virtualProduct" label="虚拟产品(virtual product)">
|
|
- <a-input placeholder="请输入" v-model:value="model.virtualProduct" AutoComplete='off'/>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="model.virtualProduct" placeholder="请选择" dictCode="yes_or_no" stringToNumber/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="commissionRebate" label="返佣(commission rebate)">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="commissionRebate" label="返佣(commission rebate)">
|
|
- <a-input placeholder="请输入" v-model:value="model.commissionRebate" AutoComplete='off'/>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="model.commissionRebate" placeholder="请选择" dictCode="yes_or_no" stringToNumber/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
@@ -93,7 +93,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status" label="状态(status)">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="status" label="状态(status)">
|
|
- <a-input placeholder="请输入" v-model:value="model.status" AutoComplete='off'/>
|
|
|
|
|
|
+ <JDictSelectTag v-model:value="model.status" placeholder="请选择" dictCode="valid_status" stringToNumber/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
@@ -104,6 +104,7 @@
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
|
+ import { JDictSelectTag} from '/@/components/Form';
|
|
import { ref, reactive, toRaw, toRefs, watch, nextTick, onMounted, getCurrentInstance } from 'vue';
|
|
import { ref, reactive, toRaw, toRefs, watch, nextTick, onMounted, getCurrentInstance } from 'vue';
|
|
const emit = defineEmits([ 'success']); //定义emit
|
|
const emit = defineEmits([ 'success']); //定义emit
|
|
const form = ref()
|
|
const form = ref()
|