|  | @@ -81,7 +81,7 @@
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  |                          <a-form-item label="备注">
 | 
	
		
			
				|  |  | -                            <a-input-search placeholder="请输入" v-model="form.remarks"  @search="onSearch" ></a-input-search>
 | 
	
		
			
				|  |  | +                            <a-input placeholder="请输入" v-model="form.remarks"></a-input>
 | 
	
		
			
				|  |  |                          </a-form-item>
 | 
	
		
			
				|  |  |                      </a-col>                    
 | 
	
		
			
				|  |  |                  </a-row>
 | 
	
	
		
			
				|  | @@ -235,8 +235,8 @@
 | 
	
		
			
				|  |  |                  var madeProductionOrdersPage = this.form
 | 
	
		
			
				|  |  |                  madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.dataSource
 | 
	
		
			
				|  |  |                  madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.TemporaryStorage.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.SurplusMaterials.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.TemporaryStorage.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.dataSource
 | 
	
		
			
				|  |  |                  this.loading = true
 | 
	
		
			
				|  |  |                  if(this.defaultMethod=='add'){
 | 
	
		
			
				|  |  |                      postAction('/productionOrder/madeProductionOrders/add', madeProductionOrdersPage).then((res) => {
 | 
	
	
		
			
				|  | @@ -268,8 +268,8 @@
 | 
	
		
			
				|  |  |                  var madeProductionOrdersPage = this.form
 | 
	
		
			
				|  |  |                  madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.dataSource
 | 
	
		
			
				|  |  |                  madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.TemporaryStorage.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.SurplusMaterials.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.TemporaryStorage.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.dataSource
 | 
	
		
			
				|  |  |                  postAction('/productionOrder/madeProductionOrders/editChild', madeProductionOrdersPage).then((res) => {
 | 
	
		
			
				|  |  |                          if (res.success) {
 | 
	
		
			
				|  |  |                              console.log(res.message);
 | 
	
	
		
			
				|  | @@ -309,6 +309,7 @@
 | 
	
		
			
				|  |  |                  getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersFinishedByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  |                      if(res.success){
 | 
	
		
			
				|  |  |                          this.$refs.productDetails.dataSource =res.result
 | 
	
		
			
				|  |  | +                        this.$refs.productDetails.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  |                          this.$refs.productDetails.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                              item.rowNo =index+1
 | 
	
		
			
				|  |  |                         })
 | 
	
	
		
			
				|  | @@ -324,6 +325,7 @@
 | 
	
		
			
				|  |  |                  getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersMaterialByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  |                      if(res.success){
 | 
	
		
			
				|  |  |                          this.$refs.material.dataSource =res.result
 | 
	
		
			
				|  |  | +                        this.$refs.material.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  |                          this.$refs.material.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                              item.rowNo =index+1
 | 
	
		
			
				|  |  |                         })
 | 
	
	
		
			
				|  | @@ -336,8 +338,9 @@
 | 
	
		
			
				|  |  |               //获取子表信息
 | 
	
		
			
				|  |  |               getTemporaryStorageData(id){
 | 
	
		
			
				|  |  |                  //入库暂存
 | 
	
		
			
				|  |  | -                getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersOutByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  | +                getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersInByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  |                      if(res.success){
 | 
	
		
			
				|  |  | +                        this.$refs.TemporaryStorage.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  |                          this.$refs.TemporaryStorage.dataSource =res.result
 | 
	
		
			
				|  |  |                          this.$refs.TemporaryStorage.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                              item.rowNo =index+1
 | 
	
	
		
			
				|  | @@ -346,6 +349,22 @@
 | 
	
		
			
				|  |  |                        this.$message.error(res.message);
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +             //获取子表信息
 | 
	
		
			
				|  |  | +             getSurplusMaterialsData(id){
 | 
	
		
			
				|  |  | +                //余料管理
 | 
	
		
			
				|  |  | +                getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersOutByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  | +                    if(res.success){
 | 
	
		
			
				|  |  | +                        this.$refs.SurplusMaterials.dataSource =res.result
 | 
	
		
			
				|  |  | +                        this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | +                        this.$refs.SurplusMaterials.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                            item.rowNo =index+1
 | 
	
		
			
				|  |  | +                       })
 | 
	
		
			
				|  |  | +                       
 | 
	
		
			
				|  |  | +                    }else{
 | 
	
		
			
				|  |  | +                      this.$message.error(res.message);
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              onSearchProductionOrg(){ 
 | 
	
		
			
				|  |  |                  
 | 
	
	
		
			
				|  | @@ -376,36 +395,18 @@
 | 
	
		
			
				|  |  |              onSearchProject(){
 | 
	
		
			
				|  |  |                      if(this.form.orgName&&this.form.orgName!==''){
 | 
	
		
			
				|  |  |                          this.$refs.projectPopup.visible = true
 | 
	
		
			
				|  |  | -                        this.$refs.projectPopup.getData(this.form.planOrg)
 | 
	
		
			
				|  |  | +                        this.$refs.projectPopup.getData(this.form.pkOrg)
 | 
	
		
			
				|  |  |                      }else{
 | 
	
		
			
				|  |  |                          this.$message.warning('请选择生产组织!')
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  | -            //获取子表信息
 | 
	
		
			
				|  |  | -            getSurplusMaterialsData(id){
 | 
	
		
			
				|  |  | -                //余料管理
 | 
	
		
			
				|  |  | -                getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersInByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  | -                    if(res.success){
 | 
	
		
			
				|  |  | -                        this.$refs.SurplusMaterials.dataSource =res.result
 | 
	
		
			
				|  |  | -                        this.$refs.SurplusMaterials.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | -                            item.rowNo =index+1
 | 
	
		
			
				|  |  | -                       })
 | 
	
		
			
				|  |  | -                       
 | 
	
		
			
				|  |  | -                    }else{
 | 
	
		
			
				|  |  | -                      this.$message.error(res.message);
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | -            },
 | 
	
		
			
				|  |  |              addList(){
 | 
	
		
			
				|  |  |                  if(this.activeKey=='finishProduct'){
 | 
	
		
			
				|  |  |                      this.$refs.productDetails.addList(this.form.projectCode,this.form.projectName)
 | 
	
		
			
				|  |  | -                    this.$refs.productDetails.planOrg=this.form.planOrg
 | 
	
		
			
				|  |  |                  }else if(this.activeKey=='material'){
 | 
	
		
			
				|  |  |                      this.$refs.material.addList(this.form.projectCode,this.form.projectName)
 | 
	
		
			
				|  |  | -                    this.$refs.material.planOrg=this.form.planOrg
 | 
	
		
			
				|  |  |                  }else if(this.activeKey=='SurplusMaterials'){
 | 
	
		
			
				|  |  |                      this.$refs.SurplusMaterials.addList(this.form.projectCode,this.form.projectName)
 | 
	
		
			
				|  |  | -                    this.$refs.SurplusMaterials.planOrg=this.form.planOrg
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              delectRow(){
 | 
	
	
		
			
				|  | @@ -423,7 +424,10 @@
 | 
	
		
			
				|  |  |              okDataOrganization(data){
 | 
	
		
			
				|  |  |                  this.$set(this.form,'orgName',data.Name)
 | 
	
		
			
				|  |  |                  this.$set(this.form,'orgCode',data.Code)
 | 
	
		
			
				|  |  | -                this.$set(this.form,'planOrg',data.ID)
 | 
	
		
			
				|  |  | +                this.$set(this.form,'pkOrg',data.ID)
 | 
	
		
			
				|  |  | +                this.$refs.productDetails.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | +                this.$refs.material.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | +                this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              okDataOperators(data){
 | 
	
		
			
				|  |  |                  this.$set(this.form,'salesperson',data.Name)
 |