|
@@ -15,12 +15,12 @@
|
|
|
<view class="fway-form-input-select">
|
|
|
<radio-group @change="bindWorkTypeChange">
|
|
|
<label class="fway-form-radioBox" style="margin-right: 0;" v-for="(item, index) in WorkTypeData" :key="index">
|
|
|
- <radio style="transform:scale(1)" color="#3e6ffd" :value="item.dicDataName"></radio>{{item.dicDataName}}
|
|
|
+ <radio style="transform:scale(1)" color="#3e6ffd" :value="item.dicDataValue"></radio>{{item.dicDataName}}
|
|
|
</label>
|
|
|
</radio-group>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="fway-form-item" v-show="data.jobType == '气割'">
|
|
|
+ <view class="fway-form-item" v-show="data.jobType == '1'">
|
|
|
<view class="fway-form-lable" style="width: 320rpx;"><text class="mustTips">*</text>购气单位/个人名称</view>
|
|
|
<view class="fway-form-input-inline" style="width: calc(100% - 350rpx);">
|
|
|
<input type="text" class="fway-form-input" placeholder="请填写名称" v-model="data.companyName" @tap="inputTap" data-focus="companyName" :focus="focusID == 'companyName' ? true : false" />
|
|
@@ -473,7 +473,7 @@
|
|
|
that.$util.msg("请选择作业类型!");
|
|
|
return false;
|
|
|
}
|
|
|
- if(that.data.jobType == '气割' && !that.data.companyName){
|
|
|
+ if(that.data.jobType == '1' && !that.data.companyName){
|
|
|
that.$util.msg("请填写购气单位/个人名称!");
|
|
|
return false;
|
|
|
}
|
|
@@ -555,10 +555,9 @@
|
|
|
that.data.workplaceName = that.FirstPlaceNameData[that.indexFirstPlaceName].dicDataName + '-' + that.SecondPlaceNameData[that.indexSecondPlaceName].dicDataName;
|
|
|
that.data.workArea = that.selectAreaName;
|
|
|
that.data.workAreaId = that.AreaData[1][that.indexArea[1]].id;
|
|
|
- if(that.data.jobType != '气割'){
|
|
|
+ if(that.data.jobType != '1'){
|
|
|
that.data.companyName = '';
|
|
|
}
|
|
|
- that.data.jobType = that.data.jobType == '气割' ? '1' : (that.data.jobType == '电焊' ? '0' : null)
|
|
|
let params = that.data;
|
|
|
console.log(JSON.stringify(params))
|
|
|
that.$admin.req({
|