|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { onMounted,ref, getCurrentInstance } from 'vue'
|
|
import { onMounted,ref, getCurrentInstance } from 'vue'
|
|
-import {updateWorkStatus, updateOnlineStatus } from "@/static/js/api.js"
|
|
|
|
|
|
+import {updateWorkStatus, updateOnlineStatus, saveReview } from "@/static/js/api.js"
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
userInfo: {
|
|
userInfo: {
|
|
@@ -107,13 +107,29 @@ const handleChange =async()=>{
|
|
}
|
|
}
|
|
|
|
|
|
const handleScanbara = ()=>{
|
|
const handleScanbara = ()=>{
|
|
|
|
+
|
|
uni.scanCode({
|
|
uni.scanCode({
|
|
scanType: ['barCode'],
|
|
scanType: ['barCode'],
|
|
- success: function (res) {
|
|
|
|
|
|
+ success: async(res) => {
|
|
console.log('条码类型:' + res.scanType);
|
|
console.log('条码类型:' + res.scanType);
|
|
console.log('条码内容:' + res.result);
|
|
console.log('条码内容:' + res.result);
|
|
|
|
+ const data = JSON.stringify({
|
|
|
|
+ userId:uni.getStorageSync('userId'),
|
|
|
|
+ coreId: res.result
|
|
|
|
+ })
|
|
// neo
|
|
// neo
|
|
// 调用接口查询这个preNo是否已经被复核,如果已经复核了就不跳
|
|
// 调用接口查询这个preNo是否已经被复核,如果已经复核了就不跳
|
|
|
|
+ const {data:res1} = await saveReview({
|
|
|
|
+ token: uni.getStorageSync('token'),
|
|
|
|
+ data: data
|
|
|
|
+ })
|
|
|
|
+ if(res1.code===200){
|
|
|
|
+ console.log('depoly success>>>')
|
|
|
|
+ // proxy.$refs.alertDialog.open()
|
|
|
|
+ console.log('res1',res1)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
if(res.result) {
|
|
if(res.result) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:`/pages/review/review?preNo=${res.result}&depolyStatus=2`
|
|
url:`/pages/review/review?preNo=${res.result}&depolyStatus=2`
|