|
|
@@ -14,8 +14,8 @@
|
|
|
<view>
|
|
|
<text>{{formData.loadAddr}}</text>
|
|
|
</view>
|
|
|
- <span class="icon iconfont"
|
|
|
- style="font-size: 100rpx; color: #fcbd71; height: 80rpx;"></span>
|
|
|
+ <!-- <span class="icon iconfont" style="font-size: 100rpx; color: #fcbd71; height: 80rpx;"></span> -->
|
|
|
+ <view><text>【到】</text></view>
|
|
|
<view>
|
|
|
<text>{{formData.unLoadAddr}}</text>
|
|
|
</view>
|
|
|
@@ -81,15 +81,15 @@
|
|
|
</view>
|
|
|
<view class="box">
|
|
|
<view class="data">
|
|
|
- <text class="key">升数</text>
|
|
|
+ <text class="key">升 数</text>
|
|
|
<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
|
|
|
- @input="checkUnOilappoint1Qty" placeholder="请输入升数" v-model="formData.oilappoint1Qty" />
|
|
|
+ @input="checkUnOilappoint1Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint1Qty" />
|
|
|
</view>
|
|
|
<view class="data">
|
|
|
- <text class="key">金额</text>
|
|
|
+ <text class="key">金 额</text>
|
|
|
|
|
|
<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
|
|
|
- @input="checkUnOilappoint1Amt" placeholder="请输入金额" v-model="formData.oilappoint1Amt" />
|
|
|
+ @input="checkUnOilappoint1Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint1Amt" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -104,15 +104,15 @@
|
|
|
</view>
|
|
|
<view class="box">
|
|
|
<view class="data">
|
|
|
- <text class="key">升数</text>
|
|
|
+ <text class="key">升 数</text>
|
|
|
<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
|
|
|
- @input="checkUnOilappoint2Qty" placeholder="请输入升数" v-model="formData.oilappoint2Qty" />
|
|
|
+ @input="checkUnOilappoint2Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint2Qty" />
|
|
|
</view>
|
|
|
<view class="data">
|
|
|
- <text class="key">金额</text>
|
|
|
+ <text class="key">金 额</text>
|
|
|
|
|
|
<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
|
|
|
- @input="checkUnOilappoint2Amt" placeholder="请输入金额" v-model="formData.oilappoint2Amt" />
|
|
|
+ @input="checkUnOilappoint2Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint2Amt" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -127,15 +127,15 @@
|
|
|
</view>
|
|
|
<view class="box">
|
|
|
<view class="data">
|
|
|
- <text class="key">升数</text>
|
|
|
+ <text class="key">升 数</text>
|
|
|
<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
|
|
|
- @input="checkUnOilappoint3Qty" placeholder="请输入升数" v-model="formData.oilappoint3Qty" />
|
|
|
+ @input="checkUnOilappoint3Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint3Qty" />
|
|
|
</view>
|
|
|
<view class="data">
|
|
|
- <text class="key">金额</text>
|
|
|
+ <text class="key">金 额</text>
|
|
|
|
|
|
<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
|
|
|
- @input="checkUnOilappoint3Amt" placeholder="请输入金额" v-model="formData.oilappoint3Amt" />
|
|
|
+ @input="checkUnOilappoint3Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint3Amt" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -198,7 +198,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="remarks" style="border-bottom: 2rpx dotted #000;">
|
|
|
- <input v-model="item.remarks" placeholder="请输入备注">
|
|
|
+ <input v-model="item.remarks" placeholder-style="font-size:24rpx" placeholder="请输入备注">
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -235,7 +235,7 @@
|
|
|
</view>
|
|
|
<view class="button">
|
|
|
<u-button iconColor="#3c9cff" shape="circle" type="primary" :disabled="upDisabled"
|
|
|
- @click="upAuditShow = true" text="提交报账单"></u-button>
|
|
|
+ @click="upButtonClick('TJ')" text="提交报账单"></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -257,7 +257,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<!-- 遮盖罩 -->
|
|
|
@@ -271,10 +271,10 @@
|
|
|
<rich-text nodes="确定要保存数据吗?"></rich-text>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
-
|
|
|
+
|
|
|
<u-modal :show="upAuditShow" title="提示" showCancelButton @confirm="upReview" @cancel="upAuditShow = false">
|
|
|
<view class="slot-content">
|
|
|
- <rich-text nodes="确定要提交审核吗?"></rich-text>
|
|
|
+ <rich-text nodes="确定要提交账单吗?"></rich-text>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
|
|
|
@@ -283,13 +283,13 @@
|
|
|
<rich-text nodes="确定删除这张图片吗?"></rich-text>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
-
|
|
|
+
|
|
|
<u-modal :show="auditTShow" title="提示" showCancelButton @confirm="check('T')" @cancel="auditTShow = false">
|
|
|
<view class="slot-content">
|
|
|
<rich-text nodes="确定要审核通过吗?"></rich-text>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
-
|
|
|
+
|
|
|
<u-modal :show="auditFShow" title="提示" showCancelButton @confirm="check('F')" @cancel="auditFShow = false">
|
|
|
<view class="slot-content">
|
|
|
<rich-text nodes="确定要驳回审核吗?"></rich-text>
|
|
|
@@ -408,38 +408,37 @@
|
|
|
|
|
|
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
|
|
|
+ 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') {
|
|
|
+ console.log(123);
|
|
|
this.button = false;
|
|
|
+ this.disabled = true;
|
|
|
+ }
|
|
|
+ if (role == 'JSY') {
|
|
|
+ this.disabled = false;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 审核中
|
|
|
if (
|
|
|
res.data.ifStarted == "S") {
|
|
|
@@ -455,7 +454,7 @@
|
|
|
this.saveDisabled = true;
|
|
|
this.upDisabled = true;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 未提交
|
|
|
// if (res.data.ifLoaded != "T" ||
|
|
|
// res.data.ifUnLoaded != "T") {
|
|
|
@@ -495,6 +494,46 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 事件审核按钮
|
|
|
+ upButtonClick(type) {
|
|
|
+ if(this.formData.loadQty == null) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "没有装车吨位!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+ } else if(this.formData.loadDate == null) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "没有装车时间!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+ } else if(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.unLoadDate == null) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "没有卸车时间!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ if (type == 'BX') {
|
|
|
+ this.submitShow = true
|
|
|
+ } else if (type == 'TJ') {
|
|
|
+ this.upAuditShow = true
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
// 保存内容
|
|
|
submit() {
|
|
|
if (this.status376 == 6) {
|
|
|
@@ -566,51 +605,116 @@
|
|
|
}
|
|
|
|
|
|
this.loading = true;
|
|
|
- var list = [];
|
|
|
- for (var item in this.itemsList) {
|
|
|
- var amt = this.itemsList[item].amt;
|
|
|
- if (amt != null) {
|
|
|
- var items = this.itemsList[item];
|
|
|
- list.push(items);
|
|
|
- }
|
|
|
- }
|
|
|
- this.formData.itemsVoList = list;
|
|
|
+ // var list = [];
|
|
|
+ // for (var item in this.itemsList) {
|
|
|
+ // var amt = this.itemsList[item].amt;
|
|
|
+ // if (amt != null) {
|
|
|
+ // var items = this.itemsList[item];
|
|
|
+ // list.push(items);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // for (let item of this.itemsList) {
|
|
|
+ // if (item == 0) {
|
|
|
+ // item.amt = null
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.formData.itemsVoList = list;
|
|
|
+ this.formData.itemsVoList = this.itemsList;
|
|
|
insertLoadFeeItems(this.formData).then(res => {
|
|
|
this.submitShow = false;
|
|
|
- this.loading = false;
|
|
|
if (res.code == 200) {
|
|
|
- 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
|
|
|
- // 保存成功弹窗提示
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: "保存成功!",
|
|
|
- iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
+ // 报销费用下拉选
|
|
|
+ getGasStations().then(res => {
|
|
|
+ // this.gasStationList = res.data
|
|
|
+ for (var item in res.data) {
|
|
|
+ var data = {
|
|
|
+ text: res.data[item].cname,
|
|
|
+ value: res.data[item].cname
|
|
|
+ };
|
|
|
+ this.gasStationList.push(data);
|
|
|
+ }
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 审核中
|
|
|
+ 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.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: "保存成功!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
+ })
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ })
|
|
|
})
|
|
|
+
|
|
|
+ // this.getData();
|
|
|
+ // 保存成功弹窗提示
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'success',
|
|
|
+ // message: "保存成功!",
|
|
|
+ // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
+ // })
|
|
|
} else {
|
|
|
// 保存失败消息
|
|
|
this.$refs.uToast.show({
|
|
|
@@ -694,27 +798,105 @@
|
|
|
this.formData.gasstation3 = 0;
|
|
|
}
|
|
|
this.loading = true;
|
|
|
- var list = [];
|
|
|
- for (var item in this.itemsList) {
|
|
|
- var amt = this.itemsList[item].amt;
|
|
|
- if (amt != null) {
|
|
|
- var items = this.itemsList[item];
|
|
|
- list.push(items);
|
|
|
- }
|
|
|
- }
|
|
|
- this.formData.itemsVoList = list;
|
|
|
+ // var list = [];
|
|
|
+ // for (var item in this.itemsList) {
|
|
|
+ // var amt = this.itemsList[item].amt;
|
|
|
+ // if (amt != null) {
|
|
|
+ // var items = this.itemsList[item];
|
|
|
+ // list.push(items);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ this.formData.itemsVoList = this.itemsList;
|
|
|
submitAudit(this.formData).then(res => {
|
|
|
this.submitShow = false
|
|
|
- this.loading = false;
|
|
|
this.upAuditShow = false;
|
|
|
if (res.msg == 'ok') {
|
|
|
-
|
|
|
- // 保存成功弹窗提示
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: "提交审核成功!",
|
|
|
- iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
- })
|
|
|
+ getGasStations().then(res => {
|
|
|
+ for (var item in res.data) {
|
|
|
+ var data = {
|
|
|
+ text: res.data[item].cname,
|
|
|
+ value: res.data[item].cname
|
|
|
+ };
|
|
|
+ this.gasStationList.push(data);
|
|
|
+ }
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 审核中
|
|
|
+ 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.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: "提交审核成功!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
+ })
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ // this.getData();
|
|
|
+ // // 保存成功弹窗提示
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'success',
|
|
|
+ // message: "提交审核成功!",
|
|
|
+ // iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
|
|
|
+ // })
|
|
|
} else {
|
|
|
// 保存失败消息
|
|
|
this.$refs.uToast.show({
|
|
|
@@ -730,11 +912,11 @@
|
|
|
// 审核
|
|
|
check(type) {
|
|
|
var data = {
|
|
|
- orderNo : this.orderNo,
|
|
|
- entityId : this.formData.entityId,
|
|
|
- auditType : type
|
|
|
+ orderNo: this.orderNo,
|
|
|
+ entityId: this.formData.entityId,
|
|
|
+ auditType: type
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
audit(data).then(res => {
|
|
|
if (res.msg == 'ok') {
|
|
|
this.getData();
|
|
|
@@ -743,7 +925,7 @@
|
|
|
this.auditTShow = false;
|
|
|
} else if (type == 'F') {
|
|
|
this.auditFShow = false;
|
|
|
- }
|
|
|
+ }
|
|
|
// 保存成功弹窗提示
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'success',
|
|
|
@@ -1103,6 +1285,7 @@
|
|
|
|
|
|
<style lang="scss">
|
|
|
@import url("/font/iconfont.css");
|
|
|
+
|
|
|
// 修改布局方向为纵向布局
|
|
|
.vertical-layout {
|
|
|
display: flex;
|
|
|
@@ -1151,7 +1334,7 @@
|
|
|
// display: table-cell;
|
|
|
display: flex;
|
|
|
align-items: flex-end;
|
|
|
-
|
|
|
+
|
|
|
justify-content: space-between;
|
|
|
box-sizing: border-box;
|
|
|
|