warehouse.js.map 8.9 KB

1
  1. {"version":3,"file":"warehouse.js","sources":["pages/warehouse/warehouse.vue","../../../Program Files/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvd2FyZWhvdXNlL3dhcmVob3VzZS52dWU"],"sourcesContent":["<template>\r\n\t<view class=\"page\">\r\n\t\t<view class=\"navbar\">\r\n\t\t\t<view v-for=\"(item, index) in navList\" :key=\"index\" class=\"nav-item\"\r\n\t\t\t\t:class=\"{current: tabCurrentIndex === index}\" @click=\"tabClick(index)\">\r\n\t\t\t\t{{item.text}}\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<swiper :current=\"tabCurrentIndex\" class=\"swiper-box\" duration=\"300\" @change=\"changeTab\">\r\n\t\t\t<swiper-item class=\"tab-content\">\r\n\t\t\t\t<scroll-view class=\"list-scroll-content\" scroll-y>\r\n\t\t\t\t\t<view class=\"warehouse-list\">\r\n\t\t\t\t\t\t<view v-for=\"(warehouse, index) in warehouses\" :key=\"index\" class=\"warehouse-item\">\r\n\t\t\t\t\t\t\t<view class=\"warehouse-header\">\r\n\t\t\t\t\t\t\t\t<view class=\"info-container\">\r\n\t\t\t\t\t\t\t\t\t<view class=\"warehouse-name\">\r\n\t\t\t\t\t\t\t\t\t\t<image src=\"../../static/icons/warehouse-ico.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t\t\t\t\t<text>仓房名称:{{ warehouse.name }}</text>\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"select-button\">\r\n\t\t\t\t\t\t\t\t\t<checkbox :checked=\"warehouse.selected\" @change=\"toggleSelection(index)\"></checkbox>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"warehouse-details\">\r\n\t\t\t\t\t\t\t\t<view class=\"detail-row\">\r\n\t\t\t\t\t\t\t\t\t<text>仓库类型: {{ warehouse.emptyRooms }}</text>\r\n\t\t\t\t\t\t\t\t\t<text>仓库状态: {{ warehouse.selected ? '1个' : '0个' }}</text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"detail-row\">\r\n\t\t\t\t\t\t\t\t\t<text>设计仓容: {{ warehouse.capacity }}</text>\r\n\t\t\t\t\t\t\t\t\t<text>是否空仓: {{ warehouse.rooms }}</text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"detail-row\">\r\n\t\t\t\t\t\t\t\t\t<text>租仓参考价: {{ warehouse.emptyRooms }}</text>\r\n\t\t\t\t\t\t\t\t\t<text>委托保管参考价: {{ warehouse.selected ? '1个' : '0个' }}</text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\r\n\t\t\t\t</scroll-view>\r\n\t\t\t\t<view class=\"button-container\">\r\n\t\t\t\t\t<view class=\"button-pad\">\r\n\t\t\t\t\t\t<button class=\"select-all\" @click=\"selectAll\">全选</button>\r\n\t\t\t\t\t\t<button class=\"confirm\" @click=\"confirmSelection\">确 认</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</swiper-item>\r\n\t\t\t<swiper-item class=\"tab-content\">\r\n\t\t\t\t<scroll-view class=\"info-scroll-content\" scroll-y>\r\n\t\t\t\t\t<view class=\"warehouse-info\">\r\n\t\t\t\t\t\t<warehouse-info></warehouse-info>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</scroll-view>\r\n\t\t\t</swiper-item>\r\n\t\t</swiper>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport warehouseInfo from \"./components/warehouseInfo/warehouseInfo.vue\";\r\n\timport {\r\n\t\tref\r\n\t} from 'vue';\r\n\tconst navList = [{\r\n\t\t\tstate: 0,\r\n\t\t\ttext: '仓房基本信息',\r\n\t\t\tloadingType: 'more',\r\n\t\t\torderList: []\r\n\t\t},\r\n\t\t{\r\n\t\t\tstate: 1,\r\n\t\t\ttext: '库区基本信息',\r\n\t\t\tloadingType: 'more',\r\n\t\t\torderList: []\r\n\t\t}\r\n\t]\r\n\tconst tabCurrentIndex = ref(0)\r\n\tconst tabClick = (index) => {\r\n\t\ttabCurrentIndex.value = index;\r\n\t}\r\n\tconst warehouses = ref([{\r\n\t\t\tname: '1-1',\r\n\t\t\taddress: 'XXXXXXXXXX',\r\n\t\t\tcapacity: '1500吨',\r\n\t\t\trooms: '10个',\r\n\t\t\temptyRooms: '5个',\r\n\t\t\tselected: false\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'XXXXX',\r\n\t\t\taddress: 'XXXXXXXXXX',\r\n\t\t\tcapacity: '1500吨',\r\n\t\t\trooms: '10个',\r\n\t\t\temptyRooms: '5个',\r\n\t\t\tselected: false\r\n\t\t},\r\n\t\t{\r\n\t\t\tname: 'XXXXX',\r\n\t\t\taddress: 'XXXXXXXXXX',\r\n\t\t\tcapacity: '1500吨',\r\n\t\t\trooms: '10个',\r\n\t\t\temptyRooms: '5个',\r\n\t\t\tselected: false\r\n\t\t}\r\n\t]);\r\n\r\n\tconst toggleSelection = (index) => {\r\n\t\twarehouses.value[index].selected = !warehouses.value[index].selected;\r\n\t};\r\n\r\n\tconst selectAll = () => {\r\n\t\twarehouses.value.forEach(warehouse => {\r\n\t\t\twarehouse.selected = true;\r\n\t\t});\r\n\t};\r\n\r\n\tconst confirmSelection = () => {\r\n\t\t// Implement confirmation logic here\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.page {\r\n\t\tposition: relative; // 确保伪元素相对于 .page 定位\r\n\t}\r\n\r\n\t.page::before {\r\n\t\tcontent: '';\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\twidth: 100%;\r\n\t\theight: 200rpx; // 设置渐变的高度\r\n\t\tbackground: linear-gradient(180deg, #cfddfc, #eff2f5);\r\n\t\tz-index: -1; // 确保它在内容之下\r\n\t}\r\n\r\n\t.warehouse-list {\r\n\t\tpadding: 40rpx 40rpx 20rpx;\r\n\r\n\t\t.warehouse-item {\r\n\t\t\tbackground: linear-gradient(180deg, #ffffff, #F5F8FF);\r\n\t\t\tborder-radius: 10px;\r\n\t\t\tpadding: 20px;\r\n\t\t\tmargin-bottom: 20px;\r\n\t\t\tbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\r\n\r\n\t\t\t.warehouse-header {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\talign-items: flex-start; // 对齐到顶部\r\n\t\t\t\tpadding-bottom: 30rpx;\r\n\t\t\t\tborder-bottom: 1px solid #E7E8EA;\r\n\t\t\t\tfont-size: 35rpx;\r\n\t\t\t\tcolor: #00122F;\r\n\r\n\t\t\t\t.info-container {\r\n\t\t\t\t\tflex-grow: 1;\r\n\r\n\t\t\t\t\t.warehouse-name,\r\n\t\t\t\t\t.warehouse-address {\r\n\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t\tmargin-bottom: 5px;\r\n\r\n\t\t\t\t\t\t&:last-child {\r\n\t\t\t\t\t\t\tmargin-bottom: 0;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\timage {\r\n\t\t\t\t\t\t\twidth: 20px;\r\n\t\t\t\t\t\t\theight: 20px;\r\n\t\t\t\t\t\t\tmargin-right: 10px;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.select-button {\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: flex-start;\r\n\t\t\t\t\tmargin-left: 10px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.warehouse-details {\r\n\t\t\t\tpadding-top: 30rpx;\r\n\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\tcolor: #747476;\r\n\r\n\t\t\t\t.detail-row {\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\tjustify-content: space-between;\r\n\t\t\t\t\tmargin-bottom: 10px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.button-container {\r\n\t\tposition: fixed;\r\n\t\tbottom: 0;\r\n\t\tbackground-color: #ffffff;\r\n\t\twidth: 100vw;\r\n\t\tpadding: 40rpx 0;\r\n\r\n\t\t.button-pad {\r\n\t\t\tpadding: 0 40rpx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-between;\r\n\t\t}\r\n\r\n\r\n\t\t.select-all,\r\n\t\t.confirm {\r\n\t\t\twidth: 44%;\r\n\t\t\theight: 70rpx;\r\n\t\t\tline-height: 70rpx;\r\n\t\t\tborder-radius: 10rpx;\r\n\t\t\tbackground-color: #1E5FDF;\r\n\t\t\tcolor: #fff;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\ttext-align: center;\r\n\r\n\t\t}\r\n\t}\r\n\t\r\n\t.warehouse-info{\r\n\t\tpadding-top: 20rpx;\r\n\t}\r\n\r\n\t.navbar {\r\n\t\tdisplay: flex;\r\n\t\theight: 40px;\r\n\t\tpadding: 0 5px;\r\n\t\tposition: relative;\r\n\t\tz-index: 10;\r\n\t\r\n\t\t.nav-item {\r\n\t\t\tflex: 1;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\theight: 100%;\r\n\t\t\tfont-size: 35rpx;\r\n\t\t\tposition: relative;\r\n\t\t\tcolor: #334b68;\r\n\t\r\n\t\t\t&.current {\r\n\t\t\t\tcolor: #0f2239;\r\n\t\t\t\t&:after {\r\n\t\t\t\t\tcontent: '';\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\tleft: 50%;\r\n\t\t\t\t\tbottom: 0;\r\n\t\t\t\t\ttransform: translateX(-50%);\r\n\t\t\t\t\twidth: 60%;\r\n\t\t\t\t\theight: 0;\r\n\t\t\t\t\tborder-bottom: 4px solid #789fec;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t.swiper-box {\r\n\t\theight: calc(100vh - 80rpx);\r\n\t}\r\n\t\r\n\t.list-scroll-content {\r\n\t\theight: calc(100vh - 200rpx);\r\n\t}\r\n\t.info-scroll-content{\r\n\t\theight: calc(100vh - 120rpx);\r\n\t}\r\n</style>","import MiniProgramPage from 'D:/project/交割库/jgk-project/pages/warehouse/warehouse.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref"],"mappings":";;;;;;AA8DC,MAAM,gBAAgB,MAAW;;;;AAIjC,UAAM,UAAU;AAAA,MAAC;AAAA,QACf,OAAO;AAAA,QACP,MAAM;AAAA,QACN,aAAa;AAAA,QACb,WAAW,CAAE;AAAA,MACb;AAAA,MACD;AAAA,QACC,OAAO;AAAA,QACP,MAAM;AAAA,QACN,aAAa;AAAA,QACb,WAAW,CAAE;AAAA,MACb;AAAA,IACD;AACD,UAAM,kBAAkBA,cAAG,IAAC,CAAC;AAC7B,UAAM,WAAW,CAAC,UAAU;AAC3B,sBAAgB,QAAQ;AAAA,IACxB;AACD,UAAM,aAAaA,cAAAA,IAAI;AAAA,MAAC;AAAA,QACtB,MAAM;AAAA,QACN,SAAS;AAAA,QACT,UAAU;AAAA,QACV,OAAO;AAAA,QACP,YAAY;AAAA,QACZ,UAAU;AAAA,MACV;AAAA,MACD;AAAA,QACC,MAAM;AAAA,QACN,SAAS;AAAA,QACT,UAAU;AAAA,QACV,OAAO;AAAA,QACP,YAAY;AAAA,QACZ,UAAU;AAAA,MACV;AAAA,MACD;AAAA,QACC,MAAM;AAAA,QACN,SAAS;AAAA,QACT,UAAU;AAAA,QACV,OAAO;AAAA,QACP,YAAY;AAAA,QACZ,UAAU;AAAA,MACV;AAAA,IACH,CAAE;AAED,UAAM,kBAAkB,CAAC,UAAU;AAClC,iBAAW,MAAM,KAAK,EAAE,WAAW,CAAC,WAAW,MAAM,KAAK,EAAE;AAAA,IAC9D;AAEC,UAAM,YAAY,MAAM;AACvB,iBAAW,MAAM,QAAQ,eAAa;AACrC,kBAAU,WAAW;AAAA,MACxB,CAAG;AAAA,IACH;AAEC,UAAM,mBAAmB,MAAM;AAAA,IAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxHA,GAAG,WAAW,eAAe;"}