Browse Source

生产总订单-余料管理-增加执行判断

jingbb 9 months ago
parent
commit
6685617c25

+ 7 - 0
src/views/production/productionTotalOrder/modules/SurplusMaterials.vue

@@ -556,6 +556,7 @@
         //杂发/杂收
         sendOrReceive(data){
             var idExistence = 'yes',
+            okSync = 'no',
             idArr = []
             //判断有没有增行但没保存数据
             this.selectedRows.map(item=>{
@@ -564,6 +565,9 @@
                 }else{
                     idArr.push(item.id)
                 }
+                if(item.sync=='是'){
+                    okSync = 'yes'
+                }
             })
             if(this.selectedRowKeys.length==0){
                 this.$message.warning('请选择余料管理')
@@ -574,6 +578,9 @@
               if(data == 'out'){
                 info = '是否确认生成杂发单?'
               }
+              if(okSync=='yes'){
+                info = '执行数据中含有已同步数据,请确实是否再次同步'
+              }
               this.$confirm({
                 title: '执行确认',
                 content: info,