|
@@ -226,7 +226,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <view v-if="formData.ifStarted != 'A'">
|
|
|
+ <view v-if="formData.ifStarted && formData.ifStarted != 'A'">
|
|
|
<!-- 驾驶员 -->
|
|
|
<view v-if="button" class="bottom" style="z-index: 4;">
|
|
|
<view class="row">
|
|
@@ -242,7 +242,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 队长 -->
|
|
|
- <view v-if="!button" class="bottom" style="z-index: 4;">
|
|
|
+ <view v-else class="bottom" style="z-index: 4;">
|
|
|
<view class="row">
|
|
|
<view class="button">
|
|
|
<u-button iconColor="#3c9cff" shape="circle" type="primary" :disabled="sDisabled"
|
|
@@ -355,7 +355,7 @@
|
|
|
// 审核按钮禁用
|
|
|
sDisabled: true,
|
|
|
// 底部按钮
|
|
|
- button: true,
|
|
|
+ button: null,
|
|
|
status376: 0,
|
|
|
selectionLength: 0,
|
|
|
fileList1: [],
|
|
@@ -393,6 +393,7 @@
|
|
|
this.disabled = true;
|
|
|
}
|
|
|
this.getData();
|
|
|
+ this.getLoadFeeItemsfun()
|
|
|
},
|
|
|
methods: {
|
|
|
change(item) {
|
|
@@ -420,96 +421,97 @@
|
|
|
}
|
|
|
getItems().then(res => {
|
|
|
this.itemsList = res.data
|
|
|
-
|
|
|
- getLoadFeeItems(this.orderNo).then(res => {
|
|
|
-
|
|
|
- res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
|
|
|
- res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
|
|
|
- res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
|
|
|
- res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
|
|
|
- res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
|
|
|
- res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
|
|
|
- res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
|
|
|
- res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
|
|
|
- res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
|
|
|
- res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
|
|
|
- res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
|
|
|
- res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
|
|
|
- res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
|
|
|
- res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
|
|
|
-
|
|
|
- for (let item of this.itemsList) {
|
|
|
- if (item == 0) {
|
|
|
- item.amt = null
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 角色
|
|
|
- for (let role of res.data.roleList) {
|
|
|
- if (role == 'DZ') {
|
|
|
- this.button = false;
|
|
|
- this.disabled = true;
|
|
|
- }
|
|
|
- if (role == 'JSY') {
|
|
|
- this.disabled = false;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 审核中
|
|
|
- if (
|
|
|
- res.data.ifStarted == "S") {
|
|
|
- this.disabled = true;
|
|
|
- this.saveDisabled = true;
|
|
|
- this.upDisabled = true;
|
|
|
- this.sDisabled = false;
|
|
|
- }
|
|
|
- // 审核完成
|
|
|
- if (
|
|
|
- res.data.ifStarted == "A") {
|
|
|
- this.disabled = true;
|
|
|
- this.saveDisabled = true;
|
|
|
- this.upDisabled = true;
|
|
|
- }
|
|
|
-
|
|
|
- // 未提交
|
|
|
- // if (res.data.ifLoaded != "T" ||
|
|
|
- // res.data.ifUnLoaded != "T") {
|
|
|
- // this.disabled = false;
|
|
|
- // this.saveDisabled = false;
|
|
|
- // this.upDisabled = true;
|
|
|
- // }
|
|
|
-
|
|
|
- this.formData = res.data;
|
|
|
- var costBreakdownList = res.data.loadFeeItemsList;
|
|
|
- this.itemsList = costBreakdownList;
|
|
|
-
|
|
|
- for (const key in this.itemsList) {
|
|
|
- if (this.itemsList[key].amt == 0) {
|
|
|
- this.itemsList[key].amt = null;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- this.fileList1 = res.data.fileList1;
|
|
|
- this.loading = false;
|
|
|
-
|
|
|
- // isMileage(this.orderNo).then(res => {
|
|
|
- // if (res.msg == 410) {
|
|
|
- // // this.disabled = true;
|
|
|
- // // this.upDisabled = true;
|
|
|
- // // this.$refs.uToast.show({
|
|
|
- // // type: 'warning',
|
|
|
- // // icon: false,
|
|
|
- // // message: "当前报单有待提交里程!",
|
|
|
- // // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
- // // })
|
|
|
- // }
|
|
|
- // })
|
|
|
-
|
|
|
- // this.calculatMoney();
|
|
|
- })
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ getLoadFeeItemsfun(){
|
|
|
+ getLoadFeeItems(this.orderNo).then(res => {
|
|
|
+ res.data.loadetc == 0 ? res.data.loadetc = null : res.data.loadetc
|
|
|
+ res.data.loadtoll == 0 ? res.data.loadtoll = null : res.data.loadtoll
|
|
|
+ res.data.oilhomeQty == 0 ? res.data.oilhomeQty = null : res.data.oilhomeQty
|
|
|
+ res.data.oilhomeAmt == 0 ? res.data.oilhomeAmt = null : res.data.oilhomeAmt
|
|
|
+ res.data.oilappoint1Qty == 0 ? res.data.oilappoint1Qty = null : res.data.oilappoint1Qty
|
|
|
+ res.data.oilappoint1Amt == 0 ? res.data.oilappoint1Amt = null : res.data.oilappoint1Amt
|
|
|
+ res.data.oilappoint2Qty == 0 ? res.data.oilappoint2Qty = null : res.data.oilappoint2Qty
|
|
|
+ res.data.oilappoint2Amt == 0 ? res.data.oilappoint2Amt = null : res.data.oilappoint2Amt
|
|
|
+ res.data.oilappoint3Qty == 0 ? res.data.oilappoint3Qty = null : res.data.oilappoint3Qty
|
|
|
+ res.data.oilappoint3Amt == 0 ? res.data.oilappoint3Amt = null : res.data.oilappoint3Amt
|
|
|
+ res.data.oilcash1Qty == 0 ? res.data.oilcash1Qty = null : res.data.oilcash1Qty
|
|
|
+ res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
|
|
|
+ res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
|
|
|
+ res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
|
|
|
+
|
|
|
+ for (let item of this.itemsList) {
|
|
|
+ if (item == 0) {
|
|
|
+ item.amt = null
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // // 角色
|
|
|
+ for (let role of res.data.roleList) {
|
|
|
+ if (role == 'DZ') {
|
|
|
+ this.button = false;
|
|
|
+ this.disabled = true;
|
|
|
+ }
|
|
|
+ if (role == 'JSY') {
|
|
|
+ this.button = true;
|
|
|
+ this.disabled = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 审核中
|
|
|
+ if (
|
|
|
+ res.data.ifStarted == "S") {
|
|
|
+ this.disabled = true;
|
|
|
+ this.saveDisabled = true;
|
|
|
+ this.upDisabled = true;
|
|
|
+ this.sDisabled = false;
|
|
|
+ }
|
|
|
+ // 审核完成
|
|
|
+ if (
|
|
|
+ res.data.ifStarted == "A") {
|
|
|
+ this.disabled = true;
|
|
|
+ this.saveDisabled = true;
|
|
|
+ this.upDisabled = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 未提交
|
|
|
+ // if (res.data.ifLoaded != "T" ||
|
|
|
+ // res.data.ifUnLoaded != "T") {
|
|
|
+ // this.disabled = false;
|
|
|
+ // this.saveDisabled = false;
|
|
|
+ // this.upDisabled = true;
|
|
|
+ // }
|
|
|
+
|
|
|
+ this.formData = res.data;
|
|
|
+ var costBreakdownList = res.data.loadFeeItemsList;
|
|
|
+ this.itemsList = costBreakdownList;
|
|
|
+
|
|
|
+ for (const key in this.itemsList) {
|
|
|
+ if (this.itemsList[key].amt == 0) {
|
|
|
+ this.itemsList[key].amt = null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.fileList1 = res.data.fileList1;
|
|
|
+ this.loading = false;
|
|
|
+
|
|
|
+ // isMileage(this.orderNo).then(res => {
|
|
|
+ // if (res.msg == 410) {
|
|
|
+ // // this.disabled = true;
|
|
|
+ // // this.upDisabled = true;
|
|
|
+ // // this.$refs.uToast.show({
|
|
|
+ // // type: 'warning',
|
|
|
+ // // icon: false,
|
|
|
+ // // message: "当前报单有待提交里程!",
|
|
|
+ // // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ // // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+
|
|
|
+ // this.calculatMoney();
|
|
|
+ })
|
|
|
+ },
|
|
|
// 事件审核按钮
|
|
|
upButtonClick(type) {
|
|
|
if(this.formData.loadQty == null) {
|
|
@@ -553,7 +555,7 @@
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'warning',
|
|
|
icon: false,
|
|
|
- message: "请先提交报账单!",
|
|
|
+ message: "请先提交卸车信息!",
|
|
|
iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
})
|
|
|
} else {
|
|
@@ -1134,17 +1136,17 @@
|
|
|
},
|
|
|
// 定点加油1清空
|
|
|
gasstation1Change() {
|
|
|
- this.formData.oilappoint1Qty = 0;
|
|
|
+ this.formData.oilappoint1Qty = '';
|
|
|
this.formData.oilappoint1Amt = 0;
|
|
|
},
|
|
|
// 定点加油2清空
|
|
|
gasstation2Change() {
|
|
|
- this.formData.oilappoint2Qty = 0;
|
|
|
+ this.formData.oilappoint2Qty = '';
|
|
|
this.formData.oilappoint2Amt = 0;
|
|
|
},
|
|
|
// 定点加油3清空
|
|
|
gasstation3Change() {
|
|
|
- this.formData.oilappoint3Qty = 0;
|
|
|
+ this.formData.oilappoint3Qty = '';
|
|
|
this.formData.oilappoint3Amt = 0;
|
|
|
},
|
|
|
// 点击拨打电话
|