diff --git a/prettier.json b/prettier.json index ecdf3e0..df3e1d8 100644 --- a/prettier.json +++ b/prettier.json @@ -3,6 +3,6 @@ "semi": false, "tabWidth": 2, "singleQuote": true, - "printWidth": 100, + "printWidth":200, "trailingComma": "none" } diff --git a/src/components/scarchBox.vue b/src/components/scarchBox.vue index 96f54c4..22337bb 100644 --- a/src/components/scarchBox.vue +++ b/src/components/scarchBox.vue @@ -18,11 +18,11 @@ import { number } from "echarts"; const { colNum, btnNum } = defineProps({ colNum: { - type: number, + type: Number, default: 10, }, btnNum: { - type: number, + type: Number, default: 2, }, }); diff --git a/src/pages/finance-bill-manage/billBreakage.vue b/src/pages/finance-bill-manage/billBreakage.vue index 9600e1e..cef6b2d 100644 --- a/src/pages/finance-bill-manage/billBreakage.vue +++ b/src/pages/finance-bill-manage/billBreakage.vue @@ -16,57 +16,25 @@ - + - + - - + + - - - + + + @@ -88,12 +56,7 @@ 新增报损票据 - + @@ -109,48 +72,17 @@ class="table" :max-height="550" > - - {{ `${row.breakNum}张` }} - - - - - - {{ item.label }} - - - 修改 - - 删除 + + 删除 @@ -167,116 +99,16 @@ :confirm-btn="null" :cancel-btn="null" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - 提交 - 重置 - - - - - + - + + diff --git a/src/stores/billCancel.js b/src/stores/billCancel.js index b8e5bf3..51d52c3 100644 --- a/src/stores/billCancel.js +++ b/src/stores/billCancel.js @@ -14,10 +14,8 @@ export const useCancel = defineStore("CancelList", { return this.cancelList; }, editApprovalStatus(arr) { - console.log(arr); const index = this.cancelList.findIndex((item) => item.id === arr.row.id); if (index !== -1) { - console.log("index", index); this.cancelList[index] = arr.row; } }, diff --git a/src/stores/billDestroy.js b/src/stores/billDestroy.js index 9cd9510..1e599fa 100644 --- a/src/stores/billDestroy.js +++ b/src/stores/billDestroy.js @@ -19,18 +19,13 @@ export const useDestroy = defineStore("destroyList", { const storedData = localStorage.getItem("breakageList"); if (storedData) { const parsedData = JSON.parse(storedData); - parsedData.destroyList = parsedData.destroyList.filter( - (i) => i.id !== item.id - ); + parsedData.destroyList = parsedData.destroyList.filter((i) => i.id !== item.id); parsedData.breakageList = parsedData.breakageList.map((i) => { - console.log(i.id, item.id); if (i.id === item.id) { - console.log(item.breakStatus); return { ...i, breakStatus: item.breakStatus }; // 返回更新后的对象 } return i; // 保持其他项不变 }); - console.log(parsedData.breakageList); localStorage.setItem("breakageList", JSON.stringify(parsedData)); this.destroyList = parsedData.destroyList; // 更新store中的destroyList状态 } diff --git a/src/stores/billReceipt.js b/src/stores/billReceipt.js index 5cffc04..8c364a6 100644 --- a/src/stores/billReceipt.js +++ b/src/stores/billReceipt.js @@ -1,8 +1,5 @@ import { defineStore } from "pinia"; -import { - reqPersonName, - reqReceiptList, -} from "@/api/finance-bill-manage/receiptList"; +import { reqPersonName, reqReceiptList } from "@/api/finance-bill-manage/receiptList"; export const useReceiptList = defineStore("ReceiptList", { state: () => { @@ -20,7 +17,6 @@ export const useReceiptList = defineStore("ReceiptList", { }, async getReceiptList(obj) { - console.log("222"); const { data } = await reqReceiptList(obj); this.receiptList = data; return this.receiptList; @@ -28,8 +24,7 @@ export const useReceiptList = defineStore("ReceiptList", { async getquitneckNum(obj) { const index = this.receiptList.findIndex((item) => item.id === obj.id); if (index !== -1) { - this.receiptList[index].receiptNum = - this.receiptList[index].receiptNum - obj.quitneckNum; + this.receiptList[index].receiptNum = this.receiptList[index].receiptNum - obj.quitneckNum; } this.quitneckList.push(obj); },