reservedSample.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <template>
  2. <div class="sample-content">
  3. <!-- 表格組件 -->
  4. <div class="top-content">
  5. <div class="top-title">样品间存放可视化</div>
  6. <div class="query-content">
  7. <el-form :inline="true" :model="formInline" class="demo-form-inline">
  8. <el-form-item label="房间号:">
  9. <el-select
  10. v-model="formInline.fang_jian_hao_value"
  11. placeholder="请选择样品"
  12. >
  13. <el-option
  14. v-for="(item, index) in sampleOption"
  15. :key="index"
  16. placeholder="区域"
  17. :label="item.fang_jian_lei_xin"
  18. :value="item.fang_jian_lei_xin"
  19. ></el-option>
  20. </el-select>
  21. </el-form-item>
  22. <el-form-item
  23. v-show="leixingcare"
  24. style="margin-left: 50px"
  25. prop="title"
  26. label="区域名称:"
  27. >
  28. <el-select
  29. v-model="formInline.qu_yu_value"
  30. placeholder="请选择区域名称"
  31. >
  32. <el-option
  33. v-for="(item, index) in quyu_arr"
  34. :key="index"
  35. placeholder="区域"
  36. :label="item.qu_yu_"
  37. :value="item.qu_yu_"
  38. ></el-option>
  39. </el-select>
  40. </el-form-item>
  41. <el-form-item style="margin-left: 50px" label="货架号:">
  42. <el-select
  43. v-model="formInline.huo_jia_value"
  44. placeholder="请选择货架号"
  45. >
  46. <el-option
  47. v-for="(item, index) in huo_jia_arr"
  48. :key="index"
  49. placeholder="区域"
  50. :label="item.huo_jia_hao_ + '号' + item.huo_jia_lei_xing_"
  51. :value="item.huo_jia_hao_ + '号' + item.huo_jia_lei_xing_"
  52. ></el-option>
  53. </el-select>
  54. </el-form-item>
  55. <el-form-item
  56. v-show="!leixingcare"
  57. style="margin-left: 50px"
  58. label="挂件号:"
  59. >
  60. <el-select
  61. v-model="formInline.gua_jia_value"
  62. placeholder="请选择挂件号"
  63. >
  64. <el-option
  65. v-for="(item, index) in gua_jia_arr"
  66. :key="index"
  67. placeholder="区域"
  68. :label="item.gua_jia_hao_ + '号' + '挂件'"
  69. :value="item.gua_jia_hao_ + '号' + '挂件'"
  70. ></el-option>
  71. </el-select>
  72. </el-form-item>
  73. <el-form-item>
  74. <button
  75. type="button"
  76. class="el-button el-button--primary el-button--mini"
  77. @click="onSubmits"
  78. >
  79. <i class="ibps-icon-search"></i><span>查询</span>
  80. </button>
  81. </el-form-item>
  82. </el-form>
  83. </div>
  84. </div>
  85. <div class="select_quyu">
  86. <div class="test-quyu" v-if="leixingcare">
  87. <div class="test-list">
  88. <ul class="list-items">
  89. <li
  90. class="list-item quyu-item"
  91. :style="{
  92. background: quyuShow == item.qu_yu_ ? '#FF9900' : '#0099CC',
  93. }"
  94. @click="qu_yu_Event"
  95. v-for="item in quyu_arr"
  96. :key="item.qu_yu_"
  97. >
  98. {{ item.qu_yu_ }}
  99. </li>
  100. </ul>
  101. </div>
  102. </div>
  103. <div class="huojia">
  104. <div class="test-list">
  105. <ul class="list-items">
  106. <li
  107. class="list-item huojia-item"
  108. :style="{
  109. background:
  110. huojiashow ==
  111. item.huo_jia_hao_ + '号' + item.huo_jia_lei_xing_
  112. ? '#ff9900'
  113. : '#0099cc',
  114. }"
  115. @click="huo_jia_hao_Event"
  116. v-for="(item, index) in huo_jia_arr"
  117. :key="index"
  118. >
  119. {{ item.huo_jia_hao_ }}号{{ item.huo_jia_lei_xing_ }}
  120. </li>
  121. </ul>
  122. </div>
  123. </div>
  124. <div class="huojia">
  125. <div class="test-list" v-show="!leixingcare">
  126. <ul class="list-items">
  127. <li
  128. class="list-item huojia-item"
  129. :style="{
  130. background:
  131. guajiashow == item.gua_jia_hao_ + '号挂件'
  132. ? '#FF9900'
  133. : '#e5baba',
  134. }"
  135. @click="gua_jia_Event"
  136. v-for="(item, index) in gua_jia_arr"
  137. :key="index"
  138. >
  139. {{ item.gua_jia_hao_ }}号挂件
  140. </li>
  141. </ul>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="body-content">
  146. <div class="left-table" v-if="false"></div>
  147. <div class="right-view">
  148. <div class="goods-items">
  149. <div class="show-demo" v-for="(item, index) in listData" :key="index">
  150. <div>
  151. <div class="goods-level">
  152. <div class="level-dsc">第{{ index }}层</div>
  153. <div class="goods-list">
  154. <div
  155. class="goods-dsc"
  156. v-for="(it, ind) in listData[index]"
  157. :key="ind"
  158. :style="{
  159. background:
  160. it.yang_pin_bian_hao ? '#E6A23C' : '',
  161. }"
  162. >
  163. <div class="top-dsc">
  164. <div class="position">
  165. <p>{{it.wei_zhi_zhuang_ta }}</p>
  166. <p>存放位置:{{ it.wei_zhi_bian_hao_ }}</p>
  167. <p>样品编号:{{ it.yang_pin_bian_hao }}</p>
  168. <p>
  169. 存储条件:{{
  170. it.cun_chu_tiao_jian || it.cun_chu_yao_qiu_
  171. }}
  172. </p>
  173. <p>留样期限:{{ it.liu_yang_qi_xian_ }}</p>
  174. <!-- <p>编号:{{it.yang_pin_bian_hao}}</p> -->
  175. <!-- <p>批次:</p>
  176. <p>有效期:</p> -->
  177. </div>
  178. <div class="right-content" v-if="false">
  179. <p v-if="false">编号:{{ it.liu_yang_qi_xian_ }}</p>
  180. <p>
  181. {{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
  182. </p>
  183. <p v-if="false">
  184. 存储条件:{{
  185. it.cun_chu_tiao_jian || it.cun_chu_yao_qiu_
  186. }}
  187. </p>
  188. <p v-if="false">留样期限:{{ it.liu_yang_qi_xian_ }}</p>
  189. <!-- <p>类型:{{ it.cun_fang_lei_xing }}</p> -->
  190. </div>
  191. <div class="right-content">
  192. <p>
  193. {{ it.yang_pin_ming_che|| it.wei_zhi_zhuang_ta }}
  194. </p>
  195. </div>
  196. <!-- <div class="condition">{{ it.cun_chu_tiao_jian }}</div> -->
  197. </div>
  198. <div class="bottom-dsc" v-if="false">
  199. {{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="goodshelf-name" v-if="index == 1">
  206. {{ desString }}
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. </template>
  214. <script>
  215. import FixHeight from "@/mixins/height";
  216. import curdPost from "@/business/platform/form/utils/custom/joinCURD.js";
  217. export default {
  218. mixins: [FixHeight],
  219. data() {
  220. return {
  221. sampleOption: [],
  222. formInline: {
  223. fang_jian_hao_value: "",
  224. qu_yu_value: "",
  225. huo_jia_value: "",
  226. gua_jia_value: "",
  227. },
  228. listData: [],
  229. warehouseOptions: [],
  230. quyu_arr: [],
  231. huo_jia_arr: [],
  232. gua_jia_arr: [],
  233. firstLoadActive: true,
  234. qu_yu_value: "",
  235. quyuShow: "",
  236. huojiashow: "",
  237. guajiashow: "",
  238. leixingcare: true,
  239. cenghao: [],
  240. warehouse: [],
  241. loading: false,
  242. // pagination: {},
  243. // secondshow: false,
  244. desString: "",
  245. };
  246. },
  247. filters: {
  248. specimenFilters: function (value) {
  249. if (value == "空余") {
  250. return "未占用";
  251. } else {
  252. return value;
  253. }
  254. },
  255. },
  256. created() {
  257. this.loadQueryData();
  258. this.firstLoadViewData();
  259. },
  260. methods: {
  261. firstLoadViewData() {
  262. var this_ = this;
  263. var sqlString = `select * from t_mjypcfwz where fang_jian_lei_xin = '样品间' and qu_yu_ ='待检区' and huo_jia_hao_ = '1' and huo_jia_lei_xing_ = '冰箱'`;
  264. this.huojiashow = "1号冰箱";
  265. this.quyuShow = "待检区";
  266. this.desString = "样品间" + "待检区1号冰箱";
  267. this.queryLoad(sqlString);
  268. this.formInline.fang_jian_hao_value = "样品间";
  269. this.formInline.qu_yu_value = "待检区";
  270. this.formInline.huo_jia_value = "1号冰箱";
  271. let sql = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '样品间' and qu_yu_ ='待检区' order by huo_jia_hao_ asc `;
  272. curdPost("sql", sql).then((response) => {
  273. this_.huo_jia_arr = response.variables.data;
  274. });
  275. },
  276. loadQueryData() {
  277. //查询选择数据查询
  278. var sqlString = "select distinct fang_jian_lei_xin from t_mjypcfwz WHERE fang_jian_lei_xin !=''";
  279. // var sqlString = "select * from t_mjypcfwz";
  280. var this_ = this;
  281. curdPost("sql", sqlString)
  282. .then((response) => {
  283. this_.sampleOption = response.variables.data;
  284. // this_.sampleOption.pop();
  285. })
  286. },
  287. onSubmits(sql) {
  288. var fang_jian_ = this.formInline.fang_jian_hao_value;
  289. var qu_yu = this.formInline.qu_yu_value;
  290. var huo_jia_hao_ = this.formInline.huo_jia_value.substr(0, 1);
  291. let huo_jia_lei_xing_ = this.formInline.huo_jia_value.substr(
  292. 2,
  293. this.formInline.huo_jia_value.length
  294. );
  295. var gua_jia_hao = this.formInline.gua_jia_value.substr(0, 1);
  296. var sql;
  297. if (qu_yu != "") {;
  298. sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and qu_yu_ = '${qu_yu}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
  299. } else {
  300. if (huo_jia_lei_xing_.includes("冰箱")) {
  301. sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
  302. } else if (huo_jia_lei_xing_.includes("液氮罐")) {
  303. sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}' and gua_jia_hao_= '${gua_jia_hao}'`;
  304. }
  305. }
  306. // this.desString = fang_jian_ + qu_yu + huo_jia_hao_;
  307. this.queryLoad(sql);
  308. },
  309. queryLoad(sql) {
  310. //根据样品信息货位查询相对应的样品登记表
  311. var datas = [];
  312. var labelsMap = {}; // map存储
  313. var this_ = this;
  314. this_.listData = [];
  315. curdPost("sql", sql).then((res) => {
  316. datas = res.variables.data;
  317. datas.forEach((item) => {
  318. if (!labelsMap[item.ceng_hao_]) {
  319. //没有就创建
  320. labelsMap[item.ceng_hao_] = [];
  321. }
  322. // 通过样品货位配置的id外键 查询样品登记表
  323. let yangpingSql =
  324. "select * from t_mjypdjb WHERE shou_yang_wei_zhi = '" +
  325. item.id_ +
  326. "'";
  327. curdPost("sql", yangpingSql).then((res) => {
  328. var resData = res.variables.data;
  329. if (resData.length > 0) {
  330. resData.forEach((it) => {
  331. it.wei_zhi_bian_hao_ = item.wei_zhi_bian_hao_;
  332. labelsMap[item.ceng_hao_].push(it);
  333. });
  334. } else {
  335. labelsMap[item.ceng_hao_].push(item);
  336. }
  337. });
  338. });
  339. // this.loading = true;
  340. this_.listData = labelsMap;
  341. });
  342. },
  343. qu_yu_Event(e) {
  344. //区间 留样 样品间 点击事件 查询相应的货架号->冰箱 赋值 huo_jia_hao_
  345. this.huo_jia_arrEvent(e.target.innerText);
  346. this.huojiashow = "";
  347. this.guajiashow = "";
  348. let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${e.target.innerText}' order by huo_jia_hao_ asc`;
  349. var this_ = this;
  350. this.qu_yu_value = e.target.innerText;
  351. this.quyuShow = e.target.innerText;
  352. this.formInline.qu_yu_value = e.target.innerText;
  353. curdPost("sql", sqlString).then((response) => {
  354. this_.huo_jia_arr = response.variables.data;
  355. });
  356. },
  357. huo_jia_hao_Event(e) {
  358. //货架 冰箱 液氮罐点击事件
  359. this.guajiashow = "";
  360. let selectText = e.target.innerText;
  361. this.guajiaarrEvent(selectText);
  362. this.huojiashow = selectText;
  363. let huojiaNum = selectText.substr(0, 1);
  364. this.formInline.huo_jia_value = selectText;
  365. let huojialeixing = this.formInline.huo_jia_value.substr(
  366. 2,
  367. this.formInline.huo_jia_value.length
  368. );
  369. //区分是冰箱和液氮罐的点击事件
  370. if (selectText.includes("冰箱")) {
  371. //如果是冰箱 请求样品货位配置信息 ->查询登记表
  372. var sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${this.formInline.qu_yu_value}' and huo_jia_lei_xing_ = '${huojialeixing}' and huo_jia_hao_ = '${huojiaNum}'`;
  373. this.queryLoad(sql);
  374. // alert("冰箱");
  375. } else if (selectText.includes("液氮罐")) {
  376. //液氮罐 查询该液氮罐下所有的挂件
  377. let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_ asc`;
  378. var this_ = this;
  379. curdPost("sql", sqlString).then((response) => {
  380. this_.gua_jia_arr = response.variables.data;
  381. });
  382. }
  383. this.formInline.huo_jia_value = selectText;
  384. },
  385. gua_jia_Event(e) {
  386. //液氮罐挂件号点击事件 查询该液氮罐下该挂件的货位位置信息;
  387. let selectText = e.target.innerText;
  388. this.guajiashow = selectText;
  389. let hguajiaNum = selectText.substr(0, 1);
  390. var fang_jian_hao_value = this.formInline.fang_jian_hao_value;
  391. var huo_jia_value = this.formInline.huo_jia_value;
  392. var sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_hao_value}' and huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huo_jia_value.substring(
  393. 0,
  394. 1
  395. )}' and gua_jia_hao_= '${hguajiaNum}'`;
  396. this.desString = fang_jian_hao_value + huo_jia_value + selectText;
  397. this.queryLoad(sql);
  398. },
  399. huo_jia_arrEvent(quyu){
  400. let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${quyu}' order by huo_jia_hao_ asc`;
  401. var this_ = this;
  402. curdPost("sql", sqlString).then((response) => {
  403. this_.huo_jia_arr = response.variables.data;
  404. if (!this_.firstLoadActive) {
  405. this_.formInline.huo_jia_value = "";
  406. }
  407. this_.firstLoadActive = false;
  408. });
  409. },
  410. guajiaarrEvent(huojiaweizhi) {
  411. let huojiaNum = huojiaweizhi.substr(0, 1);
  412. let huojialeixing = huojiaweizhi.substr(2, huojiaweizhi.length);
  413. if(huojiaweizhi.includes("冰箱")){
  414. this.gua_jia_arr =[];
  415. return
  416. }
  417. let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where fang_jian_lei_xin = '留样间' and huo_jia_lei_xing_ = '${huojialeixing}' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_`;
  418. var this_ = this;
  419. curdPost("sql", sqlString).then((response) => {
  420. this_.gua_jia_arr = response.variables.data;
  421. });
  422. },
  423. },
  424. watch: {
  425. "formInline.fang_jian_hao_value": function (newdata, olddata) {
  426. //监控房间号 input 输入框数据变化 来改变区域和货架信息(input)
  427. this.huo_jia_arr = [];
  428. let sqlString = `select distinct qu_yu_ ,huo_jia_hao_ from t_mjypcfwz where fang_jian_lei_xin = '${newdata}' `;
  429. var this_ = this;
  430. curdPost("sql", sqlString).then((response) => {
  431. this_.quyu_arr = response.variables.data.reverse();
  432. this_.quyu_arr.forEach((item) => {
  433. //待优化 事实上是一个用来判断
  434. if (item.qu_yu_ == "") {
  435. this_.leixingcare = false;
  436. this_.formInline.qu_yu_value = "";
  437. let sql = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${newdata}' order by huo_jia_hao_ asc`;
  438. curdPost("sql", sql).then((res) => {
  439. this_.huo_jia_arr = res.variables.data;
  440. });
  441. return;
  442. } else {
  443. this_.leixingcare = true;
  444. }
  445. });
  446. if (!this.firstLoadActive) {
  447. this_.formInline.qu_yu_value = "";
  448. }
  449. });
  450. },
  451. // "formInline.qu_yu_value": function (newdata, olddata) {
  452. // let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${newdata}' order by huo_jia_hao_ asc`;
  453. // var this_ = this;
  454. // curdPost("sql", sqlString).then((response) => {
  455. // this_.huo_jia_arr = response.variables.data;
  456. // if (!this_.firstLoadActive) {
  457. // this_.formInline.huo_jia_value = "";
  458. // }
  459. // this_.firstLoadActive = false;
  460. // });
  461. // },
  462. // "formInline.huo_jia_value": function (newdata, olddata) {
  463. // console.log(newdata.substr(0, 1), "货架监听");
  464. // let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where fang_jian_lei_xin = '留样间' and huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${newdata.substr(
  465. // 0,
  466. // 1
  467. // )}' order by gua_jia_hao_`;
  468. // var this_ = this;
  469. // console.log(sqlString, "件数");
  470. // curdPost("sql", sqlString).then((response) => {
  471. // this_.gua_jia_arr = response.variables.data;
  472. // console.log(this_.gua_jia_arr, "挂件数");
  473. // });
  474. // },
  475. },
  476. };
  477. </script>
  478. <style lang="scss" scoped>
  479. p {
  480. padding: 0;
  481. margin: 0;
  482. }
  483. .sample-content {
  484. width: 100%;
  485. .top-content {
  486. width: 100%;
  487. .top-title {
  488. text-align: center;
  489. font-weight: bold;
  490. width: 100%;
  491. font-size: 18px;
  492. line-height: 40px;
  493. }
  494. .query-content {
  495. display: flex;
  496. margin-left: 25px;
  497. }
  498. }
  499. .select_quyu {
  500. .test-quyu,
  501. .huojia {
  502. width: 100%;
  503. .list-items {
  504. display: flex;
  505. cursor: pointer;
  506. .quyu-item {
  507. background: #0099cc;
  508. }
  509. .huojia-item {
  510. background: #99ccff;
  511. }
  512. .list-item {
  513. padding: 0px 10px;
  514. background-color: rgb(206, 198, 164);
  515. text-align: center;
  516. line-height: 35px;
  517. margin-left: 20px;
  518. border-radius: 10px;
  519. }
  520. }
  521. .cangku-mingchen {
  522. width: 100%;
  523. text-align: left;
  524. margin-left: 50px;
  525. }
  526. }
  527. }
  528. .body-content {
  529. // margin-top: 70px;
  530. display: flex;
  531. box-sizing: border-box;
  532. height: calc(100vh - 340px);
  533. overflow-x: hidden;
  534. overflow-y: scroll;
  535. // .left-table {
  536. // // width: 40%;
  537. // ::v-deep .el-table {
  538. // width: 40%;
  539. // }
  540. // }
  541. .right-view {
  542. z-index: 99;
  543. width: 100%;
  544. .goods-items {
  545. width: 100%;
  546. border: solid 2px rgb(202, 236, 247);
  547. display: flex;
  548. flex-direction: column-reverse;
  549. .show-demo {
  550. width: 100%;
  551. border-bottom: 1px solid bisque;
  552. // margin: 0 auto;
  553. text-align: center;
  554. .goods-level {
  555. display: flex;
  556. position: relative;
  557. margin-bottom: 6px;
  558. }
  559. .level-dsc {
  560. margin-top: 12px;
  561. position: absolute;
  562. bottom: 0;
  563. left: 10px;
  564. }
  565. .goods-list {
  566. display: flex;
  567. // justify-content: flex-start;
  568. flex-wrap: wrap-reverse;
  569. align-content: flex-start;
  570. margin-left: 50px;
  571. .goods-dsc {
  572. cursor: pointer;
  573. padding: 2px 6px;
  574. border-radius: 5px;
  575. background: #67c23a;
  576. margin-left: 12px;
  577. margin-top: 6px;
  578. box-sizing: border-box;
  579. .top-dsc {
  580. display: flex;
  581. justify-content: space-between;
  582. font-size: 12px;
  583. // height: 18px;
  584. line-height: 18px;
  585. .position > p {
  586. text-align: left;
  587. color: #fbe8ff;
  588. }
  589. .right-content {
  590. display: flex;
  591. align-items: center;
  592. p {
  593. height: 18px;
  594. line-height: 18px;
  595. margin-left: 5px;
  596. color: #fbe8ff;
  597. text-align: left;
  598. }
  599. }
  600. }
  601. .bottom-dsc {
  602. width: 100%;
  603. text-align: center;
  604. font-size: 18px;
  605. height: 45px;
  606. line-height: 45px;
  607. margin-top: 9px;
  608. color: #fbe8ff;
  609. }
  610. .goods-demo {
  611. display: block;
  612. width: 70px;
  613. height: 90px;
  614. border: 1px solid rgb(10, 9, 8);
  615. text-align: center;
  616. margin: 0;
  617. }
  618. .goods-code {
  619. text-align: center;
  620. width: 100%;
  621. height: 20px;
  622. line-height: 20px;
  623. }
  624. }
  625. }
  626. .goodshelf-name {
  627. margin: 15px 0px;
  628. }
  629. .shelf {
  630. width: 100%;
  631. height: 40px;
  632. line-height: 40px;
  633. text-align: center;
  634. }
  635. }
  636. // .shelf-pointer {
  637. // position: fixed;
  638. // right: 75px;
  639. // bottom: 35%;
  640. // cursor: pointer;
  641. // .pointer {
  642. // .pointer-item {
  643. // width: 45px;
  644. // height: 45px;
  645. // line-height: 45px;
  646. // border: 1px solid #fcfefd;
  647. // background-color: #fcb400;
  648. // border-radius: 50%;
  649. // text-align: center;
  650. // color: #fff0f3;
  651. // font-size: 18px;
  652. // margin-top: 10px;
  653. // }
  654. // }
  655. // }
  656. }
  657. }
  658. }
  659. }
  660. </style>