NewInfo.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <template>
  2. <el-container :direction="vertical">
  3. <el-header height="" class="pdt">
  4. <h4>销售政策信息</h4>
  5. <el-divider></el-divider>
  6. <el-form
  7. :model="ruleForm"
  8. :rules="rules"
  9. ref="ruleForm"
  10. label-width="120px"
  11. size="small" label-position="left"
  12. class="demo-ruleForm"
  13. >
  14. <el-row type="flex">
  15. <el-col :span="8">
  16. <el-form-item label="营销活动" prop="name">
  17. <el-input
  18. v-model="ruleForm.name"
  19. placeholder="如未填写,则系统自动生成"
  20. ></el-input>
  21. </el-form-item>
  22. </el-col>
  23. <el-col :span="8">
  24. <el-form-item label="营销活动标题" prop="name">
  25. <el-input
  26. v-model="ruleForm.name"
  27. placeholder="销售政策说明"
  28. ></el-input>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :span="8">
  32. <el-form-item label="部门" prop="name">
  33. <el-input
  34. v-model="ruleForm.name"
  35. placeholder="家用空调"
  36. ></el-input>
  37. </el-form-item>
  38. </el-col>
  39. </el-row>
  40. <el-row>
  41. <el-form-item label="表头备注" prop="name">
  42. <el-input
  43. v-model="ruleForm.name"
  44. placeholder="新风机变频挂机。按提货数量1:3开单"
  45. ></el-input>
  46. </el-form-item>
  47. </el-row>
  48. <el-row>
  49. <el-form-item label="政策封面图">
  50. <el-upload
  51. class="avatar-uploader"
  52. action="https://jsonplaceholder.typicode.com/posts/"
  53. :show-file-list="false"
  54. :on-success="handleAvatarSuccess"
  55. :before-upload="beforeAvatarUpload"
  56. >
  57. <img v-if="imageUrl" :src="imageUrl" class="avatar" />
  58. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  59. </el-upload>
  60. </el-form-item>
  61. </el-row>
  62. <el-row type="flex">
  63. <el-col :span="9">
  64. <el-form-item label="制单人" prop="name">
  65. <el-input
  66. v-model="ruleForm.name"
  67. placeholder=""
  68. ></el-input> </el-form-item
  69. ></el-col>
  70. <el-col :span="9">
  71. <el-form-item label="制单日期" prop="name">
  72. <el-input
  73. v-model="ruleForm.name"
  74. placeholder="如未填写,则系统自动生成"
  75. ></el-input> </el-form-item
  76. ></el-col>
  77. </el-row>
  78. <el-row type="flex">
  79. <el-col :span="9">
  80. <el-form-item label="生效日期" prop="name">
  81. <el-input
  82. v-model="ruleForm.name"
  83. placeholder=""
  84. ></el-input> </el-form-item
  85. ></el-col>
  86. <el-col :span="9">
  87. <el-form-item label="失效日期" prop="name">
  88. <el-input
  89. v-model="ruleForm.name"
  90. placeholder=""
  91. ></el-input> </el-form-item
  92. ></el-col>
  93. </el-row>
  94. </el-form>
  95. </el-header>
  96. <el-main>
  97. <el-row>
  98. <el-divider></el-divider>
  99. <el-row type="flex" align="middle">
  100. <el-col :span="2">
  101. <h4>货品信息</h4>
  102. </el-col>
  103. </el-row>
  104. <el-divider></el-divider>
  105. </el-row>
  106. <Transfer>
  107. <template #header>
  108. <el-row :gutter="20">
  109. <el-col :span="8" :offset="0">
  110. <el-input
  111. v-model="input"
  112. placeholder=""
  113. size="normal"
  114. clearable
  115. @change=""
  116. ></el-input>
  117. </el-col>
  118. <el-col :span="8" :offset="0">
  119. <el-input
  120. v-model="input"
  121. placeholder=""
  122. size="normal"
  123. clearable
  124. @change=""
  125. ></el-input>
  126. </el-col>
  127. <el-col :span="8">
  128. <el-button type="primary" size="default" @click=""
  129. >确定</el-button
  130. >
  131. <el-button type="primary" size="default" @click=""
  132. >重置</el-button
  133. >
  134. </el-col>
  135. </el-row>
  136. </template>
  137. <template #footer>
  138. <el-row>
  139. <el-button type="primary" size="default" @click="">保存</el-button>
  140. <el-button type="primary" size="default" @click="">重置</el-button>
  141. </el-row>
  142. </template>
  143. </Transfer>
  144. </el-main>
  145. <el-footer height="" class="footer"> </el-footer>
  146. </el-container>
  147. </template>
  148. <script>
  149. import Pagination from "./Pagination";
  150. import Transfer from "./Transfer";
  151. export default {
  152. data() {
  153. return {
  154. input: "",
  155. ruleForm: {
  156. name: "",
  157. },
  158. listLoading: false,
  159. rules: {
  160. name: [
  161. { required: true, message: "", trigger: "click" },
  162. { min: 3, max: 5, message: "", trigger: "click" },
  163. ],
  164. },
  165. dataList: [
  166. {
  167. num: "2",
  168. name: "王小虎",
  169. province: "上海",
  170. city: "普陀区",
  171. address: "上海市普陀区金沙江路 1518 弄",
  172. zip: 200333,
  173. },
  174. {
  175. num: "2",
  176. name: "王小虎",
  177. province: "上海",
  178. city: "普陀区",
  179. address: "上海市普陀区金沙江路 1518 弄",
  180. zip: 200333,
  181. },
  182. {
  183. num: "2",
  184. name: "王小虎",
  185. province: "上海",
  186. city: "普陀区",
  187. address: "上海市普陀区金沙江路 1518 弄",
  188. zip: 200333,
  189. },
  190. {
  191. num: "2",
  192. name: "王小虎",
  193. province: "上海",
  194. city: "普陀区",
  195. address: "上海市普陀区金沙江路 1518 弄",
  196. zip: 200333,
  197. },
  198. {
  199. num: "2",
  200. name: "王小虎",
  201. province: "上海",
  202. city: "普陀区",
  203. address: "上海市普陀区金沙江路 1518 弄",
  204. zip: 200333,
  205. },
  206. {
  207. num: "2",
  208. name: "王小虎",
  209. province: "上海",
  210. city: "普陀区",
  211. address: "上海市普陀区金沙江路 1518 弄",
  212. zip: 200333,
  213. },
  214. {
  215. num: "2",
  216. name: "王小虎",
  217. province: "上海",
  218. city: "普陀区",
  219. address: "上海市普陀区金沙江路 1518 弄",
  220. zip: 200333,
  221. },
  222. ],
  223. radio: "",
  224. };
  225. },
  226. methods: {
  227. handelLeftCheck(e) {
  228. console.log(e);
  229. },
  230. },
  231. components: {
  232. Transfer,
  233. Pagination,
  234. },
  235. };
  236. </script>
  237. <style lang="scss" scoped>
  238. h4 {
  239. margin: 0;
  240. }
  241. .pdt {
  242. padding-top: 20px;
  243. }
  244. .radio {
  245. padding: 20px 0;
  246. }
  247. .el-divider--horizontal {
  248. margin: 20px 0;
  249. }
  250. .el-container .el-divider--horizontal {
  251. margin: 10px;
  252. }
  253. .el-select {
  254. width: 100%;
  255. }
  256. .footer {
  257. margin-bottom: 20px;
  258. }
  259. </style>