|
@@ -45,8 +45,8 @@
|
|
|
<view class="data-two">
|
|
|
<text class="key">定点加油</text>
|
|
|
<view class="list">
|
|
|
- <uni-data-select :localdata="gasStationList" v-model="formData.gasstation1"
|
|
|
- :clear="false"></uni-data-select>
|
|
|
+ <uni-data-select :disabled="disabled" :localdata="gasStationList"
|
|
|
+ v-model="formData.gasstation1" :clear="false"></uni-data-select>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -68,22 +68,22 @@
|
|
|
|
|
|
|
|
|
<!-- <view class="box-list vertical-layout"> -->
|
|
|
- <!-- <view class="iconfont icon-jiayouzhan icon"></view> -->
|
|
|
- <!-- <view class="icon" style="color: #3c9cff;">定点加油</view>
|
|
|
+ <!-- <view class="iconfont icon-jiayouzhan icon"></view> -->
|
|
|
+ <!-- <view class="icon" style="color: #3c9cff;">定点加油</view>
|
|
|
<view> -->
|
|
|
- <!-- <u-radio-group class="list" :disabled="disabled" v-model="formData.gasstation1"
|
|
|
+ <!-- <u-radio-group class="list" :disabled="disabled" v-model="formData.gasstation1"
|
|
|
@change="groupChangeOne">
|
|
|
<u-radio :customStyle="{marginBottom: '20rpx', marginRight: '30rpx'}"
|
|
|
v-for="(item, index) in gasStationList" :key="index" :label="item.cname"
|
|
|
:name="item.cname" @change="radioChangeOne">
|
|
|
</u-radio>
|
|
|
</u-radio-group> -->
|
|
|
- <!-- <view class="list">
|
|
|
+ <!-- <view class="list">
|
|
|
<uni-data-select :localdata="gasStationList" v-model="formData.gasstation1"
|
|
|
:clear="false"></uni-data-select>
|
|
|
</view> -->
|
|
|
|
|
|
- <!-- <view class="quantity-aum vertical-layout">
|
|
|
+ <!-- <view class="quantity-aum vertical-layout">
|
|
|
<view class="aaa vertical-layout">
|
|
|
<text style="color: #3c9cff;">升数</text>
|
|
|
<input class="key" :disabled="disabled" inputmode="decimal"
|
|
@@ -99,13 +99,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
-
|
|
|
+
|
|
|
<view class="box">
|
|
|
<view class="data-two">
|
|
|
<text class="key">定点加油</text>
|
|
|
<view class="list">
|
|
|
- <uni-data-select :localdata="gasStationList" v-model="formData.gasstation2"
|
|
|
- :clear="false"></uni-data-select>
|
|
|
+ <uni-data-select :disabled="disabled" :localdata="gasStationList"
|
|
|
+ v-model="formData.gasstation2" :clear="false"></uni-data-select>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -117,7 +117,7 @@
|
|
|
</view>
|
|
|
<view class="data">
|
|
|
<text class="key">金额</text>
|
|
|
-
|
|
|
+
|
|
|
<input class="value" :disabled="disabled" inputmode="decimal" @input="checkUnOilappoint2Amt"
|
|
|
placeholder="请输入金额" v-model="formData.oilappoint2Amt" />
|
|
|
</view>
|
|
@@ -125,10 +125,10 @@
|
|
|
|
|
|
|
|
|
<!-- <view class="box-list vertical-layout"> -->
|
|
|
- <!-- <view class="iconfont icon-jiayouzhan icon"></view> -->
|
|
|
- <!-- <view class="icon" style="color: #3c9cff;">定点加油</view>
|
|
|
+ <!-- <view class="iconfont icon-jiayouzhan icon"></view> -->
|
|
|
+ <!-- <view class="icon" style="color: #3c9cff;">定点加油</view>
|
|
|
<view> -->
|
|
|
- <!-- <u-radio-group class="list" :disabled="disabled" v-model="formData.gasstation2"
|
|
|
+ <!-- <u-radio-group class="list" :disabled="disabled" v-model="formData.gasstation2"
|
|
|
@change="groupChangeTwo">
|
|
|
<u-radio :customStyle="{marginBottom: '20rpx', marginRight: '30rpx'}"
|
|
|
v-for="(item, index) in gasStationList" :key="index" :label="item.cname"
|
|
@@ -137,7 +137,7 @@
|
|
|
</u-radio-group> -->
|
|
|
|
|
|
|
|
|
- <!-- <view class="list">
|
|
|
+ <!-- <view class="list">
|
|
|
<uni-data-select :localdata="gasStationList" v-model="formData.gasstation2"
|
|
|
:clear="false"></uni-data-select>
|
|
|
</view>
|
|
@@ -261,6 +261,9 @@
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
this.status376 = option.status376;
|
|
|
+ if (this.status376 == 6) {
|
|
|
+ this.disabled = true;
|
|
|
+ }
|
|
|
// 报销费用下拉选
|
|
|
getGasStations().then(res => {
|
|
|
// this.gasStationList = res.data
|
|
@@ -278,9 +281,6 @@
|
|
|
this.formData = res.data;
|
|
|
var costBreakdownList = res.data.loadFeeItemsList;
|
|
|
this.itemsList = costBreakdownList;
|
|
|
- if (res.data.billStatus == 6) {
|
|
|
- this.disabled = true;
|
|
|
- }
|
|
|
// for (var inex in this.itemsList) {
|
|
|
// for (var inexs in costBreakdownList) {
|
|
|
// // 金额赋值
|
|
@@ -299,14 +299,14 @@
|
|
|
// 保存内容
|
|
|
submit() {
|
|
|
|
|
|
- if (this.formData.billStatus == 6) {
|
|
|
+ if (this.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.status376 == 2) {
|
|
|
|
|
|
this.loading = true;
|
|
|
var list = [];
|
|
@@ -686,27 +686,27 @@
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
-
|
|
|
+
|
|
|
.key {
|
|
|
width: 35%;
|
|
|
text-align: right;
|
|
|
color: #3c9cff;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.list {
|
|
|
margin-top: 30rpx;
|
|
|
margin-bottom: 20rpx;
|
|
|
-
|
|
|
+
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
// background-color: pink;
|
|
|
-
|
|
|
+
|
|
|
height: auto;
|
|
|
display: flex;
|
|
|
-
|
|
|
+
|
|
|
flex-wrap: wrap;
|
|
|
-
|
|
|
+
|
|
|
font-size: 30rpx;
|
|
|
}
|
|
|
}
|