Merge branch 'xingyy'
This commit is contained in:
commit
f5f8235549
10
App.vue
10
App.vue
@ -21,7 +21,15 @@ export default {
|
|||||||
@import "./tm-vuetify/mian.min.css";
|
@import "./tm-vuetify/mian.min.css";
|
||||||
@import "./tm-vuetify/scss/theme.css";
|
@import "./tm-vuetify/scss/theme.css";
|
||||||
@import "uview-ui/index.scss";
|
@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 {
|
.u-tabbar__content {
|
||||||
height: 166rpx;
|
height: 166rpx;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
<div :style="{height:`${distance}px`}" style="overflow-y: auto">
|
<div :style="{height:`${distance}px`}" style="overflow-y: auto">
|
||||||
<div style="padding-bottom: 128rpx">
|
<div style="padding-bottom: 128rpx">
|
||||||
<div class="content2">
|
<div class="content2">
|
||||||
<image src="../../static/zu709@3x.png"></image>
|
<div class="content2">
|
||||||
|
<image :src="orderingInfo.info.artworkImg"></image>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content3">
|
<div class="content3">
|
||||||
<div class="wrap1">
|
<div class="wrap1">
|
||||||
@ -173,7 +175,7 @@ export default {
|
|||||||
artworkImg:this.orderingInfo.info.artworkImg,
|
artworkImg:this.orderingInfo.info.artworkImg,
|
||||||
artworkSizeL:this.orderingInfo.info.artworkSizeL,
|
artworkSizeL:this.orderingInfo.info.artworkSizeL,
|
||||||
artworkSizeW:this.orderingInfo.info.artworkSizeW,
|
artworkSizeW:this.orderingInfo.info.artworkSizeW,
|
||||||
artworkSquareSize:this.orderingInfo.info.artworkSquareSize,
|
artworkSquareSize:Number(this.orderingInfo.info.artworkSquareSize),
|
||||||
contractTransactionId:this.orderingInfo.transactionId
|
contractTransactionId:this.orderingInfo.transactionId
|
||||||
}
|
}
|
||||||
const res1 = await postDataByParams('/api/warehouse/create',data1)
|
const res1 = await postDataByParams('/api/warehouse/create',data1)
|
||||||
@ -183,7 +185,7 @@ export default {
|
|||||||
})
|
})
|
||||||
if (res2.code===200){
|
if (res2.code===200){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/paySuccess/paySuccess",
|
url: `/pages/paySuccess/paySuccess?ID=${res1.data.ID}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,20 @@
|
|||||||
</template>
|
</template>
|
||||||
</title-block>
|
</title-block>
|
||||||
<div class="content2">
|
<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>
|
</div>
|
||||||
<tm-poup height="700" v-model="show_2" position="bottom">
|
<tm-poup height="700" v-model="show_2" position="bottom">
|
||||||
<div class="poup1">
|
<div class="poup1">
|
||||||
@ -103,7 +116,7 @@
|
|||||||
<div class="wrap1_1_1">画作编号</div>
|
<div class="wrap1_1_1">画作编号</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2"></div>
|
||||||
<div class="wrap1_1_3">
|
<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>
|
||||||
<div class="wrap1_1_4"></div>
|
<div class="wrap1_1_4"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -111,7 +124,7 @@
|
|||||||
<div class="wrap1_1_1">画作名称</div>
|
<div class="wrap1_1_1">画作名称</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2"></div>
|
||||||
<div class="wrap1_1_3">
|
<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>
|
||||||
<div class="wrap1_1_4"></div>
|
<div class="wrap1_1_4"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -119,7 +132,7 @@
|
|||||||
<div class="wrap1_1_1">画家名称</div>
|
<div class="wrap1_1_1">画家名称</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2"></div>
|
||||||
<div class="wrap1_1_3">
|
<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>
|
||||||
<div class="wrap1_1_4">
|
<div class="wrap1_1_4">
|
||||||
</div>
|
</div>
|
||||||
@ -128,7 +141,7 @@
|
|||||||
<div class="wrap1_1_1">画作平尺数</div>
|
<div class="wrap1_1_1">画作平尺数</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2"></div>
|
||||||
<div class="wrap1_1_3">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -140,7 +153,7 @@
|
|||||||
<div class="wrap1_1_1">寄存地址</div>
|
<div class="wrap1_1_1">寄存地址</div>
|
||||||
<div class="wrap1_1_2"></div>
|
<div class="wrap1_1_2"></div>
|
||||||
<div class="wrap1_1_3">
|
<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:'寄存地址'"/>
|
:placeholder="warehouseID?addressList.find(x=>x.ID===warehouseID).address:'寄存地址'"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap1_1_4"></div>
|
<div class="wrap1_1_4"></div>
|
||||||
@ -173,8 +186,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import http from "@/http/api";
|
||||||
import {postDataByParams} from "../../http/service";
|
import {postDataByParams} from "../../http/service";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "order-details",
|
name: "order-details",
|
||||||
data() {
|
data() {
|
||||||
@ -195,6 +208,7 @@ export default {
|
|||||||
days.push(i)
|
days.push(i)
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
fileList1:[],
|
||||||
dayMoney:'',
|
dayMoney:'',
|
||||||
expectedPayment:'',
|
expectedPayment:'',
|
||||||
warehouseID: '',
|
warehouseID: '',
|
||||||
@ -239,16 +253,60 @@ export default {
|
|||||||
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
||||||
},
|
},
|
||||||
methods: {
|
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(){
|
async signContract(){
|
||||||
|
|
||||||
const data={
|
const data={
|
||||||
cycleId:this.cycleId,
|
cycleId:this.cycleId,
|
||||||
warehouseID:this.warehouseID,
|
warehouseID:this.warehouseID,
|
||||||
artworkSquareSize:this.info.artworkSquareSize
|
artworkSquareSize:Number(this.info.artworkSquareSize)
|
||||||
}
|
}
|
||||||
const res = await postDataByParams('/api/warehouse/fdd/contract/h5',data)
|
const res = await postDataByParams('/api/warehouse/fdd/contract/h5',data)
|
||||||
if (res.code===200){
|
if (res.code===200){
|
||||||
uni.setStorageSync("jumpUrl", res.data.jumpUrl)
|
uni.setStorageSync("jumpUrl", res.data.jumpUrl)
|
||||||
|
this.info.artworkImg=this.fileList1[0].url
|
||||||
uni.setStorageSync("orderingInfo", {
|
uni.setStorageSync("orderingInfo", {
|
||||||
cycleID:this.cycleId,
|
cycleID:this.cycleId,
|
||||||
warehouseID:this.warehouseID,
|
warehouseID:this.warehouseID,
|
||||||
@ -268,7 +326,7 @@ export default {
|
|||||||
async obtainAmount(){
|
async obtainAmount(){
|
||||||
const data={
|
const data={
|
||||||
cycleID:this.cycleId,
|
cycleID:this.cycleId,
|
||||||
artworkSquareSize:this.info.artworkSquareSize
|
artworkSquareSize:Number(this.info.artworkSquareSize)
|
||||||
}
|
}
|
||||||
const res = await postDataByParams('/api/warehouse/calculate',data)
|
const res = await postDataByParams('/api/warehouse/calculate',data)
|
||||||
if (res.code===200){
|
if (res.code===200){
|
||||||
@ -307,6 +365,7 @@ export default {
|
|||||||
const res = await postDataByParams('/api/warehouse/ocr', data)
|
const res = await postDataByParams('/api/warehouse/ocr', data)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
|
this.fileList1=[{url:this.info.artworkImg}]
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
@ -65,7 +65,6 @@
|
|||||||
<div class="wrap1_3_2_2">{{ item.shelvesNum }}</div>
|
<div class="wrap1_3_2_2">{{ item.shelvesNum }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wrap1_4" v-if="item.isRight&&item.artworkStatus===5" @click.stop="openDelete(item)">
|
<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>
|
<image style="width: 80rpx;height: 80rpx" src="../../static/zu154@3x.png"></image>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,38 +12,38 @@
|
|||||||
<view class="info-right">
|
<view class="info-right">
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">画作编号</view>
|
<view class="title">画作编号</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.artworkNum}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">画作名称</view>
|
<view class="title">画作名称</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.artworkName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">画家名称</view>
|
<view class="title">画家名称</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.artistName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">画作平尺数</view>
|
<view class="title">画作平尺数</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.artworkSize}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-info">
|
<view class="order-info">
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">订单编号</view>
|
<view class="title">订单编号</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.artworkNum}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">寄存地址</view>
|
<view class="title">寄存地址</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.warehouseName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">寄存时限</view>
|
<view class="title">寄存时限</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.cycleName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-right-item">
|
<view class="info-right-item">
|
||||||
<view class="title">付款金额</view>
|
<view class="title">付款金额</view>
|
||||||
<view class="content">12313123</view>
|
<view class="content">{{info.money}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tips">*请携带您的画作在时限之前到达寄存地</view>
|
<view class="tips">*请携带您的画作在时限之前到达寄存地</view>
|
||||||
@ -59,19 +59,24 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {postDataByParams} from "../../http/service";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name:'paySuccess',
|
name:'paySuccess',
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
info:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getData(){
|
async getData(){
|
||||||
|
const data1={
|
||||||
|
ID:Number(this.$mp.query.ID)
|
||||||
|
}
|
||||||
|
const res1 = await postDataByParams('/api/warehouse/detail',data1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user