From d8ac6057eaad648687699e25a575f3b7b8c1b102 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 17 十一月 2023 18:52:19 +0800
Subject: [PATCH] modified: src/views/plan/customerorder/schedule-table.vue
---
src/views/plan/masterproductionschedule/index.vue | 26 ++++++++++++++++++++------
1 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/src/views/plan/masterproductionschedule/index.vue b/src/views/plan/masterproductionschedule/index.vue
index e3c9141..4affbcb 100644
--- a/src/views/plan/masterproductionschedule/index.vue
+++ b/src/views/plan/masterproductionschedule/index.vue
@@ -46,9 +46,9 @@
<el-dropdown-item :key="index" :command="item.command" v-for="(item,index) in commitStateTagArr" :disabled="item.disabled">{{item.label }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
- <el-button v-if="permissions.masterproductionschedule_submit_oa" @click="commitOa()" type="primary"
+ <!-- <el-button v-if="permissions.masterproductionschedule_submit_oa" @click="commitOa()" type="primary"
style="margin-left:10px;" :loading="loadingOa">鎻愪氦OA
- </el-button>
+ </el-button> -->
<!-- <el-button
v-if="permissions.masterproductionschedule_sync_scm"
@click="syncScm()"
@@ -62,12 +62,13 @@
type="primary"
style="margin-left:10px;"
>SCM鐘舵�佸彉鏇�
- </el-button>
+ </el-button> -->
<el-button
type="primary"
style="margin-left:10px;"
+ @click="addPlanProcure"
>鏂板閲囪喘璁″垝
- </el-button> -->
+ </el-button>
</template>
</ttable>
@@ -120,7 +121,8 @@
import {
delObj,
fetchList,
- loadOrderHandle
+ loadOrderHandle,
+ addPlanPurchasing
} from '@/api/plan/masterproductionschedule'
import ttable from '@/views/common/ztt-table.vue'
import stockDialog from '@/views/common/stock'
@@ -515,7 +517,7 @@
// },
{
minWidth: '140',
- prop: 'orderRemark',
+ prop: 'remark',
label: '閿�鍞鍗曞娉�',
sort: true,
isTrue: true,
@@ -647,6 +649,18 @@
this.getSysParam(sysParam.IS_REPORT_OPERATION)
},
methods: {
+ addPlanProcure(){
+ let val=this.masterPlanSelection.filter(item=>{
+ return item.technologyDocumentId==null||item.technologyDocumentId==''||item.docNumber==''||item.docNumber==null
+ })
+ if(val.length>0){
+ this.$message.warning("褰撳墠鎵�閫夋嫨鐨勮鍒掞紝鍚湁鏈粦瀹氬伐鑹烘枃浠讹紒")
+ return
+ }
+ addPlanPurchasing(this.masterPlanSelection).then(res=>{
+ console.log(res);
+ })
+ },
deleteMainPlan(row){
console.log(row);
},
--
Gitblit v1.9.3