07f824a275a3ff2f3ab982ac4963b69e48e3f676.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  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 == 4" 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="cancel" @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: '3' }, { lable: '剩料计划', value: '4' }], // 计划类型
  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: 'getDownloadplandtl1List',
  250. page: 1,
  251. offset: 1,
  252. returntype: 'Map',
  253. parammaps: {
  254. pastureid: Cookies.get('pastureid'),
  255. date: '',
  256. flpid: ''
  257. }
  258. },
  259. tableKey: 0,
  260. list: [],
  261. total: 0,
  262. listLoading: false
  263. },
  264. // 计划内容 舍栏详情
  265. table3: {
  266. getdataListParm: {
  267. name: 'getDownloadplandt2List',
  268. page: 1,
  269. offset: 1,
  270. returntype: 'Map',
  271. parammaps: {
  272. pastureid: Cookies.get('pastureid'),
  273. date: '',
  274. flpid: ''
  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.flpid = response.data.list[0].pid
  367. this.table3.getdataListParm.parammaps.flpid = response.data.list[0].pid
  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.list = []
  374. this.table3.list = []
  375. }
  376. setTimeout(() => {
  377. this.table.listLoading = false
  378. }, 100)
  379. })
  380. },
  381. lpplantype: function(cellValue) {
  382. if (cellValue.lpplantype == 2) {
  383. return '撒料'
  384. } else if (cellValue.lpplantype == 3) {
  385. return '预混'
  386. } else if (cellValue.lpplantype == 4) {
  387. return '剩料'
  388. }
  389. },
  390. changeDate(val) {
  391. console.log('选择了日期', val)
  392. this.getList()
  393. this.getList2()
  394. this.getList3()
  395. },
  396. changePlanType(val) {
  397. console.log('选择了计划类型', val)
  398. this.getList()
  399. this.getList2()
  400. this.getList3()
  401. },
  402. changeFrequency(val) {
  403. console.log('选择了班次', val)
  404. this.getList()
  405. this.getList2()
  406. this.getList3()
  407. },
  408. // 日执行计划行点击
  409. tableRowClick(row, column, event) {
  410. console.log(row, column, event)
  411. this.table2.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  412. this.table2.getdataListParm.parammaps.flpid = row.pid
  413. this.table3.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  414. this.table3.getdataListParm.parammaps.flpid = row.pid
  415. this.table3.getdataListParm.parammaps.lpplantype = row.lpplantype
  416. this.getList2()
  417. this.getList3()
  418. },
  419. // 计划内容操作详情
  420. getList2() {
  421. this.table2.listLoading = true
  422. this.table2.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  423. GetDataByName(this.table2.getdataListParm).then(response => {
  424. console.log('table数据', response.data.list)
  425. if (response.data.list !== null) {
  426. this.table2.list = response.data.list
  427. const arr = []
  428. var a = 0
  429. let b = this.table2.list[0].sort
  430. let c = 0
  431. for (let i = 0; i < this.table2.list.length; i++) {
  432. if (b !== parseInt(this.table2.list[i].sort)) {
  433. b = this.table2.list[i].sort
  434. arr.push({ 'sort': '小计', 'weight': a.toFixed(2) })
  435. a = 0
  436. }
  437. a = a + parseFloat(this.table2.list[i].weight)
  438. c = c + parseFloat(this.table2.list[i].weight)
  439. arr.push(this.table2.list[i])
  440. }
  441. arr.push({ 'sort': '小计', 'weight': a })
  442. arr.push({ 'sort': '总计', 'weight': c.toFixed(2) })
  443. this.table2.list = arr
  444. console.log(this.table2.list)
  445. this.table2.pageNum = response.data.pageNum
  446. this.table2.pageSize = response.data.pageSize
  447. this.table2.total = response.data.total
  448. } else {
  449. this.table2.list = []
  450. }
  451. setTimeout(() => {
  452. this.table2.listLoading = false
  453. }, 100)
  454. })
  455. },
  456. // 计划内容栏舍详情
  457. getList3() {
  458. this.table3.listLoading = true
  459. this.table3.getdataListParm.parammaps.date = this.table.getdataListParm.parammaps.mydate
  460. GetDataByName(this.table3.getdataListParm).then(response => {
  461. console.log('table数据', response.data.list)
  462. if (response.data.list !== null) {
  463. this.table3.list = response.data.list
  464. this.table3.pageNum = response.data.pageNum
  465. this.table3.pageSize = response.data.pageSize
  466. this.table3.total = response.data.total
  467. } else {
  468. this.table3.list = []
  469. }
  470. setTimeout(() => {
  471. this.table3.listLoading = false
  472. }, 100)
  473. })
  474. },
  475. // 新生成
  476. handleCreate() {
  477. console.log('点击了新生成')
  478. this.newGeneration.temp = {}
  479. this.newGeneration.dialogStatus = 'newGeneration'
  480. this.newGeneration.dialogFormVisible = true
  481. GetDataByName(this.newGeneration.getdataListParm).then(response => {
  482. console.log('table数据', response.data.list)
  483. if (response.data.list !== null) {
  484. if (response.data.list[0].vmsg == '存在未分配') {
  485. this.$message({ type: 'warning', message: '撒料计划中存在未分配完栏舍,建议及时进行分配', duration: 2000 })
  486. }
  487. }
  488. })
  489. },
  490. newGenerationData() {
  491. console.log('点击了新生成保存', this.newGeneration.temp)
  492. this.isokDisable = true
  493. setTimeout(() => {
  494. this.isokDisable = false
  495. }, 1000)
  496. this.$refs['temp'].validate(valid => {
  497. if (valid) {
  498. this.newGeneration.temp.startTime = parseTime(this.newGeneration.temp.inputDatetime[0], '{y}-{m}-{d}')
  499. this.newGeneration.temp.stopTime = parseTime(this.newGeneration.temp.inputDatetime[1], '{y}-{m}-{d}')
  500. this.requestParam = {}
  501. this.requestParam.common = { 'returnmap': '0' }
  502. this.requestParam.data = []
  503. this.requestParam.data[0] = { 'name': 'checkDLPIsStart', 'type': 'e', 'parammaps': {
  504. pastureid: Cookies.get('pastureid'),
  505. startTime: this.newGeneration.temp.startTime
  506. }}
  507. this.requestParam.data[1] = { 'name': 'createdownloadedplan', 'type': 'e', 'parammaps': {
  508. pastureid: Cookies.get('pastureid'),
  509. startTime: this.newGeneration.temp.startTime,
  510. stopTime: this.newGeneration.temp.stopTime
  511. }}
  512. ExecDataByConfig(this.requestParam).then(response => {
  513. console.log('新生成保存发送参数', this.requestParam)
  514. if (response.msg === 'fail') {
  515. this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
  516. } else {
  517. this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
  518. this.newGeneration.dialogFormVisible = false
  519. this.getList()
  520. }
  521. })
  522. }
  523. })
  524. },
  525. // 配方模板
  526. handleRecipeemplate() {
  527. console.log('点击了配方模板,页面待画')
  528. },
  529. handleShedFormula() {
  530. console.log('点击了栏舍配方,页面待画')
  531. },
  532. handlePremixedPlan() {
  533. console.log('点击了预混计划,页面待画')
  534. },
  535. handleMaterialPlan() {
  536. console.log('点击了撒料计划,页面待画')
  537. },
  538. handleHistoryRecord() {
  539. console.log('点击了历史记录,页面待画')
  540. },
  541. handleExport() {
  542. console.log('点击了导出')
  543. }
  544. }
  545. }
  546. </script>
  547. <style lang="scss" scoped>
  548. .operation{margin-bottom:10px;}
  549. .search{margin-top:10px;}
  550. .table{margin-top:10px;}
  551. .template{
  552. background: #fff;
  553. position: relative;
  554. .recipeTemplate{
  555. width: 72px;
  556. height: 70px;
  557. position: absolute;
  558. background: url(../../../assets/images/bg3.jpg) no-repeat;
  559. right: 0;
  560. top: 0;
  561. margin: 0;
  562. }
  563. }
  564. .table2{
  565. float: left;width: 49%;margin-right: 1%;background: red;
  566. background: #fff;
  567. position: relative;
  568. .contentOperation{
  569. width: 72px;
  570. height: 70px;
  571. position: absolute;
  572. background: url(../../../assets/images/bg4.jpg) no-repeat;
  573. right: 0;
  574. top: 0;
  575. margin: 0;
  576. }
  577. .content-table{margin-top: 70px;}
  578. }
  579. .table3{
  580. float: left;
  581. width: 49%;
  582. background: #fff;
  583. position: relative;
  584. .stallRetails{
  585. width: 72px;
  586. height: 70px;
  587. position: absolute;
  588. background: url(../../../assets/images/bg5.jpg) no-repeat;
  589. right: 0;
  590. top: 0;
  591. margin: 0;
  592. // p{
  593. // font-size: 12px;
  594. // transform:rotate(45deg);
  595. // -ms-transform:rotate(45deg); /* Internet Explorer 9*/
  596. // -moz-transform:rotate(45deg); /* Firefox */
  597. // -webkit-transform:rotate(45deg); /* Safari 和 Chrome */
  598. // -o-transform:rotate(45deg); /* Opera */
  599. // filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
  600. // }
  601. }
  602. .content-table{margin-top: 70px;}
  603. }
  604. </style>