Browse Source

采购计划策略 代码优化

hella_online_20240913
yufei_wang 2 months ago
parent
commit
30dfa75d50
  1. 32
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

32
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -13,10 +13,10 @@
<!-- 规则 --> <!-- 规则 -->
<div class="item"> <div class="item">
<div class="title">{{t('ts.规则').replace('ts.','')}}</div> <div class="title">{{t('ts.规则').replace('ts.','')}}</div>
<el-row> <el-row key="规则row">
<el-col :span="24"> <el-col :span="24" key="代码col">
<el-form-item :label="t('ts.代码').replace('ts.','')" prop="strategyCode"> <el-form-item key="formItem" :label="t('ts.代码').replace('ts.','')" prop="strategyCode">
<el-input key="strategyCode" <el-input key="代码input"
v-model="formData.strategyCode" v-model="formData.strategyCode"
:placeholder="t('ts.请输入代码').replace('ts.','')" :placeholder="t('ts.请输入代码').replace('ts.','')"
clearable clearable
@ -24,24 +24,24 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24" key="名称col">
<el-form-item :label="t('ts.名称').replace('ts.','')" prop="name"> <el-form-item key="名称formItem" :label="t('ts.名称').replace('ts.','')" prop="name">
<el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="名称name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24" key="描述col">
<el-form-item :label="t('ts.描述').replace('ts.','')" prop="description"> <el-form-item key="描述formItem" :label="t('ts.描述').replace('ts.','')" prop="description">
<el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input key="描述input" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" key="优先级col">
<el-form-item :label="t('ts.优先级').replace('ts.','')" prop="priority"> <el-form-item key="优先级formItem" :label="t('ts.优先级').replace('ts.','')" prop="priority">
<el-input-number key="priority" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" key="状态col">
<el-form-item :label="t('ts.状态').replace('ts.','')" prop="status"> <el-form-item key="状态formItem" :label="t('ts.状态').replace('ts.','')" prop="status">
<el-switch key="status" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/> <el-switch key="状态switch" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save