chunk-949038ba.4030d63f.js 23 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-949038ba","chunk-718fc9a1","chunk-3fcb51b3","chunk-853293ce","chunk-25edde54","chunk-cf462154","chunk-3a46e468"],{"028b":function(t,e,o){"use strict";o("57d0")},"0e4c":function(t,e,o){"use strict";o("f7fc")},"11e4":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.showArea,size:"55vw","before-close":t.closeFn,"custom-class":"drawer-class",direction:"ltr"},on:{"update:visible":function(e){t.showArea=e}}},[e("div",[e("div",{staticStyle:{"margin-left":"2px","font-weight":"bold"}},[t._v("【"+t._s(t.currentData.customName?t.currentData.customName:"")+"】"+t._s(t.currentData.itemName?t.currentData.itemName:"")+" 供货明细")]),e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-status",fn:function({scope:e}){return[t._v(" "+t._s(0==e.row.status?"在路上":1==t.item.status?"已送达":"已取消")+" ")]}}])})],1)])],1)},r=[],s={name:"book-record",props:{currentData:{type:Object,default:()=>{}}},data(){return{showArea:!1}},methods:{init(){this.showArea=!0,this.app&&this.app.refresh({parentId:this.currentData.id})},closeFn(){this.showArea=!1},onLoad({ctx:t,app:e}){this.app=e,t.service(this.$service.bookItemGhs).set("table",{columns:[{label:"日期",prop:"addTime",align:"center"},{label:"花材",prop:"name",align:"center"},{label:"供货商",prop:"ghsName",align:"center"},{label:"数量",prop:"num",align:"center"},{label:"状态",prop:"status",align:"center"}],op:{visible:!0,props:{width:160,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["data-table"],["flex1"]]).done(),e.refresh({parentId:this.currentData.id})}}},n=s,i=(o("d7e9"),o("1805")),c=Object(i["a"])(n,a,r,!1,null,"d5ec602e",null);e["default"]=c.exports},"173e":function(t,e,o){},"27b9":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.showArea,size:"55vw","before-close":t.closeFn,"custom-class":"drawer-class",direction:"ltr"},on:{"update:visible":function(e){t.showArea=e}}},[e("div",[e("div",{staticStyle:{"margin-left":"2px","font-weight":"bold"}},[t._v("【"+t._s(t.currentData.customName?t.currentData.customName:"")+"】"+t._s(t.currentData.itemName?t.currentData.itemName:"")+" 上下架记录")]),e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-changeNum",fn:function({scope:o}){return[t._v(" "+t._s(1==o.row.io?"+":"-")),e("span",[t._v(t._s(o.row.changeNum))])]}}])})],1)])],1)},r=[],s={name:"book-custom-on-record",props:{currentData:{type:Object,default:()=>{}}},data(){return{showArea:!1}},methods:{init(){this.showArea=!0,this.app&&this.app.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})},closeFn(){this.showArea=!1},onLoad({ctx:t,app:e}){this.app=e,t.service(this.$service.bookOnChange).set("table",{columns:[{label:"日期",prop:"addTime",align:"center"},{label:"事项",prop:"event",align:"center"},{label:"变动",prop:"changeNum",align:"center"},{label:"最终",prop:"num",align:"center"},{label:"操作人",prop:"staffName",align:"center"}],op:{visible:!0,props:{width:160,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["data-table"],["flex1"]]).done(),e.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})}}},n=s,i=(o("548c"),o("1805")),c=Object(i["a"])(n,a,r,!1,null,"25a6d678",null);e["default"]=c.exports},"37cf":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(){return[e("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabsData,(function(t,o){return e("el-tab-pane",{key:o,attrs:{label:""+t.text,name:t.key}})})),1)]},proxy:!0},{key:"slot-column-option",fn:function({scope:o}){return[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.goItemGh(o.row)}}},[t._v("供货明细")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.getBookRecord(o.row)}}},[t._v("预订记录")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.getOnRecord(o.row)}}},[t._v("上下架记录")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.getRoadRecord(o.row)}}},[t._v("路上记录")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.getCgRecord(o.row)}}},[t._v("待采记录")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.goOn(o.row)}}},[t._v("上齐")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.goUp(o.row)}}},[t._v("上架")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.goOff(o.row)}}},[t._v("下架")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.loanStock(o.row)}}},[t._v("借库")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.addStock(o.row)}}},[t._v("加库")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.delStock(o.row)}}},[t._v("减库")])]}},{key:"slot-search-option",fn:function({scope:o}){return[Number(t.itemId)>0?e("span",{staticStyle:{"font-size":"32upx",color:"blue","font-weight":"bold","margin-left":"30upx",padding:"10upx 0 10upx 0"}},[t._v(" 【"+t._s(t.remainName)+"】"),t.remainNum&&Number(t.remainNum)>0?e("span",[t._v("剩 "+t._s(t.remainNum)+"份")]):t._e()]):t._e(),Number(t.customId)>0?e("span",{staticStyle:{"font-size":"32upx",color:"black","font-weight":"bold","margin-left":"30upx",padding:"10upx 0 10upx 0"}},[t._v(" 【"+t._s(t.customName)+"】预订的花材 ")]):t._e()]}},{key:"table-column-customName",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(" "+t._s(o.row.customName)),0!=o.row.seatSn?e("span",[t._v("("+t._s(o.row.seatSn)+")")]):t._e()]):e("span",[t._v(" "+t._s(o.row.customName)),0!=o.row.seatSn?e("span",[t._v("("+t._s(o.row.seatSn)+")")]):t._e()])]}},{key:"table-column-roadNum",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(t._s(o.row.roadNum))]):e("span",[t._v(t._s(o.row.roadNum))])]}},{key:"table-column-needCgNum",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(t._s(o.row.needCgNum))]):e("span",[t._v(t._s(o.row.needCgNum))])]}},{key:"table-column-name",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(t._s(o.row.name))]):e("span",[t._v(t._s(o.row.name))])]}},{key:"table-column-bookNum",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(t._s(o.row.bookNum))]):e("span",[t._v(t._s(o.row.bookNum))])]}},{key:"table-column-remark",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(t._s(o.row.remark))]):e("span",{staticStyle:{color:"red","font-weight":"bold"}},[t._v(t._s(o.row.remark))])]}},{key:"table-column-onNum",fn:function({scope:o}){return[o.row.bookNum==o.row.onNum?e("span",{staticStyle:{color:"green","font-weight":"bold"}},[t._v(t._s(o.row.onNum))]):e("span",[t._v(t._s(o.row.onNum))])]}},{key:"slot-more-do-btn",fn:function(){return[e("el-dropdown",{attrs:{size:"medium","split-button":"",type:"primary"},on:{click:t.batchGoOn,command:t.doMore}},[t._v(" 全上齐 "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:"developing"}},[t._v("开发中")])],1)],1)]},proxy:!0}])}),e("book-record",{ref:"bookRecord",attrs:{currentData:t.bookRecordData}}),e("book-on-record",{ref:"bookOnRecord",attrs:{currentData:t.bookOnRecordData}}),e("book-road-record",{ref:"bookRoadRecord",attrs:{currentData:t.bookRoadRecordData}}),e("book-cg-record",{ref:"bookCgRecord",attrs:{currentData:t.bookCgRecordData}}),e("book-item-ghs",{ref:"bookItemGhs",attrs:{currentData:t.bookItemGhsData}}),e("loan-item",{ref:"loanItemRef",attrs:{currentData:t.loanData},on:{refreshData:t.refreshData}})],1)},r=[],s=(o("8f26"),o("963e"),o("f803"),o("5880"),o("a403")),n=o("27b9"),i=o("f707"),c=o("957f"),u=o("11e4"),l=o("bd0a"),m={components:{bookRecord:s["default"],bookOnRecord:n["default"],bookCgRecord:i["default"],bookRoadRecord:c["default"],bookItemGhs:u["default"],loanItem:l["default"]},data(){return{app:null,tabIndex:"0",tabsData:[{text:"列表",key:"0",val:0}],ghsInfoList:[],loading:!1,ghsId:0,endTime:"",itemId:0,itemName:"",customId:0,customName:"",remainName:"",remainNum:0,bookCgRecordData:{},bookRoadRecordData:{},bookOnRecordData:{},bookRecordData:{},bookItemGhsData:{},loanData:{},selectedIds:[]}},methods:{refreshData(){this.app.refresh({itemId:this.itemId,customId:this.customId})},batchGoOn(){let t=this;if(this.$util.isEmpty(this.selectedIds))return this.$message.error("请选要上齐项"),!1;this.$confirm("确认全上齐?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$service.bookItemCustom.batchGoOn({ids:JSON.stringify(this.selectedIds)}).then(e=>{t.$message.success("操作成功"),setTimeout(()=>{t.app.refresh({itemId:this.itemId,customId:this.customId})},1500)})})},doMore(t){"developing"==t&&this.$message.error("开发中")},goUp(t){let e=this;this.$prompt("请输入数量","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\+?[1-9][0-9]*$/,inputErrorMessage:"数量错误"}).then(({value:o})=>{this.$service.bookItemCustom.goOn({id:t.id,num:o}).then(t=>{e.$message.success("操作成功"),setTimeout(()=>{e.app.refresh({itemId:this.itemId,customId:this.customId})},1500)})})},delStock(t){let e=this;this.$prompt("请输入数量","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\+?[1-9][0-9]*$/,inputErrorMessage:"数量错误"}).then(({value:o})=>{this.$service.checkOrder.bookDelStock({bookItemCustomId:t.id,num:o,itemId:t.itemId}).then(t=>{e.$message.success("操作成功"),setTimeout(()=>{e.app.refresh({itemId:this.itemId,customId:this.customId})},1500)})})},addStock(t){let e=this;this.$prompt("请输入数量","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\+?[1-9][0-9]*$/,inputErrorMessage:"数量错误"}).then(({value:o})=>{this.$service.checkOrder.bookAddStock({bookItemCustomId:t.id,num:o,itemId:t.itemId}).then(t=>{e.$message.success("操作成功"),setTimeout(()=>{e.app.refresh({itemId:this.itemId,customId:this.customId})},1500)})})},loanStock(t){this.loanData={customId:t.customId,customName:t.customName,id:t.id,itemName:t.name,itemId:t.itemId},setTimeout(()=>{this.$refs.loanItemRef.init()})},goOff(t){let e=this;this.$prompt("请输入数量","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\+?[1-9][0-9]*$/,inputErrorMessage:"数量错误"}).then(({value:o})=>{this.$service.bookItemCustom.goOff({id:t.id,num:o}).then(t=>{e.$message.success("操作成功"),setTimeout(()=>{e.app.refresh({itemId:this.itemId,customId:this.customId})},1500)})})},goOn(t){let e=this;this.$confirm("确认上齐?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$service.bookItemCustom.goOn({id:t.id}).then(t=>{e.$message.success("操作成功"),setTimeout(()=>{e.app.refresh({itemId:this.itemId,customId:this.customId})},1500)})})},goItemGh(t){this.bookItemGhsData={customId:t.customId,customName:t.customName,id:t.id,itemName:t.name,itemId:t.itemId},setTimeout(()=>{this.$refs.bookItemGhs.init()})},getCgRecord(t){this.bookCgRecordData={customId:t.customId,customName:t.customName,id:t.id,itemName:t.name,itemId:t.itemId},setTimeout(()=>{this.$refs.bookCgRecord.init()})},getRoadRecord(t){this.bookRoadRecordData={customId:t.customId,customName:t.customName,id:t.id,itemName:t.name,itemId:t.itemId},setTimeout(()=>{this.$refs.bookRoadRecord.init()})},getOnRecord(t){this.bookOnRecordData={customId:t.customId,customName:t.customName,id:t.id,itemName:t.name,itemId:t.itemId},setTimeout(()=>{this.$refs.bookOnRecord.init()})},getBookRecord(t){let e=this;console.log(t),this.bookRecordData={customId:t.customId,customName:t.customName,id:t.id,itemName:t.name,itemId:t.itemId},setTimeout(()=>{e.$refs.bookRecord.init()})},onLoad({ctx:t,app:e}){this.app=e,this.itemId=this.$route.query.itemId?this.$route.query.itemId:0,this.itemName=this.$route.query.itemName?this.$route.query.itemName:"",this.customId=this.$route.query.customId?this.$route.query.customId:0,this.customName=this.$route.query.customName?this.$route.query.customName:"",t.service(this.$service.bookItemCustom).set("table",{columns:[{type:"selection",align:"center",width:"40"},{prop:"name",label:"名称",align:"center",width:180},{prop:"bookNum",label:"预订",align:"center",width:80},{prop:"onNum",label:"上架",align:"center",width:80},{prop:"roadNum",label:"路上",align:"center",width:80},{prop:"needCgNum",label:"待采",align:"center",width:80},{prop:"remark",label:"备注",align:"center",width:100},{prop:"customName",label:"客户",align:"center",width:160}],on:{"selection-change":t=>{this.selectedIds=t.map(t=>t.id)}},op:{visible:!0,props:{width:880,align:"left",fixed:"right",label:"操作"},layout:["slot-column-option"]}}).set("dict",{search:{keyWord:"name"}}).set("search",{key:{placeholder:"..."}}).set("layout",[["slot-tabs"],["slot-search-option"],["data-table"],["slot-more-do-btn","flex1"]]).on("refresh",async(t,{next:e})=>{let o=await e(t);this.remainName=o.remainName?o.remainName:"",this.remainNum=o.remainNum?o.remainNum:0}).done(),e.refresh({itemId:this.itemId,customId:this.customId})}}},d=m,p=(o("0e4c"),o("1805")),h=Object(p["a"])(d,a,r,!1,null,"b5aa9580",null);e["default"]=h.exports},"496d":function(t,e,o){},"548c":function(t,e,o){"use strict";o("496d")},"57d0":function(t,e,o){},"5d48":function(t,e,o){"use strict";o("ddca")},"62b3":function(t,e,o){},"66f0":function(t,e,o){"use strict";o("62b3")},"957f":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.showArea,size:"55vw","before-close":t.closeFn,"custom-class":"drawer-class",direction:"ltr"},on:{"update:visible":function(e){t.showArea=e}}},[e("div",[e("div",{staticStyle:{"margin-left":"2px","font-weight":"bold"}},[t._v("【"+t._s(t.currentData.customName?t.currentData.customName:"")+"】"+t._s(t.currentData.itemName?t.currentData.itemName:"")+" 路上记录")]),e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-changeNum",fn:function({scope:o}){return[t._v(" "+t._s(1==o.row.io?"+":"-")),e("span",[t._v(t._s(o.row.changeNum))])]}}])})],1)])],1)},r=[],s={name:"book-custom-road-record",props:{currentData:{type:Object,default:()=>{}}},data(){return{showArea:!1}},methods:{init(){this.showArea=!0,this.app&&this.app.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})},closeFn(){this.showArea=!1},onLoad({ctx:t,app:e}){this.app=e,t.service(this.$service.bookRoadChange).set("table",{columns:[{label:"日期",prop:"addTime",align:"center"},{label:"事项",prop:"event",align:"center"},{label:"变动",prop:"changeNum",align:"center"},{label:"最终",prop:"num",align:"center"},{label:"操作人",prop:"staffName",align:"center"}],op:{visible:!0,props:{width:160,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["data-table"],["flex1"]]).done(),e.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})}}},n=s,i=(o("b392"),o("1805")),c=Object(i["a"])(n,a,r,!1,null,"5f7bd04a",null);e["default"]=c.exports},a403:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.showArea,size:"55vw","before-close":t.closeFn,"custom-class":"drawer-class",direction:"ltr"},on:{"update:visible":function(e){t.showArea=e}}},[e("div",[e("div",{staticStyle:{"margin-left":"2px","font-weight":"bold"}},[t._v("【"+t._s(t.currentData.customName?t.currentData.customName:"")+"】"+t._s(t.currentData.itemName?t.currentData.itemName:"")+" 预订记录")]),e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-changeNum",fn:function({scope:o}){return[t._v(" "+t._s(1==o.row.io?"+":"-")),e("span",[t._v(t._s(o.row.changeNum))])]}}])})],1)])],1)},r=[],s={name:"book-record",props:{currentData:{type:Object,default:()=>{}}},data(){return{showArea:!1}},methods:{init(){this.showArea=!0,this.app&&this.app.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})},closeFn(){this.showArea=!1},onLoad({ctx:t,app:e}){this.app=e,t.service(this.$service.bookChange).set("table",{columns:[{label:"日期",prop:"addTime",align:"center"},{label:"事项",prop:"event",align:"center"},{label:"变动",prop:"changeNum",align:"center"},{label:"最终",prop:"num",align:"center"},{label:"操作人",prop:"staffName",align:"center"}],op:{visible:!0,props:{width:160,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["data-table"],["flex1"]]).done(),e.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})}}},n=s,i=(o("66f0"),o("1805")),c=Object(i["a"])(n,a,r,!1,null,"459c401a",null);e["default"]=c.exports},b392:function(t,e,o){"use strict";o("173e")},bd0a:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.showArea,size:"44vw","before-close":t.closeFn,"custom-class":"drawer-class",direction:t.direction},on:{"update:visible":function(e){t.showArea=e}}},[e("div",[e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-cover",fn:function({scope:t}){return[e("el-popover",{attrs:{placement:"right",width:"200",trigger:"hover"}},[e("div",{staticStyle:{width:"200px",height:"200px"}},[e("img",{staticStyle:{width:"100%",height:"100%","object-fit":"cover"},attrs:{src:t.row.bigCover}})]),e("div",{staticStyle:{width:"40px"},attrs:{slot:"reference"},slot:"reference"},[e("img",{staticStyle:{width:"100%",height:"100%","object-fit":"cover","border-radius":"5px"},attrs:{src:t.row.cover}})])])]}},{key:"table-column-name",fn:function({scope:o}){return[e("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(o.row.name))])]}},{key:"table-column-stock",fn:function({scope:o}){return[e("span",{staticStyle:{"font-size":"13px"}},[t._v(t._s(o.row.stock?parseFloat(o.row.stock):0))])]}},{key:"table-column-bigCount",fn:function({scope:o}){return[e("el-input",{attrs:{placeholder:"数量"},model:{value:o.row.bigCount,callback:function(e){t.$set(o.row,"bigCount",e)},expression:"scope.row.bigCount"}})]}},{key:"slot-column-option",fn:function({scope:o}){return[e("el-button",{attrs:{size:"medium",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.confirmLoan(o.row)}}},[t._v("借用")])]}},{key:"slot-option-area-list",fn:function(){return[e("el-input",{ref:"itemSearchRef",staticStyle:{width:"200px"},attrs:{placeholder:"搜索花材",size:"big",clearable:!0},on:{input:function(e){return t.changeSearch()},focus:function(e){t.search=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),e("span",{staticStyle:{"margin-left":"10px","font-size":"27px"}},[t._v("【"+t._s(t.currentData.customName?t.currentData.customName:"")+"】"+t._s(t.currentData.itemName?t.currentData.itemName:"")+" 借库存")])]},proxy:!0}])})],1)])],1)},r=[],s={name:"loan-item",props:{currentData:{type:Object,default:()=>{}}},data(){return{showArea:!1,search:"",direction:"ltr"}},methods:{changeSearch(){let t=this;null!=this.T&&clearTimeout(this.T),this.T=setTimeout((function(){t.app.refresh({name:this.search})}),650)},init(){this.currentData.direction&&!this.$util.isEmpty(this.currentData.direction)&&(this.direction=this.currentData.direction),this.showArea=!0,this.search="",this.app&&this.app.refresh({name:this.search}),this.$nextTick(()=>{this.$refs.itemSearchRef.focus()})},closeFn(){this.showArea=!1},confirmLoan(t){let e=this;if(Number(t.bigCount)<=0)return this.$message.error("请填写数量"),!1;let o={inId:this.currentData.itemId,outId:t.id,num:t.bigCount,bookItemCustomId:this.currentData.id};this.$confirm("确认借用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$service.checkOrder.loan(o).then(t=>{e.$message.success("借用成功"),this.currentData.orderId&&Number(this.currentData.orderId)>0?e.$emit("renewArrival",{id:this.currentData.orderId}):e.$emit("refreshData"),this.showArea=!1})})},onLoad({ctx:t,app:e}){this.app=e;let o=()=>this.$service.item.getLoanList({name:this.search});t.service({page:o}).set("table",{columns:[{label:"ID",prop:"id",align:"center",width:80},{label:"图片",prop:"cover",align:"center",width:65},{label:"名称",prop:"name",align:"center",width:300},{label:"可借",prop:"stock",align:"center",width:100},{label:"要借",prop:"bigCount",align:"center",width:130}],op:{visible:!0,props:{width:130,align:"center",fixed:"right",label:"操作"},layout:["slot-column-option"]}}).set("layout",[["slot-option-area-list"],["data-table"],["flex1"]]).done(),e.refresh({name:this.search})}}},n=s,i=(o("5d48"),o("1805")),c=Object(i["a"])(n,a,r,!1,null,"68b775af",null);e["default"]=c.exports},bf13:function(t,e,o){},d7e9:function(t,e,o){"use strict";o("bf13")},ddca:function(t,e,o){},f707:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.showArea,size:"55vw","before-close":t.closeFn,"custom-class":"drawer-class",direction:"ltr"},on:{"update:visible":function(e){t.showArea=e}}},[e("div",[e("div",{staticStyle:{"margin-left":"2px","font-weight":"bold"}},[t._v("【"+t._s(t.currentData.customName?t.currentData.customName:"")+"】"+t._s(t.currentData.itemName?t.currentData.itemName:"")+" 待采变动记录")]),e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"table-column-changeNum",fn:function({scope:o}){return[t._v(" "+t._s(1==o.row.io?"+":"-")),e("span",[t._v(t._s(o.row.changeNum))])]}}])})],1)])],1)},r=[],s={name:"book-custom-cg-record",props:{currentData:{type:Object,default:()=>{}}},data(){return{showArea:!1}},methods:{init(){this.showArea=!0,this.app&&this.app.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})},closeFn(){this.showArea=!1},onLoad({ctx:t,app:e}){this.app=e,t.service(this.$service.bookCgChange).set("table",{columns:[{label:"日期",prop:"addTime",align:"center"},{label:"事项",prop:"event",align:"center"},{label:"变动",prop:"changeNum",align:"center"},{label:"最终",prop:"num",align:"center"},{label:"操作人",prop:"staffName",align:"center"}],op:{visible:!0,props:{width:60,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["data-table"],["flex1"]]).done(),e.refresh({relateSecondId:this.currentData.id,customId:this.currentData.customId,itemId:this.currentData.itemId})}}},n=s,i=(o("028b"),o("1805")),c=Object(i["a"])(n,a,r,!1,null,"be9088da",null);e["default"]=c.exports},f7fc:function(t,e,o){}}]);