|  | @@ -11,7 +11,17 @@
 | 
	
		
			
				|  |  |          <el-button
 | 
	
		
			
				|  |  |            size="small"
 | 
	
		
			
				|  |  |            class="el-button--small-yh"
 | 
	
		
			
				|  |  | -          type="success" style="right: 140px;" @click="copyOrder"
 | 
	
		
			
				|  |  | +          :disabled="detailData.seeDisabled || !this.form.id"
 | 
	
		
			
				|  |  | +          type="warning" style="right: 140px;"
 | 
	
		
			
				|  |  | +          @click="applyPayment"
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  | +          申请货款
 | 
	
		
			
				|  |  | +        </el-button>
 | 
	
		
			
				|  |  | +        <el-button
 | 
	
		
			
				|  |  | +          size="small"
 | 
	
		
			
				|  |  | +          class="el-button--small-yh"
 | 
	
		
			
				|  |  | +          type="success" style="right: 140px;"
 | 
	
		
			
				|  |  | +          @click="copyOrder"
 | 
	
		
			
				|  |  |            :disabled="detailData.seeDisabled || !this.form.id"
 | 
	
		
			
				|  |  |          >
 | 
	
		
			
				|  |  |            复制新单
 | 
	
	
		
			
				|  | @@ -346,6 +356,25 @@
 | 
	
		
			
				|  |  |                       :disabled="tableDataCost.length !== 1">导入</el-button>
 | 
	
		
			
				|  |  |          </span>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <el-dialog
 | 
	
		
			
				|  |  | +      title="账单"
 | 
	
		
			
				|  |  | +      append-to-body
 | 
	
		
			
				|  |  | +      class="el-dialogDeep"
 | 
	
		
			
				|  |  | +      :visible.sync="applyPaymentDialog"
 | 
	
		
			
				|  |  | +      width="60%"
 | 
	
		
			
				|  |  | +      :close-on-click-modal="false"
 | 
	
		
			
				|  |  | +      :destroy-on-close="true"
 | 
	
		
			
				|  |  | +      :close-on-press-escape="false"
 | 
	
		
			
				|  |  | +      v-dialog-drag
 | 
	
		
			
				|  |  | +    >
 | 
	
		
			
				|  |  | +      <apply-payment
 | 
	
		
			
				|  |  | +        :billType="billType"
 | 
	
		
			
				|  |  | +        :billData="billData"
 | 
	
		
			
				|  |  | +        @choceFun="choceFun"
 | 
	
		
			
				|  |  | +      >
 | 
	
		
			
				|  |  | +      </apply-payment>
 | 
	
		
			
				|  |  | +    </el-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -369,6 +398,8 @@ import optionTwoCost from "./configuration/mainListCost.json"
 | 
	
		
			
				|  |  |  import {getDeptLazyTree, customerList} from "@/api/basicData/basicFeesDesc";
 | 
	
		
			
				|  |  |  import {selectGoodsNum} from "@/api/basicData/inventoryAccount"
 | 
	
		
			
				|  |  |  import { contrastObj, contrastList } from "@/util/contrastData";
 | 
	
		
			
				|  |  | +//账单组件
 | 
	
		
			
				|  |  | +import ApplyPayment from "../../../components/finance/applyPayment";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "detailsPage",
 | 
	
	
		
			
				|  | @@ -380,6 +411,9 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  components:{
 | 
	
		
			
				|  |  | +    ApplyPayment
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        configuration: {
 | 
	
	
		
			
				|  | @@ -471,6 +505,9 @@ export default {
 | 
	
		
			
				|  |  |            children: 'children'
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | +      billType:"申请",  //账单类型
 | 
	
		
			
				|  |  | +      billData:{},     //账单需要数据
 | 
	
		
			
				|  |  | +      applyPaymentDialog:false,//生成账单组件
 | 
	
		
			
				|  |  |        dialogVisible: false,
 | 
	
		
			
				|  |  |        advantageProjectForm: {},
 | 
	
		
			
				|  |  |        bankOfDepositForm: {},
 | 
	
	
		
			
				|  | @@ -685,7 +722,7 @@ export default {
 | 
	
		
			
				|  |  |          delete this.form.itemsVOList
 | 
	
		
			
				|  |  |          delete this.form.orderFeesList
 | 
	
		
			
				|  |  |          delete this.form.orderFilesList
 | 
	
		
			
				|  |  | -        delete this.form.corpsName
 | 
	
		
			
				|  |  | +        // delete this.form.corpsName
 | 
	
		
			
				|  |  |          // 获取最大值
 | 
	
		
			
				|  |  |          let num = []
 | 
	
		
			
				|  |  |          this.advantageProjectData.forEach(item => {
 | 
	
	
		
			
				|  | @@ -1211,6 +1248,43 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    beforeBillData(type){
 | 
	
		
			
				|  |  | +      //采购明细提单号 list
 | 
	
		
			
				|  |  | +      this.billData = {
 | 
	
		
			
				|  |  | +        srcOrderno:this.form.srcOrderNo,
 | 
	
		
			
				|  |  | +        itemType:"采购",
 | 
	
		
			
				|  |  | +        corpsName:this.form.corpsName,
 | 
	
		
			
				|  |  | +        corpId:this.form.corpId,
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if(type){ //申请货款
 | 
	
		
			
				|  |  | +        this.billData.srcId = -1
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      console.log(this.billData )
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //申请货款
 | 
	
		
			
				|  |  | +    applyPayment(){
 | 
	
		
			
				|  |  | +      // if (contrastObj(this.form, this.oldForm) ||
 | 
	
		
			
				|  |  | +      //   contrastList(this.contactsData, this.oldGoodsList) ||
 | 
	
		
			
				|  |  | +      //   contrastList(this.advantageProjectData, this.oldFeesList) ||
 | 
	
		
			
				|  |  | +      //   contrastList(this.bankOfDepositData, this.oldUploadList)
 | 
	
		
			
				|  |  | +      // ) {
 | 
	
		
			
				|  |  | +      //   this.$confirm("您已改动数据,是否先保存在进行操作!", {
 | 
	
		
			
				|  |  | +      //     confirmButtonText: "保存",
 | 
	
		
			
				|  |  | +      //     cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +      //     type: "warning"
 | 
	
		
			
				|  |  | +      //   }).then(() => {
 | 
	
		
			
				|  |  | +      //     this.editCustomer();
 | 
	
		
			
				|  |  | +      //   })
 | 
	
		
			
				|  |  | +      // }else{
 | 
	
		
			
				|  |  | +        this.beforeBillData(true);
 | 
	
		
			
				|  |  | +        this.applyPaymentDialog = true;
 | 
	
		
			
				|  |  | +      // }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //关闭账单
 | 
	
		
			
				|  |  | +    choceFun(){
 | 
	
		
			
				|  |  | +      this.applyPaymentDialog  = false
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      //返回列表
 | 
	
		
			
				|  |  |      backToList() {
 | 
	
		
			
				|  |  |        if (contrastObj(this.form, this.oldForm) ||
 |