dbe3d97a08fdb52c399f0e84b86f589a362fc458.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. <template>
  2. <div class="app-container">
  3. <!-- 配方模板表 -->
  4. <div ref="template" class="template">
  5. <p class="recipeTemplate" />
  6. <div class="operation">
  7. <el-button class="success" @click="handleCreate">新生成</el-button>
  8. <el-button class="export" style="float: right;margin-right: 80px;" @click="handleHistoryRecord">历史记录</el-button>
  9. <el-button class="export" style="float: right;margin-right: 10px;" @click="handleMaterialPlan">撒料计划</el-button>
  10. <el-button class="export" style="float: right;margin-right: 10px;" @click="handlePremixedPlan">预混计划</el-button>
  11. <el-button class="export" style="float: right;margin-right: 10px;" @click="handleShedFormula">栏舍配方</el-button>
  12. <el-button class="export" style="float: right;margin-right: 10px;" @click="handleRecipeemplate">配方模板</el-button>
  13. </div>
  14. <div class="search">
  15. <el-date-picker v-model="table.getdataListParm.parammaps.mydate" type="date" placeholder="选择日期" style="width: 150px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeDate" />
  16. <el-button class="el-icon-arrow-left elIconArrowLeft" @click="handleBefore" />
  17. <el-button class="el-icon-arrow-right elIconArrowRight" @click="handleNext" />
  18. <el-select v-model="table.getdataListParm.parammaps.lpplantype" filterable placeholder="计划类型" class="filter-item" clearable style="width: 120px;" @change="changePlanType">
  19. <el-option v-for="item in planTypeList" :key="item.value" :label="item.lable" :value="item.value" />
  20. </el-select>
  21. <el-select v-model="table.getdataListParm.parammaps.times" filterable placeholder="班次" class="filter-item" style="width: 120px;" clearable @change="changeFrequency">
  22. <el-option v-for="item in frequencyList" :key="item.id" :label="item.name" :value="item.id" />
  23. </el-select>
  24. <el-select v-model="table.getdataListParm.parammaps.enable" filterable placeholder="打印类型" class="filter-item" clearable style="width: 120px;">
  25. <el-option v-for="item in printingTypeList" :key="item.value" :label="item.label" :value="item.value" />
  26. </el-select>
  27. <el-select v-model="table.getdataListParm.parammaps.enable" filterable placeholder="计划维度" class="filter-item" style="width: 120px;" clearable>
  28. <el-option v-for="item in planningDimensionList" :key="item.value" :label="item.label" :value="item.value" />
  29. </el-select>
  30. <el-select v-model="table.getdataListParm.parammaps.enable" filterable placeholder="导出类型" class="filter-item" style="width: 120px;" clearable>
  31. <el-option v-for="item in exportTypeList" :key="item.value" :label="item.label" :value="item.value" />
  32. </el-select>
  33. <el-button class="export" @click="handleExport">导出</el-button>
  34. </div>
  35. <!-- 日执行计划 -->
  36. <div class="table">
  37. <el-table
  38. :key="table.tableKey"
  39. v-loading="table.listLoading"
  40. element-loading-text="给我一点时间"
  41. :data="table.list"
  42. border
  43. fit
  44. highlight-current-row
  45. style="width: 98%;"
  46. :row-style="rowStyle"
  47. :cell-style="cellStyle"
  48. class="elTable table-fixed"
  49. @row-click="tableRowClick"
  50. >
  51. <el-table-column label="序号" align="center" type="index" width="50px" />
  52. <el-table-column label="计划名称" min-width="130px" align="center">
  53. <template slot-scope="scope">
  54. <span>{{ scope.row.projname }}</span>
  55. </template>
  56. </el-table-column>
  57. <el-table-column label="计划类型" prop="weight" min-width="130px" align="center" :formatter="lpplantype" />
  58. <el-table-column label="TMR编号" min-width="130px" align="center">
  59. <template slot-scope="scope">
  60. <span>{{ scope.row.tmrtname }}</span>
  61. </template>
  62. </el-table-column>
  63. <el-table-column label="驾驶员" min-width="130px" align="center">
  64. <template slot-scope="scope">
  65. <span>{{ scope.row.driver }}</span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column label="已执行" min-width="130px" align="center">
  69. <template slot-scope="scope">
  70. <span>{{ scope.row.havebutton }}</span>
  71. </template>
  72. </el-table-column>
  73. <el-table-column label="班次" min-width="180px" align="center">
  74. <template slot-scope="scope">
  75. <span>{{ scope.row.times }}</span>
  76. </template>
  77. </el-table-column>
  78. <el-table-column label="理论量" min-width="180px" align="center">
  79. <template slot-scope="scope">
  80. <span>{{ scope.row.lweight }}</span>
  81. </template>
  82. </el-table-column>
  83. <el-table-column label="时间" min-width="180px" align="center">
  84. <template slot-scope="scope">
  85. <span>{{ scope.row.plantime }}</span>
  86. </template>
  87. </el-table-column>
  88. <el-table-column label="发料位" min-width="180px" align="left">
  89. <template slot-scope="scope">
  90. <span>{{ scope.row.barnames }}</span>
  91. </template>
  92. </el-table-column>
  93. </el-table>
  94. </div>
  95. </div>
  96. <!-- 计划内容操作 -->
  97. <div class="content">
  98. <div class="table2">
  99. <p class="contentOperation" />
  100. <div class="content-table">
  101. <el-table
  102. :key="table2.tableKey"
  103. v-loading="table2.listLoading"
  104. element-loading-text="给我一点时间"
  105. :data="table2.list"
  106. fit
  107. highlight-current-row
  108. style="width: 100%;"
  109. height="450"
  110. :row-style="rowStyle"
  111. :cell-style="cellStyle"
  112. class="elTable table-fixed"
  113. >
  114. <el-table-column label="操作序号" min-width="130px" align="center">
  115. <template slot-scope="scope">
  116. <span>{{ scope.row.sort }}</span>
  117. </template>
  118. </el-table-column>
  119. <el-table-column label="饲料名称" prop="fname" min-width="130px" align="center">
  120. <template slot-scope="scope">
  121. <span>{{ scope.row.fname }}</span>
  122. </template>
  123. </el-table-column>
  124. <el-table-column label="设计重量(KG)" prop="weight" min-width="130px" align="center">
  125. <template slot-scope="scope">
  126. <span>{{ scope.row.weight }}</span>
  127. </template>
  128. </el-table-column>
  129. </el-table>
  130. </div>
  131. </div>
  132. <div class="table3">
  133. <p class="stallRetails" />
  134. <!-- <div class="stallRetails">
  135. <p>栏舍内容<br>栏舍详情 </p>
  136. </div> -->
  137. <div class="content-table">
  138. <el-table
  139. :key="table3.tableKey"
  140. v-loading="table3.listLoading"
  141. element-loading-text="给我一点时间"
  142. :data="table3.list"
  143. height="450"
  144. fit
  145. highlight-current-row
  146. style="width: 100%;"
  147. :row-style="rowStyle"
  148. :cell-style="cellStyle"
  149. class="elTable table-fixed"
  150. >
  151. <el-table-column label=" 操作序号" min-width="130px" align="center">
  152. <template slot-scope="scope">
  153. <span>{{ scope.row.sort }}</span>
  154. </template>
  155. </el-table-column>
  156. <el-table-column label="栏舍编号" min-width="130px" align="center">
  157. <template slot-scope="scope">
  158. <span>{{ scope.row.fname }}</span>
  159. </template>
  160. </el-table-column>
  161. <el-table-column v-if="table3.getdataListParm.parammaps.lpplantype == 3" label="转投栏舍" min-width="130px" align="center">
  162. <template slot-scope="scope">
  163. <span>{{ scope.row.useinbar }}</span>
  164. </template>
  165. </el-table-column>
  166. <el-table-column v-else label="设计重量(KG)" min-width="130px" align="center">
  167. <template slot-scope="scope">
  168. <span>{{ scope.row.weight }}</span>
  169. </template>
  170. </el-table-column>
  171. </el-table>
  172. </div>
  173. </div>
  174. </div>
  175. <!-- 新生成 -->
  176. <el-dialog :title="textMap[newGeneration.dialogStatus]" :destroy-on-close="true" :visible.sync="newGeneration.dialogFormVisible" :close-on-click-modal="false" width="50%">
  177. <div class="newGeneration">
  178. <el-form ref="temp" :rules="newGeneration.rules" :model="newGeneration.temp" label-position="right" label-width="155px" style="width: 100%;margin:0 auto 50px">
  179. <el-row>
  180. <el-col :span="16">
  181. <el-form-item label="时间范围:" prop="inputDatetime">
  182. <el-date-picker v-model="newGeneration.temp.inputDatetime" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 100%;" :clearable="false" />
  183. </el-form-item>
  184. </el-col>
  185. </el-row>
  186. </el-form>
  187. <div slot="footer" class="dialog-footer" style="bottom:10px">
  188. <el-button class="cancelClose" @click="newGeneration.dialogFormVisible = false;getList()">取消</el-button>
  189. <el-button class="success" :disabled="isokDisable" @click="newGenerationData()">确认</el-button>
  190. </div>
  191. </div>
  192. </el-dialog>
  193. </div>
  194. </template>
  195. <script>
  196. import { GetDataByName, GetDataByNames, ExecDataByConfig } from '@/api/common'
  197. import { MessageBox } from 'element-ui'
  198. import { parseTime } from '@/utils/index.js'
  199. import Cookies from 'js-cookie'
  200. export default {
  201. name: 'DailyExecutionPlan',
  202. data() {
  203. return {
  204. requestParams: [
  205. // { name: 'getDictByName', offset: 0, pagecount: 0, params: ['牲畜父类'] }
  206. ],
  207. planTypeList: [{ lable: '撒料计划', value: '2' }, { lable: '预混计划', value: '4' }, { lable: '剩料计划', value: '3' }], // 计划类型
  208. printingTypeList: [{ lable: '所有', value: '0' }, { lable: '精料', value: '1' }, { lable: '铲车', value: '2' }], // 打印类型
  209. frequencyList: [], // 班次
  210. planningDimensionList: [{ lable: '发料顺序', value: '0' }, { lable: 'TMR', value: '1' }], // 发料顺序
  211. exportTypeList: [{ lable: '投料简打', value: '0' }, { lable: '投料简打', value: '1' }], // 导出类型
  212. // 班次
  213. maxTime: {
  214. getMaxTimesParm: {
  215. name: 'getSysoptEnable',
  216. page: 1,
  217. offset: 1,
  218. pagecount: 1,
  219. returntype: 'Map',
  220. parammaps: {
  221. pastureid: Cookies.get('pastureid'),
  222. inforname: 'times'
  223. }
  224. }
  225. },
  226. table: {
  227. getdataListParm: {
  228. name: 'getDownloadedplanList',
  229. page: 1,
  230. offset: 1,
  231. pagecount: '',
  232. returntype: 'Map',
  233. parammaps: {
  234. pastureid: Cookies.get('pastureid'),
  235. barid: '',
  236. mydate: parseTime(new Date(), '{y}-{m}-{d}'),
  237. times: '',
  238. lpplantype: ''
  239. }
  240. },
  241. tableKey: 0,
  242. list: [],
  243. total: 0,
  244. listLoading: false
  245. },
  246. // 计划内容操作详情
  247. table2: {
  248. getdataListParm: {
  249. name: 'getDownloadplandtl1ListV2',
  250. page: 1,
  251. offset: 1,
  252. returntype: 'Map',
  253. parammaps: {
  254. pastureid: Cookies.get('pastureid'),
  255. date: '',
  256. id: ''
  257. }
  258. },
  259. tableKey: 0,
  260. list: [],
  261. total: 0,
  262. listLoading: false
  263. },
  264. // 计划内容 舍栏详情
  265. table3: {
  266. getdataListParm: {
  267. name: 'getDownloadplandt2ListV2',
  268. page: 1,
  269. offset: 1,
  270. returntype: 'Map',
  271. parammaps: {
  272. pastureid: Cookies.get('pastureid'),
  273. date: '',
  274. id: ''
  275. }
  276. },
  277. tableKey: 0,
  278. list: [],
  279. total: 0,
  280. listLoading: false
  281. },
  282. // 新生成
  283. newGeneration: {
  284. dialogFormVisible: false,
  285. dialogStatus: '',
  286. getdataListParm: {
  287. name: 'checkLLPIsDistribution',
  288. page: 1,
  289. offset: 1,
  290. pagecount: 1,
  291. returntype: 'Map',
  292. parammaps: {
  293. pastureid: Cookies.get('pastureid')
  294. }
  295. },
  296. temp: {},
  297. rules: {
  298. inputDatetime: [{ type: 'array', required: true, message: '必填', trigger: 'blur' }]
  299. }
  300. },
  301. textMap: {
  302. newGeneration: '新生成'
  303. },
  304. isokDisable: false,
  305. requestParam: {},
  306. rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
  307. cellStyle: { padding: 0 + 'px' }
  308. }
  309. },
  310. created() {
  311. this.getList()
  312. this.getDownList()
  313. this.getIsDisplay()
  314. },
  315. mounted() {
  316. this.table.getdataListParm.parammaps.mydate = parseTime(new Date(), '{y}-{m}-{d}')
  317. },
  318. methods: {
  319. getIsDisplay() {
  320. GetDataByName(this.maxTime.getMaxTimesParm).then(response => {
  321. console.log(response.data.list[0].inforvalue)
  322. if (response.data.list[0].inforvalue == 1) {
  323. this.frequencyList = [{ id: '1', name: '第一班' }]
  324. } else if (response.data.list[0].inforvalue == 2) {
  325. this.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }]
  326. } else if (response.data.list[0].inforvalue == 3) {
  327. this.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }]
  328. } else if (response.data.list[0].inforvalue == 4) {
  329. this.frequencyList = [{ id: '1', name: '第一班' }, { id: '2', name: '第二班' }, { id: '3', name: '第三班' }, { id: '4', name: '第四班' }]
  330. }
  331. })
  332. },
  333. getDownList() {
  334. GetDataByNames(this.requestParams).then(response => {
  335. // this.livestockTypeList = response.data.getDictByName.list
  336. })
  337. },
  338. // -------------------日执行计划-----------------------------
  339. handleBefore() {
  340. if (this.table.getdataListParm.parammaps.mydate !== '' && this.table.getdataListParm.parammaps.mydate !== null) {
  341. this.table.getdataListParm.parammaps.mydate = new Date(this.table.getdataListParm.parammaps.mydate)
  342. var start = new Date(this.table.getdataListParm.parammaps.mydate.setDate(this.table.getdataListParm.parammaps.mydate.getDate() - 1))
  343. // var start = this.table.getdataListParm.parammaps.mydate - 1
  344. this.table.getdataListParm.parammaps.mydate = parseTime(start, '{y}-{m}-{d}')
  345. // this.$forceUpdate()
  346. this.getList()
  347. }
  348. },
  349. handleNext() {
  350. if (this.table.getdataListParm.parammaps.mydate !== '' && this.table.getdataListParm.parammaps.mydate !== null) {
  351. this.table.getdataListParm.parammaps.mydate = new Date(this.table.getdataListParm.parammaps.mydate)
  352. var stop = new Date(this.table.getdataListParm.parammaps.mydate.setDate(this.table.getdataListParm.parammaps.mydate.getDate() + 1))
  353. this.table.getdataListParm.parammaps.mydate = parseTime(stop, '{y}-{m}-{d}')
  354. this.getList()
  355. }
  356. },
  357. getList() {
  358. this.table.listLoading = true
  359. GetDataByName(this.table.getdataListParm).then(response => {
  360. console.log('table数据', response.data.list)
  361. if (response.data.list !== null) {
  362. this.table.list = response.data.list
  363. this.table.pageNum = response.data.pageNum
  364. this.table.pageSize = response.data.pageSize
  365. this.table.total = response.data.total
  366. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  367. this.table3.getdataListParm.parammaps.id = response.data.list[0].id
  368. this.table3.getdataListParm.parammaps.lpplantype = response.data.list[0].lpplantype
  369. this.getList2()
  370. this.getList3()
  371. } else {
  372. this.table.list = []
  373. this.table2.getdataListParm.parammaps.id = ''
  374. this.table3.getdataListParm.parammaps.id = ''
  375. this.getList2()
  376. this.getList3()
  377. this.table2.list = []
  378. this.table3.list = []
  379. }
  380. setTimeout(() => {
  381. this.table.listLoading = false
  382. }, 100)
  383. })
  384. },
  385. lpplantype: function(cellValue) {
  386. if (cellValue.lpplantype == 2) {
  387. return '撒料'
  388. } else if (cellValue.lpplantype == 4) {
  389. return '预混'
  390. } else if (cellValue.lpplantype == 3) {
  391. return '剩料'
  392. }
  393. },
  394. changeDate(val) {
  395. console.log('选择了日期', val)
  396. this.getList()
  397. this.getList2()
  398. this.getList3()
  399. },
  400. changePlanType(val) {
  401. console.log('选择了计划类型', val)
  402. this.getList()
  403. this.getList2()
  404. this.getList3()
  405. },
  406. changeFrequency(val) {
  407. console.log('选择了班次', val)
  408. this.getList()
  409. this.getList2()
  410. this.getList3()
  411. },
  412. // 日执行计划行点击
  413. tableRowClick(row, column, event) {
  414. console.log(row, column, event)
  415. this.table2.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  416. this.table2.getdataListParm.parammaps.id = row.id
  417. this.table3.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  418. this.table3.getdataListParm.parammaps.id = row.id
  419. this.table3.getdataListParm.parammaps.lpplantype = row.lpplantype
  420. this.getList2()
  421. this.getList3()
  422. },
  423. // 计划内容操作详情
  424. getList2() {
  425. this.table2.listLoading = true
  426. this.table2.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  427. GetDataByName(this.table2.getdataListParm).then(response => {
  428. console.log('table数据', response.data.list)
  429. if (response.data.list !== null) {
  430. this.table2.list = response.data.list
  431. const arr = []
  432. var a = 0
  433. let b = this.table2.list[0].sort
  434. let c = 0
  435. for (let i = 0; i < this.table2.list.length; i++) {
  436. if (b !== parseInt(this.table2.list[i].sort)) {
  437. b = this.table2.list[i].sort
  438. arr.push({ 'sort': '小计', 'weight': a.toFixed(2) })
  439. a = 0
  440. }
  441. a = a + parseFloat(this.table2.list[i].weight)
  442. c = c + parseFloat(this.table2.list[i].weight)
  443. arr.push(this.table2.list[i])
  444. }
  445. arr.push({ 'sort': '小计', 'weight': a })
  446. arr.push({ 'sort': '总计', 'weight': c.toFixed(2) })
  447. this.table2.list = arr
  448. console.log(this.table2.list)
  449. this.table2.pageNum = response.data.pageNum
  450. this.table2.pageSize = response.data.pageSize
  451. this.table2.total = response.data.total
  452. } else {
  453. this.table2.list = []
  454. }
  455. setTimeout(() => {
  456. this.table2.listLoading = false
  457. }, 100)
  458. })
  459. },
  460. // 计划内容栏舍详情
  461. getList3() {
  462. this.table3.listLoading = true
  463. this.table3.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  464. GetDataByName(this.table3.getdataListParm).then(response => {
  465. console.log('table数据', response.data.list)
  466. if (response.data.list !== null) {
  467. this.table3.list = response.data.list
  468. this.table3.pageNum = response.data.pageNum
  469. this.table3.pageSize = response.data.pageSize
  470. this.table3.total = response.data.total
  471. } else {
  472. this.table3.list = []
  473. }
  474. setTimeout(() => {
  475. this.table3.listLoading = false
  476. }, 100)
  477. })
  478. },
  479. // 新生成
  480. handleCreate() {
  481. console.log('点击了新生成')
  482. this.newGeneration.temp = {}
  483. this.newGeneration.dialogStatus = 'newGeneration'
  484. this.newGeneration.dialogFormVisible = true
  485. GetDataByName(this.newGeneration.getdataListParm).then(response => {
  486. console.log('table数据', response.data.list)
  487. if (response.data.list !== null) {
  488. if (response.data.list[0].vmsg == '存在未分配') {
  489. this.$message({ type: 'warning', message: '撒料计划中存在未分配完栏舍,建议及时进行分配', duration: 2000 })
  490. }
  491. }
  492. })
  493. },
  494. newGenerationData() {
  495. console.log('点击了新生成保存', this.newGeneration.temp)
  496. this.isokDisable = true
  497. setTimeout(() => {
  498. this.isokDisable = false
  499. }, 5000)
  500. this.$refs['temp'].validate(valid => {
  501. if (valid) {
  502. this.newGeneration.temp.startTime = parseTime(this.newGeneration.temp.inputDatetime[0], '{y}-{m}-{d}')
  503. this.newGeneration.temp.stopTime = parseTime(this.newGeneration.temp.inputDatetime[1], '{y}-{m}-{d}')
  504. this.requestParam = {}
  505. this.requestParam.common = { 'returnmap': '0' }
  506. this.requestParam.data = []
  507. this.requestParam.data[0] = { 'name': 'checkDLPIsStart', 'type': 'e', 'parammaps': {
  508. pastureid: Cookies.get('pastureid'),
  509. startTime: this.newGeneration.temp.startTime
  510. }}
  511. this.requestParam.data[1] = { 'name': 'createdownloadedplan', 'type': 'e', 'parammaps': {
  512. pastureid: Cookies.get('pastureid'),
  513. startTime: this.newGeneration.temp.startTime,
  514. stopTime: this.newGeneration.temp.stopTime
  515. }}
  516. ExecDataByConfig(this.requestParam).then(response => {
  517. console.log('新生成保存发送参数', this.requestParam)
  518. if (response.msg === 'fail') {
  519. this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
  520. } else {
  521. this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
  522. this.newGeneration.dialogFormVisible = false
  523. this.getList()
  524. }
  525. })
  526. }
  527. })
  528. },
  529. // 配方模板
  530. handleRecipeemplate() {
  531. console.log('点击了配方模板,页面待画')
  532. },
  533. handleShedFormula() {
  534. console.log('点击了栏舍配方,页面待画')
  535. },
  536. handlePremixedPlan() {
  537. console.log('点击了预混计划,页面待画')
  538. },
  539. handleMaterialPlan() {
  540. console.log('点击了撒料计划,页面待画')
  541. },
  542. handleHistoryRecord() {
  543. console.log('点击了历史记录,页面待画')
  544. },
  545. handleExport() {
  546. console.log('点击了导出')
  547. }
  548. }
  549. }
  550. </script>
  551. <style lang="scss" scoped>
  552. .operation{margin-bottom:10px;}
  553. .search{margin-top:10px;}
  554. .table{margin-top:10px;}
  555. .template{
  556. background: #fff;
  557. position: relative;
  558. .recipeTemplate{
  559. width: 72px;
  560. height: 70px;
  561. position: absolute;
  562. background: url(../../../assets/images/bg3.jpg) no-repeat;
  563. right: 0;
  564. top: 0;
  565. margin: 0;
  566. }
  567. }
  568. .table2{
  569. float: left;width: 49%;margin-right: 1%;background: red;
  570. background: #fff;
  571. position: relative;
  572. .contentOperation{
  573. width: 72px;
  574. height: 70px;
  575. position: absolute;
  576. background: url(../../../assets/images/bg4.jpg) no-repeat;
  577. right: 0;
  578. top: 0;
  579. margin: 0;
  580. }
  581. .content-table{margin-top: 70px;}
  582. }
  583. .table3{
  584. float: left;
  585. width: 49%;
  586. background: #fff;
  587. position: relative;
  588. .stallRetails{
  589. width: 72px;
  590. height: 70px;
  591. position: absolute;
  592. background: url(../../../assets/images/bg5.jpg) no-repeat;
  593. right: 0;
  594. top: 0;
  595. margin: 0;
  596. // p{
  597. // font-size: 12px;
  598. // transform:rotate(45deg);
  599. // -ms-transform:rotate(45deg); /* Internet Explorer 9*/
  600. // -moz-transform:rotate(45deg); /* Firefox */
  601. // -webkit-transform:rotate(45deg); /* Safari 和 Chrome */
  602. // -o-transform:rotate(45deg); /* Opera */
  603. // filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
  604. // }
  605. }
  606. .content-table{margin-top: 70px;}
  607. }
  608. </style>