| | |
| | | </view> |
| | | </wd-form-item> |
| | | <wd-form-item label="直径(mm)" prop="diameter" required> |
| | | <wd-input v-model="item.dia" :disabled="false" placeholder="请输入"></wd-input> |
| | | <wd-input |
| | | v-model="item.dia" |
| | | :disabled="false" |
| | | placeholder="请输入" |
| | | type="number" |
| | | ></wd-input> |
| | | </wd-form-item> |
| | | <wd-form-item label="长度(m)" prop="length" required> |
| | | <wd-input v-model="item.length" :disabled="false" placeholder="请输入"></wd-input> |
| | | <wd-input |
| | | v-model="item.length" |
| | | :disabled="false" |
| | | placeholder="请输入" |
| | | type="number" |
| | | ></wd-input> |
| | | </wd-form-item> |
| | | <wd-form-item label="卷绕紧密" prop="windingTightness" required> |
| | | <wd-radio-group v-model="item.windingTightness" cell shape="dot"> |
| | |
| | | v-model="item.edgeDistance" |
| | | :disabled="false" |
| | | placeholder="请输入" |
| | | type="number" |
| | | ></wd-input> |
| | | </wd-form-item> |
| | | </wd-form> |
| | |
| | | ></wd-input> |
| | | </wd-form-item> |
| | | <wd-form-item label="绞向" prop="twistedDirection" required> |
| | | <wd-input |
| | | <wd-select-picker |
| | | v-model="localSteelData.twistedDirection" |
| | | :columns="twistDirectionColumns" |
| | | type="radio" |
| | | placeholder="请选择绞向" |
| | | :clearable="false" |
| | | :disabled="false" |
| | | placeholder="请输入" |
| | | ></wd-input> |
| | | /> |
| | | </wd-form-item> |
| | | <wd-form-item label="外径" prop="outerDiameter" required> |
| | | <wd-input |
| | | v-model="localSteelData.outerDiameter" |
| | | :disabled="false" |
| | | placeholder="请输入" |
| | | type="number" |
| | | ></wd-input> |
| | | </wd-form-item> |
| | | <wd-form-item label="划伤" prop="scratch" required> |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { ref, watch, nextTick } from "vue"; |
| | | import { ref, watch, nextTick, onMounted } from "vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import TwistApi from "@/api/product/twist"; |
| | | import ManageApi from "@/api/product/manage"; |
| | |
| | | const paintQualityOptions = ref<Array<{ label: string; value: string | number }>>([]); |
| | | const weldQualityOptions = ref<Array<{ label: string; value: string | number }>>([]); |
| | | |
| | | // 绞向选项 |
| | | const twistDirectionColumns = [ |
| | | { label: "左向", value: "左向" }, |
| | | { label: "右向", value: "右向" }, |
| | | ]; |
| | | |
| | | // 从数据字典中加载数据 |
| | | const loadDictData = async () => { |
| | | try { |