index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div
  3. style="
  4. display: flex;
  5. align-items: center;
  6. width: 100%;
  7. height: 70vh;
  8. justify-content: center;
  9. "
  10. >
  11. <el-form ref="formRef" :model="queryData" label-width="100px">
  12. <el-form-item label="流转卡号">
  13. <div v-text="formData.seqNo"></div>
  14. </el-form-item>
  15. <el-form-item label="绑定编号">
  16. <el-input v-model="formData.nameplateNo" style="width: 250px" />
  17. </el-form-item>
  18. <el-form-item>
  19. <el-button class="sureBtn" type="primary" @click="saveSeqInfoF"
  20. >保 存
  21. </el-button>
  22. </el-form-item>
  23. </el-form>
  24. </div>
  25. </template>
  26. <script setup>
  27. import { useProcessStore } from "@/store/modules/processView";
  28. import { querySeqInfo, saveSeqInfo } from "@/api/process/index";
  29. const formData = ref({});
  30. const saveSeqInfoF = async () => {
  31. const { data, code } = await saveSeqInfo({
  32. ...formData.value,
  33. });
  34. if (code == "200") {
  35. ElMessage.success("操作成功!");
  36. toBack();
  37. }
  38. };
  39. const querySeqInfoF = async () => {
  40. const { data, code } = await querySeqInfo(
  41. processStore.odersData.workOrderCode,
  42. processStore.scanInfo.seqNo
  43. );
  44. formData.value = data;
  45. };
  46. const processStore = useProcessStore();
  47. const toBack = () => {};
  48. onMounted(() => {
  49. querySeqInfoF();
  50. });
  51. onUnmounted(() => {});
  52. </script>
  53. <style lang="scss" scoped>
  54. .body {
  55. width: 100vw;
  56. height: calc(100vh - 120px);
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. .checkBody {
  61. width: 30vw;
  62. align-items: center;
  63. justify-content: center;
  64. }
  65. }
  66. </style>