|  | @@ -14,78 +14,78 @@
 | 
	
		
			
				|  |  |       </template>
 | 
	
		
			
				|  |  |        <a-card :bordered="false" class="top" style="margin-bottom:1%;margin-top:1%" :loading = 'loading'>
 | 
	
		
			
				|  |  |          <div class="table-page-search-wrapper">
 | 
	
		
			
				|  |  | -            <a-form layout="inline" @keyup.enter.native="searchQuery">
 | 
	
		
			
				|  |  | +            <a-form-model layout="inline" @keyup.enter.native="searchQuery" :model="form" :rules="rules"  ref="form">
 | 
	
		
			
				|  |  |                  <a-row :gutter="24">
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="生产组织">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="生产组织" prop='orgName' >
 | 
	
		
			
				|  |  |                              <a-input-search placeholder="请输入" v-model="form.orgName"  @search="onSearchProductionOrg" readOnly></a-input-search>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col  :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="单据号">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="单据号">
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.orderCode" disabled></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="单据日期">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="单据日期" prop='orderDate'>
 | 
	
		
			
				|  |  |                              <a-date-picker showTime valueFormat="YYYY-MM-DD" format = "YYYY-MM-DD" v-model="form.orderDate" style="width:100%" />
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="单据状态">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="单据状态">
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.state"  disabled></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="业务员">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="业务员">
 | 
	
		
			
				|  |  |                              <a-input-search placeholder="请输入" v-model="form.salesperson" @search="onSearchPerson" readOnly ></a-input-search>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="计划部门">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="计划部门">
 | 
	
		
			
				|  |  |                              <a-input-search placeholder="请输入" v-model="form.planDept" @search="onSearchPlanDept" readOnly></a-input-search>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="项目名称">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="项目名称" prop='projectName'>
 | 
	
		
			
				|  |  |                              <a-input-search placeholder="请输入" v-model="form.projectName" @search="onSearchProject" readOnly></a-input-search>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="项目编码" >
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="项目编码" prop='projectCode'>
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.projectCode" disabled></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="业务类型">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="业务类型" prop='type'>
 | 
	
		
			
				|  |  |                              <a-select v-model="form.type"  style='width:100%'  >
 | 
	
		
			
				|  |  |                                  <a-select-option value='工装'> 工装</a-select-option>
 | 
	
		
			
				|  |  |                                  <a-select-option value='家装'> 家装</a-select-option>
 | 
	
		
			
				|  |  |                              </a-select>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="制单人">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="制单人">
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.createBy"  disabled></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="审核人">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="审核人">
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.reviewer" disabled></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="工单号">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="工单号" prop='workNo'>
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.workNo" ></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>
 | 
	
		
			
				|  |  |                      <a-col :md="4" :sm="24">
 | 
	
		
			
				|  |  | -                        <a-form-item label="备注">
 | 
	
		
			
				|  |  | +                        <a-form-model-item label="备注">
 | 
	
		
			
				|  |  |                              <a-input placeholder="请输入" v-model="form.remarks"></a-input>
 | 
	
		
			
				|  |  | -                        </a-form-item>
 | 
	
		
			
				|  |  | +                        </a-form-model-item>
 | 
	
		
			
				|  |  |                      </a-col>                    
 | 
	
		
			
				|  |  |                  </a-row>
 | 
	
		
			
				|  |  | -            </a-form>
 | 
	
		
			
				|  |  | +            </a-form-model>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |       </a-card>
 | 
	
		
			
				|  |  |       <a-card :bordered="false" class="three" style="margin-bottom:1%" :loading = 'loading'>
 | 
	
	
		
			
				|  | @@ -169,9 +169,28 @@
 | 
	
		
			
				|  |  |            return {
 | 
	
		
			
				|  |  |              visible:false,
 | 
	
		
			
				|  |  |              form:{},
 | 
	
		
			
				|  |  | -            form1:{},
 | 
	
		
			
				|  |  |              execute:undefined,
 | 
	
		
			
				|  |  |              defaultMethod:'add',
 | 
	
		
			
				|  |  | +            rules:{
 | 
	
		
			
				|  |  | +              orgName: [
 | 
	
		
			
				|  |  | +                { required: true, trigger: 'change' },
 | 
	
		
			
				|  |  | +              ],
 | 
	
		
			
				|  |  | +              orderDate:[
 | 
	
		
			
				|  |  | +                { required: true, trigger: 'change' },
 | 
	
		
			
				|  |  | +              ],
 | 
	
		
			
				|  |  | +              projectName:[
 | 
	
		
			
				|  |  | +                { required: true, trigger: 'change' },
 | 
	
		
			
				|  |  | +              ],
 | 
	
		
			
				|  |  | +              projectCode:[
 | 
	
		
			
				|  |  | +                { required: true, trigger: 'change' },
 | 
	
		
			
				|  |  | +              ],
 | 
	
		
			
				|  |  | +              type:[
 | 
	
		
			
				|  |  | +                { required: true, trigger: 'change' },
 | 
	
		
			
				|  |  | +              ],
 | 
	
		
			
				|  |  | +              workNo:[
 | 
	
		
			
				|  |  | +                { required: true, trigger: 'change' },
 | 
	
		
			
				|  |  | +              ],
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  |              dataSource:[],
 | 
	
		
			
				|  |  |              loading:false,
 | 
	
		
			
				|  |  |              // ipagination:{},
 | 
	
	
		
			
				|  | @@ -191,8 +210,7 @@
 | 
	
		
			
				|  |  |                  this.activeKey='finishProduct',
 | 
	
		
			
				|  |  |                  this.execute = ''
 | 
	
		
			
				|  |  |                  this.dataSource = [] 
 | 
	
		
			
				|  |  | -                this.form={}
 | 
	
		
			
				|  |  | -                this.form1={}
 | 
	
		
			
				|  |  | +                this.form={ }
 | 
	
		
			
				|  |  |                  this.$emit('ok')
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // changeChose(prop){
 | 
	
	
		
			
				|  | @@ -232,51 +250,69 @@
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              handleOk(){
 | 
	
		
			
				|  |  | -                var madeProductionOrdersPage = this.form
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.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) => {
 | 
	
		
			
				|  |  | -                        if (res.success) {
 | 
	
		
			
				|  |  | -                            this.$message.success('添加成功!');
 | 
	
		
			
				|  |  | -                            this.$emit('ok')
 | 
	
		
			
				|  |  | -                            this.handleCancel()
 | 
	
		
			
				|  |  | -                        } else {
 | 
	
		
			
				|  |  | -                            this.$message.error(res.message);
 | 
	
		
			
				|  |  | +                this.$refs.form.validate(success => {
 | 
	
		
			
				|  |  | +                    if (success) {
 | 
	
		
			
				|  |  | +                        var arrValid = [true]
 | 
	
		
			
				|  |  | +                        if(this.$refs.productDetails.form.dataSource.length!==0){
 | 
	
		
			
				|  |  | +                            arrValid.push(this.$refs.productDetails.validateList())
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                    }).finally(() => {
 | 
	
		
			
				|  |  | -                        this.loading = false
 | 
	
		
			
				|  |  | -                    })
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    postAction('/productionOrder/madeProductionOrders/edit', madeProductionOrdersPage).then((res) => {
 | 
	
		
			
				|  |  | -                        if (res.success) {
 | 
	
		
			
				|  |  | -                            this.$emit('ok')
 | 
	
		
			
				|  |  | -                            this.handleCancel()
 | 
	
		
			
				|  |  | -                            this.$message.success('编辑成功!');
 | 
	
		
			
				|  |  | -                        } else {
 | 
	
		
			
				|  |  | -                            this.$message.error(res.message);
 | 
	
		
			
				|  |  | +                        if(this.$refs.material.form.dataSource.length!==0){
 | 
	
		
			
				|  |  | +                            arrValid.push(this.$refs.material.validateList())
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                    }).finally(() => {
 | 
	
		
			
				|  |  | -                        this.loading = false
 | 
	
		
			
				|  |  | -                    })
 | 
	
		
			
				|  |  | -                }                
 | 
	
		
			
				|  |  | +                        if(this.$refs.SurplusMaterials.form.dataSource.length!==0){
 | 
	
		
			
				|  |  | +                            arrValid.push(this.$refs.SurplusMaterials.validateList())
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        if(arrValid.indexOf(false) == -1){
 | 
	
		
			
				|  |  | +                            var madeProductionOrdersPage = this.form
 | 
	
		
			
				|  |  | +                            madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.form.dataSource
 | 
	
		
			
				|  |  | +                            madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.form.dataSource
 | 
	
		
			
				|  |  | +                            madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.TemporaryStorage.dataSource
 | 
	
		
			
				|  |  | +                            madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.form.dataSource
 | 
	
		
			
				|  |  | +                            this.loading = true
 | 
	
		
			
				|  |  | +                            if(this.defaultMethod=='add'){
 | 
	
		
			
				|  |  | +                                postAction('/productionOrder/madeProductionOrders/add', madeProductionOrdersPage).then((res) => {
 | 
	
		
			
				|  |  | +                                    if (res.success) {
 | 
	
		
			
				|  |  | +                                        this.$message.success('添加成功!');
 | 
	
		
			
				|  |  | +                                        this.$emit('ok')
 | 
	
		
			
				|  |  | +                                        this.handleCancel()
 | 
	
		
			
				|  |  | +                                    } else {
 | 
	
		
			
				|  |  | +                                        this.$message.error(res.message);
 | 
	
		
			
				|  |  | +                                    }
 | 
	
		
			
				|  |  | +                                }).finally(() => {
 | 
	
		
			
				|  |  | +                                    this.loading = false
 | 
	
		
			
				|  |  | +                                })
 | 
	
		
			
				|  |  | +                            }else{
 | 
	
		
			
				|  |  | +                                postAction('/productionOrder/madeProductionOrders/edit', madeProductionOrdersPage).then((res) => {
 | 
	
		
			
				|  |  | +                                    if (res.success) {
 | 
	
		
			
				|  |  | +                                        this.$emit('ok')
 | 
	
		
			
				|  |  | +                                        this.handleCancel()
 | 
	
		
			
				|  |  | +                                        this.$message.success('编辑成功!');
 | 
	
		
			
				|  |  | +                                    } else {
 | 
	
		
			
				|  |  | +                                        this.$message.error(res.message);
 | 
	
		
			
				|  |  | +                                    }
 | 
	
		
			
				|  |  | +                                }).finally(() => {
 | 
	
		
			
				|  |  | +                                    this.loading = false
 | 
	
		
			
				|  |  | +                                })
 | 
	
		
			
				|  |  | +                            }   
 | 
	
		
			
				|  |  | +                        }else{
 | 
	
		
			
				|  |  | +                            this.$message.warning('请检查子表必填项')
 | 
	
		
			
				|  |  | +                        }             
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              changeEdit(){
 | 
	
		
			
				|  |  |                  var madeProductionOrdersPage = this.form
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.form.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersMaterialList = this.$refs.material.form.dataSource
 | 
	
		
			
				|  |  |                  madeProductionOrdersPage.madeProductionOrdersInList = this.$refs.TemporaryStorage.dataSource
 | 
	
		
			
				|  |  | -                madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.dataSource
 | 
	
		
			
				|  |  | +                madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.form.dataSource
 | 
	
		
			
				|  |  |                  postAction('/productionOrder/madeProductionOrders/editChild', madeProductionOrdersPage).then((res) => {
 | 
	
		
			
				|  |  |                          if (res.success) {
 | 
	
		
			
				|  |  |                              console.log(res.message);
 | 
	
		
			
				|  |  | -                            this.$refs.productDetails.dataSource = madeProductionOrdersPage.madeProductionOrdersFinishedList
 | 
	
		
			
				|  |  | -                            this.$refs.material.dataSource = madeProductionOrdersPage.madeProductionOrdersMaterialList
 | 
	
		
			
				|  |  | +                            this.$refs.productDetails.form.dataSource = madeProductionOrdersPage.madeProductionOrdersFinishedList
 | 
	
		
			
				|  |  | +                            this.$refs.material.form.dataSource = madeProductionOrdersPage.madeProductionOrdersMaterialList
 | 
	
		
			
				|  |  |                              this.$refs.TemporaryStorage.dataSource = madeProductionOrdersPage.madeProductionOrdersOutList
 | 
	
		
			
				|  |  | -                            this.$refs.SurplusMaterials.dataSource = madeProductionOrdersPage.madeProductionOrdersInList
 | 
	
		
			
				|  |  | +                            this.$refs.SurplusMaterials.form.dataSource= madeProductionOrdersPage.madeProductionOrdersInList
 | 
	
		
			
				|  |  |                          } else {
 | 
	
		
			
				|  |  |                              this.$message.error(res.message);
 | 
	
		
			
				|  |  |                          }
 | 
	
	
		
			
				|  | @@ -308,9 +344,9 @@
 | 
	
		
			
				|  |  |                  //成品明细
 | 
	
		
			
				|  |  |                  getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersFinishedByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  |                      if(res.success){
 | 
	
		
			
				|  |  | -                        this.$refs.productDetails.dataSource =res.result
 | 
	
		
			
				|  |  | +                        this.$refs.productDetails.form.dataSource =res.result
 | 
	
		
			
				|  |  |                          this.$refs.productDetails.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | -                        this.$refs.productDetails.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                        this.$refs.productDetails.form.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                              item.rowNo =index+1
 | 
	
		
			
				|  |  |                         })
 | 
	
		
			
				|  |  |                         
 | 
	
	
		
			
				|  | @@ -324,9 +360,9 @@
 | 
	
		
			
				|  |  |                  //材料明细
 | 
	
		
			
				|  |  |                  getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersMaterialByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  |                      if(res.success){
 | 
	
		
			
				|  |  | -                        this.$refs.material.dataSource =res.result
 | 
	
		
			
				|  |  | +                        this.$refs.material.form.dataSource =res.result
 | 
	
		
			
				|  |  |                          this.$refs.material.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | -                        this.$refs.material.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                        this.$refs.material.form.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                              item.rowNo =index+1
 | 
	
		
			
				|  |  |                         })
 | 
	
		
			
				|  |  |                         
 | 
	
	
		
			
				|  | @@ -355,9 +391,9 @@
 | 
	
		
			
				|  |  |                  //余料管理
 | 
	
		
			
				|  |  |                  getAction('/productionOrder/madeProductionOrders/queryMadeProductionOrdersOutByMainId',{id:id}).then(res=>{
 | 
	
		
			
				|  |  |                      if(res.success){
 | 
	
		
			
				|  |  | -                        this.$refs.SurplusMaterials.dataSource =res.result
 | 
	
		
			
				|  |  | +                        this.$refs.SurplusMaterials.form.dataSource =res.result
 | 
	
		
			
				|  |  |                          this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | -                        this.$refs.SurplusMaterials.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                        this.$refs.SurplusMaterials.form.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                              item.rowNo =index+1
 | 
	
		
			
				|  |  |                         })
 | 
	
		
			
				|  |  |                         
 | 
	
	
		
			
				|  | @@ -383,14 +419,24 @@
 | 
	
		
			
				|  |  |                  this.$set(this.form,'projectCode',data.Code)
 | 
	
		
			
				|  |  |                  this.$set(this.form,'projectName',data.Name)
 | 
	
		
			
				|  |  |                  this.$set(this.form,'project',data.ID)
 | 
	
		
			
				|  |  | -                this.$refs.productDetails.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                this.$refs.productDetails.form.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                    item.projectCode = data.Code
 | 
	
		
			
				|  |  | +                    item.projectName = data.Name
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +                this.$refs.material.form.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                      item.projectCode = data.Code
 | 
	
		
			
				|  |  |                      item.projectName = data.Name
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  | -                this.$refs.material.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  | +                this.$refs.SurplusMaterials.form.dataSource.map((item,index)=>{
 | 
	
		
			
				|  |  |                      item.projectCode = data.Code
 | 
	
		
			
				|  |  |                      item.projectName = data.Name
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  | +                if(this.form.projectName&&this.form.projectName!==''){
 | 
	
		
			
				|  |  | +                    this.$refs.form.clearValidate(['projectName']);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                if(this.form.projectCode&&this.form.projectCode!==''){
 | 
	
		
			
				|  |  | +                    this.$refs.form.clearValidate(['projectCode']);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              onSearchProject(){
 | 
	
		
			
				|  |  |                      if(this.form.orgName&&this.form.orgName!==''){
 | 
	
	
		
			
				|  | @@ -428,6 +474,9 @@
 | 
	
		
			
				|  |  |                  this.$refs.productDetails.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  |                  this.$refs.material.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  |                  this.$refs.SurplusMaterials.planOrg=this.form.pkOrg
 | 
	
		
			
				|  |  | +                if(this.form.orgName&&this.form.orgName!==''){
 | 
	
		
			
				|  |  | +                    this.$refs.form.clearValidate(['orgName']);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              okDataOperators(data){
 | 
	
		
			
				|  |  |                  this.$set(this.form,'salesperson',data.Name)
 | 
	
	
		
			
				|  | @@ -503,5 +552,9 @@
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      /deep/.highlight-row {
 | 
	
		
			
				|  |  |          background-color: #E6F7FF;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +     // 表单校验隐藏提示文字
 | 
	
		
			
				|  |  | +     /deep/.ant-form-explain{
 | 
	
		
			
				|  |  | +      display:none
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    </style>
 |