b354224e197dc12b5161123156e2aa8de4388656.svn-base 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <div class="app-container">
  3. <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="250px" style="margin-top: 40px;">
  4. <el-row>
  5. <el-col :span="12">
  6. <el-form-item label="是否可取前一天计划:" prop="upkeepType">
  7. <el-select v-model="createTemp.upkeepType" placeholder="是否可取前一天计划" class="filter-item" style="width:100%">
  8. <el-option v-for="item in planBeforeDayList" :key="item.id" :label="item.name" :value="item.id" />
  9. </el-select>
  10. </el-form-item>
  11. </el-col>
  12. <el-col :span="12">
  13. <el-form-item label="是否可取后一天计划:" prop="upkeepType">
  14. <el-select v-model="createTemp.upkeepType" placeholder="是否可取后一天计划" class="filter-item" style="width:100%">
  15. <el-option v-for="item in planNextDayList" :key="item.id" :label="item.name" :value="item.id" />
  16. </el-select>
  17. </el-form-item>
  18. </el-col>
  19. </el-row>
  20. <el-row>
  21. <el-col :span="12">
  22. <el-form-item label="是否启用补料:" prop="upkeepType">
  23. <el-select v-model="createTemp.upkeepType" placeholder="是否启用补料" class="filter-item" style="width:100%">
  24. <el-option v-for="item in isSupplementList" :key="item.id" :label="item.name" :value="item.id" />
  25. </el-select>
  26. </el-form-item>
  27. </el-col>
  28. <el-col :span="12">
  29. <el-form-item label="是否启用剩料:" prop="upkeepType">
  30. <el-select v-model="createTemp.upkeepType" placeholder="是否启用剩料" class="filter-item" style="width:100%">
  31. <el-option v-for="item in isLeftoverMaterialList" :key="item.id" :label="item.name" :value="item.id" />
  32. </el-select>
  33. </el-form-item>
  34. </el-col>
  35. </el-row>
  36. <el-row>
  37. <el-col :span="12">
  38. <el-form-item label="日计划报表小数点位数:" prop="upkeepType">
  39. <el-select v-model="createTemp.upkeepType" placeholder="日计划报表小数点位数" class="filter-item" style="width:100%">
  40. <el-option v-for="item in decimalPlacesList" :key="item.id" :label="item.name" :value="item.id" />
  41. </el-select>
  42. </el-form-item>
  43. </el-col>
  44. <el-col :span="12">
  45. <el-form-item label="启用饲料锁定牛头数:" prop="upkeepType">
  46. <el-select v-model="createTemp.upkeepType" placeholder="启用饲料锁定牛头数" class="filter-item" style="width:100%">
  47. <el-option v-for="item in isLockBullsList" :key="item.id" :label="item.name" :value="item.id" />
  48. </el-select>
  49. </el-form-item>
  50. </el-col>
  51. </el-row>
  52. <el-row>
  53. <el-col :span="12">
  54. <el-form-item label="剩料处理选项:" prop="upkeepType">
  55. <el-select v-model="createTemp.upkeepType" placeholder="剩料处理选项" class="filter-item" style="width:100%">
  56. <el-option v-for="item in disposalList" :key="item.id" :label="item.name" :value="item.id" />
  57. </el-select>
  58. </el-form-item>
  59. </el-col>
  60. <el-col :span="12">
  61. <el-form-item label="水分调节选项:" prop="upkeepType">
  62. <el-select v-model="createTemp.upkeepType" placeholder="水分调节选项" class="filter-item" style="width:100%">
  63. <el-option v-for="item in waterConditioningList" :key="item.id" :label="item.name" :value="item.id" />
  64. </el-select>
  65. </el-form-item>
  66. </el-col>
  67. </el-row>
  68. <el-row>
  69. <el-col :span="12">
  70. <el-form-item label="默认发料超出重量提醒比例:" prop="upkeepCycel">
  71. <el-input ref="upkeepCycel" v-model="createTemp.upkeepCycel" class="filter-item" placeholder="请输入超出比例" type="text" />
  72. </el-form-item>
  73. </el-col>
  74. <el-col :span="12">
  75. <el-form-item label="默认发料超出重量禁止比例:" prop="upkeepCycel">
  76. <el-input ref="upkeepCycel" v-model="createTemp.upkeepCycel" class="filter-item" placeholder="请输入禁止比例" type="text" />
  77. </el-form-item>
  78. </el-col>
  79. </el-row>
  80. <el-row>
  81. <el-col :span="12">
  82. <el-form-item label="库存预警天数:" prop="upkeepCycel">
  83. <el-input ref="upkeepCycel" v-model="createTemp.upkeepCycel" class="filter-item" placeholder="请输入库存预警天数" type="text" />
  84. </el-form-item>
  85. </el-col>
  86. <el-col :span="12">
  87. <el-form-item label="饲料价格计算方式:" prop="upkeepCycel">
  88. <el-select v-model="createTemp.upkeepType" placeholder="水分调节选项" class="filter-item" style="width:100%">
  89. <el-option v-for="item in priceCalculationList" :key="item.id" :label="item.name" :value="item.id" />
  90. </el-select>
  91. </el-form-item>
  92. </el-col>
  93. </el-row>
  94. <el-row>
  95. <el-col :span="12">
  96. <el-form-item label="班次数量:" prop="upkeepCycel">
  97. <el-select v-model="createTemp.upkeepType" placeholder="水分调节选项" class="filter-item" style="width:100%">
  98. <el-option v-for="item in numberList" :key="item.id" :label="item.name" :value="item.id" />
  99. </el-select>
  100. </el-form-item>
  101. </el-col>
  102. </el-row>
  103. </el-form>
  104. <div slot="footer" class="dialog-footer" style="bottom: 0;">
  105. <el-button class="success" :disabled="isokDisable" @click="handleSave">保存</el-button>
  106. <el-button class="warning" :disabled="isokDisable" @click="handleRecovery">恢复默认</el-button>
  107. </div>
  108. </div>
  109. </template>
  110. <script>
  111. export default {
  112. name: 'DefaultParameter',
  113. data() {
  114. return {
  115. planBeforeDayList: [{ id: 0, name: '是' }, { id: 1, name: '否' }], // 是否可取前一天计划
  116. planNextDayList: [{ id: 0, name: '是' }, { id: 1, name: '否' }], // 是否可取后一天计划
  117. isSupplementList: [{ id: 0, name: '是' }, { id: 1, name: '否' }], // 是否启用补料
  118. isLeftoverMaterialList: [{ id: 0, name: '是' }, { id: 1, name: '否' }], // 是否启用剩料
  119. decimalPlacesList: [{ id: 0, name: '整数' }, { id: 1, name: '一位小数' }, { id: 2, name: '两位小数' }, { id: 3, name: '三位小数' }], // 日计划报表小数点位数
  120. isLockBullsList: [{ id: 0, name: '是' }, { id: 1, name: '否' }], // 启用饲料锁定牛头数
  121. disposalList: [{ id: 0, name: '替换青贮' }, { id: 1, name: '转为饲料' }, { id: 2, name: '不处理' }], // 剩料处理选项
  122. waterConditioningList: [{ id: 0, name: '青贮' }, { id: 1, name: '总日粮饲喂量' }, { id: 2, name: '不处理' }], // 水分调节选项
  123. priceCalculationList: [{ id: 0, name: '先入先出' }, { id: 1, name: '加权平均' }], // 饲料价格计算方式
  124. numberList: [{ id: 0, name: '1' }, { id: 1, name: '2' }, { id: 2, name: '3' }, { id: 3, name: '4' }], // 班次数量
  125. createTemp: {},
  126. rules: {},
  127. isokDisable: false
  128. }
  129. },
  130. created() {},
  131. methods: {
  132. handleSave() {
  133. console.log('点击了保存')
  134. },
  135. handleRecovery() {
  136. console.log('点击了恢复默认')
  137. }
  138. }
  139. }
  140. </script>
  141. <style lang="scss" scoped>
  142. </style>