|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <view class="head">
|
|
|
+ <view class="head-no a-blue">
|
|
|
<text>订单号: {{formData.orderNo}}</text>
|
|
|
</view>
|
|
|
<view class="striping"></view>
|
|
|
- <view class="head" @click="telFun">
|
|
|
+ <view class="head a-blue" @click="telFun">
|
|
|
<text>驾驶员: {{formData.driver1Name == null ? '' : formData.driver1Name}} {{formData.driver1mobile == null ? '' : formData.driver1mobile}}</text>
|
|
|
</view>
|
|
|
<!-- <u-collapse :value="['Declaration information']"> -->
|
|
@@ -12,7 +12,7 @@
|
|
|
<!-- <u-collapse-item title="报单信息" name="Declaration information"> -->
|
|
|
<view class="box-box">
|
|
|
|
|
|
- <view class="box">
|
|
|
+ <!-- <view class="box">
|
|
|
<view class="data">
|
|
|
<text class="key">装车吨位</text>
|
|
|
<input class="value" :disabled="disabled" inputmode="decimal" @input="checkLoadQty"
|
|
@@ -23,9 +23,22 @@
|
|
|
<uni-datetime-picker class="value" :disabled="disabled"
|
|
|
v-model="formData.loadDateString">{{formData.loadDateString == null ? "请选择日期" : formData.loadDateString }}</uni-datetime-picker>
|
|
|
</view>
|
|
|
+ </view> -->
|
|
|
+
|
|
|
+ <view class="box-two">
|
|
|
+ <text class="key">装车吨位</text>
|
|
|
+ <input class="value-two" :disabled="disabled" inputmode="decimal" @input="checkLoadQty"
|
|
|
+ v-model="formData.loadQty" />
|
|
|
</view>
|
|
|
|
|
|
- <view class="box">
|
|
|
+ <view class="box-two">
|
|
|
+ <text class="key">装车时间</text>
|
|
|
+ <uni-datetime-picker class="value-two" :disabled="disabled"
|
|
|
+ v-model="formData.loadDateString">{{formData.loadDateString == null ? "请选择日期" : formData.loadDateString }}</uni-datetime-picker>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <view class="box">
|
|
|
<view class="data">
|
|
|
<text class="key">卸车吨位</text>
|
|
|
<input class="value" :disabled="disabled" inputmode="decimal" @input="checkUnLoadQty"
|
|
@@ -36,8 +49,19 @@
|
|
|
<uni-datetime-picker class="value" :disabled="disabled"
|
|
|
v-model="formData.unLoadDateString">{{formData.unLoadDateString == null ? "请选择日期" : formData.unLoadDateString }}</uni-datetime-picker>
|
|
|
</view>
|
|
|
+ </view> -->
|
|
|
+
|
|
|
+ <view class="box-two">
|
|
|
+ <text class="key">卸车吨位</text>
|
|
|
+ <input class="value-two" :disabled="disabled" inputmode="decimal" @input="checkUnLoadQty"
|
|
|
+ v-model="formData.unLoadQty" />
|
|
|
</view>
|
|
|
|
|
|
+ <view class="box-two">
|
|
|
+ <text class="key">卸车时间</text>
|
|
|
+ <uni-datetime-picker class="value-two" :disabled="disabled"
|
|
|
+ v-model="formData.unLoadDateString">{{formData.unLoadDateString == null ? "请选择日期" : formData.unLoadDateString }}</uni-datetime-picker>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="box">
|
|
|
<view class="data">
|
|
@@ -76,38 +100,39 @@
|
|
|
<!-- </u-collapse-item> -->
|
|
|
|
|
|
<u-collapse-item title="照片" name="img" ref="collapseHeight">
|
|
|
- <u-upload :fileList="fileList1" @afterRead="imgUploading" @delete="deletePic" name="1" multiple
|
|
|
- :previewFullImage="true" :disabled="this.formData.billStatus == 6"></u-upload>
|
|
|
+ <!-- @afterRead="imgUploading" -->
|
|
|
+ <u-upload :fileList="fileList1" @delete="deletePic" name="1" multiple :previewFullImage="true"
|
|
|
+ :disabled="this.status317 == 2"></u-upload>
|
|
|
</u-collapse-item>
|
|
|
|
|
|
<u-collapse-item title="订单信息" name="order information">
|
|
|
- <view class="box-two">
|
|
|
+ <view class="box-two textAlign">
|
|
|
<text class="key">货物名称</text>
|
|
|
<text class="value">{{formData.goodsCName == null ? "" : formData.goodsCName}}</text>
|
|
|
</view>
|
|
|
- <view class="box-two">
|
|
|
+ <view class="box-two textAlign">
|
|
|
<text class="key">装车地点</text>
|
|
|
<text class="value">{{formData.loadAddr == null ? "" : formData.loadAddr}}</text>
|
|
|
</view>
|
|
|
- <view class="box-two">
|
|
|
+ <view class="box-two textAlign">
|
|
|
<text class="key">装车厂家</text>
|
|
|
<text class="value">{{formData.loadFactory == null ? "" : formData.loadFactory}}</text>
|
|
|
</view>
|
|
|
- <view class="box-two">
|
|
|
- <text class="key">联系人及电话</text>
|
|
|
+ <view class="box-two textAlign">
|
|
|
+ <text class="key">联系人电话</text>
|
|
|
<text
|
|
|
class="value">{{formData.loadAttn == null ? "" : formData.loadAttn}} {{formData.loadAttnTel == null ? "" : formData.loadAttnTel}}</text>
|
|
|
</view>
|
|
|
- <view class="box-two">
|
|
|
+ <view class="box-two textAlign">
|
|
|
<text class="key">卸车地点</text>
|
|
|
<text class="value">{{formData.unLoadAddr == null ? "" : formData.unLoadAddr}}</text>
|
|
|
</view>
|
|
|
- <view class="box-two">
|
|
|
+ <view class="box-two textAlign">
|
|
|
<text class="key">卸车厂家</text>
|
|
|
<text class="value">{{formData.unLoadFactory == null ? "" : formData.unLoadFactory}}</text>
|
|
|
</view>
|
|
|
- <view class="box-two">
|
|
|
- <text class="key">联系人及电话</text>
|
|
|
+ <view class="box-two textAlign">
|
|
|
+ <text class="key">联系人电话</text>
|
|
|
<text
|
|
|
class="value">{{formData.unLoadAttn == null ? "" : formData.unLoadAttn}} {{formData.unLoadAttnTel == null ? "" : formData.unLoadAttnTel}}</text>
|
|
|
</view>
|
|
@@ -125,12 +150,12 @@
|
|
|
<view class="bottom vertical-layout">
|
|
|
|
|
|
<view class="onsubmit-script" @click="setOrderBillsPlansByid()">
|
|
|
- <text v-if="formData.billStatus == 2">提交里程</text>
|
|
|
- <text v-if="formData.billStatus == 6">里程信息</text>
|
|
|
+ <text v-if="status317 == 2">提交里程</text>
|
|
|
+ <text v-if="status317 == 6 || status317 == 0">里程信息</text>
|
|
|
</view>
|
|
|
<view class="claim-expense" @click="skipClaimExpense()">
|
|
|
- <text v-if="formData.billStatus == 2">报销费用</text>
|
|
|
- <text v-if="formData.billStatus == 6">查看报销</text>
|
|
|
+ <text v-if="status376 == 2">报销费用</text>
|
|
|
+ <text v-if="status376 == 6 || status376 == 0">查看报销</text>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -184,11 +209,15 @@
|
|
|
// 删除的图片
|
|
|
event: {},
|
|
|
// 输入框禁用
|
|
|
- disabled: false
|
|
|
+ disabled: false,
|
|
|
+ status317: 0,
|
|
|
+ status376: 0
|
|
|
|
|
|
};
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
+ this.status317 = option.status317;
|
|
|
+ this.status376 = option.status376;
|
|
|
getOrderBillsPlansByid(option.orderNo).then(res => {
|
|
|
this.orderNo = option.orderNo;
|
|
|
this.formData = res.data;
|
|
@@ -208,25 +237,53 @@
|
|
|
methods: {
|
|
|
// 保存订单
|
|
|
setOrderBillsPlansByid(id) {
|
|
|
- if (this.formData.billStatus == 2) {
|
|
|
- putOrderBillsPlansByid(this.formData).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // 保存成功弹窗提示
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: "保存成功!",
|
|
|
- iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
- })
|
|
|
- } else {
|
|
|
- // 保存失败消息
|
|
|
- this.$refs.uToast.show({
|
|
|
- icon: false,
|
|
|
- message: "保存失败请重试!",
|
|
|
- iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- } else if (this.formData.billStatus == 6) {
|
|
|
+ // console.log(this.status317);
|
|
|
+ if (this.status317 == 2) {
|
|
|
+
|
|
|
+ if (this.formData.unLoadQty == '' || this.formData.unLoadQty == null) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "请输入卸车吨位!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+ } else if (this.formData.unLoadDateString == '' || this.formData.unLoadDateString == null) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "请选择卸车时间!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+
|
|
|
+ } else if (this.formData.loadmile == '' || this.formData.loadmile == null) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "请输入重车里程!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+
|
|
|
+ } else {
|
|
|
+
|
|
|
+ putOrderBillsPlansByid(this.formData).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ // 保存成功弹窗提示
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: "保存成功!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ // 保存失败消息
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ icon: false,
|
|
|
+ message: "保存失败请重试!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
// this.$refs.uToast.show({
|
|
|
// type: 'warning',
|
|
|
// icon: false,
|
|
@@ -251,14 +308,14 @@
|
|
|
},
|
|
|
// 删除图片
|
|
|
deletePic(event) {
|
|
|
- if (this.formData.billStatus == 6) {
|
|
|
+ if (this.formData.status376 == 6) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'warning',
|
|
|
icon: false,
|
|
|
message: "不允许修改!",
|
|
|
iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
})
|
|
|
- } else if (this.formData.billStatus == 2) {
|
|
|
+ } else if (this.formData.status376 == 2) {
|
|
|
this.event = event;
|
|
|
this.deleteShow = true;
|
|
|
}
|
|
@@ -321,8 +378,8 @@
|
|
|
pictureUploading(data, dataForm).then(res => {
|
|
|
|
|
|
let item = this[`fileList${event.name}`][fileListLen]
|
|
|
- console.log("item");
|
|
|
- console.log(item);
|
|
|
+ // console.log("item");
|
|
|
+ // console.log(item);
|
|
|
this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(
|
|
|
item, {
|
|
|
status: 'success',
|
|
@@ -357,7 +414,7 @@
|
|
|
// 跳转报销费用页面
|
|
|
skipClaimExpense() {
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/particulars/claimExpense/index?orderNo=' + this.orderNo,
|
|
|
+ url: '/pages/particulars/claimExpense/index?orderNo=' + this.orderNo + '&status376=' + this.status376,
|
|
|
});
|
|
|
},
|
|
|
// 跳转注意事项
|
|
@@ -402,6 +459,11 @@
|
|
|
.vertical-layout {
|
|
|
display: flex;
|
|
|
}
|
|
|
+
|
|
|
+ .textAlign {
|
|
|
+ text-align: right;
|
|
|
+ // margin-left: 20rpx;
|
|
|
+ }
|
|
|
|
|
|
// 分割线
|
|
|
.striping {
|
|
@@ -414,12 +476,32 @@
|
|
|
padding-left: 30rpx;
|
|
|
padding-right: 30rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .a-blue {
|
|
|
+ color: #3c9cff;
|
|
|
+ }
|
|
|
|
|
|
.content {
|
|
|
|
|
|
// box-sizing: border-box;
|
|
|
background-color: white;
|
|
|
|
|
|
+ .head-no {
|
|
|
+ // border-radius: 0 0 40rpx 40rpx;
|
|
|
+ // width: 500rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ padding-left: 30rpx;
|
|
|
+
|
|
|
+ vertical-align: middle;
|
|
|
+ display: table-cell;
|
|
|
+
|
|
|
+ font-size: 34rpx;
|
|
|
+ font-weight: 900;
|
|
|
+
|
|
|
+ // background-color: #3c9cff;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
.head {
|
|
|
// width: 100%;
|
|
|
height: 100rpx;
|
|
@@ -440,10 +522,10 @@
|
|
|
overflow: hidden;
|
|
|
height: 100rpx;
|
|
|
|
|
|
- border-bottom: 2rpx solid #f0f0f0f0;
|
|
|
+ // border-bottom: 2rpx solid #f0f0f0f0;
|
|
|
|
|
|
padding-left: 20rpx;
|
|
|
- // margin-right: 20rpx;
|
|
|
+ margin-right: 20rpx;
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
@@ -451,13 +533,17 @@
|
|
|
align-items: center;
|
|
|
|
|
|
.key {
|
|
|
+
|
|
|
+
|
|
|
display: inline-block;
|
|
|
width: 24%;
|
|
|
+ color: #3c9cff;
|
|
|
// font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
.value {
|
|
|
+ margin-left: 20rpx;
|
|
|
// color: #787878;
|
|
|
color: #3b3b3b;
|
|
|
margin-right: 20rpx;
|
|
@@ -465,8 +551,9 @@
|
|
|
}
|
|
|
|
|
|
.value-two {
|
|
|
+ width: calc(100% - 24%);
|
|
|
color: #3b3b3b;
|
|
|
- margin-right: 20rpx;
|
|
|
+ // margin-right: 20rpx;
|
|
|
border-bottom: 2rpx dotted #000;
|
|
|
}
|
|
|
}
|
|
@@ -478,7 +565,7 @@
|
|
|
overflow: hidden;
|
|
|
height: 100rpx;
|
|
|
|
|
|
- border-bottom: 2rpx solid #f0f0f0f0;
|
|
|
+ // border-bottom: 2rpx solid #f0f0f0f0;
|
|
|
padding-left: 20rpx;
|
|
|
font-size: 30rpx;
|
|
|
|
|
@@ -495,6 +582,7 @@
|
|
|
.key {
|
|
|
// background-color: indianred;
|
|
|
width: 100%;
|
|
|
+ color: #3c9cff;
|
|
|
}
|
|
|
|
|
|
.key-date {
|
|
@@ -516,12 +604,12 @@
|
|
|
position: fixed;
|
|
|
bottom: calc(var(--window-bottom));
|
|
|
width: 100%;
|
|
|
- height: 100rpx;
|
|
|
+ height: 80rpx;
|
|
|
|
|
|
background-color: pink;
|
|
|
|
|
|
text-align: center;
|
|
|
- line-height: 100rpx;
|
|
|
+ line-height: 80rpx;
|
|
|
|
|
|
|
|
|
|