| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="accuracyClass" label="精度等级"> |
| | | <j-dict-select-tag |
| | | :disabled="disableSubmit" |
| | | type="list" |
| | | v-model="model.accuracyClass" |
| | | :triggerChange="true" |
| | | dictCode="accuracy_class" |
| | | :placeholder="disableSubmit?'':'请选择精度等级'" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="applicationType" |
| | | label="工具类型"> |
| | | <j-dict-select-tag dict-code="equipment_category" :placeholder="disableSubmit?'':'请选择工具类型'" |
| | | <j-dict-select-tag dict-code="application_type" :placeholder="disableSubmit?'':'请选择工具类型'" |
| | | v-model="model.applicationType" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="storageLocation" label="存储位置"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入存储位置'" v-model="model.storageLocation" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="lowerInventory" label="最低库存"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入最低库存'" v-model="model.lowerInventory" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | |
| | | <a-input :placeholder="disableSubmit?'':'请输入最高库存'" v-model="model.highestInventory" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="auxiliaryUnitFlag" label="是否有计量辅单位"> |
| | | <a-radio-group v-model="model.auxiliaryUnitFlag" :placeholder="disableSubmit?'':'请选择是否有计量辅单位'" :disabled="disableSubmit"> |
| | |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="mainUnit" label="计量主单位"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入计量主单位'" v-model="model.mainUnit" :disabled="disableSubmit"/> |
| | |
| | | <a-input :placeholder="disableSubmit?'':'请输入计量辅单位'" v-model="model.auxiliaryUnit" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="supplierId" label="厂家"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入厂家'" v-model="model.supplierId" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="price" label="单价"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入单价'" v-model="model.price" :disabled="disableSubmit"/> |
| | |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | | components: { JSelectProduction }, |
| | | components: { JSelectProduction,JDictSelectTag }, |
| | | data() { |
| | | return { |
| | | title: '操作', |
| | |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | accuracyClass:[ |
| | | { required: true, message: '请选择精度等级' }, |
| | | ], |
| | | toolCode: [ |
| | | { required: true, message: '请输入工具编码' }, |
| | | { validator: this.validateNum } |