Commit 10937163 authored by xinzhedeai's avatar xinzhedeai

fix: 最后一页日期显示;隐患详情id=1动态值替换;详情不校验必填项;

parent dae4924b
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</div> </div>
</div> </div>
</div> </div>
<van-form> <van-form v-if="checkPageIndex == (checkData?.length-1)">
<van-cell> <van-cell>
<van-field label="检查人员" v-model="checkPeopleName" readonly /> <van-field label="检查人员" v-model="checkPeopleName" readonly />
</van-cell> </van-cell>
......
...@@ -113,8 +113,11 @@ window.onload = function() { ...@@ -113,8 +113,11 @@ window.onload = function() {
} }
}, },
methods: { methods: {
validRequired(){ validRequired(){
if(this.flag == 'JC_XQ'){ // 检查详情,不参与下一页校验
this.checkPageIndex++;
return true
}
const currentPageData = this.checkData[this.checkPageIndex]; const currentPageData = this.checkData[this.checkPageIndex];
const errorRows = currentPageData.gqCheckItemList.filter((item)=>{ const errorRows = currentPageData.gqCheckItemList.filter((item)=>{
console.log(item) console.log(item)
...@@ -235,7 +238,7 @@ window.onload = function() { ...@@ -235,7 +238,7 @@ window.onload = function() {
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"], interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: { reqParams: {
sign: 4, // 隐患详情 sign: 4, // 隐患详情
"hdId": "1", "hdId": this.id,
} }
}, (res) => { }, (res) => {
if (!res) { // 中台返回为undefined 重新请求 if (!res) { // 中台返回为undefined 重新请求
...@@ -280,7 +283,7 @@ window.onload = function() { ...@@ -280,7 +283,7 @@ window.onload = function() {
interfacePrivateKey: API_KEY_MAP['no-page']['privateKey'], interfacePrivateKey: API_KEY_MAP['no-page']['privateKey'],
reqParams: { reqParams: {
sign: 2, sign: 2,
"recordId": this.id || "22", "recordId": this.id,
}, },
}, },
(res) => { (res) => {
...@@ -399,7 +402,7 @@ window.onload = function() { ...@@ -399,7 +402,7 @@ window.onload = function() {
vant.Toast({ vant.Toast({
message: '操作成功', message: '操作成功',
}) })
// gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...') gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
}) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment