| 
					
				 | 
			
			
				@@ -51,17 +51,20 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div v-else class="app-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div style="display: flex;margin-bottom: 10px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-breadcrumb> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-breadcrumb-item style="font-weight: 700">采购申请</el-breadcrumb-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-breadcrumb-item style="font-weight: 700">采购申请详情页</el-breadcrumb-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-breadcrumb-item style="margin-top: -7px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-breadcrumb-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              style="margin-left: 10px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="danger" plain 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @click="backToList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               icon="el-icon-arrow-left"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               返回列表</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-breadcrumb-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-breadcrumb-item style="font-weight: 700"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-button type="primary" size="mini" icon="el-icon-arrow-left" @click="sequence(true)">向前</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-button type="primary" size="mini" @click="sequence(true)">向后<i class="el-icon-arrow-right el-icon--right"></i></el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-button-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-breadcrumb-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-breadcrumb> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <h1 style="text-align: center;margin-top: -42px">采购申请单</h1> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -111,7 +114,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ref="ApprovalComments" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       @refreshDataList="returnData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ></approval-comments> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-dialog 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       title="打印采购" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :visible.sync="dialogVisible" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -177,8 +179,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { select } from '@/api/system/set' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -589,13 +589,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           icon: 'el-icon-edit-outline', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           name: '生成销售单', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           disabled: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        },{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          type: 'info', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          size: 'mini', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          icon: 'el-icon-edit-outline', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          name: '生成出库单', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          disabled: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // ,{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   type: 'info', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   size: 'mini', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   icon: 'el-icon-edit-outline', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   name: '生成出库单', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   disabled: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       formOption: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -923,6 +924,23 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.open = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.cancelTwo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    sequence(res){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (res === true){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(this.$refs.avatar.form.fId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let i = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for ( i ; i <= this.tableData.length;i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (this.$refs.avatar.form.fId == this.tableData[i].fId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(i) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.tableData[i].fId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.tableData[--i].fId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(i) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addOrUpdateHandle() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.addOrUpdateVisible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$nextTick(() => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1024,7 +1042,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //查询列数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getRow(data,list,add) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getRow(data,list,add,i) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       console.log(data,list,add) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       select(data).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (data.tableName === '采购申请详情') { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1121,13 +1139,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (i == 1) this.submitAnd() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     returnToForm(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       console.log(row, 111) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //查看 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    viewMethod(scope,res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //查看-列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    viewMethod(scope,res,i) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if(res){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.contentButton.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           item.disabled = false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1156,10 +1175,25 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             tWarehousebillsfees:res.data.tWarehousebillsfees 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // this.$refs.avatar.form = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.getRow(data,list) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getRow(data,list,'',i) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    submitAnd(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs.avatar.form.fId = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs.avatar.form.fBillno = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.contentList.forEach(item=>item.fId = '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.contentOption.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          item.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          item.disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.purchaseList.columnList.forEach(item => item.disabled = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.contentButton.forEach(item => item.disabled = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.contentStyle.forEach(item => item.disabled = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     modification(scope) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       console.log(scope) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1221,24 +1255,19 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.contentList = res.data.tWarehousebillsCntrs 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (item === 3){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              let datae = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                fId:this.$refs.avatar.form.fId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                fBilltype:'SQ' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              copyNew(datae).then(res=> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  message: '复制新单成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  type: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  showClose: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                let scope = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  row: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    fId: res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$refs.avatar.form.fId = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$refs.avatar.form.fBillno = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.contentList.forEach(item=>item.fId = '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.contentOption.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  item.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  item.disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.query(this.formDataList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.viewMethod(scope,res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.purchaseList.columnList.forEach(item => item.disabled = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.contentButton.forEach(item => item.disabled = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.contentStyle.forEach(item => item.disabled = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message.success('保存成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1492,29 +1521,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         case '复制新单': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (row.nameTwo === '详情页'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.$refs.avatar.submitForm('submit',3) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (this.selection.length > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              let datae = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                fId:this.selection[0].fId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                fBilltype:'SQ' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              copyNew(datae).then(res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  message: '复制新单成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  type: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  showClose:true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                let scope = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  row:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    fId:res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              let scope = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                row:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  fId:this.selection[0].fId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.query(this.formDataList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.viewMethod(scope) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.query(this.formDataList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.viewMethod(scope,'',1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message.warning('未选择列表,请选择后再点击'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 |