|
@@ -339,7 +339,6 @@
|
|
|
</view>
|
|
|
<view class="d-flex f-w-900 f-16 j-end" style="width: 45%">
|
|
|
<view
|
|
|
- v-if="showButton"
|
|
|
class="content-right-chunk b-r-5 f-w-900 d-flex a-center"
|
|
|
:style="{
|
|
|
background: submitClickStatusFc ? '#4299D3' : '#046CB4',
|
|
@@ -461,7 +460,8 @@
|
|
|
<input
|
|
|
type="text"
|
|
|
class="f-w"
|
|
|
- :disabled="useSpanner === 1 || submitClickStatus"
|
|
|
+ :disabled="useSpanner === 1 || submitClickStatus || fcType === 3"
|
|
|
+ @focus="ifUpdate"
|
|
|
style="
|
|
|
background: #fff;
|
|
|
height: 25rpx;
|
|
@@ -728,8 +728,8 @@ export default {
|
|
|
recordName: "",
|
|
|
// 响应id(传后端)
|
|
|
everyId: [],
|
|
|
- // 是否显示按钮
|
|
|
- showButton: true,
|
|
|
+ // 是否点击了编辑
|
|
|
+ showButton: false
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -1081,6 +1081,7 @@ export default {
|
|
|
// 首件详情页返回
|
|
|
returnSjList() {
|
|
|
this.infoStatus = 1;
|
|
|
+ this.showButton = false;
|
|
|
this.init();
|
|
|
},
|
|
|
// 响应(防错)
|
|
@@ -1195,6 +1196,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else if (this.fcType === 2) {
|
|
|
+ if(!this.showButton){
|
|
|
+ this.showButton = true
|
|
|
+ return
|
|
|
+ }
|
|
|
patrolUpdate(data).then((res) => {
|
|
|
if (res.status === "20000") {
|
|
|
this.successCase("操作成功");
|
|
@@ -1275,8 +1280,10 @@ export default {
|
|
|
},
|
|
|
changeButton(index) {
|
|
|
// if (this.submitClickStatus) return;
|
|
|
- this.useSpanner = index;
|
|
|
- this.spannerRemark = "";
|
|
|
+ if (this.ifUpdate()){
|
|
|
+ this.useSpanner = index;
|
|
|
+ this.spannerRemark = "";
|
|
|
+ }
|
|
|
},
|
|
|
changeOKForFc(id, index, state) {
|
|
|
// if (this.submitClickStatusFc) return;
|
|
@@ -1345,6 +1352,22 @@ export default {
|
|
|
}
|
|
|
return responseStatus;
|
|
|
},
|
|
|
+ // 是否点击编辑
|
|
|
+ ifUpdate() {
|
|
|
+ if(this.fcType === 1){
|
|
|
+ return true
|
|
|
+ }else if (this.fcType === 2){
|
|
|
+ let responseStatus = true;
|
|
|
+ if (!this.showButton) {
|
|
|
+ this.hintCase("请先执行编辑");
|
|
|
+ responseStatus = false;
|
|
|
+ return responseStatus;
|
|
|
+ }
|
|
|
+ return responseStatus;
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
// 查看附件
|
|
|
lookFile() {
|
|
|
this.headerStatus = true;
|