liuyangData.vue 24 KB

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