作业编辑
This commit is contained in:
parent
d39046d7f5
commit
5867223df7
|
|
@ -7,7 +7,7 @@
|
||||||
<text class="star">*</text>
|
<text class="star">*</text>
|
||||||
<text>作业简介</text>
|
<text>作业简介</text>
|
||||||
</view>
|
</view>
|
||||||
<textarea class="apply-reason-text" v-model="formData.name" maxlength="250" placeholder="请输入" />
|
<textarea class="apply-reason-text" :disabled="type==='editOpretion'" v-model="formData.name" maxlength="250" placeholder="请输入" />
|
||||||
</view>
|
</view>
|
||||||
<view class="form-info">
|
<view class="form-info">
|
||||||
<view class="form-content ">
|
<view class="form-content ">
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<text class="form-left-text">具体地点</text>
|
<text class="form-left-text">具体地点</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-right">
|
<view class="form-right">
|
||||||
<input type="text" v-model="formData.place" maxlength="50" placeholder="请输入" />
|
<input type="text" :disabled="type==='editOpretion'" v-model="formData.place" maxlength="50" placeholder="请输入" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item border-bottom">
|
<view class="form-item border-bottom">
|
||||||
|
|
@ -25,13 +25,15 @@
|
||||||
<text class="form-left-text">作业时间</text>
|
<text class="form-left-text">作业时间</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-right form-date">
|
<view class="form-right form-date">
|
||||||
<view class="form-right form-date">
|
<text v-if="type==='editOpretion'">{{formData.start_time}}-{{formData.end_time}}</text>
|
||||||
|
<view class="form-right form-date" v-else>
|
||||||
<uni-datetime-picker
|
<uni-datetime-picker
|
||||||
v-model="datetimerange"
|
:disabled="type==='editOpretion'"
|
||||||
type="datetimerange"
|
v-model="datetimerange"
|
||||||
rangeSeparator="至"
|
type="datetimerange"
|
||||||
:hide-second="true"
|
rangeSeparator="至"
|
||||||
/>
|
:hide-second="true"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -41,18 +43,19 @@
|
||||||
<text class="form-left-text">生产状态</text>
|
<text class="form-left-text">生产状态</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-right">
|
<view class="form-right">
|
||||||
<uni-data-select v-model="formData.state_work" :localdata="stateRange">
|
<text v-if="type==='editOpretion'">{{formData.state_work}}</text>
|
||||||
|
<uni-data-select v-else v-model="formData.state_work" :localdata="stateRange" >
|
||||||
</uni-data-select>
|
</uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item border-bottom">
|
<view class="form-item border-bottom">
|
||||||
<view class="form-left">
|
<view class="form-left">
|
||||||
<text class="star">*</text>
|
<text class="star">*</text>
|
||||||
<text class="form-left-text">作业区域</text>
|
<text class="form-left-text">作业区域</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-right">
|
<view class="form-right">
|
||||||
<uni-data-select v-model="formData.area" :localdata="range" @change="areaChange">
|
<text v-if="type==='editOpretion'">{{area_name}}</text>
|
||||||
|
<uni-data-select v-else v-model="formData.area" :localdata="range" @change="areaChange" >
|
||||||
</uni-data-select>
|
</uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -138,6 +141,7 @@
|
||||||
dept_bus: '', //业务部门
|
dept_bus: '', //业务部门
|
||||||
coordinator: '', //业务部门协调员
|
coordinator: '', //业务部门协调员
|
||||||
},
|
},
|
||||||
|
area_name:'',
|
||||||
dept_bus_name:'请选择业务部门',
|
dept_bus_name:'请选择业务部门',
|
||||||
dept_ter_name:'请选择属地部门',
|
dept_ter_name:'请选择属地部门',
|
||||||
dcoordinator_name:'请选择部门协调员',
|
dcoordinator_name:'请选择部门协调员',
|
||||||
|
|
@ -162,6 +166,7 @@
|
||||||
],
|
],
|
||||||
//部门
|
//部门
|
||||||
depRange: [],
|
depRange: [],
|
||||||
|
type:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -175,7 +180,7 @@
|
||||||
this.operationId = params.operationId;
|
this.operationId = params.operationId;
|
||||||
this.type = params.type;
|
this.type = params.type;
|
||||||
this.getOperation();
|
this.getOperation();
|
||||||
if(params.type==='edit'){
|
if(params.type==='edit'||params.type==='editOpretion'){
|
||||||
this.showBtns = true;
|
this.showBtns = true;
|
||||||
}else{
|
}else{
|
||||||
this.showBtns = false;
|
this.showBtns = false;
|
||||||
|
|
@ -272,6 +277,7 @@
|
||||||
that.formData.vchannel = res.vchannels[0]
|
that.formData.vchannel = res.vchannels[0]
|
||||||
}
|
}
|
||||||
that.operationName = res.name; //作业
|
that.operationName = res.name; //作业
|
||||||
|
that.area_name = res.area_.name; //属地部门
|
||||||
that.dept_ter_name = res.dept_ter_.name; //属地部门
|
that.dept_ter_name = res.dept_ter_.name; //属地部门
|
||||||
that.dept_bus_name = res.dept_bus_.name; //业务部门
|
that.dept_bus_name = res.dept_bus_.name; //业务部门
|
||||||
that.dcoordinator_name = res.coordinator_name; //部门协调员
|
that.dcoordinator_name = res.coordinator_name; //部门协调员
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,10 @@
|
||||||
<image src="../../../static/my/my_apply/blue-time.png" mode=""></image>
|
<image src="../../../static/my/my_apply/blue-time.png" mode=""></image>
|
||||||
编辑
|
编辑
|
||||||
</view>
|
</view>
|
||||||
|
<view class="shenhezhong shenhe-status" @click="operationHandle(val,'editOpretion')" v-else-if="val.state!==50&&dataTypye==='isMy'">
|
||||||
|
<image src="../../../static/my/my_apply/blue-time.png" mode=""></image>
|
||||||
|
编辑
|
||||||
|
</view>
|
||||||
<view class="shenhezhong shenhe-status" @click="operationDetail(val)" style="color: #15a306;">
|
<view class="shenhezhong shenhe-status" @click="operationDetail(val)" style="color: #15a306;">
|
||||||
<image src="../../../static/my/my_apply/tongguo.png" mode=""></image>
|
<image src="../../../static/my/my_apply/tongguo.png" mode=""></image>
|
||||||
查看
|
查看
|
||||||
|
|
@ -48,10 +52,10 @@
|
||||||
<image src="../../../static/my/my_apply/return.png" mode=""></image>
|
<image src="../../../static/my/my_apply/return.png" mode=""></image>
|
||||||
删除
|
删除
|
||||||
</view>
|
</view>
|
||||||
<view class="shenhezhong shenhe-status" @click="operationWarning(val)" style="color: orange;" v-if="val.state===30||val.state===40">
|
<!-- <view class="shenhezhong shenhe-status" @click="operationWarning(val)" style="color: orange;" v-if="val.state===30||val.state===40">
|
||||||
<image src="../../../static/my/my_apply/orange-time.png" mode=""></image>
|
<image src="../../../static/my/my_apply/orange-time.png" mode=""></image>
|
||||||
新增违规
|
新增违规
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -85,6 +89,7 @@
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.params.create_by = this.vuex_user.id;
|
this.params.create_by = this.vuex_user.id;
|
||||||
|
console.log(this.vuex_user)
|
||||||
},
|
},
|
||||||
//上拉加载
|
//上拉加载
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue