From ff4ae0c26eb77d9ae3028fb5bc02e20b7480d38d Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 20 三月 2024 19:33:53 +0800 Subject: [PATCH] 采购单签约日期交付日期限制选择范围,添加校验 --- src/views/purchaseManage/purchase/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue index 2c70931..8fd2cb2 100644 --- a/src/views/purchaseManage/purchase/index.vue +++ b/src/views/purchaseManage/purchase/index.vue @@ -51,6 +51,12 @@ <el-button type="text" size="small" @click="btnLook(scope.row)" style="margin-right: 5px" >鏌ョ湅</el-button > + <!-- <el-button type="text" size="small" @click="btnLook(scope.row)" style="margin-right: 5px" + >鍒拌揣纭</el-button + > + <el-button type="text" size="small" @click="btnLook(scope.row)" style="margin-right: 5px" + >鍘昏川妫�</el-button + > --> <el-button v-if="scope.row.status === 1" type="text" @@ -265,7 +271,7 @@ this.editConfig.detailEnter = false this.editConfig.isDisabled = false this.tableLoading = true - getPurchaseInfo({ id: row.id }).then((res) => { + getPurchaseInfo({ id: Number(row.id) }).then((res) => { if (res.code == 200) { this.tableLoading = false this.editConfig.visible = true @@ -303,7 +309,7 @@ if (!row.supplierName) { this.btnEdit(row) } else { - submitPurchase({ id: row.ID, status: 2 }).then((response) => { + submitPurchase({ id: Number(row.id), status: 2 }).then((response) => { if (response.code === 200) { this.$message.success("鎻愪氦鎴愬姛") this.getData() @@ -326,7 +332,7 @@ type: "warning" }).then( () => { - submitPurchase({ id: row.ID, status: 5 }).then((response) => { + submitPurchase({ id: Number(row.id), status: 5 }).then((response) => { if (response.code === 200) { this.$message.success("宸插彇娑�") this.getData() @@ -348,7 +354,7 @@ type: "warning" }) .then(() => { - deletePurchase({ id: row.ID }).then((response) => { + deletePurchase({ id: Number(row.id) }).then((response) => { if (response.code === 200) { this.$message.success("鍒犻櫎鎴愬姛") this.getData() -- Gitblit v1.8.0