|
|
@@ -0,0 +1,305 @@
|
|
|
+<template>
|
|
|
+<view>
|
|
|
+ <view v-if="$util.isEmpty(customInfo)" class="work-empty">
|
|
|
+ <text>暂无订单</text>
|
|
|
+ </view>
|
|
|
+ <view class="custom-info" v-else>
|
|
|
+ <view class="custom-detail">
|
|
|
+ <view class="order-item">
|
|
|
+ <view><text class="left">开单人</text><text class="right">{{customInfo.shopAdminName||''}}</text></view>
|
|
|
+ <view><text class="left">订单号</text><text class="right">{{customInfo.orderSn||''}}</text></view>
|
|
|
+ <view><text class="left">状态</text><text class="right">132</text></view>
|
|
|
+ <view>
|
|
|
+ <text class="left">创建时间</text>
|
|
|
+ <text class="right">{{customInfo.addTime ? customInfo.addTime.substr(5,11):''}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</view>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import { getDetail } from '@/api/custom'
|
|
|
+import { mapGetters } from "vuex";
|
|
|
+import productMins from "@/mixins/product";
|
|
|
+export default {
|
|
|
+ name: "customInfo",
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ customInfo:[],
|
|
|
+ currentJobType:'modify',
|
|
|
+ currentJobId:0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ selectCustomId:{
|
|
|
+ type: Number,
|
|
|
+ default: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mixins: [productMins],
|
|
|
+ computed:{
|
|
|
+ ...mapGetters(["getMyShopInfo"]),
|
|
|
+ },
|
|
|
+ watch:{
|
|
|
+ selectCustomId: {
|
|
|
+ handler(newId,oldId) {
|
|
|
+ this.currentJobId = Number(oldId)
|
|
|
+ this.currentJobId = Number(newId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ getCustomDetail(id){
|
|
|
+ getDetail({userId:id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.customInfo = res.data
|
|
|
+ console.log('customInfo')
|
|
|
+ console.log(this.customInfo)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.work-empty{
|
|
|
+ display:flex;
|
|
|
+ font-size:13upx;
|
|
|
+ justify-content:center;
|
|
|
+ align-items:center;
|
|
|
+ height:90vh;
|
|
|
+}
|
|
|
+.custom-info{
|
|
|
+ display:flex;
|
|
|
+ height: 100vh;
|
|
|
+ & .custom-detail{
|
|
|
+ height: 100vh;
|
|
|
+ overflow: scroll;
|
|
|
+ border-right:1upx solid #EEEEEE;
|
|
|
+ flex: 40;
|
|
|
+ .order-img{
|
|
|
+ display:flex;
|
|
|
+ margin:5upx;
|
|
|
+ justify-content:center;
|
|
|
+ image{
|
|
|
+ width:180upx;
|
|
|
+ height:180upx;
|
|
|
+ border-radius:3upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-item{
|
|
|
+ display:flex;
|
|
|
+ font-size:11upx;
|
|
|
+ margin-top:10upx;
|
|
|
+ justify-content: center;
|
|
|
+ flex-wrap:wrap;
|
|
|
+ view{
|
|
|
+ justify-content:space-between;
|
|
|
+ align-items:center;
|
|
|
+ display:flex;
|
|
|
+ border-bottom:1upx solid #EEEEEE;
|
|
|
+ width:180upx;
|
|
|
+ height:20upx;
|
|
|
+ padding:0 10upx 0 10upx;
|
|
|
+ .left{
|
|
|
+ color:#CCCCCC;
|
|
|
+ }
|
|
|
+ .right{
|
|
|
+ color:#666666;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ & .button-area {
|
|
|
+ flex: 9;
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-around;
|
|
|
+ padding: 5upx;
|
|
|
+ border-left:1upx solid #EEEEEE;
|
|
|
+ & > view {
|
|
|
+ border: 1upx solid #EEEEEE;
|
|
|
+ border-radius: 5upx;
|
|
|
+ text-align: center;
|
|
|
+ padding: 10upx 0;
|
|
|
+ color: #CCCCCC;
|
|
|
+ margin-bottom: 10upx;
|
|
|
+ font-size: 12upx;
|
|
|
+ text-align: center;
|
|
|
+ font-weight:bold;
|
|
|
+ }
|
|
|
+ & .active {
|
|
|
+ color: #09C567;
|
|
|
+ border-color: #09C567;
|
|
|
+ font-size: 12upx;
|
|
|
+ font-weight:bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ & .work-item-detail {
|
|
|
+ flex: 40;
|
|
|
+ height: 100%;
|
|
|
+ & .right-detail-title{
|
|
|
+ font-size:10upx;
|
|
|
+ font-weight:bold;
|
|
|
+ margin-left:5upx;
|
|
|
+ margin-top:10upx;
|
|
|
+ }
|
|
|
+ & .unit-use-item {
|
|
|
+ flex: 40;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .commodity-list {
|
|
|
+ padding: 5upx;
|
|
|
+ .commodity-item {
|
|
|
+ display: flex;
|
|
|
+ margin-top:5upx;
|
|
|
+ .item-icon {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 38upx;
|
|
|
+ height: 38upx;
|
|
|
+ border-radius:2upx;
|
|
|
+ }
|
|
|
+ .item-info {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ flex: 1;
|
|
|
+ margin-left:6upx;
|
|
|
+ .info-line {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: flex-start;
|
|
|
+ position: relative;
|
|
|
+ .item-name {
|
|
|
+ font-size:11upx;
|
|
|
+ color: black;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
+ .item-price {
|
|
|
+ color: #333;
|
|
|
+ font-size: 10upx;
|
|
|
+ }
|
|
|
+ .item-type {
|
|
|
+ color: #999;
|
|
|
+ font-size: 8upx;
|
|
|
+ }
|
|
|
+ .item-count {
|
|
|
+ color: #666;
|
|
|
+ font-size: 11upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .summary-bar {
|
|
|
+ padding: 0 10upx;
|
|
|
+ height: 30upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ border-top: 1upx solid #eeeeee;
|
|
|
+ .operate-view {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: #09C567;
|
|
|
+ font-size: 12upx;
|
|
|
+ .iconfont {
|
|
|
+ margin-right: 20upx;
|
|
|
+ font-size: 10upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .describe-view {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: #333;
|
|
|
+ font-size: 9upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ & .total-use-item {
|
|
|
+ flex: 40;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .commodity-list {
|
|
|
+ padding: 5upx;
|
|
|
+ .commodity-item {
|
|
|
+ display: flex;
|
|
|
+ margin-top:5upx;
|
|
|
+ .item-icon {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 38upx;
|
|
|
+ height: 38upx;
|
|
|
+ border-radius:2upx;
|
|
|
+ }
|
|
|
+ .item-info {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ flex: 1;
|
|
|
+ margin-left:6upx;
|
|
|
+ .info-line {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: flex-start;
|
|
|
+ position: relative;
|
|
|
+ .item-name {
|
|
|
+ font-size:11upx;
|
|
|
+ color: black;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
+ .item-price {
|
|
|
+ color: #333;
|
|
|
+ font-size: 10upx;
|
|
|
+ }
|
|
|
+ .item-type {
|
|
|
+ color: #999;
|
|
|
+ font-size: 8upx;
|
|
|
+ }
|
|
|
+ .item-count {
|
|
|
+ color: #666;
|
|
|
+ font-size: 11upx;
|
|
|
+ }
|
|
|
+ .wastage{
|
|
|
+ position: absolute;
|
|
|
+ right:0upx;
|
|
|
+ font-size:9upx;
|
|
|
+ top:4upx;
|
|
|
+ color:#666666;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .summary-bar {
|
|
|
+ padding: 0 10upx;
|
|
|
+ height: 30upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ border-top: 1upx solid #eeeeee;
|
|
|
+ .operate-view {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: #09C567;
|
|
|
+ font-size: 12upx;
|
|
|
+ .iconfont {
|
|
|
+ margin-right: 20upx;
|
|
|
+ font-size: 10upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .describe-view {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: #333;
|
|
|
+ font-size: 9upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|