添加重新校验,修改缓存存储用户名以及ID

tykong-cidian
duxiaoning 2023-02-08 15:10:11 +08:00
parent 0dbef950fd
commit 40ee74ed78
6 changed files with 29 additions and 7 deletions

View File

@ -213,3 +213,12 @@ export function getProjPos(options) {
data: options
});
}
// 重新检验
export function resetCheck(data) {
return request({
url: "validation/validation/restartInspection",
method: "post",
data
});
}

View File

@ -395,7 +395,7 @@ export default {
}
});
} else {
console.log("111111", st);
// console.log("111111", st);
const spFrom = new FormData();
spFrom.append("sampleFun", Number(ssf[0])); //
spFrom.append("minNum", 0);
@ -431,7 +431,7 @@ export default {
this.ckPoint = false;
const cus = this.configration.urlprefix.samePoiImgsUrl;
if (row.collectPointSignPic !== null) {
console.log("111111", row.collectPointSignPic);
// console.log("111111", row.collectPointSignPic);
this.collectPointSignPic = row.collectPointSignPic;
var alImgDom = document.getElementById("alImg");
alImgDom.src = this.collectPointSignPic;
@ -494,7 +494,7 @@ export default {
},
getSqlData() {
getSamplesList(this.orderId).then((res) => {
console.log("111111111", res);
// console.log("111111111", res);
if (res.code == 200) {
this.multipleSelection =
this.allSampleData =

View File

@ -188,6 +188,7 @@ import {
downloadPdf,
updateOrderStage,
exportWord,
resetCheck
} from "@/api/lang/pendingOrder";
import { productSubTypeVal, truthFunVal } from "@/lib/contract.js";
@ -302,6 +303,8 @@ export default {
init() {
const self = this;
const rpm = (self.reportMsg = this.queryParams);
console.log('1111111',rpm);
self.realRes = rpm.reportResult;
self.pdSubType = rpm.pdSubType;
const rsl = (self.sampleData = rpm.sampleList);
@ -341,7 +344,6 @@ export default {
},
//
exportPdf(rpm) {
console.log("11111111", rpm);
const self = this;
const asmo = rpm.orderMsg;
const asmp = rpm.productMsg;
@ -512,7 +514,11 @@ export default {
reExamine() {
const os = 0;
this.updateOrder(os);
window.location.href =`${DAICHULI_URL}?orderid=${this.reportMsg.orderId}&token=${this.reportMsg.token}`;
resetCheck({orderId:this.reportMsg.orderId}).then(res=>{
if(res.code === 200){
window.location.href =`${DAICHULI_URL}?orderid=${this.reportMsg.orderId}&token=${this.reportMsg.token}`;
}
})
},
//
updateOrder(orderStatus) {

View File

@ -339,6 +339,7 @@ import {
delSampleData,
upDateAnalyseMethod,
checkReality,
resetCheck
} from "@/api/lang/pendingOrder";
import qs from "qs";
@ -489,7 +490,11 @@ export default {
}
},
todaichuli() {
window.location.href =`${DAICHULI_URL}?orderid=${this.orderId}&token=${this.token}`;
resetCheck({orderId:this.orderId}).then(res=>{
if(res.code === 200){
window.location.href =`${DAICHULI_URL}?orderid=${this.orderId}&token=${this.token}`;
}
})
},
changepage() {
if (this.hasPixelFun && this.pixelFun === "") {

View File

@ -277,6 +277,8 @@ export default {
if (userMsg.code === 200) {
self.userId = userMsg.data.userid;
self.userName = userMsg.data.username;
localStorage.setItem("userId",self.userId);
localStorage.setItem("userName",self.userName);
}
const orderId = (self.orderId = this.$route.query.orderId);
getOrderMsg(orderId).then((res) => {

View File

@ -160,7 +160,7 @@ export default {
},
changePage(orderMsg) {
// 150424 150208 150166
this.$router.push("/orderUnprocessed?orderId=150208&token=WEB*1673425993482@L3W7_ZZX-yg000087_06848633de364ec7b63c8f53f9e43b19");
this.$router.push("/orderUnprocessed?orderId=150208&token=WEB*1675826560592@VBSA_ZZX-yg000087_903ced0b26f74d5abcbbb70a4458de72");
},
},
};