Merge branch 'xingyy'

xingyy
xingyy 1 year ago
commit f5f8235549

@ -21,7 +21,15 @@ export default {
@import "./tm-vuetify/mian.min.css";
@import "./tm-vuetify/scss/theme.css";
@import "uview-ui/index.scss";
.u-upload__wrap{
display: flex;
justify-content: center;
align-items: center;
}
.u-upload__button{
width: 404rpx!important;
height: 306rpx!important;
}
.u-tabbar__content {
height: 166rpx;
}

@ -8,7 +8,9 @@
<div :style="{height:`${distance}px`}" style="overflow-y: auto">
<div style="padding-bottom: 128rpx">
<div class="content2">
<image src="../../static/zu709@3x.png"></image>
<div class="content2">
<image :src="orderingInfo.info.artworkImg"></image>
</div>
</div>
<div class="content3">
<div class="wrap1">
@ -173,7 +175,7 @@ export default {
artworkImg:this.orderingInfo.info.artworkImg,
artworkSizeL:this.orderingInfo.info.artworkSizeL,
artworkSizeW:this.orderingInfo.info.artworkSizeW,
artworkSquareSize:this.orderingInfo.info.artworkSquareSize,
artworkSquareSize:Number(this.orderingInfo.info.artworkSquareSize),
contractTransactionId:this.orderingInfo.transactionId
}
const res1 = await postDataByParams('/api/warehouse/create',data1)
@ -183,7 +185,7 @@ export default {
})
if (res2.code===200){
uni.navigateTo({
url: "/pages/paySuccess/paySuccess",
url: `/pages/paySuccess/paySuccess?ID=${res1.data.ID}`,
});
}
}

