|
@@ -1,20 +1,20 @@
|
|
<template>
|
|
<template>
|
|
<view class="content">
|
|
<view class="content">
|
|
- <view class="content1">
|
|
|
|
- <view style='width:70px'>付款方式</view>
|
|
|
|
|
|
+ <!-- <view class="content1"> -->
|
|
|
|
+ <!-- <view style='width:70px'>付款方式</view>
|
|
<u-radio-group v-model="dataDetails.advanceFreightService" placement="row">
|
|
<u-radio-group v-model="dataDetails.advanceFreightService" placement="row">
|
|
<u-radio :customStyle="radioCustomStyle" v-for="(item, index) in radiolist1" :key="index"
|
|
<u-radio :customStyle="radioCustomStyle" v-for="(item, index) in radiolist1" :key="index"
|
|
:label="item.name" :name="item.name" @change="radioChange">
|
|
:label="item.name" :name="item.name" @change="radioChange">
|
|
</u-radio>
|
|
</u-radio>
|
|
- </u-radio-group>
|
|
|
|
- <!-- <view class="left">
|
|
|
|
|
|
+ </u-radio-group> -->
|
|
|
|
+ <!-- <view class="left">
|
|
付款方式
|
|
付款方式
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
<view class="left-text">平台垫付运费</view>
|
|
<view class="left-text">平台垫付运费</view>
|
|
<u-switch @change="change" v-model="value" inactiveColor='#ABB0BB' size="20" ></u-switch>
|
|
<u-switch @change="change" v-model="value" inactiveColor='#ABB0BB' size="20" ></u-switch>
|
|
</view> -->
|
|
</view> -->
|
|
- </view>
|
|
|
|
|
|
+ <!-- </view> -->
|
|
<view class="content2">
|
|
<view class="content2">
|
|
<view class="title">
|
|
<view class="title">
|
|
合同摘要
|
|
合同摘要
|
|
@@ -117,8 +117,8 @@
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
that = this
|
|
that = this
|
|
console.log(options)
|
|
console.log(options)
|
|
- this.dataDetails = options
|
|
|
|
- this.dataDetails.advanceFreightService = '平台垫付运费'
|
|
|
|
|
|
+ this.dataDetails = JSON.parse(decodeURIComponent(options.obj))
|
|
|
|
+ // this.dataDetails.advanceFreightService = '平台垫付运费'
|
|
this.ctx = uni.createCanvasContext("handWriting");
|
|
this.ctx = uni.createCanvasContext("handWriting");
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
uni.createSelectorQuery().select('.handCenter').boundingClientRect(rect => {
|
|
uni.createSelectorQuery().select('.handCenter').boundingClientRect(rect => {
|
|
@@ -163,37 +163,42 @@
|
|
title: '加载中',
|
|
title: '加载中',
|
|
mask: true
|
|
mask: true
|
|
})
|
|
})
|
|
-
|
|
|
|
- that.$request.baseRequest('get', '/orderInfo/setPdf', that.dataDetails).then(res => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- debugger
|
|
|
|
- // that.contractSrc = res.data
|
|
|
|
- // uni.downloadFile({
|
|
|
|
- // url: res.data,
|
|
|
|
- // success: function(res) {
|
|
|
|
- // var filePath = res.tempFilePath;
|
|
|
|
- // uni.openDocument({
|
|
|
|
- // filePath: filePath,
|
|
|
|
- // showMenu: true,
|
|
|
|
- // success: function(res) {
|
|
|
|
- // console.log('打开文档成功');
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // this.$refs.uToast.show({
|
|
|
|
- // type: 'success',
|
|
|
|
- // message: "提交成功",
|
|
|
|
- // complete() {
|
|
|
|
- // that.upCallback({
|
|
|
|
- // size: 10,
|
|
|
|
- // num: 1
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ let _obj = {}
|
|
|
|
+ _obj.id = that.dataDetails.id
|
|
|
|
+ _obj.typeFlag = 1
|
|
|
|
+ _obj.cargoOwnerAutograph = that.dataDetails.cargoOwnerAutograph
|
|
|
|
+ debugger
|
|
|
|
+ that.$request.baseRequest('get', '/orderInfo/setPdf', _obj).then(
|
|
|
|
+ res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ debugger
|
|
|
|
+ // that.contractSrc = res.data
|
|
|
|
+ // uni.downloadFile({
|
|
|
|
+ // url: res.data,
|
|
|
|
+ // success: function(res) {
|
|
|
|
+ // var filePath = res.tempFilePath;
|
|
|
|
+ // uni.openDocument({
|
|
|
|
+ // filePath: filePath,
|
|
|
|
+ // showMenu: true,
|
|
|
|
+ // success: function(res) {
|
|
|
|
+ // console.log('打开文档成功');
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // this.$refs.uToast.show({
|
|
|
|
+ // type: 'success',
|
|
|
|
+ // message: "提交成功",
|
|
|
|
+ // complete() {
|
|
|
|
+ // that.upCallback({
|
|
|
|
+ // size: 10,
|
|
|
|
+ // num: 1
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.$u.toast(res.message);
|
|
uni.$u.toast(res.message);
|
|
});
|
|
});
|