From b3e77e218df41d05bb5d5039e6e4c7cd0fb4c5c5 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 06 三月 2025 14:23:29 +0800 Subject: [PATCH] 业务流程添加按钮权限 --- src/views/business/materialOrder/customsInspection.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/business/materialOrder/customsInspection.vue b/src/views/business/materialOrder/customsInspection.vue index 9a6a64c..797161c 100644 --- a/src/views/business/materialOrder/customsInspection.vue +++ b/src/views/business/materialOrder/customsInspection.vue @@ -235,7 +235,7 @@ </el-table-column> <el-table-column align="center" label="寰呮椤规暟閲�" prop="quantity" width="105"> <template slot-scope="scope"> - <el-select v-model="scope.row.quantity" :disabled="active>1|| scope.$index !== 0 || sampleList.length > 1" clearable + <el-select v-model="scope.row.quantity" disabled clearable size="small"> <el-option v-for="item in quantityList" :key="item.value" :label="item.label" :value="item.value"></el-option> </el-select> @@ -639,11 +639,15 @@ this.currentId = this.$route.query.currentId this.isReport = this.$route.query.isReport this.customsInspection = this.$route.query.customsInspection + this.getInfo(); }, activated() { - if (this.active==1) { - this.getInfo(); - } + this.active = this.$route.query.active + this.orderType = this.$route.query.orderType + this.currentId = this.$route.query.currentId + this.isReport = this.$route.query.isReport + this.customsInspection = this.$route.query.customsInspection + this.getInfo(); }, getInfo() { this.getUserNowList() // 鑾峰彇褰撳墠鐢ㄦ埛淇℃伅 @@ -898,10 +902,6 @@ if (valid) { if (!this.sampleList.every(m => m.standardMethodListId)) { this.$message.error('璇烽�夋嫨妫�楠屾爣鍑�') - return - } - if (!this.sampleList.every(m => m.quantity)) { - this.$message.error('璇烽�夋嫨寰呮椤规暟閲�') return } const sampleList = this.HaveJson(this.sampleList) -- Gitblit v1.9.3