@ -10,7 +10,20 @@
</template>
</title-block>
<div class="content2">
<image :src="info.artworkImg"></image>
<u-upload
:fileList="fileList1"
@afterRead="afterRead"
@delete="deletePic"
name="6"
multiple
:maxCount="1"
width="250"
height="150"
>
<image src="https://cdn.uviewui.com/uview/demo/upload/positive.png"
mode="widthFix" style="width: 404rpx;height: 306rpx;"></image>
</u-upload>
<!-- <image :src="info.artworkImg"></image>-->
</div>
<tm-poup height="700" v-model="show_2" position="bottom">
<div class="poup1">
@ -103,7 +116,7 @@
<div class="wrap1_1_1">画作编号</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkNum"/>
<input style="color: #939393;font-size: 24rpx;" v-model="info.artworkNum" placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkNum"/>
</div>
<div class="wrap1_1_4"></div>
</div>
@ -111,7 +124,7 @@
<div class="wrap1_1_1">画作名称</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkName"/>
<input style="color: #939393;font-size: 24rpx;" v-model="info.artworkName" placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkName"/>
</div>
<div class="wrap1_1_4"></div>
</div>
@ -119,7 +132,7 @@
<div class="wrap1_1_1">画家名称</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artistName"/>
<input style="color: #939393;font-size: 24rpx;" v-model="info.artistName" placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artistName"/>
</div>
<div class="wrap1_1_4">
</div>
@ -128,7 +141,7 @@
<div class="wrap1_1_1">画作平尺数</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkSquareSize"/>
<input style="color: #939393;font-size: 24rpx;" v-model="info.artworkSquareSize" placeholder-style="color: #939393;font-size: 24rpx;" :placeholder="info.artworkSquareSize"/>
</div>
</div>
</div>
@ -140,7 +153,7 @@
<div class="wrap1_1_1">寄存地址</div>
<div class="wrap1_1_2"></div>
<div class="wrap1_1_3">
<input placeholder-style="color: #939393;font-size: 24rpx;"
<input placeholder-style="color: #939393;font-size: 24rpx;"
:placeholder="warehouseID?addressList.find(x=>x.ID===warehouseID).address:'寄存地址'"/>
</div>
<div class="wrap1_1_4"></div>
@ -173,8 +186,8 @@
</div>
</template>
<script>
import http from "@/http/api";
import {postDataByParams} from "../../http/service";
export default {
name: "order-details",
data() {
@ -195,6 +208,7 @@ export default {
days.push(i)
}
return {
fileList1:[],
dayMoney:'',
expectedPayment:'',
warehouseID: '',
@ -239,16 +253,60 @@ export default {
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
},
methods: {
uploadFilePromise(url, type = null) {
return new Promise((resolve) => {
uni.uploadFile({
url: http.baseUrl + "/api/wxuser/uploadpic",
filePath: url,
name: "file",
success: (res) => {
console.log(res,'res')
const { path } = JSON.parse(res.data).data;
resolve(path);
},
});
})
},
//
deletePic(event) {
this[`fileList${event.name}`].splice(event.index, 1)
},
//
async afterRead(event) {
// multiple true , file
let lists = [].concat(event.file)
let fileListLen = this[`fileList1`].length
lists.map((item) => {
this[`fileList1`].push({
...item,
status: 'uploading',
message: '上传中'
})
})
for (let i = 0; i < lists.length; i++) {
const result = await this.uploadFilePromise(lists[i].url, 'check')
console.log(result)
let item = this[`fileList1`][fileListLen]
this[`fileList1`].splice(fileListLen, 1, Object.assign(item, {
status: 'success',
message: '',
url: result
}))
fileListLen++
}
},
async signContract(){
const data={
cycleId:this.cycleId,
warehouseID:this.warehouseID,
artworkSquareSize:this.info.artworkSquareSize
artworkSquareSize:Number(this.info.artworkSquareSize)
}
const res = await postDataByParams('/api/warehouse/fdd/contract/h5',data)
if (res.code===200){
uni.setStorageSync("jumpUrl", res.data.jumpUrl)
this.info.artworkImg=this.fileList1[0].url
uni.setStorageSync("orderingInfo", {
cycleID:this.cycleId,
warehouseID:this.warehouseID,
@ -268,7 +326,7 @@ export default {
async obtainAmount(){
const data={
cycleID:this.cycleId,
artworkSquareSize:this.info.artworkSquareSize
artworkSquareSize:Number(this.info.artworkSquareSize)
}
const res = await postDataByParams('/api/warehouse/calculate',data)
if (res.code===200){
@ -307,6 +365,7 @@ export default {
const res = await postDataByParams('/api/warehouse/ocr', data)
if (res.code === 200) {
this.info = res.data
this.fileList1=[{url:this.info.artworkImg}]
} else {
uni.showToast({
title: res.msg,

@ -65,7 +65,6 @@
<div class="wrap1_3_2_2">{{ item.shelvesNum }}</div>
</div>
</div>
<div class="wrap1_4" v-if="item.isRight&&item.artworkStatus===5" @click.stop="openDelete(item)">
<image style="width: 80rpx;height: 80rpx" src="../../static/zu154@3x.png"></image>
</div>

@ -12,38 +12,38 @@
<view class="info-right">
<view class="info-right-item">
<view class="title">画作编号</view>
<view class="content">12313123</view>
<view class="content">{{info.artworkNum}}</view>
</view>
<view class="info-right-item">
<view class="title">画作名称</view>
<view class="content">12313123</view>
<view class="content">{{info.artworkName}}</view>
</view>
<view class="info-right-item">
<view class="title">画家名称</view>
<view class="content">12313123</view>
<view class="content">{{info.artistName}}</view>
</view>
<view class="info-right-item">
<view class="title">画作平尺数</view>
<view class="content">12313123</view>
<view class="content">{{info.artworkSize}}</view>
</view>
</view>
</view>
<view class="order-info">
<view class="info-right-item">
<view class="title">订单编号</view>
<view class="content">12313123</view>
<view class="content">{{info.artworkNum}}</view>
</view>
<view class="info-right-item">
<view class="title">寄存地址</view>
<view class="content">12313123</view>
<view class="content">{{info.warehouseName}}</view>
</view>
<view class="info-right-item">
<view class="title">寄存时限</view>
<view class="content">12313123</view>
<view class="content">{{info.cycleName}}</view>
</view>
<view class="info-right-item">
<view class="title">付款金额</view>
<view class="content">12313123</view>
<view class="content">{{info.money}}</view>
</view>
</view>
<view class="tips">*请携带您的画作在时限之前到达寄存地</view>
@ -59,19 +59,24 @@
</template>
<script>
import {postDataByParams} from "../../http/service";
export default {
name:'paySuccess',
data(){
return{
info:{}
}
},
mounted(){
this.getData()
},
methods:{
getData(){
async getData(){
const data1={
ID:Number(this.$mp.query.ID)
}
const res1 = await postDataByParams('/api/warehouse/detail',data1)
}
}
};

Loading…
Cancel
Save