1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
webpackJsonp([480],{"24te":function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{search_data:{pageno:1,pagesize:100,auditSign:179,startTime:"",endTime:"",clientName:""},time:"",tableData1:[],tableData2:[]}},watch:{time:function(t){t?(this.search_data.startTime=t[0],this.search_data.endTime=t[1]):(this.search_data.startTime="",this.search_data.endTime="")}},mounted:function(){},methods:{search:function(){this.getList1(),this.getList2()},getList1:function(){var t=this;this.$api.outsourcingAPI.outsourcingInStockList(this.search_data).then(function(e){e.data?(t.tableData1=e.data.datas?e.data.datas:[],e.data.datas):t.tableData1=[]}).catch(function(t){console.log(t)})},getList2:function(){var t=this;this.$api.outsourcingAPI.outsourcingStockOutAdvancedQuery(this.search_data).then(function(e){e.data?t.tableData2=e.data.datas?e.data.datas:[]:t.tableData2=[]}).catch(function(t){console.log(t)})},handleSelectionChange1:function(){},handleSelectionChange2:function(){}}},o={render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"sys-box"},[l("div",{staticClass:"sys-operate"},[l("el-button",{attrs:{type:"primary"}},[t._v("自动核销")])],1),t._v(" "),l("div",{staticClass:"sys-search"},[l("el-form",{attrs:{inline:""}},[l("el-form-item",{attrs:{label:"供应商"}},[l("el-input",{attrs:{placeholder:"模糊查询",clearable:""},model:{value:t.search_data.clientName,callback:function(e){t.$set(t.search_data,"clientName",e)},expression:"search_data.clientName"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"时间"}},[l("el-date-picker",{staticStyle:{width:"210px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1),t._v(" "),l("el-form-item",[l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1),t._v(" "),l("el-divider",{attrs:{"content-position":"left"}},[l("div",[t._v("委外入库单")])]),t._v(" "),l("div",{staticClass:"sys-table"},[l("el-table",{attrs:{border:"",data:t.tableData1,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":t.handleSelectionChange1}},[l("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t._v(" "),l("el-table-column",{attrs:{prop:"inOutTime",label:"入库时间",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"inheadCode",label:"单据编号",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"sourceCompanyName",label:"供应商",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"serialno",label:"物料代码",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"materielName",label:"物料名称",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"specification",label:"规格型号",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"unitName",label:"单位",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"unitName",label:"批号",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"count",label:"入库数量",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"unitPrice",label:"单价",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"amount",label:"金额",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"batch",label:"材料成本",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"batch",label:"加工费用",align:"center","show-overflow-tooltip":""}})],1)],1),t._v(" "),l("el-divider",{attrs:{"content-position":"left"}},[l("div",[t._v("委外发出单")])]),t._v(" "),l("div",{staticClass:"sys-table"},[l("el-table",{attrs:{border:"",data:t.tableData2,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":t.handleSelectionChange2}},[l("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t._v(" "),l("el-table-column",{attrs:{prop:"outTime",label:"发料时间",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"code",label:"单据编号",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"supplierName",label:"供应商",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"operatorName",label:"发料人",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"materielSerialNo",label:"物料代码",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"materielName",label:"物料名称",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"specification",label:"规格型号",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"unitUomName",label:"单位",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"batch",label:"批号",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"count",label:"发出数量",width:"120",align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[l("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,size:"small","controls-position":"right"},model:{value:e.row.count,callback:function(l){t.$set(e.row,"count",l)},expression:"scope.row.count"}})]}}])}),t._v(" "),l("el-table-column",{attrs:{prop:"chargeOffCount",label:"本次核销数量",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"unitPrice",label:"单价",align:"center","show-overflow-tooltip":""}}),t._v(" "),l("el-table-column",{attrs:{prop:"amount",label:"金额",align:"center","show-overflow-tooltip":""}})],1)],1)],1)},staticRenderFns:[]},n=l("VU/8")(a,o,!1,null,null,null);e.default=n.exports}}); |