weizhiData.vue 25 KB

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