逻辑调整

test
zhangdi 1 year ago
parent 515e28e624
commit 48df29845f
  1. 4
      pages/home/components/eacharts_nightpie.vue
  2. 4
      pages/home/components/eacharts_pie.vue
  3. 37
      pages/inspection/questOrder.vue
  4. 2
      pages/submission/recordsdetails.vue

@ -22,7 +22,9 @@ export default {
},
echartData: {
type: Array,
default: []
default: function(){
return []
}
}
},
watch: {

@ -22,7 +22,9 @@ export default {
},
echartData: {
type: Array,
default: []
default: function(){
return []
}
}
},
watch: {

@ -237,7 +237,7 @@
<view class="repair-btn" style="margin-right: 32rpx;width:100%"
v-if="dataTypes == 4 && detailForm.taskStatus == 2 && detailsType == 'task'">
<u-button size="medium" @click="endOrderCancel()">取消</u-button>
<u-button size="medium" type="primary" @click="submitQuest()">提交</u-button>
<u-button size="medium" type="primary" @click="openModel()">提交</u-button>
</view>
<!-- 客户 确认巡检任务是否完成提交 -->
<view class="repair-btn" style="margin-right: 32rpx;width:100%"
@ -268,6 +268,13 @@
<u-calendar v-model="calendarShow" mode="date" @change="calendarChange" :min-date="minDate"
:max-date="maxDate"></u-calendar>
<betone-modal v-model="taskCompleteShow" :title="'提示'" @confirm="taskCompleteShowFn"
@cancel="taskCompleteShow = false">
<view class="modal-text">
请确认是否巡检完成
</view>
</betone-modal>
<betone-loading ref="BetLoading" />
</view>
</template>
@ -347,6 +354,7 @@ export default {
},
deviceNameSearch: '',//
deviceList: [],//
taskCompleteShow: false,
}
},
onLoad(options) {
@ -470,6 +478,16 @@ export default {
},
});
},
openModel() {
if (this.signUrl == '') {
uni.showToast({ title: "请填写使用人", icon: "none" });
return false
}
this.taskCompleteShow = true
},
taskCompleteShowFn() {
this.submitQuest()
},
//
submitQuest() {
let newArr = this.handleData(this.deviceList)
@ -481,10 +499,7 @@ export default {
uni.showToast({ title: "请选择设备状态", icon: "none" });
return false
}
if (this.signUrl == '') {
uni.showToast({ title: "请填写使用人", icon: "none" });
return false
}
let queryData = []
newArr.forEach(item => {
queryData.push({
@ -815,7 +830,7 @@ export default {
width: 100%;
padding: 0;
padding-top: 26rpx;
padding-bottom: 160rpx;
.info {
margin: 0 24rpx 20rpx;
border-radius: 20rpx;
@ -831,8 +846,9 @@ export default {
margin: 18rpx 0 0rpx 20rpx;
font-weight: bold;
}
.info_search{
padding:0 32rpx
.info_search {
padding: 0 32rpx
}
.info_item {
@ -877,9 +893,12 @@ export default {
/* 水平均匀分布 */
margin-top: 32rpx;
padding: 0 32rpx;
position: fixed;
bottom: 0;
background: #fff;
/deep/.u-btn {
width: 48%;
margin-top: 32rpx;
}
}

@ -139,7 +139,7 @@
</view>
<!-- 满意度查看 -->
<view class="repair_detail" v-if="detailForm.status == 8">
<view class="repair_detail" v-if="detailForm.status == 7||detailForm.status == 8||detailForm.status == 9">
<view class="repair_title">满意度</view>
<view v-for="(item, index) in questionList" :key="index" class="question-box">
<view class="title">{{ index + 1 }}.{{ item.title }}</view>

Loading…
Cancel
Save