xingyy
xingyy 1 year ago
parent c8c792884f
commit 78043e01c0

@ -2,10 +2,17 @@
<div class="order-goods"> <div class="order-goods">
<title-block title="订单库"> <title-block title="订单库">
<template #left> <template #left>
<u-select v-model="show" :list="statusValue"></u-select> <u-action-sheet
:show="show"
:actions="this.statusValue.map(x=>({name:x.label,value:x.value}))"
title="请选择状态"
@close="show = false"
@select="statusSelect"
>
</u-action-sheet>
<div @click="openStatus" class="wrap1"> <div @click="openStatus" class="wrap1">
<div class="wrap1_1"> <div class="wrap1_1">
<div class="wrap1_1_1">全部状态</div> <div class="wrap1_1_1">{{ statusValue.find(x => x.value === status).label }}</div>
<image style="width: 12rpx;height: 8rpx" src="../../static/dbx2@3x.png"></image> <image style="width: 12rpx;height: 8rpx" src="../../static/dbx2@3x.png"></image>
</div> </div>
@ -19,9 +26,10 @@
<image src="../../static/zu1@3x.png"></image> <image src="../../static/zu1@3x.png"></image>
</div> </div>
<div class="wrap1_2"></div> <div class="wrap1_2"></div>
<input v-model="mobileKey" placeholder-style="color: #C7C7C7;font-size: 20rpx;" placeholder="在此处搜索您的订单"/> <input v-model="mobileKey" placeholder-style="color: #C7C7C7;font-size: 20rpx;"
placeholder="在此处搜索您的订单"/>
</div> </div>
<div class="wrap2"> <div class="wrap2" @click="search">
搜索 搜索
</div> </div>
@ -46,11 +54,11 @@
<div class="wrap1_3" :class="[`status${item.status}`]"> <div class="wrap1_3" :class="[`status${item.status}`]">
<div class="wrap1_3_1" v-if="item.status===4"> <div class="wrap1_3_1" v-if="item.status===4">
<div class="wrap1_3_1_1">2023.09.28</div> <div class="wrap1_3_1_1">2023.09.28</div>
<div class="wrap1_3_1_2">延期</div> <div class="wrap1_3_1_2">超时</div>
<div class="wrap1_3_1_3">点击补款</div> <div class="wrap1_3_1_3">点击补款</div>
</div> </div>
<div class="wrap1_3_3"> <div class="wrap1_3_3" v-if="item.status!==4">
<div class="wrap1_3_3_1">{{statusValue.find(x=>x.value===item.status).label}}</div> <div class="wrap1_3_3_1">{{ statusValue.find(x => x.value === item.status).label }}</div>
</div> </div>
<div class="wrap1_3_2"> <div class="wrap1_3_2">
<div class="wrap1_3_2_1">货架号:</div> <div class="wrap1_3_2_1">货架号:</div>
@ -62,7 +70,8 @@
<image style="width: 80rpx;height: 80rpx" src="../../static/zu154@3x.png"></image> <image style="width: 80rpx;height: 80rpx" src="../../static/zu154@3x.png"></image>
</div> </div>
</div> </div>
</div></scroll-view> </div>
</scroll-view>
<tabbar :current="1"></tabbar> <tabbar :current="1"></tabbar>
</div> </div>
@ -76,14 +85,18 @@ export default {
name: "index", name: "index",
data() { data() {
return { return {
show:false, show: false,
mobileKey:'', mobileKey: '',
startX: 0, startX: 0,
windowWidth: 0, windowWidth: 0,
page: 1, page: 1,
status: 0,
pageSize: 999, pageSize: 999,
mainList: [], mainList: [],
statusValue:[{label:'待入库',value:1},{label:'已入库',value:2},{label:'即将到期',value:3},{label:'超时',value:4},{label:'已取货',value:5}] statusValue: [{label: '全部状态', value: 0}, {label: '未入库', value: 1}, {
label: '已入库',
value: 2
}, {label: '即将到期', value: 3}, {label: '超时', value: 4}, {label: '已取货', value: 5}]
} }
}, },
components: {UImage, tabbar}, components: {UImage, tabbar},
@ -96,25 +109,30 @@ export default {
}) })
}, },
methods: { methods: {
openStatus(){ search() {
this.show=true this.getData()
console.log(this.show,'this.show') },
console.log('openStatus') statusSelect(data) {
this.status = data.value
this.getData()
},
openStatus() {
this.show = true
}, },
loadMore(){ loadMore() {
console.log('loadMore') console.log('loadMore')
}, },
async getData() { async getData() {
const data = { const data = {
page: this.page, // page: this.page, //
pageSize: this.pageSize, // pageSize: this.pageSize, //
status: 0, //(1- 2- 3- 4- 5-) status: this.status, //(1- 2- 3- 4- 5-)
mobileKey: this.mobileKey mobileKey: this.mobileKey
} }
const res = await postDataByParams('/api/warehouse/list', data) const res = await postDataByParams('/api/warehouse/list', data)
if (res.code === 200) { if (res.code === 200) {
this.mainList = res.data.data this.mainList = res.data.data
this.mainList.forEach((x) => { this.mainList?.forEach((x) => {
this.$set(x, 'distanceX', 0) this.$set(x, 'distanceX', 0)
this.$set(x, 'isRight', false) this.$set(x, 'isRight', false)
}) })
@ -155,6 +173,7 @@ export default {
height: 2000rpx; height: 2000rpx;
margin-bottom: 166rpx; margin-bottom: 166rpx;
.wrap1 { .wrap1 {
margin-bottom: 20rpx; margin-bottom: 20rpx;
position: relative; position: relative;
@ -164,6 +183,7 @@ export default {
height: 228rpx; height: 228rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.wrap1_4 { .wrap1_4 {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -185,24 +205,38 @@ export default {
position: relative; position: relative;
width: 144rpx; width: 144rpx;
height: 228rpx; height: 228rpx;
&.status1{
&.status1 {
background: #FFBA00; background: #FFBA00;
.wrap1_3_3_1{
.wrap1_3_3_1 {
color: #FFBA00; color: #FFBA00;
} }
} }
&.status2{
&.status2 {
background: #76C458; background: #76C458;
.wrap1_3_3_1{
.wrap1_3_3_1 {
color: #76C458; color: #76C458;
} }
} }
&.status3{
&.status3 {
background: #76C458; background: #76C458;
.wrap1_3_3_1{
.wrap1_3_3_1 {
color: #FF4848;
}
}
&.status4 {
background: #FF4848;
.wrap1_3_3_1 {
color: #FF4848; color: #FF4848;
} }
} }
.wrap1_3_2 { .wrap1_3_2 {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -221,8 +255,9 @@ export default {
} }
} }
.wrap1_3_3{
padding-top:18rpx; .wrap1_3_3 {
padding-top: 18rpx;
padding-bottom: 18rpx; padding-bottom: 18rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -233,12 +268,14 @@ export default {
width: 136rpx; width: 136rpx;
background-color: #fff; background-color: #fff;
position: absolute; position: absolute;
.wrap1_3_3_1{
.wrap1_3_3_1 {
text-align: center; text-align: center;
font-size: 28rpx; font-size: 28rpx;
} }
} }
.wrap1_3_1 { .wrap1_3_1 {
padding-bottom: 6rpx; padding-bottom: 6rpx;

@ -12,7 +12,7 @@
* 使scss scss 使 import * 使scss scss 使 import
*/ */
@import 'uview-ui/theme.scss'; @import 'uview-ui/theme.scss';
@import "./theme";
/* 颜色变量 */ /* 颜色变量 */
/* 行为相关颜色 */ /* 行为相关颜色 */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -5482,33 +5482,33 @@
} }
.u-border { .u-border {
border-width: 0.5px !important; border-width: 0.5px !important;
border-color: #e4e7ed !important; border-color: #dadbde !important;
border-style: solid; border-style: solid;
} }
.u-border-top { .u-border-top {
border-top-width: 0.5px !important; border-top-width: 0.5px !important;
border-color: #e4e7ed !important; border-color: #dadbde !important;
border-top-style: solid; border-top-style: solid;
} }
.u-border-left { .u-border-left {
border-left-width: 0.5px !important; border-left-width: 0.5px !important;
border-color: #e4e7ed !important; border-color: #dadbde !important;
border-left-style: solid; border-left-style: solid;
} }
.u-border-right { .u-border-right {
border-right-width: 0.5px !important; border-right-width: 0.5px !important;
border-color: #e4e7ed !important; border-color: #dadbde !important;
border-right-style: solid; border-right-style: solid;
} }
.u-border-bottom { .u-border-bottom {
border-bottom-width: 0.5px !important; border-bottom-width: 0.5px !important;
border-color: #e4e7ed !important; border-color: #dadbde !important;
border-bottom-style: solid; border-bottom-style: solid;
} }
.u-border-top-bottom { .u-border-top-bottom {
border-top-width: 0.5px !important; border-top-width: 0.5px !important;
border-bottom-width: 0.5px !important; border-bottom-width: 0.5px !important;
border-color: #e4e7ed !important; border-color: #dadbde !important;
border-top-style: solid; border-top-style: solid;
border-bottom-style: solid; border-bottom-style: solid;
} }
@ -5637,7 +5637,7 @@
color: #606266; color: #606266;
} }
.u-tips-color { .u-tips-color {
color: #909399; color: #909193;
} }
.u-light-color { .u-light-color {
color: #c0c4cc; color: #c0c4cc;

@ -105,11 +105,11 @@
/******/ /******/
/******/ /******/
/******/ // mini-css-extract-plugin CSS loading /******/ // mini-css-extract-plugin CSS loading
/******/ var cssChunks = {"uview-ui/components/u-button/u-button":1,"uview-ui/components/u-icon/u-icon":1,"uview-ui/components/u-checkbox-group/u-checkbox-group":1,"uview-ui/components/u-checkbox/u-checkbox":1,"uview-ui/components/u-upload/u-upload":1,"uview-ui/components/u-count-down/u-count-down":1,"components/uiq-tabbar/uiq-tabbar":1,"uview-ui/components/u-divider/u-divider":1,"components/title-block/title-block":1,"uview-ui/components/u-select/u-select":1,"tm-vuetify/components/tm-poup/tm-poup":1,"uview-ui/components/u-input/u-input":1,"uview-ui/components/u-loading-icon/u-loading-icon":1,"uview-ui/components/u-tabbar-item/u-tabbar-item":1,"uview-ui/components/u-tabbar/u-tabbar":1,"uview-ui/components/u-line/u-line":1,"uview-ui/components/u-image/u-image":1,"uview-ui/components/u-popup/u-popup":1,"uview-ui/components/u-badge/u-badge":1,"uview-ui/components/u-safe-bottom/u-safe-bottom":1,"uview-ui/components/u-transition/u-transition":1,"uview-ui/components/u-overlay/u-overlay":1,"uview-ui/components/u-status-bar/u-status-bar":1}; /******/ var cssChunks = {"uview-ui/components/u-button/u-button":1,"uview-ui/components/u-icon/u-icon":1,"uview-ui/components/u-checkbox-group/u-checkbox-group":1,"uview-ui/components/u-checkbox/u-checkbox":1,"uview-ui/components/u-upload/u-upload":1,"uview-ui/components/u-count-down/u-count-down":1,"components/uiq-tabbar/uiq-tabbar":1,"uview-ui/components/u-divider/u-divider":1,"uview-ui/components/u-action-sheet/u-action-sheet":1,"components/title-block/title-block":1,"tm-vuetify/components/tm-poup/tm-poup":1,"uview-ui/components/u-input/u-input":1,"uview-ui/components/u-loading-icon/u-loading-icon":1,"uview-ui/components/u-tabbar-item/u-tabbar-item":1,"uview-ui/components/u-tabbar/u-tabbar":1,"uview-ui/components/u-line/u-line":1,"uview-ui/components/u-image/u-image":1,"uview-ui/components/u-gap/u-gap":1,"uview-ui/components/u-popup/u-popup":1,"uview-ui/components/u-badge/u-badge":1,"uview-ui/components/u-safe-bottom/u-safe-bottom":1,"uview-ui/components/u-transition/u-transition":1,"uview-ui/components/u-overlay/u-overlay":1,"uview-ui/components/u-status-bar/u-status-bar":1};
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]); /******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) { /******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) { /******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
/******/ var href = "" + ({"uview-ui/components/u--input/u--input":"uview-ui/components/u--input/u--input","uview-ui/components/u-button/u-button":"uview-ui/components/u-button/u-button","uview-ui/components/u-icon/u-icon":"uview-ui/components/u-icon/u-icon","uview-ui/components/u-checkbox-group/u-checkbox-group":"uview-ui/components/u-checkbox-group/u-checkbox-group","uview-ui/components/u-checkbox/u-checkbox":"uview-ui/components/u-checkbox/u-checkbox","uview-ui/components/u-upload/u-upload":"uview-ui/components/u-upload/u-upload","uview-ui/components/u-count-down/u-count-down":"uview-ui/components/u-count-down/u-count-down","components/uiq-tabbar/uiq-tabbar":"components/uiq-tabbar/uiq-tabbar","uview-ui/components/u-divider/u-divider":"uview-ui/components/u-divider/u-divider","uview-ui/components/u--image/u--image":"uview-ui/components/u--image/u--image","components/title-block/title-block":"components/title-block/title-block","uview-ui/components/u-select/u-select":"uview-ui/components/u-select/u-select","tm-vuetify/components/tm-poup/tm-poup":"tm-vuetify/components/tm-poup/tm-poup","uview-ui/components/u-input/u-input":"uview-ui/components/u-input/u-input","uview-ui/components/u-loading-icon/u-loading-icon":"uview-ui/components/u-loading-icon/u-loading-icon","uview-ui/components/u-tabbar-item/u-tabbar-item":"uview-ui/components/u-tabbar-item/u-tabbar-item","uview-ui/components/u-tabbar/u-tabbar":"uview-ui/components/u-tabbar/u-tabbar","uview-ui/components/u-line/u-line":"uview-ui/components/u-line/u-line","uview-ui/components/u-image/u-image":"uview-ui/components/u-image/u-image","uview-ui/components/u-popup/u-popup":"uview-ui/components/u-popup/u-popup","uview-ui/components/u-badge/u-badge":"uview-ui/components/u-badge/u-badge","uview-ui/components/u-safe-bottom/u-safe-bottom":"uview-ui/components/u-safe-bottom/u-safe-bottom","uview-ui/components/u-transition/u-transition":"uview-ui/components/u-transition/u-transition","uview-ui/components/u-overlay/u-overlay":"uview-ui/components/u-overlay/u-overlay","uview-ui/components/u-status-bar/u-status-bar":"uview-ui/components/u-status-bar/u-status-bar"}[chunkId]||chunkId) + ".wxss"; /******/ var href = "" + ({"uview-ui/components/u--input/u--input":"uview-ui/components/u--input/u--input","uview-ui/components/u-button/u-button":"uview-ui/components/u-button/u-button","uview-ui/components/u-icon/u-icon":"uview-ui/components/u-icon/u-icon","uview-ui/components/u-checkbox-group/u-checkbox-group":"uview-ui/components/u-checkbox-group/u-checkbox-group","uview-ui/components/u-checkbox/u-checkbox":"uview-ui/components/u-checkbox/u-checkbox","uview-ui/components/u-upload/u-upload":"uview-ui/components/u-upload/u-upload","uview-ui/components/u-count-down/u-count-down":"uview-ui/components/u-count-down/u-count-down","components/uiq-tabbar/uiq-tabbar":"components/uiq-tabbar/uiq-tabbar","uview-ui/components/u-divider/u-divider":"uview-ui/components/u-divider/u-divider","uview-ui/components/u--image/u--image":"uview-ui/components/u--image/u--image","uview-ui/components/u-action-sheet/u-action-sheet":"uview-ui/components/u-action-sheet/u-action-sheet","components/title-block/title-block":"components/title-block/title-block","tm-vuetify/components/tm-poup/tm-poup":"tm-vuetify/components/tm-poup/tm-poup","uview-ui/components/u-input/u-input":"uview-ui/components/u-input/u-input","uview-ui/components/u-loading-icon/u-loading-icon":"uview-ui/components/u-loading-icon/u-loading-icon","uview-ui/components/u-tabbar-item/u-tabbar-item":"uview-ui/components/u-tabbar-item/u-tabbar-item","uview-ui/components/u-tabbar/u-tabbar":"uview-ui/components/u-tabbar/u-tabbar","uview-ui/components/u-line/u-line":"uview-ui/components/u-line/u-line","uview-ui/components/u-image/u-image":"uview-ui/components/u-image/u-image","uview-ui/components/u-gap/u-gap":"uview-ui/components/u-gap/u-gap","uview-ui/components/u-popup/u-popup":"uview-ui/components/u-popup/u-popup","uview-ui/components/u-badge/u-badge":"uview-ui/components/u-badge/u-badge","uview-ui/components/u-safe-bottom/u-safe-bottom":"uview-ui/components/u-safe-bottom/u-safe-bottom","uview-ui/components/u-transition/u-transition":"uview-ui/components/u-transition/u-transition","uview-ui/components/u-overlay/u-overlay":"uview-ui/components/u-overlay/u-overlay","uview-ui/components/u-status-bar/u-status-bar":"uview-ui/components/u-status-bar/u-status-bar"}[chunkId]||chunkId) + ".wxss";
/******/ var fullhref = __webpack_require__.p + href; /******/ var fullhref = __webpack_require__.p + href;
/******/ var existingLinkTags = document.getElementsByTagName("link"); /******/ var existingLinkTags = document.getElementsByTagName("link");
/******/ for(var i = 0; i < existingLinkTags.length; i++) { /******/ for(var i = 0; i < existingLinkTags.length; i++) {

@ -26446,7 +26446,78 @@ exports.default = _default;
/* 386 */, /* 386 */,
/* 387 */, /* 387 */,
/* 388 */, /* 388 */,
/* 389 */, /* 389 */
/*!********************************************************************************************!*\
!*** D:/WebstormProjects/uni-Identify-quality/uview-ui/components/u-action-sheet/props.js ***!
\********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
props: {
// 操作菜单是否展示 默认false
show: {
type: Boolean,
default: uni.$u.props.actionSheet.show
},
// 标题
title: {
type: String,
default: uni.$u.props.actionSheet.title
},
// 选项上方的描述信息
description: {
type: String,
default: uni.$u.props.actionSheet.description
},
// 数据
actions: {
type: Array,
default: uni.$u.props.actionSheet.actions
},
// 取消按钮的文字,不为空时显示按钮
cancelText: {
type: String,
default: uni.$u.props.actionSheet.cancelText
},
// 点击某个菜单项时是否关闭弹窗
closeOnClickAction: {
type: Boolean,
default: uni.$u.props.actionSheet.closeOnClickAction
},
// 处理底部安全区默认true
safeAreaInsetBottom: {
type: Boolean,
default: uni.$u.props.actionSheet.safeAreaInsetBottom
},
// 小程序的打开方式
openType: {
type: String,
default: uni.$u.props.actionSheet.openType
},
// 点击遮罩是否允许关闭 (默认true)
closeOnClickOverlay: {
type: Boolean,
default: uni.$u.props.actionSheet.closeOnClickOverlay
},
// 圆角值
round: {
type: [Boolean, String, Number],
default: uni.$u.props.actionSheet.round
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 390 */, /* 390 */,
/* 391 */, /* 391 */,
/* 392 */, /* 392 */,
@ -27504,6 +27575,91 @@ var _default = {
exports.default = _default; exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 498 */,
/* 499 */,
/* 500 */,
/* 501 */,
/* 502 */,
/* 503 */,
/* 504 */,
/* 505 */,
/* 506 */,
/* 507 */,
/* 508 */,
/* 509 */,
/* 510 */,
/* 511 */,
/* 512 */,
/* 513 */,
/* 514 */,
/* 515 */,
/* 516 */,
/* 517 */,
/* 518 */,
/* 519 */,
/* 520 */,
/* 521 */,
/* 522 */,
/* 523 */,
/* 524 */,
/* 525 */,
/* 526 */,
/* 527 */,
/* 528 */,
/* 529 */,
/* 530 */,
/* 531 */,
/* 532 */,
/* 533 */,
/* 534 */,
/* 535 */,
/* 536 */,
/* 537 */,
/* 538 */,
/* 539 */,
/* 540 */,
/* 541 */
/*!***********************************************************************************!*\
!*** D:/WebstormProjects/uni-Identify-quality/uview-ui/components/u-gap/props.js ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
props: {
// 背景颜色默认transparent
bgColor: {
type: String,
default: uni.$u.props.gap.bgColor
},
// 分割槽高度单位px默认30
height: {
type: [String, Number],
default: uni.$u.props.gap.height
},
// 与上一个组件的距离
marginTop: {
type: [String, Number],
default: uni.$u.props.gap.marginTop
},
// 与下一个组件的距离
marginBottom: {
type: [String, Number],
default: uni.$u.props.gap.marginBottom
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }) /***/ })
]]); ]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map

@ -103,8 +103,8 @@ try {
titleBlock: function () { titleBlock: function () {
return __webpack_require__.e(/*! import() | components/title-block/title-block */ "components/title-block/title-block").then(__webpack_require__.bind(null, /*! @/components/title-block/title-block.vue */ 377)) return __webpack_require__.e(/*! import() | components/title-block/title-block */ "components/title-block/title-block").then(__webpack_require__.bind(null, /*! @/components/title-block/title-block.vue */ 377))
}, },
uSelect: function () { uActionSheet: function () {
return __webpack_require__.e(/*! import() | uview-ui/components/u-select/u-select */ "uview-ui/components/u-select/u-select").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-select/u-select.vue */ 384)) return Promise.all(/*! import() | uview-ui/components/u-action-sheet/u-action-sheet */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uview-ui/components/u-action-sheet/u-action-sheet")]).then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-action-sheet/u-action-sheet.vue */ 384))
}, },
} }
} catch (e) { } catch (e) {
@ -128,18 +128,33 @@ var render = function () {
var _vm = this var _vm = this
var _h = _vm.$createElement var _h = _vm.$createElement
var _c = _vm._self._c || _h var _c = _vm._self._c || _h
var g0 = this.statusValue.map(function (x) {
return {
name: x.label,
value: x.value,
}
})
var g1 = _vm.statusValue.find(function (x) {
return x.value === _vm.status
})
var l0 = _vm.__map(_vm.mainList, function (item, index) { var l0 = _vm.__map(_vm.mainList, function (item, index) {
var $orig = _vm.__get_orig(item) var $orig = _vm.__get_orig(item)
var g0 = _vm.statusValue.find(function (x) { var g2 =
item.status !== 4
? _vm.statusValue.find(function (x) {
return x.value === item.status return x.value === item.status
}) })
: null
return { return {
$orig: $orig, $orig: $orig,
g0: g0, g2: g2,
} }
}) })
if (!_vm._isMounted) { if (!_vm._isMounted) {
_vm.e0 = function (index) { _vm.e0 = function ($event) {
_vm.show = false
}
_vm.e1 = function (index) {
var args = [], var args = [],
len = arguments.length - 1 len = arguments.length - 1
while (len-- > 0) args[len] = arguments[len + 1] while (len-- > 0) args[len] = arguments[len + 1]
@ -155,6 +170,8 @@ var render = function () {
{}, {},
{ {
$root: { $root: {
g0: g0,
g1: g1,
l0: l0, l0: l0,
}, },
} }
@ -221,10 +238,14 @@ var _default = {
startX: 0, startX: 0,
windowWidth: 0, windowWidth: 0,
page: 1, page: 1,
status: 0,
pageSize: 999, pageSize: 999,
mainList: [], mainList: [],
statusValue: [{ statusValue: [{
label: '待入库', label: '全部状态',
value: 0
}, {
label: '未入库',
value: 1 value: 1
}, { }, {
label: '已入库', label: '已入库',
@ -255,10 +276,15 @@ var _default = {
}); });
}, },
methods: { methods: {
search: function search() {
this.getData();
},
statusSelect: function statusSelect(data) {
this.status = data.value;
this.getData();
},
openStatus: function openStatus() { openStatus: function openStatus() {
this.show = true; this.show = true;
console.log(this.show, 'this.show');
console.log('openStatus');
}, },
loadMore: function loadMore() { loadMore: function loadMore() {
console.log('loadMore'); console.log('loadMore');
@ -266,7 +292,7 @@ var _default = {
getData: function getData() { getData: function getData() {
var _this2 = this; var _this2 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
var data, res; var data, res, _this2$mainList;
return _regenerator.default.wrap(function _callee$(_context) { return _regenerator.default.wrap(function _callee$(_context) {
while (1) { while (1) {
switch (_context.prev = _context.next) { switch (_context.prev = _context.next) {
@ -276,7 +302,7 @@ var _default = {
//分页 //分页
pageSize: _this2.pageSize, pageSize: _this2.pageSize,
//每页数据量 //每页数据量
status: 0, status: _this2.status,
//状态(1-未入库 2-已入库 3-即将到期 4-超时 5-已取货) //状态(1-未入库 2-已入库 3-即将到期 4-超时 5-已取货)
mobileKey: _this2.mobileKey mobileKey: _this2.mobileKey
}; };
@ -286,7 +312,7 @@ var _default = {
res = _context.sent; res = _context.sent;
if (res.code === 200) { if (res.code === 200) {
_this2.mainList = res.data.data; _this2.mainList = res.data.data;
_this2.mainList.forEach(function (x) { (_this2$mainList = _this2.mainList) === null || _this2$mainList === void 0 ? void 0 : _this2$mainList.forEach(function (x) {
_this2.$set(x, 'distanceX', 0); _this2.$set(x, 'distanceX', 0);
_this2.$set(x, 'isRight', false); _this2.$set(x, 'isRight', false);
}); });

@ -4,7 +4,7 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"usingComponents": { "usingComponents": {
"title-block": "/components/title-block/title-block", "title-block": "/components/title-block/title-block",
"u-select": "/uview-ui/components/u-select/u-select", "u-action-sheet": "/uview-ui/components/u-action-sheet/u-action-sheet",
"u-image": "/uview-ui/components/u--image/u--image", "u-image": "/uview-ui/components/u--image/u--image",
"tabbar": "/components/uiq-tabbar/uiq-tabbar" "tabbar": "/components/uiq-tabbar/uiq-tabbar"
} }

@ -1 +1 @@
<view class="order-goods _div data-v-c0c42e9e"><title-block vue-id="541fae75-1" title="订单库" class="data-v-c0c42e9e" bind:__l="__l" vue-slots="{{['left']}}"><view slot="left"><u-select bind:input="__e" vue-id="{{('541fae75-2')+','+('541fae75-1')}}" list="{{statusValue}}" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" class="data-v-c0c42e9e" bind:__l="__l"></u-select><view data-event-opts="{{[['tap',[['openStatus',['$event']]]]]}}" class="wrap1 _div data-v-c0c42e9e" bindtap="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><view class="wrap1_1_1 _div data-v-c0c42e9e">全部状态</view><image style="width:12rpx;height:8rpx;" src="../../static/dbx2@3x.png" class="data-v-c0c42e9e"></image></view></view></view></title-block><view class="content2 _div data-v-c0c42e9e"><view class="wrap1 _div data-v-c0c42e9e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="../../static/zu1@3x.png" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"></view><input placeholder-style="color: #C7C7C7;font-size: 20rpx;" placeholder="在此处搜索您的订单" data-event-opts="{{[['input',[['__set_model',['','mobileKey','$event',[]]]]]]}}" value="{{mobileKey}}" bindinput="__e" class="data-v-c0c42e9e"/></view><view class="wrap2 _div data-v-c0c42e9e">搜索</view></view><scroll-view class="scrollbox data-v-c0c42e9e" style="margin-top:28rpx;" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadMore',['$event']]]]]}}" bindscrolltolower="__e"><view class="content3 _div data-v-c0c42e9e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['touchstart',[['touchStart',['$event',index]]]],['touchmove',[['touchMove',['$event',index]]]],['touchend',[['e0',['$event']]]]]}}" data-event-params="{{({index})}}" class="wrap1 _div data-v-c0c42e9e" style="{{'transform:'+('translateX('+item.$orig.distanceX+'px)')+';'}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="../../static/jx632@3x.png" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"><view class="wrap1_2_1 _div data-v-c0c42e9e">画作的名称</view><view class="wrap1_2_2 _div data-v-c0c42e9e">订单号:0129181232101</view><view class="wrap1_2_3 _div data-v-c0c42e9e">16平尺</view><view class="wrap1_2_4 _div data-v-c0c42e9e">2023.09.01-2023.09.18</view></view><view class="{{['wrap1_3','_div','data-v-c0c42e9e','status'+item.$orig.status]}}"><block wx:if="{{item.$orig.status===4}}"><view class="wrap1_3_1 _div data-v-c0c42e9e"><view class="wrap1_3_1_1 _div data-v-c0c42e9e">2023.09.28</view><view class="wrap1_3_1_2 _div data-v-c0c42e9e">已延期</view><view class="wrap1_3_1_3 _div data-v-c0c42e9e">点击补款</view></view></block><view class="wrap1_3_3 _div data-v-c0c42e9e"><view class="wrap1_3_3_1 _div data-v-c0c42e9e">{{item.g0.label}}</view></view><view class="wrap1_3_2 _div data-v-c0c42e9e"><view class="wrap1_3_2_1 _div data-v-c0c42e9e">货架号:</view><view class="wrap1_3_2_2 _div data-v-c0c42e9e">12-02-13</view></view></view><block wx:if="{{item.$orig.isRight}}"><view class="wrap1_4 _div data-v-c0c42e9e"><image style="width:80rpx;height:80rpx;" src="../../static/zu154@3x.png" class="data-v-c0c42e9e"></image></view></block></view></block></view></scroll-view><tabbar vue-id="541fae75-3" current="{{1}}" class="data-v-c0c42e9e" bind:__l="__l"></tabbar></view> <view class="order-goods _div data-v-c0c42e9e"><title-block vue-id="541fae75-1" title="订单库" class="data-v-c0c42e9e" bind:__l="__l" vue-slots="{{['left']}}"><view slot="left"><u-action-sheet vue-id="{{('541fae75-2')+','+('541fae75-1')}}" show="{{show}}" actions="{{$root.g0}}" title="请选择状态" data-event-opts="{{[['^close',[['e0']]],['^select',[['statusSelect']]]]}}" bind:close="__e" bind:select="__e" class="data-v-c0c42e9e" bind:__l="__l"></u-action-sheet><view data-event-opts="{{[['tap',[['openStatus',['$event']]]]]}}" class="wrap1 _div data-v-c0c42e9e" bindtap="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><view class="wrap1_1_1 _div data-v-c0c42e9e">{{$root.g1.label}}</view><image style="width:12rpx;height:8rpx;" src="../../static/dbx2@3x.png" class="data-v-c0c42e9e"></image></view></view></view></title-block><view class="content2 _div data-v-c0c42e9e"><view class="wrap1 _div data-v-c0c42e9e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="../../static/zu1@3x.png" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"></view><input placeholder-style="color: #C7C7C7;font-size: 20rpx;" placeholder="在此处搜索您的订单" data-event-opts="{{[['input',[['__set_model',['','mobileKey','$event',[]]]]]]}}" value="{{mobileKey}}" bindinput="__e" class="data-v-c0c42e9e"/></view><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="wrap2 _div data-v-c0c42e9e" bindtap="__e">搜索</view></view><scroll-view class="scrollbox data-v-c0c42e9e" style="margin-top:28rpx;" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadMore',['$event']]]]]}}" bindscrolltolower="__e"><view class="content3 _div data-v-c0c42e9e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['touchstart',[['touchStart',['$event',index]]]],['touchmove',[['touchMove',['$event',index]]]],['touchend',[['e1',['$event']]]]]}}" data-event-params="{{({index})}}" class="wrap1 _div data-v-c0c42e9e" style="{{'transform:'+('translateX('+item.$orig.distanceX+'px)')+';'}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="../../static/jx632@3x.png" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"><view class="wrap1_2_1 _div data-v-c0c42e9e">画作的名称</view><view class="wrap1_2_2 _div data-v-c0c42e9e">订单号:0129181232101</view><view class="wrap1_2_3 _div data-v-c0c42e9e">16平尺</view><view class="wrap1_2_4 _div data-v-c0c42e9e">2023.09.01-2023.09.18</view></view><view class="{{['wrap1_3','_div','data-v-c0c42e9e','status'+item.$orig.status]}}"><block wx:if="{{item.$orig.status===4}}"><view class="wrap1_3_1 _div data-v-c0c42e9e"><view class="wrap1_3_1_1 _div data-v-c0c42e9e">2023.09.28</view><view class="wrap1_3_1_2 _div data-v-c0c42e9e">已超时</view><view class="wrap1_3_1_3 _div data-v-c0c42e9e">点击补款</view></view></block><block wx:if="{{item.$orig.status!==4}}"><view class="wrap1_3_3 _div data-v-c0c42e9e"><view class="wrap1_3_3_1 _div data-v-c0c42e9e">{{item.g2.label}}</view></view></block><view class="wrap1_3_2 _div data-v-c0c42e9e"><view class="wrap1_3_2_1 _div data-v-c0c42e9e">货架号:</view><view class="wrap1_3_2_2 _div data-v-c0c42e9e">12-02-13</view></view></view><block wx:if="{{item.$orig.isRight}}"><view class="wrap1_4 _div data-v-c0c42e9e"><image style="width:80rpx;height:80rpx;" src="../../static/zu154@3x.png" class="data-v-c0c42e9e"></image></view></block></view></block></view></scroll-view><tabbar vue-id="541fae75-3" current="{{1}}" class="data-v-c0c42e9e" bind:__l="__l"></tabbar></view>

@ -86,6 +86,12 @@
.order-goods .content3 .wrap1 .wrap1_3.status3 .wrap1_3_3_1.data-v-c0c42e9e { .order-goods .content3 .wrap1 .wrap1_3.status3 .wrap1_3_3_1.data-v-c0c42e9e {
color: #FF4848; color: #FF4848;
} }
.order-goods .content3 .wrap1 .wrap1_3.status4.data-v-c0c42e9e {
background: #FF4848;
}
.order-goods .content3 .wrap1 .wrap1_3.status4 .wrap1_3_3_1.data-v-c0c42e9e {
color: #FF4848;
}
.order-goods .content3 .wrap1 .wrap1_3 .wrap1_3_2.data-v-c0c42e9e { .order-goods .content3 .wrap1 .wrap1_3 .wrap1_3_2.data-v-c0c42e9e {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

@ -52,7 +52,7 @@ view.data-v-32babe48, scroll-view.data-v-32babe48, swiper-item.data-v-32babe48 {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #f3f4f6; background-color: #f3f4f6;
color: #909399; color: #909193;
font-size: 46rpx; font-size: 46rpx;
} }

@ -68,7 +68,7 @@ view.data-v-0d33af60, scroll-view.data-v-0d33af60, swiper-item.data-v-0d33af60 {
} }
.u-upload__wrap__preview__other__text.data-v-0d33af60 { .u-upload__wrap__preview__other__text.data-v-0d33af60 {
font-size: 11px; font-size: 11px;
color: #909399; color: #909193;
margin-top: 2px; margin-top: 2px;
} }
.u-upload__deletable.data-v-0d33af60 { .u-upload__deletable.data-v-0d33af60 {
@ -149,7 +149,7 @@ view.data-v-0d33af60, scroll-view.data-v-0d33af60, swiper-item.data-v-0d33af60 {
} }
.u-upload__button__text.data-v-0d33af60 { .u-upload__button__text.data-v-0d33af60 {
font-size: 11px; font-size: 11px;
color: #909399; color: #909193;
margin-top: 2px; margin-top: 2px;
} }
.u-upload__button--hover.data-v-0d33af60 { .u-upload__button--hover.data-v-0d33af60 {

Loading…
Cancel
Save