yxk_pc_mdh/gyhl/static/js/306.e8ca939ce6e76f952264.js

1 line
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

webpackJsonp([306],{"1LPn":function(e,t){},HQlM:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),i=a.n(o),l=a("ysqt"),p=a("OG67"),n=a("NYxO"),s=(a("t4zo"),a("bzuE"),a("LVRR")),r={components:{btnInput:l.a,dialogChooseSingleParts:p.a,normalPage:s.a},data:function(){return{id:"",clientName:"",contractCode:"",page1:{summary:{},showSummaryColumn:[{name:"planCount",value:"planCountTotal"}],formTableData:[{title:"委外合同号",prop_:"contractCode",select:!0},{title:"委外投料单号",prop_:"feedingNo",select:!0},{title:"产品代码",prop_:"materielSerialNo",select:!0},{title:"产品名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"计量单位",prop_:"unitUomName",select:!0},{title:"采购员",prop_:"purchasePersonName",select:!0},{title:"采购部门",prop_:"proDeptName",select:!0},{title:"是否限额发料",prop_:"isQuota",select:!0},{title:"加工数量",prop_:"planCount",select:!0},{title:"交货期",prop_:"contractDeliveryDate",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:0},pictLoading:!1,total:0},page2:{summary:{},showSummaryColumn:[{name:"amount",value:"totalAmount"},{name:"count",value:"totalCount"},{name:"outCount",value:"totalOutCount"}],formTableData:[{title:"发料日期",prop_:"outTime",select:!0},{title:"单据编号",prop_:"code",select:!0},{title:"发料人",prop_:"operatorName",select:!0},{title:"物料代码",prop_:"materielSerialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"发出数量",prop_:"outCount",select:!0},{title:"核销数量(主单位)",prop_:"chargeOffCount",select:!0},{title:"核销数量(辅助单位)",prop_:"chargeOffCountSupport",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"仓库",prop_:"facName",select:!0},{title:"仓位",prop_:"locationName",select:!0},{title:"发料用途",prop_:"purposeName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:1},pictLoading:!1,total:0},page3:{summary:{},showSummaryColumn:[{name:"sendCount",value:"sendCounts"},{name:"inspectionCount",value:"inspectionCounts"},{name:"qualifiedCount",value:"qualifiedCounts"},{name:"unqualifiedCount",value:"unqualifiedCounts"},{name:"sendCountSupport",value:"sendCountSupport"},{name:"inspectionCountSupport",value:"inspectionCountSupport"},{name:"qualifiedCountSupport",value:"qualifiedCountSupport"},{name:"unqualifiedCountSupport",value:"unqualifiedCountSupport"}],formTableData:[{title:"单据编号",prop_:"inspectionNo",select:!0},{title:"日期",prop_:"createTime",select:!0},{title:"物料代码",prop_:"materialSerialNo",select:!0},{title:"物料名称",prop_:"materialName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"计量单位",prop_:"unitUomName",select:!0},{title:"部门",prop_:"deptName",select:!0},{title:"供应商",prop_:"supplierName",select:!0},{title:"报检数量(主单位)",prop_:"sendCount",select:!0},{title:"检验数量(主单位)",prop_:"inspectionCount",select:!0},{title:"合格数量(主单位)",prop_:"qualifiedCount",select:!0},{title:"不合格数量(主单位)",prop_:"unqualifiedCount",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"报检数量(辅单位)",prop_:"sendCountSupport",select:!0},{title:"检验数量(辅单位)",prop_:"inspectionCountSupport",select:!0},{title:"合格数量(辅单位)",prop_:"qualifiedCountSupport",select:!0},{title:"不合格数量(辅单位)",prop_:"unqualifiedCountSupport",select:!0},{title:"备注",prop_:"remarks",select:!0},{title:"制单人",prop_:"createrName",select:!0},{title:"审核人",prop_:"auditorName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceNo",select:!0},{title:"单据状态",prop_:"statusName",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:2},pictLoading:!1,total:0},page4:{summary:{},showSummaryColumn:[{name:"amount",value:"toatalAmount"},{name:"count",value:"toatalCount"},{name:"cost",value:"toatalCost"},{name:"expense",value:"totalExpense"}],formTableData:[{title:"入库日期",prop_:"inOutTime",select:!0},{title:"单据编号",prop_:"inheadCode",select:!0},{title:"供应商",prop_:"sourceCompanyName",select:!0},{title:"物料代码",prop_:"serialno",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"入库数量",prop_:"inCount",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"材料成本(元)",prop_:"cost",select:!0},{title:"加工费用(元)",prop_:"expense",select:!0},{title:"仓库",prop_:"warehouseName",select:!0},{title:"仓位",prop_:"warehLocationName",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:3},pictLoading:!1,total:0},page5:{summary:{},showSummaryColumn:[{name:"amount",value:"totalAmount"},{name:"count",value:"totalCount"},{name:"subCount",value:"totalSubCount"},{name:"taxAmount",value:"totalTaxAmount"},{name:"taxes",value:"totalTaxes"}],formTableData:[{title:"开票日期",prop_:"invoiceDate",select:!0},{title:"供应商",prop_:"supplierName",select:!0},{title:"票据类型",prop_:"invoiceyTypeName",select:!0},{title:"发票号码",prop_:"billCode",select:!0},{title:"物料代码",prop_:"materielSerialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"数量",prop_:"subCount",select:!0},{title:"不含税单价(元)",prop_:"unitPrice",select:!0},{title:"税率(%",prop_:"taxRate",select:!0},{title:"不含税金额(元)",prop_:"amount",select:!0},{title:"税额(元)",prop_:"taxes",select:!0},{title:"价税合计(元)",prop_:"taxAmount",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:4},pictLoading:!1,total:0},page6:{summary:{},showSummaryColumn:[{name:"amount",value:"totalAmount"},{name:"count",value:"totalCount"},{name:"backCount",value:"totalBackCount"}],formTableData:[{title:"退料日期",prop_:"inOutTime",select:!0},{title:"供应商",prop_:"sourceCompanyName",select:!0},{title:"退料人",prop_:"operatorName",select:!0},{title:"单据编号",prop_:"inheadCode",select:!0},{title:"物料代码",prop_:"serialno",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"批号",prop_:"batch",select:!0},{title:"主计量单位",prop_:"unitName",select:!0},{title:"主单位数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"退回数量",prop_:"backCount",select:!0},{title:"单价(元)",prop_:"unitPrice",select:!0},{title:"金额(元)",prop_:"amount",select:!0},{title:"仓库",prop_:"warehouseName",select:!0},{title:"仓位",prop_:"warehLocationName",select:!0},{title:"退料原因",prop_:"returnReason",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:5},pictLoading:!1,total:0},page7:{summary:{},showSummaryColumn:[{name:"thisAmount",value:"totalThisAmount"}],formTableData:[{title:"单据日期",prop_:"prDate",select:!0},{title:"单据编号",prop_:"prCode",select:!0},{title:"供应商",prop_:"cusSupName",select:!0},{title:"付款类型",prop_:"prTypeName",select:!0},{title:"付款账号",prop_:"accountNumberName",select:!0},{title:"结算方式",prop_:"settlementTypeName",select:!0},{title:"付款金额(元)",prop_:"thisAmount",select:!0},{title:"付款人",prop_:"payee",select:!0},{title:"备注",prop_:"remarks",select:!0},{title:"审核状态",prop_:"auditSignName",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单单号",prop_:"sourceCode",select:!0}],tableData:[],search_data:{page:1,pageSize:10,type:6},pictLoading:!1,total:0},activeName:"1"}},computed:i()({},Object(n.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.id=this.$route.query.id,this.clientName=this.$route.query.clientName,this.contractCode=this.$route.query.contractCode,this.getList()},methods:{getList:function(){var e=this;"1"===this.activeName?(this.page1.pictLoading=!0,this.page1.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page1.search_data).then(function(t){e.page1.pictLoading=!1,t.data?(e.page1.summary=t.total,e.page1.total=t.data.totalRows,e.page1.tableData=t.data.datas?t.data.datas:[],e.page1.tableData.forEach(function(e){e.contractDeliveryDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.contractDeliveryDate)})):(e.page1.total=0,e.page1.tableData=[])}).catch(function(e){console.log(e)})):"2"===this.activeName?(this.page2.pictLoading=!0,this.page2.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page2.search_data).then(function(t){e.page2.pictLoading=!1,t.data?(e.page2.summary=t.total,e.page2.total=t.data.totalRows,e.page2.tableData=t.data.datas?t.data.datas:[],e.page2.tableData.forEach(function(e){e.outTime=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.outTime)[0]})):(e.page2.total=0,e.page2.tableData=[])}).catch(function(e){console.log(e)})):"3"===this.activeName?(this.page3.pictLoading=!0,this.page3.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page3.search_data).then(function(t){e.page3.pictLoading=!1,t.data?(e.page3.summary=t.count,e.page3.total=t.data.totalRows,e.page3.tableData=t.data.datas?t.data.datas:[],e.page3.tableData.forEach(function(e){e.createTime=e.createTime.substr(0,10)})):(e.page3.total=0,e.page3.tableData=[])}).catch(function(e){console.log(e)})):"4"===this.activeName?(this.page4.pictLoading=!0,this.page4.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page4.search_data).then(function(t){e.page4.pictLoading=!1,t.data?(e.page4.summary.toatalAmount=t.data.toatalAmount,e.page4.summary.toatalCost=t.data.toatalCost,e.page4.summary.toatalCount=t.data.toatalCount,e.page4.summary.totalExpense=t.data.totalExpense,e.page4.total=t.data.totalRows,e.page4.tableData=t.data.datas?t.data.datas:[],e.page4.tableData.forEach(function(e){e.inOutTime=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.inOutTime)[0]})):(e.page4.total=0,e.page4.tableData=[])}).catch(function(t){e.page4.pictLoading=!1})):"5"===this.activeName?(this.page5.pictLoading=!0,this.page5.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page5.search_data).then(function(t){e.page5.pictLoading=!1,t.data?(e.page5.summary=t.total,e.page5.total=t.data.totalRows,e.page5.tableData=t.data.datas?t.data.datas:[],e.page5.tableData.forEach(function(e){e.invoiceDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.invoiceDate)[0]})):(e.page5.total=0,e.page5.tableData=[])}).catch(function(e){console.log(e)})):"6"===this.activeName?(this.page6.pictLoading=!0,this.page6.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page6.search_data).then(function(t){e.page6.pictLoading=!1,t.data?(e.page6.summary.totalAmount=t.totalAmount,e.page6.summary.totalBackCount=t.totalBackCount,e.page6.summary.totalCount=t.totalCount,e.page6.total=t.data.totalRows,e.page6.tableData=t.data.datas?t.data.datas:[],e.tableData.forEach(function(e){e.inOutTime=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.inOutTime)[0]})):(e.page6.total=0,e.page6.tableData=[])}).catch(function(e){console.log(e)})):"7"===this.activeName&&(this.page7.pictLoading=!0,this.page7.search_data.id=this.id,this.$api.outsourcingAPI.associatedBill(this.page7.search_data).then(function(t){e.page7.pictLoading=!1,t.data?(e.page7.summary.totalThisAmount=t.data.totalThisAmount,e.page7.total=t.data.totalRows,e.page7.tableData=t.data.datas?t.data.datas:[],e.page7.tableData.forEach(function(e){e.prDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.prDate)[0]})):(e.page7.total=0,e.page7.tableData=[])}).catch(function(e){console.log(e)}))},search:function(){switch(this.activeName){case"1":this.page1.search_data.page=1;break;case"2":this.page2.search_data.page=1;break;case"3":this.page3.search_data.page=1;break;case"4":this.page4.search_data.page=1;break;case"5":this.page5.search_data.page=1;break;case"6":this.page6.search_data.page=1;break;case"7":this.page7.search_data.page=1}this.getList()},handleCurrentChange:function(e){switch(this.activeName){case"1":this.page1.search_data.page=e;break;case"2":this.page2.search_data.page=e;break;case"3":this.page3.search_data.page=e;break;case"4":this.page4.search_data.page=e;break;case"5":this.page5.search_data.page=e;break;case"6":this.page6.search_data.page=e;break;case"7":this.page7.search_data.page=e}this.getList()},handleSizeChange:function(e){switch(this.activeName){case"1":this.page1.search_data.pageSize=e;break;case"2":this.page2.search_data.pageSize=e;break;case"3":this.page3.search_data.pageSize=e;break;case"4":this.page4.search_data.pageSize=e;break;case"5":this.page5.search_data.pageSize=e;break;case"6":this.page6.search_data.pageSize=e;break;case"7":this.page7.search_data.pageSize=e}this.getList()},handleSelectionChange:function(e){this.rowIds=e},handleClick:function(){this.getList()},goBack:function(){this.$router.push({path:"/outsourcing/outsourcing_contract_index",query:{t:Date.now()}})},goToLink:function(e,t){var a="",o=t.id;1==e?a="/outsourcing/outsourcing_feeding_detail":2==e?a="/outsourcing/outsourcing_outstock_add":3==e?a="/quality/addIncoming":4==e?a="/outsourcing/outsourcing_inStock_add":5==e?a="/outsourcing/outsourcing_processingCharge_add":6==e?a="/outsourcing/outsourcing_outsourcingReturn_add":7==e&&(a="/finance/commutation/paymentOrder_add"),this.$router.push({path:a,query:{id:o,t:Date.now()}})}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:e.goBack}},[e._v("返回")]),e._v(" "),a("span",{staticStyle:{margin:"0 50px","font-weight":"bold"}},[e._v("供应商:"+e._s(e.clientName))]),e._v(" "),a("span",{staticStyle:{margin:"0 50px","font-weight":"bold"}},[e._v("合同编号:"+e._s(e.contractCode))])],1),e._v(" "),a("div",{staticClass:"sys-tabs"},[a("el-tabs",{on:{"tab-click":e.getList},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"委外投料",name:"1"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page1.formTableData,tableData:e.page1.tableData,listQuery:e.page1.search_data,total:e.page1.total,pictLoading:e.page1.pictLoading,summary:e.page1.summary,showSummaryColumn:e.page1.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(1,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"委外出库",name:"2"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page2.formTableData,tableData:e.page2.tableData,listQuery:e.page2.search_data,total:e.page2.total,pictLoading:e.page2.pictLoading,summary:e.page2.summary,showSummaryColumn:e.page2.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(2,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"来料检验",name:"3"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page3.formTableData,tableData:e.page3.tableData,listQuery:e.page3.search_data,total:e.page3.total,pictLoading:e.page3.pictLoading,summary:e.page3.summary,showSummaryColumn:e.page3.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(3,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"委外入库",name:"4"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page4.formTableData,tableData:e.page4.tableData,listQuery:e.page4.search_data,total:e.page4.total,pictLoading:e.page4.pictLoading,summary:e.page4.summary,showSummaryColumn:e.page4.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(4,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"加工费用",name:"5"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page5.formTableData,tableData:e.page5.tableData,listQuery:e.page5.search_data,total:e.page5.total,pictLoading:e.page5.pictLoading,summary:e.page5.summary,showSummaryColumn:e.page5.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(5,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"委外退料",name:"6"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page6.formTableData,tableData:e.page6.tableData,listQuery:e.page6.search_data,total:e.page6.total,pictLoading:e.page6.pictLoading,summary:e.page6.summary,showSummaryColumn:e.page6.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(6,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"付款单",name:"7"}},[a("normalPage",{attrs:{disableBtn:!1,formTableData:e.page7.formTableData,tableData:e.page7.tableData,listQuery:e.page7.search_data,total:e.page7.total,pictLoading:e.page7.pictLoading,summary:e.page7.summary,showSummaryColumn:e.page7.showSummaryColumn},on:{goToLink:function(t){return e.goToLink(7,t)},handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange,handleSelectionChange:e.handleSelectionChange}})],1)],1)],1)])},staticRenderFns:[]};var u=a("VU/8")(r,c,!1,function(e){a("1LPn")},"data-v-8c19ab88",null);t.default=u.exports}});