liuyangData.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  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. class="list-item quyu-item"
  19. :style="{
  20. background: quyuShows == item.qu_yu_+'' ? '#FF9900' : '#0099CC',
  21. }"
  22. @click="qu_yu_Event"
  23. v-for="item in quyu_arr"
  24. :key="item.qu_yu_"
  25. >
  26. {{ item.qu_yu_ }}
  27. </li>
  28. </ul>
  29. </div>
  30. </div>
  31. <div class="huojia">
  32. <div class="test-list">
  33. <ul class="list-items">
  34. <li
  35. class="list-item huojia-item"
  36. :style="{
  37. background:
  38. huojiashow ==
  39. item.huo_jia_hao_ + '号' + item.huo_jia_lei_xing_
  40. ? '#ff9900'
  41. : '#0099cc',
  42. }"
  43. @click="huo_jia_hao_Event"
  44. v-for="(item, index) in huo_jia_arr"
  45. :key="index"
  46. >
  47. {{ item.huo_jia_hao_ }}号{{ item.huo_jia_lei_xing_ }}
  48. </li>
  49. </ul>
  50. </div>
  51. </div>
  52. <!-- <div class="huojia">
  53. <div class="test-list" v-show="!leixingcare">
  54. <ul class="list-items">
  55. <li
  56. class="list-item huojia-item"
  57. :style="{
  58. background:
  59. guajiashow == item.gua_jia_hao_ + '号挂架'
  60. ? '#FF9900'
  61. : '#e5baba',
  62. }"
  63. @click="gua_jia_Event"
  64. v-for="(item, index) in gua_jia_arr"
  65. :key="index"
  66. >
  67. {{ item.gua_jia_hao_ }}号挂架
  68. </li>
  69. </ul>
  70. </div>
  71. </div> -->
  72. </div>
  73. <div class="body-content" >
  74. <div class="right-view" >
  75. <div class="goods-items">
  76. <div
  77. class="show-demo"
  78. v-for="(item, index) in listData"
  79. :key="index"
  80. >
  81. <div >
  82. <div class="goods-level">
  83. <div class="level-dsc">第{{ index }}层</div>
  84. <div class="goods-list">
  85. <div
  86. class="goods-dsc"
  87. v-for="(it, ind) in listData[index]"
  88. :key="ind"
  89. :style="{ background: it.wei_zhi_zhuang_ta == '空余' ? 'green' : '#E6A23C',}"
  90. @click="positionClick(it)"
  91. >
  92. <div class="top-dsc">
  93. <div class="position">
  94. <p>位置:{{ it.wei_zhi_bian_hao_ }}</p>
  95. <p>样品编号:{{ it.yang_pin_bian_hao }}</p>
  96. <p>样品名称:{{ it.yang_pin_ming_che}}</p>
  97. <p>存储条件:{{it.cun_chu_tiao_jian }}</p>
  98. <p>收样日期:{{ it.ru_ku_shi_jian_}}</p>
  99. <!-- <p>
  100. 存储条件:{{
  101. it.cun_chu_tiao_jian || it.cun_chu_yao_qiu_
  102. }}
  103. </p>
  104. <p >收样日期:{{ it.shou_yang_ri_qi_}}</p>
  105. <p v-if="it.shi_fou_liu_yang_ =='是'">留样期限:{{ it.liu_yang_qi_xian_}}</p>
  106. -->
  107. <!-- <p>编号:{{it.yang_pin_bian_hao}}</p> -->
  108. <!-- <p>批次:</p>
  109. <p>有效期:</p> -->
  110. </div>
  111. <!-- <div class="right-content" v-if="false">
  112. <p v-if="false">编号:{{ it.liu_yang_qi_xian_ }}</p>
  113. <p>
  114. {{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
  115. </p>
  116. <p v-if="false">
  117. 存储条件:{{
  118. it.cun_chu_tiao_jian || it.cun_chu_yao_qiu_
  119. }}
  120. </p>
  121. </div> -->
  122. <div class="right-content">
  123. <p>
  124. {{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
  125. </p>
  126. </div>
  127. </div>
  128. <div class="bottom-dsc" v-if="false">
  129. {{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </template>
  142. <script>
  143. import FixHeight from "@/mixins/height";
  144. import curdPost from "@/business/platform/form/utils/custom/joinCURD.js";
  145. export default {
  146. mixins: [FixHeight],
  147. data() {
  148. return {
  149. placeValue: "点击选择位置",
  150. viewShow: false,
  151. leixingcare: true,
  152. sampleOption: [],
  153. formInline: {
  154. fang_jian_hao_value: "",
  155. qu_yu_value: "",
  156. huo_jia_value: "",
  157. gua_jia_value: "",
  158. },
  159. listData: [],
  160. warehouseOptions: [],
  161. quyu_arr: [],
  162. huo_jia_arr: [],
  163. gua_jia_arr: [],
  164. firstLoadActive: true,
  165. qu_yu_value: "",
  166. quyuShow: "待检区",
  167. quyuShows: "",
  168. huojiashow: "",
  169. guajiashow: "",
  170. leixingcare: true,
  171. cenghao: [],
  172. warehouse: [],
  173. loading: false,
  174. // pagination: {},
  175. // secondshow: false,
  176. desString: "",
  177. value:'',
  178. };
  179. },
  180. filters: {
  181. specimenFilters: function (value) {
  182. if (value == "空余") {
  183. return "未占用";
  184. } else {
  185. return value;
  186. }
  187. },
  188. },
  189. created() {
  190. // this.loadQueryData();
  191. // this.firstLoadViewData();
  192. this.morenweizhi();
  193. },
  194. methods: {
  195. positionBtn() {
  196. this.loadQueryData();
  197. this.firstLoadViewData();
  198. this.viewShow = !this.viewShow;
  199. // console.log(this.viewShow);
  200. },
  201. positionClick(values) {
  202. this.viewShow = !this.viewShow;
  203. this.placeValue = values.wei_zhi_bian_hao_;
  204. let this_ = this;
  205. let id = values.id_;
  206. this_.$emit("input", id); //传导
  207. },
  208. firstLoadViewData() {
  209. var this_ = this;
  210. var sqlString = `select * from t_ypcfwz WHERE fang_jian_lei_xin = '样品间' AND qu_yu_ = '留样区' AND huo_jia_lei_xing_ = '医用冷藏冷冻箱' AND huo_jia_hao_ = '5T'`;
  211. this.huojiashow = "5T号医用冷藏冷冻箱";
  212. this.quyuShows = "留样区";
  213. // this.desString = "样品间" + "留样区5T号医用冷藏冷冻箱";
  214. this.queryLoad(sqlString);
  215. this.formInline.fang_jian_hao_value = "样品间";
  216. this.formInline.qu_yu_value = "留样区";
  217. this.formInline.huo_jia_value = "5T号医用冷藏冷冻箱";
  218. this.huo_jia_arrEvent("留样区")
  219. // let sql = `select distinct huo_jia_hao_ FROM t_ypcfwz WHERE fang_jian_lei_xin = '样品间' AND huo_jia_lei_xing_ = '号医用冷藏冷冻箱' AND huo_jia_hao_ = '5' ORDER BY huo_jia_hao_`;
  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. async morenweizhi(){
  391. let data = []
  392. var sqlString ="select * from t_ypwzmrxzb";
  393. await curdPost("sql", sqlString).then((response) => {
  394. data = response.variables.data[0];
  395. })
  396. .catch((err) => {
  397. console.log(err, "err------>");
  398. });
  399. this.placeValue = data.yang_pin_liu_yang;
  400. this.value = data.yang_pin_liu_yang;
  401. // this.formInline.cun_fang_id_ = data.cun_fang_id_;
  402. // this.formInline.yang_pin_liu_yang = data.yang_pin_liu_yang;
  403. // this.formInline.liu_yang_id_ = data.liu_yang_id_;
  404. }
  405. },
  406. watch: {
  407. "formInline.fang_jian_hao_value": function (newdata, olddata) {
  408. //监控房间号 input 输入框数据变化 来改变区域和货架信息(input)
  409. this.huo_jia_arr = [];
  410. let sqlString = `select distinct qu_yu_ ,huo_jia_hao_ from t_ypcfwz where fang_jian_lei_xin = '${newdata}' `;
  411. var this_ = this;
  412. this_.formInline.qu_yu_value = "";
  413. this_.formInline.gua_jia_value = "";
  414. this_.formInline.huo_jia_value = "";
  415. this_.describeFn();
  416. curdPost("sql", sqlString).then((response) => {
  417. let person = response.variables.data;
  418. let obj = {};
  419. let peon = person.reduce((cur, next) => {
  420. obj[next.qu_yu_] ? "" : (obj[next.qu_yu_] = true && cur.push(next));
  421. return cur;
  422. }, []); //设置cur默认类型为数组,并且初始值为空的数组
  423. console.log(peon,"12");
  424. this_.quyu_arr = peon; //区域获取
  425. this_.quyu_arr.forEach((item) => {
  426. if (item.qu_yu_ == "") {
  427. //区域值为空
  428. this_.leixingcare = false;
  429. 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`;
  430. curdPost("sql", sql).then((res) => {
  431. this_.huo_jia_arr = res.variables.data;
  432. });
  433. return;
  434. } else {
  435. this_.leixingcare = true;
  436. }
  437. });
  438. console.log(this_.quyu_arr,"12")
  439. if (!this.firstLoadActive) {
  440. this_.formInline.qu_yu_value = "";
  441. }
  442. });
  443. },
  444. "formInline.qu_yu_value": function (newdata, olddata) {
  445. //监控区域变化 input 输入框数据变化 来改变区域和货架信息(input)
  446. this.quyuShow = newdata;
  447. this.huo_jia_arrEvent(newdata);
  448. this.huojiashow = "";
  449. this.guajiashow = "";
  450. this.formInline.qu_yu_value = newdata;
  451. 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`;
  452. var this_ = this;
  453. this.qu_yu_value = newdata;
  454. this.quyuShow = olddata;
  455. // console.log(sqlString, "货架变化");
  456. curdPost("sql", sqlString)
  457. .then((response) => {
  458. this_.huo_jia_arr = response.variables.data;
  459. })
  460. .catch((err) => {
  461. console.log(err);
  462. });
  463. this.describeFn();
  464. },
  465. "formInline.huo_jia_value": function (newdata, olddata) {
  466. //监控挂架变化 input 输入框数据变化 来改变区域和货架信息(input)
  467. this.huojiashow = newdata;
  468. },
  469. placeValue: function (newdata, olddata) {
  470. if (newdata == "" || newdata == null) {
  471. this.$emit("input", "");
  472. }
  473. },
  474. // "formInline.huo_jia_value": function (newdata, olddata) {
  475. // //监控货架变化 input 输入框数据变化 来改变区域和货架信息(input)
  476. // this.huojiashow = newdata;
  477. // //货架 冰箱 液氮罐点击事件
  478. // this.guajiashow = "";
  479. // let selectText = newdata;
  480. // this.guajiaarrEvent(selectText);
  481. // this.huojiashow = selectText;
  482. // let huojiaNum = selectText.substr(0, 1);
  483. // this.formInline.huo_jia_value = selectText;
  484. // this.formInline.gua_jia_value = "";
  485. // //区分是冰箱和液氮罐的点击事件
  486. // if (selectText.includes("冰箱")) {
  487. // //如果是冰箱 请求样品货位配置信息 ->查询登记表
  488. // } else if (selectText.includes("液氮罐")) {
  489. // //液氮罐 查询该液氮罐下所有的挂架
  490. // console.log(huojiaNum);
  491. // 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`;
  492. // var this_ = this;
  493. // curdPost("sql", sqlString).then((response) => {
  494. // this_.gua_jia_arr = response.variables.data;
  495. // });
  496. // }
  497. // 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`;
  498. // var this_ = this;
  499. // curdPost("sql", sqlString).then((response) => {
  500. // this_.gua_jia_arr = response.variables.data;
  501. // });
  502. // this.describeFn();
  503. // this.formInline.huo_jia_value = selectText;
  504. // },
  505. },
  506. };
  507. </script>
  508. <style lang="less" scoped>
  509. /deep/ .el-input__inner{
  510. color: none;
  511. }
  512. p {
  513. padding: 0;
  514. margin: 0;
  515. }
  516. .sample-content {
  517. width: 100%;
  518. // position: fixed;
  519. top: 50;
  520. position: relative;
  521. background: white;
  522. .close {
  523. position: fixed;
  524. right: 52px;
  525. top: 20px;
  526. color: red;
  527. z-index: 999;
  528. font-size: 45px;
  529. }
  530. .title {
  531. width: 100%;
  532. height: 14px;
  533. line-height: 24px;
  534. font-size: 24px;
  535. text-align: center;
  536. }
  537. .selectPo {
  538. cursor: pointer;
  539. z-index: 9;
  540. /deep/ .el-input__inner{
  541. color: red;
  542. }
  543. }
  544. .top-content {
  545. width: 100%;
  546. .top-title {
  547. text-align: center;
  548. font-weight: bold;
  549. width: 100%;
  550. font-size: 18px;
  551. line-height: 40px;
  552. }
  553. .query-content {
  554. display: flex;
  555. margin-left: 25px;
  556. }
  557. }
  558. .viewArea {
  559. position: fixed;
  560. left: 0;
  561. top: 0;
  562. width: 100%;
  563. background: white;
  564. z-index: 99 !important;
  565. }
  566. .select_quyu {
  567. .test-quyu,
  568. .huojia {
  569. width: 100%;
  570. .list-items {
  571. display: flex;
  572. cursor: pointer;
  573. .quyu-item {
  574. background: #0099cc;
  575. }
  576. .huojia-item {
  577. background: #99ccff;
  578. }
  579. .list-item {
  580. padding: 0px 10px;
  581. background-color: rgb(206, 198, 164);
  582. text-align: center;
  583. line-height: 35px;
  584. margin-left: 20px;
  585. border-radius: 10px;
  586. }
  587. }
  588. .cangku-mingchen {
  589. width: 100%;
  590. text-align: left;
  591. margin-left: 50px;
  592. }
  593. }
  594. }
  595. .body-content {
  596. margin-bottom: 20px;
  597. display: flex;
  598. box-sizing: border-box;
  599. height: 100vh;
  600. overflow-x: hidden;
  601. overflow-y: scroll;
  602. // .left-table {
  603. // // width: 40%;
  604. // ::v-deep .el-table {
  605. // width: 40%;
  606. // }
  607. // }
  608. .right-view {
  609. z-index: 99;
  610. width: 100%;
  611. .goods-items {
  612. width: 100%;
  613. border: solid 2px rgb(202, 236, 247);
  614. display: flex;
  615. flex-direction: column-reverse;
  616. .show-demo {
  617. width: 100%;
  618. // border-bottom: 1px solid bisque;
  619. // margin: 0 auto;
  620. text-align: center;
  621. .goods-level {
  622. display: flex;
  623. position: relative;
  624. margin-bottom: 6px;
  625. }
  626. .level-dsc {
  627. margin-top: 12px;
  628. position: absolute;
  629. bottom: 0;
  630. left: 10px;
  631. }
  632. .goods-list {
  633. display: flex;
  634. // justify-content: flex-start;
  635. flex-wrap: wrap-reverse;
  636. align-content: flex-start;
  637. margin-left: 50px;
  638. margin-right: 15px;
  639. .goods-dsc {
  640. cursor: pointer;
  641. padding: 2px 6px;
  642. border-radius: 5px;
  643. background: #e6a23c;
  644. margin-left: 12px;
  645. margin-top: 6px;
  646. // box-sizing: border-box;
  647. .top-dsc {
  648. display: flex;
  649. justify-content: space-between;
  650. font-size: 12px;
  651. // height: 18px;
  652. line-height: 18px;
  653. .position {
  654. width: 160px;
  655. overflow: hidden;
  656. }
  657. .position > p {
  658. text-align: left;
  659. color: #fbe8ff;
  660. }
  661. .right-content {
  662. display: flex;
  663. align-items: center;
  664. p {
  665. height: 18px;
  666. line-height: 18px;
  667. margin-left: 5px;
  668. color: #fbe8ff;
  669. text-align: left;
  670. }
  671. }
  672. }
  673. .bottom-dsc {
  674. width: 100%;
  675. text-align: center;
  676. font-size: 18px;
  677. height: 45px;
  678. line-height: 45px;
  679. margin-top: 9px;
  680. color: #fbe8ff;
  681. }
  682. .goods-demo {
  683. display: block;
  684. width: 70px;
  685. height: 90px;
  686. border: 1px solid rgb(10, 9, 8);
  687. text-align: center;
  688. margin: 0;
  689. }
  690. .goods-code {
  691. text-align: center;
  692. width: 100%;
  693. height: 20px;
  694. line-height: 20px;
  695. }
  696. }
  697. }
  698. .goodshelf-name {
  699. margin: 15px 0px;
  700. }
  701. .shelf {
  702. width: 100%;
  703. height: 40px;
  704. line-height: 40px;
  705. text-align: center;
  706. }
  707. }
  708. }
  709. }
  710. }
  711. }
  712. </style>