You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
59 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bef60f0"],{"2621a":function(e,t,o){},3219:function(e,t,o){"use strict";o.r(t);var a,r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"app-container"},[o("div",{directives:[{name:"show",rawName:"v-show",value:1==e.viewState,expression:"viewState == 1"}]},[o("button-bar",{attrs:{"view-title":"其他出库单",btndisabled:e.btndisabled},on:{btnhandle:e.btnHandle}}),o("div",{staticClass:"searchcon"},[o("el-button",{staticClass:"searchbtn",attrs:{size:"small"},on:{click:function(t){e.isSearchShow=!e.isSearchShow}}},[e._v(e._s(e.isSearchShow?"隐藏查询条件":"显示查询条件")+" ")]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.isSearchShow,expression:"isSearchShow"}],staticClass:"search"},[o("el-form",{staticClass:"tab-header",attrs:{inline:!0}},[o("el-form-item",{attrs:{label:"单据编号"}},[o("el-input",{attrs:{placeholder:"请输入单据编号",clearable:""},model:{value:e.queryParams.params.billNo,callback:function(t){e.$set(e.queryParams.params,"billNo",t)},expression:"queryParams.params.billNo"}})],1),o("el-form-item",{attrs:{label:"单据类型"}},[o("el-select",{staticStyle:{width:"200px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.changeBillType},model:{value:e.queryParams.params.billType,callback:function(t){e.$set(e.queryParams.params,"billType",t)},expression:"queryParams.params.billType"}},e._l(e.billType_list,(function(e){return o("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1),o("el-form-item",{staticClass:"search_label",attrs:{label:"客户"}},[o("el-select",{staticStyle:{width:"200px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.changeCustomer},model:{value:e.queryParams.params.customerName,callback:function(t){e.$set(e.queryParams.params,"customerName",t)},expression:"queryParams.params.customerName"}},e._l(e.customer_list,(function(e){return o("el-option",{key:e.sid,attrs:{label:e.customerName,value:e.sid}})})),1)],1),o("el-form-item",{attrs:{label:"领料部门"}},[o("el-cascader",{key:e.refreshItem,attrs:{options:e.options,props:e.props,clearable:""},on:{change:e.pickingDepChange},model:{value:e.pickingDep_list,callback:function(t){e.pickingDep_list=t},expression:"pickingDep_list"}})],1),o("el-form-item",{staticClass:"search_label",attrs:{label:"领料人"}},[o("el-input",{attrs:{placeholder:"请输入领料人",clearable:""},model:{value:e.queryParams.params.pickingPerson,callback:function(t){e.$set(e.queryParams.params,"pickingPerson",t)},expression:"queryParams.params.pickingPerson"}})],1),o("el-form-item",{staticClass:"search_label",attrs:{label:"货主"}},[o("el-input",{attrs:{placeholder:"请输入货主",clearable:""},model:{value:e.queryParams.params.cargoOwner,callback:function(t){e.$set(e.queryParams.params,"cargoOwner",t)},expression:"queryParams.params.cargoOwner"}})],1),o("el-form-item",{staticClass:"search_label",attrs:{label:"仓管员"}},[o("el-input",{attrs:{placeholder:"请输入仓管员",clearable:""},model:{value:e.queryParams.params.warehouseKeeperName,callback:function(t){e.$set(e.queryParams.params,"warehouseKeeperName",t)},expression:"queryParams.params.warehouseKeeperName"}})],1),o("el-divider"),o("div",{staticClass:"btn",staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{type:"primary"},on:{click:e.dosearch}},[e._v("查询")]),o("el-button",{attrs:{type:"primary"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1)],1)],1),o("div",{staticClass:"listtop"},[o("div",{staticClass:"tit"},[e._v("其他出库单列表")]),o("pageye",{directives:[{name:"show",rawName:"v-show",value:e.dataList.length>0,expression:"dataList.length > 0"}],staticClass:"pagination",attrs:{total:e.queryParams.total,page:e.queryParams.current,limit:e.queryParams.size},on:{"update:page":function(t){return e.$set(e.queryParams,"current",t)},"update:limit":function(t){return e.$set(e.queryParams,"size",t)},pagination:e.loadList}})],1),o("div",{staticClass:"listcon"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{width:"50px",type:"selection",align:"center"}}),o("el-table-column",{attrs:{width:"80px",label:"序号",type:"index",index:e.indexMethod,align:"center"}}),o("el-table-column",{attrs:{prop:"billNo",label:"单据编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",{staticClass:"bluezi",on:{click:function(o){return e.toInfo(t.row)}}},[e._v(e._s(t.row.billNo))])]}}])}),o("el-table-column",{attrs:{prop:"billType",label:"单据类型",align:"center"}}),o("el-table-column",{attrs:{prop:"customerName",label:"客户",align:"center"}}),o("el-table-column",{attrs:{prop:"pickingDepName",label:"领料部门",align:"center"}}),o("el-table-column",{attrs:{prop:"businessType",label:"业务类型",align:"center"}}),o("el-table-column",{attrs:{prop:"cargoOwnerType",label:"货主类型",align:"center"}}),o("el-table-column",{attrs:{prop:"pickingPerson",label:"领料人",align:"center"}}),o("el-table-column",{attrs:{prop:"cargoOwner",label:"货主",align:"center"}}),o("el-table-column",{attrs:{prop:"warehouseKeeperName",label:"仓管员",align:"center"}})],1)],1),o("div",{staticClass:"pages"},[o("div",{staticClass:"tit"}),o("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dataList.length>0,expression:"dataList.length > 0"}],staticClass:"pagination",attrs:{total:e.queryParams.total,page:e.queryParams.current,limit:e.queryParams.size},on:{"update:page":function(t){return e.$set(e.queryParams,"current",t)},"update:limit":function(t){return e.$set(e.queryParams,"size",t)},pagination:e.loadList}})],1)],1),o("div-add",{directives:[{name:"show",rawName:"v-show",value:2==e.viewState||3==e.viewState,expression:"viewState == 2 || viewState == 3"}],ref:"divadd",on:{doback:e.resetState,reloadlist:e.loadList}}),o("div-info",{directives:[{name:"show",rawName:"v-show",value:4==e.viewState,expression:"viewState == 4"}],ref:"divinfo",on:{doback:e.resetState}})],1)},n=[],s=o("b775");function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var l=(a={listPage:function(e){return Object(s["a"])({url:"/scm/v1/scmotheroutbound/listPage",method:"post",data:e,headers:{"Content-Type":"application/json"}})},listAll:function(e){return Object(s["a"])({url:"/anruiscm/v1/scmotheroutbound/listAll",method:"post",data:e})},saveAdd:function(e){return Object(s["a"])({url:"/scm/v1/scmotheroutbound/save",method:"post",data:e,headers:{"Content-Type":"application/json"}})},saveEdit:function(e,t){return Object(s["a"])({url:"/scm/v1/scmotheroutbound/update/"+t,method:"post",data:e,headers:{"Content-Type":"application/json"}})},delBySids:function(e){return Object(s["a"])({url:"/scm/v1/scmotheroutbound/delBySids",method:"post",data:e,headers:{"Content-Type":"application/json"}})},fetchBySid:function(e){return Object(s["a"])({url:"/scm/v1/scmotheroutbound/fetchBySid/"+e,method:"get"})},fetchByBillNo:function(e){return Object(s["a"])({url:"/scm/v1/scmotheroutbound/fetchByBillSid/"+e,method:"get"})},pullDown:function(e){return Object(s["a"])({url:"/portal/v1/dictcommons/typeValues",method:"get",params:e})},changShang:function(e){return Object(s["a"])({url:"/base/v1/basemanufacturer/namesDown",method:"get",params:e})},kehu:function(e){return Object(s["a"])({url:"/buscenter/v1/busorder/likeGetCustomerName",method:"post",params:e})},salesDepName:function(e){return Object(s["a"])({url:"/portal/v1/sysorganization/selectListOrg",method:"get",params:e,data:e})},getOrg:function(){return Object(s["a"])({url:"/portal/v1/sysorganization/getListOrg",method:"get",params:data})},getWlxx:function(e){return Object(s["a"])({url:"/scm/v1/scmmaterial/mNumsDown",method:"get",params:e,headers:{"Content-Type":"application/json"}})},getWlxxInfo:function(e){return Object(s["a"])({url:"/scm/v1/scmmaterial/list",method:"get",params:e,headers:{"Content-Type":"application/json"}})},getWarehouse:function(e){return Object(s["a"])({url:"/scm/v1/scmwarehouse/list",method:"get",params:e})}},i(a,"getOrg",(function(e){return Object(s["a"])({url:"/portal/v1/sysorganization/getListOrg",method:"get",params:e})})),i(a,"doSubmit",(function(e){return Object(s["a"])({url:"/anruiscm/v1/scmotheroutbound/doSubmit",method:"post",data:e})})),i(a,"importExcel",(function(e){return Object(s["a"])({url:"/anruiscm/v1/scmotheroutbound/importExcel",method:"post",data:e})})),i(a,"exportExcel",(function(e){return Object(s["a"])({url:"/anruiscm/v1/scmotheroutbound/exportExcel",method:"post",data:e})})),a),c=o("77b3"),u=o("4d86"),m=o("7042"),d=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"tab-header webtop"},[o("div",[e._v(e._s(e.viewTitle))]),o("div",[o("el-button",{attrs:{type:"primary",size:"small",disabled:e.submitdisabled},on:{click:function(t){"add"===e.dialogStatus?e.saveAdd():e.saveEdit()}}},[e._v("保存 ")]),o("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.handleReturn()}}},[e._v("返回")])],1)]),o("div",{staticClass:"listconadd"},[o("div",{staticClass:"title"},[e._v("其他出库单")]),e._v(" "),o("el-form",{ref:"form_obj",attrs:{model:e.formobj.scmOtherOutboundDto,rules:e.rules,inline:!0,"label-width":"120px"}},[o("div",{staticStyle:{"border-bottom":"2px solid #e0e3eb",height:"40px"}},[o("el-row",[o("el-col",{staticStyle:{"margin-left":"80px",height:"20px"},attrs:{span:10}},[o("el-form-item",{attrs:{label:"单据编号:"}},[e._v(e._s(e.formobj.scmOtherOutboundDto.billNo))])],1),o("el-col",{staticStyle:{height:"20px"},attrs:{span:6}},[o("el-form-item",{attrs:{label:"制单人:"}},[e._v(e._s(e.formobj.scmOtherOutboundDto.makeListName))])],1),o("el-col",{staticStyle:{height:"20px"},attrs:{span:5}},[o("el-form-item",{attrs:{label:"制单日期:"}},[e._v(e._s(e.formobj.scmOtherOutboundDto.makeListDate))])],1)],1)],1),o("div",{staticClass:"invoiceadd",staticStyle:{"margin-top":"5px"}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"billType",label:"单据类型"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.changeBillType},model:{value:e.formobj.scmOtherOutboundDto.billType,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"billType",t)},expression:"formobj.scmOtherOutboundDto.billType"}},e._l(e.billType_list,(function(e){return o("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"customerName",label:"客户"}},[o("el-select",{attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.changeCustomer},model:{value:e.formobj.scmOtherOutboundDto.customerName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"customerName",t)},expression:"formobj.scmOtherOutboundDto.customerName"}},e._l(e.customer_list,(function(e){return o("el-option",{key:e.sid,attrs:{label:e.customerName,value:e.sid}})})),1)],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"pickingDepName",label:"领料部门"}},[o("el-cascader",{key:e.refreshItem,attrs:{options:e.options,props:e.props,clearable:""},on:{change:e.pickingDepChange},model:{value:e.pickingDep_list,callback:function(t){e.pickingDep_list=t},expression:"pickingDep_list"}})],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"businessType",label:"业务类型"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.changeBusinessType},model:{value:e.formobj.scmOtherOutboundDto.businessType,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"businessType",t)},expression:"formobj.scmOtherOutboundDto.businessType"}},e._l(e.businessType_list,(function(e){return o("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"cargoOwnerType",label:"货主类型"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.changeCargoType},model:{value:e.formobj.scmOtherOutboundDto.cargoOwnerType,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"cargoOwnerType",t)},expression:"formobj.scmOtherOutboundDto.cargoOwnerType"}},e._l(e.cargoType_list,(function(e){return o("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"stockOrgName",label:"库存组织"}},[o("el-select",{staticClass:"addinputw",attrs:{placeholder:"请选择",clearable:""},on:{change:e.stockOrgNameChange},model:{value:e.formobj.scmOtherOutboundDto.stockOrgName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"stockOrgName",t)},expression:"formobj.scmOtherOutboundDto.stockOrgName"}},e._l(e.stockOrgName_list,(function(e){return o("el-option",{key:e.sid,attrs:{label:e.name,value:e.name,clearable:""}})})),1)],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"pickingPerson",label:"领料人"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"请输入领料人",clearable:""},model:{value:e.formobj.scmOtherOutboundDto.pickingPerson,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"pickingPerson",t)},expression:"formobj.scmOtherOutboundDto.pickingPerson"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"cargoOwner",label:"货主"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"请输入货主",clearable:""},model:{value:e.formobj.scmOtherOutboundDto.cargoOwner,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"cargoOwner",t)},expression:"formobj.scmOtherOutboundDto.cargoOwner"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"claimOrgName",label:"领用组织"}},[o("el-select",{staticClass:"addinputw",attrs:{placeholder:"请选择",clearable:""},on:{change:e.claimOrgNameChange},model:{value:e.formobj.scmOtherOutboundDto.claimOrgName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"claimOrgName",t)},expression:"formobj.scmOtherOutboundDto.claimOrgName"}},e._l(e.claimOrgName_list,(function(e){return o("el-option",{key:e.sid,attrs:{label:e.name,value:e.name,clearable:""}})})),1)],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"warehouseKeeperName",label:"仓管员"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"请输入仓管员",clearable:""},model:{value:e.formobj.scmOtherOutboundDto.warehouseKeeperName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"warehouseKeeperName",t)},expression:"formobj.scmOtherOutboundDto.warehouseKeeperName"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"billState",label:"单据状态"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.changeBillState},model:{value:e.formobj.scmOtherOutboundDto.billState,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"billState",t)},expression:"formobj.scmOtherOutboundDto.billState"}},e._l(e.billState_list,(function(e){return o("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"inventoryDirection",label:"库存方向"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.changeInventory},model:{value:e.formobj.scmOtherOutboundDto.inventoryDirection,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"inventoryDirection",t)},expression:"formobj.scmOtherOutboundDto.inventoryDirection"}},e._l(e.inventory_list,(function(e){return o("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictKey}})})),1)],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"invenGroupName",label:"库存组"}},[o("el-cascader",{key:e.refreshItem,attrs:{options:e.options,props:e.props,clearable:""},on:{change:e.salesDepNameChange},model:{value:e.invenGroupName_list,callback:function(t){e.invenGroupName_list=t},expression:"invenGroupName_list"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"date",label:"日期"}},[o("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.formobj.scmOtherOutboundDto.date,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"date",t)},expression:"formobj.scmOtherOutboundDto.date"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"transferInDepartment",label:"调入部门"}},[o("el-cascader",{key:e.refreshItem,attrs:{options:e.options,props:e.props,clearable:""},on:{change:e.transferInChange},model:{value:e.transferIn_list,callback:function(t){e.transferIn_list=t},expression:"transferIn_list"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"remarks",label:"备注"}},[o("el-input",{staticClass:"addinputw",attrs:{clearable:""},model:{value:e.formobj.scmOtherOutboundDto.remarks,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"remarks",t)},expression:"formobj.scmOtherOutboundDto.remarks"}})],1)],1)],1)],1),o("div",{staticClass:"addtable"},[o("div",{staticClass:"tabletitle"},[o("div",{staticClass:"titlename"},[e._v(" 货物明细 ")]),o("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addtableData}},[e._v("添加")])],1),[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.formobj.scmOtherOutboundDetailDtoList,index:e.index,border:"","show-summary":"","summary-method":e.getSummaries}},[o("el-table-column",{attrs:{align:"center",label:"序号",type:"index",width:"50"}}),o("el-table-column",{attrs:{label:"操作",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(o){return e.dataDelete(t.$index,e.formobj.scmOtherOutboundDetailDtoList[t.$index])}}},[e._v("删除 ")])]}}])}),o("el-table-column",{attrs:{prop:"mnum",width:"150",label:"物料编码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择"},on:{change:function(o){return e.changeMnum(t.row,this)}},model:{value:t.row.mnum,callback:function(o){e.$set(t.row,"mnum",o)},expression:"props.row.mnum"}},e._l(e.mnum_list,(function(e){return o("el-option",{key:e.sid,attrs:{label:e.mNum,value:e.mNum}})})),1)]}}])}),o("el-table-column",{attrs:{prop:"mname",width:"150",label:"物料名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.mname))])]}}])}),o("el-table-column",{attrs:{prop:"model",width:"150",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.model))])]}}])}),o("el-table-column",{attrs:{prop:"year",width:"95",label:"年度",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-input",{staticClass:"tableinput",staticStyle:{width:"70px"},model:{value:t.row.year,callback:function(o){e.$set(t.row,"year",o)},expression:"props.row.year"}})]}}])}),o("el-table-column",{attrs:{prop:"logisticsCustomer",width:"95",label:"物流客户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-input",{staticClass:"tableinput",staticStyle:{width:"70px"},model:{value:t.row.logisticsCustomer,callback:function(o){e.$set(t.row,"logisticsCustomer",o)},expression:"props.row.logisticsCustomer"}})]}}])}),o("el-table-column",{attrs:{prop:"company",width:"150",label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.company))])]}}])}),o("el-table-column",{attrs:{prop:"realHairNum",width:"125",label:"实发数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-input",{staticClass:"tableinput",staticStyle:{width:"110px"},model:{value:t.row.realHairNum,callback:function(o){e.$set(t.row,"realHairNum",o)},expression:"props.row.realHairNum"}})]}}])}),o("el-table-column",{attrs:{prop:"deliveryWarehouse",width:"150",label:"发货仓库",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-select",{staticClass:"addinputw",attrs:{placeholder:"请选择",clearable:""},on:{change:e.changeWarehouse},model:{value:t.row.deliveryWarehouse,callback:function(o){e.$set(t.row,"deliveryWarehouse",o)},expression:"props.row.deliveryWarehouse"}},e._l(e.warehouse_list,(function(e){return o("el-option",{key:e.sid,attrs:{label:e.warehouseName,value:e.warehouseName,clearable:""}})})),1)]}}])}),o("el-table-column",{attrs:{prop:"cargoOwner",width:"120",label:"货主",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-input",{staticClass:"tableinput",staticStyle:{width:"105px"},model:{value:t.row.cargoOwner,callback:function(o){e.$set(t.row,"cargoOwner",o)},expression:"props.row.cargoOwner"}})]}}])}),o("el-table-column",{attrs:{prop:"remarks",width:"150",label:"备注",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.remarks))])]}}])}),o("el-table-column",{attrs:{prop:"shippingUnit",width:"120",label:"出货单价",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-input",{staticClass:"tableinput",staticStyle:{width:"105px"},model:{value:t.row.shippingUnit,callback:function(o){e.$set(t.row,"shippingUnit",o)},expression:"props.row.shippingUnit"}})]}}])}),o("el-table-column",{attrs:{prop:"deliveryAmount",width:"120",label:"出库金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-input",{staticClass:"tableinput",staticStyle:{width:"105px"},model:{value:t.row.deliveryAmount,callback:function(o){e.$set(t.row,"deliveryAmount",o)},expression:"props.row.deliveryAmount"}})]}}])})],1)]],2)])],1)])},p=[],b={name:"ScmOtherOutboundAdd",data:function(){return{viewTitle:"",dialogStatus:"add",index:0,tableData:[],billType_list:[],customer_list:[],businessType_list:[],cargoType_list:[],billState_list:[],inventory_list:[],company_list:[],mnum_list:[],pickingDep_list:[],stockOrgName_list:[],claimOrgName_list:[],invenGroupName_list:[],transferIn_list:[],warehouse_list:[],dataArr:[],refreshItem:0,options:[],props:{value:"sid",label:"name",children:"children",multiple:!0},orgProps:{value:"sid",label:"name",children:"children",checkStrictly:!0},orgOptions:[],orgArr:[],formobj:{sid:"",userSid:window.sessionStorage.getItem("userSid"),scmOtherOutboundDto:{orgSid:window.sessionStorage.getItem("orgSid"),orgName:window.sessionStorage.getItem("departmentName"),makeListName:window.sessionStorage.getItem("name"),makeListDate:"",billNo:"",billState:"",billType:"",businessType:"",cargoOwner:"",cargoOwnerSid:"",cargoOwnerType:"",claimOrgName:"",claimOrgSid:"",customerName:"",customerSid:"",date:"",invenGroupName:"",invenGroupSid:"",inventoryDirection:"",pickingDepName:"",pickingDepSid:"",pickingPerson:"",pickingPersonSid:"",stockOrgName:"",stockOrgSid:"",transferInDepartment:"",transferInDepartmentSid:"",warehouseKeeperName:"",warehouseKeeperSid:"",remarks:""},scmOtherOutboundDetailDtoList:[{batchNum:"",billSid:"",cargoOwner:"",company:"",deliveryAmount:"",deliveryWarehouse:"",logisticsCustomer:"",mname:"",mnum:"",model:"",position:"",realHairNum:"",shippingUnit:"",year:""}]},rules:{billType:[{required:!0,message:"单据类型不能为空",trigger:"change"}],businessType:[{required:!0,message:"业务类型不能为空",trigger:"change"}],cargoOwnerType:[{required:!0,message:"货主类型不能为空",trigger:"change"}],stockOrgName:[{required:!0,message:"库存组织不能为空",trigger:"change"}],inventoryDirection:[{required:!0,message:"库存方向不能为空",trigger:"change"}],date:[{required:!0,message:"日期不能为空",trigger:"blur"}],transferInDepartment:[{required:!0,message:"调入部门不能为空",trigger:"change"}]},submitdisabled:!1}},created:function(){this.getBillType(),this.getCustomer(),this.getBillState(),this.getCargoType(),this.getBusinessType(),this.getInventory(),this.getCompany(),this.getBuMen(),this.getWlxx(),this.getWarehouse(),this.getOrg()},methods:{getBillType:function(){var e=this;l.pullDown({type:"billsType"}).then((function(t){"200"===t.code&&(e.billType_list=t.data,console.log("下拉框请求111",t.data))}))},changeBillType:function(e){console.log("触发下拉框按钮");var t={};this.billType_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.formobj.scmOtherOutboundDto.billType=t.name,console.log("name",this.formobj.scmOtherOutboundDto.billType)},getCustomer:function(){var e=this;l.kehu({}).then((function(t){"200"===t.code&&(e.customer_list=t.data,console.log("下拉框请求11133",t.data))}))},changeCustomer:function(e){console.log("触发下拉框按钮");var t={};this.customer_list.forEach((function(o){o.sid==e&&(t={name:o.customerName,sid:o.sid})})),this.formobj.scmOtherOutboundDto.customerName=t.name,this.formobj.scmOtherOutboundDto.customerSid=t.sid,console.log("name",this.formobj.scmOtherOutboundDto.customerName)},getBuMen:function(){var e=this;l.salesDepName().then((function(t){"200"===t.code&&(e.options=t.data,console.log("请求到的级联列表",e.options),e.BuMen0(e.options))}))},BuMen0:function(e){var t=this;e.forEach((function(e){if(0==e.children.length)return delete e.children,void t.dataArr.push(e);t.BuMen0(e.children)}))},pickingDepChange:function(e){var t=this;console.log("选中结果:"+JSON.stringify(e));var o="",a="";e.length>0&&e.forEach((function(e){var r=e[e.length-1];t.select_temp_Name="",t.select_temp_Sid="",t.findOrgId(r,t.options),o=o+t.select_temp_Name+",",a=a+t.select_temp_Sid+","})),""!==o&&(o=o.substring(0,o.length-1)),""!==a&&(a=a.substring(0,a.length-1)),this.formobj.scmOtherOutboundDto.pickingDepName=o,this.formobj.scmOtherOutboundDto.pickingDepSid=a,console.log("选中名称:"+this.formobj.scmOtherOutboundDto.pickingDepName,this.formobj.scmOtherOutboundDto.pickingDepSid)},transferInChange:function(e){var t=this;console.log("选中结果:"+JSON.stringify(e));var o="",a="";e.length>0&&e.forEach((function(e){var r=e[e.length-1];t.select_temp_Name="",t.select_temp_Sid="",t.findOrgId(r,t.options),o=o+t.select_temp_Name+",",a=a+t.select_temp_Sid+","})),""!==o&&(o=o.substring(0,o.length-1)),""!==a&&(a=a.substring(0,a.length-1)),this.formobj.scmOtherOutboundDto.transferInDepartment=o,this.formobj.scmOtherOutboundDto.transferInDepartmentSid=a,console.log("选中名称:"+this.formobj.scmOtherOutboundDto.transferInDepartment,a)},salesDepNameChange:function(e){var t=this;console.log("选中结果:"+JSON.stringify(e));var o="",a="";e.length>0&&e.forEach((function(e){var r=e[e.length-1];t.select_temp_Name="",t.select_temp_Sid="",t.findOrgId(r,t.options),o=o+t.select_temp_Name+",",a=a+t.select_temp_Sid+","})),""!==o&&(o=o.substring(0,o.length-1)),""!==a&&(a=a.substring(0,a.length-1)),this.formobj.scmOtherOutboundDto.invenGroupName=o,this.formobj.scmOtherOutboundDto.invenGroupSid=a,console.log("选中名称:"+this.formobj.scmOtherOutboundDto.invenGroupName,this.formobj.scmOtherOutboundDto.invenGroupSid)},findOrgId:function(e,t){for(var o=0;o<t.length;o++){if(e==t[o].sid)return this.select_temp_Name=t[o].name,this.select_temp_Sid=t[o].sid,!0;if(void 0!==t[o].children&&this.findOrgId(e,t[o].children))return!0}},getOrg:function(){var e=this;l.getOrg().then((function(t){"200"===t.code&&(e.stockOrgName_list=t.data,e.claimOrgName_list=t.data)}))},stockOrgNameChange:function(e){console.log("触发下拉框按钮",e);var t={};this.stockOrgName_list.forEach((function(o){o.name==e&&(t={name:o.name,key:o.id,sid:o.sid})})),this.formobj.scmOtherOutboundDto.stockOrgName=t.name,this.formobj.scmOtherOutboundDto.stockOrgSid=t.sid,console.log("name",this.formobj.scmOtherOutboundDto.stockOrgName,this.formobj.scmOtherOutboundDto.stockOrgSid)},claimOrgNameChange:function(e){console.log("触发下拉框按钮",e);var t={};this.claimOrgName_list.forEach((function(o){o.name==e&&(t={name:o.name,key:o.id,sid:o.sid})})),this.formobj.scmOtherOutboundDto.claimOrgName=t.name,this.formobj.scmOtherOutboundDto.claimOrgSid=t.sid,console.log("name",this.formobj.scmOtherOutboundDto.claimOrgName,this.formobj.scmOtherOutboundDto.claimOrgSid)},getBusinessType:function(){var e=this;l.pullDown({type:"businessType"}).then((function(t){"200"===t.code&&(e.businessType_list=t.data,console.log("下拉框请求111",t.data))}))},changeBusinessType:function(e){console.log("触发下拉框按钮");var t={};this.businessType_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.formobj.scmOtherOutboundDto.businessType=t.name,console.log("name",this.formobj.scmOtherOutboundDto.billType)},getCargoType:function(){var e=this;l.pullDown({type:"cargoOwnerType"}).then((function(t){"200"===t.code&&(e.cargoType_list=t.data,console.log("下拉框请求111",t.data))}))},changeCargoType:function(e){console.log("触发下拉框按钮");var t={};this.cargoType_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.formobj.scmOtherOutboundDto.cargoOwnerType=t.name,this.formobj.scmOtherOutboundDto.cargoOwnerSid=t.sid,console.log("name",this.formobj.scmOtherOutboundDto.cargoOwnerType,this.formobj.scmOtherOutboundDto.cargoOwnerSid)},getBillState:function(){var e=this;l.pullDown({type:"billState"}).then((function(t){"200"===t.code&&(e.billState_list=t.data,console.log("下拉框请求111",t.data))}))},changeBillState:function(e){console.log("触发下拉框按钮");var t={};this.billState_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.formobj.scmOtherOutboundDto.billState=t.name,console.log("name",this.formobj.scmOtherOutboundDto.billState)},getInventory:function(){var e=this;l.pullDown({type:"inventoryDirection"}).then((function(t){"200"===t.code&&(e.inventory_list=t.data,console.log("下拉框请求111",t.data))}))},changeInventory:function(e){console.log("触发下拉框按钮");var t={};this.inventory_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.formobj.scmOtherOutboundDto.inventoryDirection=t.name,console.log("name",this.formobj.scmOtherOutboundDto.inventoryDirection)},getCompany:function(){var e=this;l.pullDown({type:"basicUnit"}).then((function(t){"200"===t.code&&(e.company_list=t.data,console.log("下拉框请求111",t.data))}))},changeCompany:function(e){console.log("触发下拉框按钮");var t={};this.company_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.formobj.scmOtherOutboundDetailDtoList.company=t.name,console.log("name",this.formobj.scmOtherOutboundDetailDtoList.company)},getWlxx:function(){var e=this;l.getWlxx({}).then((function(t){e.mnum_list=t.data}))},changeMnum:function(e){l.getWlxxInfo().then((function(t){for(var o=t.data,a=0;a<o.length;a++)o[a].mNum===e.mnum&&(e.mname=o[a].mName,e.model=o[a].model,e.company=o[a].unit,e.remarks=o[a].remarks)}))},getWarehouse:function(){var e=this;l.getWarehouse().then((function(t){"200"===t.code&&(e.warehouse_list=t.data)}))},changeWarehouse:function(e,t){for(var o=0;o<this.warehouse_list.length;o++)this.warehouse_list[o].warehouseName===t.deliveryWarehouse&&(t.deliveryWarehouse=this.warehouse_list[o].warehouseName)},addtableData:function(){this.formobj.scmOtherOutboundDetailDtoList.push({batchNum:"",billSid:"",cargoOwner:"",company:"",deliveryAmount:"",deliveryWarehouse:"",logisticsCustomer:"",mname:"",mnum:"",model:"",position:"",realHairNum:"",shippingUnit:"",year:""})},dataDelete:function(e,t){this.formobj.scmOtherOutboundDetailDtoList.splice(e,1)},getSummaries:function(e){var t=e.columns,o=e.data,a=[];return t.forEach((function(e,t){if(0!==t){var r=o.map((function(t){return Number(t[e.property])}));if(e.property)switch(a[t]=r.reduce((function(e,t){var o=Number(t);return isNaN(o)?e:e+t}),0),e.property){case"realHairNum":a[t]+=" ";break;case"shippingUnit":a[t]+=" 元";break;case"deliveryAmount":a[t]+=" 元";break;default:a[t]="";break}}else a[t]="合计"})),a},handleReturn:function(e){"true"===e&&this.$emit("reloadlist"),this.formobj.sid="",this.formobj.scmOtherOutboundDto={},this.formobj.scmOtherOutboundDetailDtoList=[{}],this.pickingDep_list=[],this.stockOrgName_list=[],this.claimOrgName_list=[],this.invenGroupName_list=[],this.transferIn_list=[],this.refreshItem++,this.$refs["form_obj"].resetFields(),this.$emit("doback")},showAdd:function(){var e=this;this.$nextTick((function(){e.$refs["form_obj"].clearValidate()})),this.dialogStatus="add",this.viewTitle="【新增】其他出库单"},showEdit:function(e,t){var o=this;this.$nextTick((function(){o.$refs["form_obj"].clearValidate()})),this.dialogStatus="edit",this.viewTitle="【编辑】其他出库单";var a=this;l.fetchBySid(e).then((function(t){var r=t.data;a.formobj.sid=e;var n={makeListDate:r.date,makeListName:window.sessionStorage.getItem("name"),billNo:r.billNo,billType:r.billType,customerSid:r.customerSid,customerName:r.customerName,pickingDepSid:r.pickingDepSid,pickingDepName:r.pickingDepName,businessType:r.businessType,cargoOwnerType:r.cargoOwnerType,stockOrgSid:r.stockOrgSid,stockOrgName:r.stockOrgName,pickingPersonSid:r.pickingPersonSid,pickingPerson:r.pickingPerson,cargoOwnerSid:r.cargoOwnerSid,cargoOwner:r.cargoOwner,claimOrgSid:r.claimOrgSid,claimOrgName:r.claimOrgName,warehouseKeeperSid:r.warehouseKeeperSid,warehouseKeeperName:r.warehouseKeeperName,billState:r.billState,inventoryDirection:r.inventoryDirection,invenGroupSid:r.invenGroupSid,invenGroupName:r.invenGroupName,date:r.date,transferInDepartment:r.transferInDepartment,transferInDepartmentSid:r.transferInDepartmentSid,remarks:r.remarks};o.formobj.scmOtherOutboundDto=n,o.pickingDep_list=r.pickingDepSid,o.stockOrgName_list=r.stockOrgSid,o.claimOrgName_list=r.claimOrgSid,o.invenGroupName_list=r.invenGroupSid,o.transferIn_list=r.transferInDepartmentSid,a.formobj.scmOtherOutboundDetailDtoList=r.scmOtherOutboundDetailVoList})).catch((function(e){o.formobj=t}))},saveAdd:function(){var e=this,t=this,o="";if(this.formobj.scmOtherOutboundDetailDtoList.forEach((function(e){o=e.mnum})),""===o)return this.$message({type:"warning",message:"请填写货物明细表"}),!1;this.$refs["form_obj"].validate((function(o){if(!o)return!1;e.submitdisabled=!0,l.saveAdd(e.formobj).then((function(o){e.submitdisabled=!1,console.log(o),"200"===o.code&&(e.$notify({title:"提示",message:"添加成功",type:"success",duration:2e3}),t.$message({showClose:!0,type:"success",message:o.msg}),t.handleReturn("true"))})).catch((function(){e.submitdisabled=!1}))}))},saveEdit:function(){var e=this,t="";this.pickingDep_list.length>0&&this.pickingDep_list.forEach((function(o){var a=o[o.length-1];e.select_temp_Sid="",e.findOrgId(a,e.options),t=t+e.select_temp_Sid+","})),""!==t&&(t=t.substring(0,t.length-1)),this.formobj.scmOtherOutboundDto.pickingDepSid=t,console.log("重新赋值后的组织结构",this.formobj.scmOtherOutboundDto.pickingDepSid);var o="";this.stockOrgName_list.length>0&&this.stockOrgName_list.forEach((function(t){var a=t[t.length-1];e.select_temp_Sid="",e.findOrgId(a,e.options),o=o+e.select_temp_Sid+","})),""!==o&&(o=o.substring(0,o.length-1)),this.formobj.scmOtherOutboundDto.stockOrgSid=o,console.log("重新赋值后的组织结构",this.formobj.scmOtherOutboundDto.stockOrgSid);var a="";this.claimOrgName_list.length>0&&this.claimOrgName_list.forEach((function(t){var o=t[t.length-1];e.select_temp_Sid="",e.findOrgId(o,e.options),a=a+e.select_temp_Sid+","})),""!==a&&(a=a.substring(0,a.length-1)),this.formobj.scmOtherOutboundDto.claimOrgSid=a,console.log("重新赋值后的组织结构",this.formobj.scmOtherOutboundDto.claimOrgSid);var r="";this.invenGroupName_list.length>0&&this.invenGroupName_list.forEach((function(t){var o=t[t.length-1];e.select_temp_Sid="",e.findOrgId(o,e.options),r=r+e.select_temp_Sid+","})),""!==r&&(r=r.substring(0,r.length-1)),this.formobj.scmOtherOutboundDto.invenGroupSid=r,console.log("重新赋值后的组织结构",this.formobj.scmOtherOutboundDto.invenGroupSid);var n="";this.transferIn_list.length>0&&this.transferIn_list.forEach((function(t){var o=t[t.length-1];e.select_temp_Sid="",e.findOrgId(o,e.options),n=n+e.select_temp_Sid+","})),""!==n&&(n=n.substring(0,n.length-1)),this.formobj.scmOtherOutboundDto.transferInDepartmentSid=n,console.log("重新赋值后的组织结构",this.formobj.scmOtherOutboundDto.transferInDepartmentSid);var s=this;this.$refs["form_obj"].validate((function(t){if(!t)return!1;e.submitdisabled=!0,l.saveEdit(e.formobj,e.formobj.sid).then((function(t){e.submitdisabled=!1,s.$message({showClose:!0,type:"success",message:t.msg}),s.handleReturn("true")})).catch((function(){e.submitdisabled=!1}))}))}}},h=b,f=(o("5902"),o("2877")),g=Object(f["a"])(h,d,p,!1,null,"f4bcae2a",null),O=g.exports,y=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"tab-header webtop"},[o("div",[e._v(e._s(e.viewTitle))]),o("div",[o("el-button",{attrs:{itype:"info",size:"small"},on:{click:function(t){return e.handleReturn()}}},[e._v("返回")])],1)]),o("div",{staticClass:"listconadd"},[o("div",{staticClass:"title"},[e._v("其他出库单")]),e._v(" "),o("el-form",{ref:"form_obj",attrs:{model:e.formobj,inline:!0,"label-width":"120px"}},[o("div",{staticStyle:{"border-bottom":"2px solid #e0e3eb",height:"40px"}},[o("el-row",[o("el-col",{staticStyle:{"margin-left":"80px",height:"20px"},attrs:{span:10}},[o("el-form-item",{attrs:{label:"单据编号:"}},[e._v(e._s(e.formobj.scmOtherOutboundDto.billNo))])],1),o("el-col",{staticStyle:{height:"20px"},attrs:{span:6}},[o("el-form-item",{attrs:{label:"制单人:"}},[e._v(e._s(e.formobj.scmOtherOutboundDto.makeListName))])],1),o("el-col",{staticStyle:{height:"20px"},attrs:{span:5}},[o("el-form-item",{attrs:{label:"制单日期:"}},[e._v(e._s(e.formobj.scmOtherOutboundDto.makeListDate))])],1)],1)],1),o("div",{staticClass:"invoiceadd",staticStyle:{"margin-top":"5px"}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"billType",label:"单据类型"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"单据类型",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.billType,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"billType",t)},expression:"formobj.scmOtherOutboundDto.billType"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"customerName",label:"客户"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"客户",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.customerName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"customerName",t)},expression:"formobj.scmOtherOutboundDto.customerName"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"pickingDepName",label:"领料部门"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"领料部门",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.pickingDepName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"pickingDepName",t)},expression:"formobj.scmOtherOutboundDto.pickingDepName"}})],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"businessType",label:"业务类型"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"业务类型",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.businessType,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"businessType",t)},expression:"formobj.scmOtherOutboundDto.businessType"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"cargoOwnerType",label:"货主类型"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"货主类型",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.cargoOwnerType,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"cargoOwnerType",t)},expression:"formobj.scmOtherOutboundDto.cargoOwnerType"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"stockOrgName",label:"库存组织"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"库存组织",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.stockOrgName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"stockOrgName",t)},expression:"formobj.scmOtherOutboundDto.stockOrgName"}})],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"pickingPerson",label:"领料人"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"领料人",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.pickingPerson,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"pickingPerson",t)},expression:"formobj.scmOtherOutboundDto.pickingPerson"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"cargoOwner",label:"货主"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"货主",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.cargoOwner,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"cargoOwner",t)},expression:"formobj.scmOtherOutboundDto.cargoOwner"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"claimOrgName",label:"领用组织"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"领用组织",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.claimOrgName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"claimOrgName",t)},expression:"formobj.scmOtherOutboundDto.claimOrgName"}})],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"warehouseKeeperName",label:"仓管员"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"仓管员",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.warehouseKeeperName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"warehouseKeeperName",t)},expression:"formobj.scmOtherOutboundDto.warehouseKeeperName"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"billState",label:"单据状态"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"单据状态",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.billState,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"billState",t)},expression:"formobj.scmOtherOutboundDto.billState"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"inventoryDirection",label:"库存方向"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"库存方向",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.inventoryDirection,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"inventoryDirection",t)},expression:"formobj.scmOtherOutboundDto.inventoryDirection"}})],1)],1)],1),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"invenGroupName",label:"库存组"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"库存组",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.invenGroupName,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"invenGroupName",t)},expression:"formobj.scmOtherOutboundDto.invenGroupName"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"date",label:"日期"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"日期",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.date,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"date",t)},expression:"formobj.scmOtherOutboundDto.date"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"transferInDepartment",label:"调入部门"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"调入部门",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.transferInDepartment,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"transferInDepartment",t)},expression:"formobj.scmOtherOutboundDto.transferInDepartment"}})],1)],1),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"remarks",label:"备注"}},[o("el-input",{staticClass:"addinputw",attrs:{placeholder:"备注",clearable:"",readonly:""},model:{value:e.formobj.scmOtherOutboundDto.remarks,callback:function(t){e.$set(e.formobj.scmOtherOutboundDto,"remarks",t)},expression:"formobj.scmOtherOutboundDto.remarks"}})],1)],1)],1)],1),o("div",{staticClass:"addtable"},[o("div",{staticClass:"tabletitle"},[o("div",{staticClass:"titlename"},[e._v(" 货物明细 ")])]),[o("el-table",{attrs:{data:e.formobj.scmOtherOutboundDetailDtoList,index:e.index,border:"",tyle:"width: 100%","show-summary":"","summary-method":e.getSummaries}},[o("el-table-column",{attrs:{align:"center",label:"序号",type:"index",width:"50"}}),o("el-table-column",{attrs:{prop:"mnum",width:"150",label:"物料编码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.mnum))])]}}])}),o("el-table-column",{attrs:{prop:"mname",width:"150",label:"物料名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.mname))])]}}])}),o("el-table-column",{attrs:{prop:"model",width:"150",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.model))])]}}])}),o("el-table-column",{attrs:{prop:"year",width:"95",label:"年度",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.year))])]}}])}),o("el-table-column",{attrs:{prop:"logisticsCustomer",width:"120",label:"物流客户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.logisticsCustomer))])]}}])}),o("el-table-column",{attrs:{prop:"company",width:"150",label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.company))])]}}])}),o("el-table-column",{attrs:{prop:"realHairNum",width:"95",label:"实发数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.realHairNum))])]}}])}),o("el-table-column",{attrs:{prop:"deliveryWarehouse",width:"150",label:"发货仓库",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.deliveryWarehouse))])]}}])}),o("el-table-column",{attrs:{prop:"cargoOwner",width:"120",label:"货主",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.cargoOwner))])]}}])}),o("el-table-column",{attrs:{prop:"remarks",width:"150",label:"备注",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.remarks))])]}}])}),o("el-table-column",{attrs:{prop:"shippingUnit",width:"95",label:"出货单价",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.shippingUnit))])]}}])}),o("el-table-column",{attrs:{prop:"deliveryAmount",width:"95",label:"出库金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(t.row.deliveryAmount))])]}}])})],1)]],2)])],1)])},v=[],w={name:"ScmOtherOutboundInfo",data:function(){return{viewTitle:"",dialogStatus:"",index:0,formobj:{sid:"",userSid:window.sessionStorage.getItem("userSid"),scmOtherOutboundDto:{orgSid:window.sessionStorage.getItem("orgSid"),orgName:window.sessionStorage.getItem("departmentName"),makeListDate:"",billNo:"",billState:"",billType:"",businessType:"",cargoOwner:"",cargoOwnerSid:"",cargoOwnerType:"",claimOrgName:"",claimOrgSid:"",customerName:"",customerSid:"",date:"",invenGroupName:"",invenGroupSid:"",inventoryDirection:"",pickingDepName:"",pickingDepSid:"",pickingPerson:"",pickingPersonSid:"",stockOrgName:"",stockOrgSid:"",transferInDepartment:"",warehouseKeeperName:"",warehouseKeeperSid:"",remarks:""},scmOtherOutboundDetailDtoList:[{batchNum:"",billSid:"",cargoOwner:"",company:"",deliveryAmount:"",deliveryWarehouse:"",logisticsCustomer:"",mname:"",mnum:"",model:"",position:"",realHairNum:"",shippingUnit:"",year:""}]}}},methods:{handleReturn:function(){this.formobj.scmOtherOutboundDto={},this.formobj.scmOtherOutboundDetailDtoList=[{}],this.$emit("doback")},showInfo:function(e,t){var o=this;this.$nextTick((function(){o.$refs["form_obj"].clearValidate()})),this.dialogStatus="edit",this.viewTitle="其他出库单详情";var a=this;l.fetchByBillNo(e).then((function(e){console.log("编辑回显",e);var t=e.data;a.formobj.scmOtherOutboundDto.makeListDate=t.date,a.formobj.scmOtherOutboundDto.billNo=t.billNo,a.formobj.scmOtherOutboundDto.makeListName=window.sessionStorage.getItem("name"),a.formobj.scmOtherOutboundDto.billType=t.billType,a.formobj.scmOtherOutboundDto.customerSid=t.customerSid,a.formobj.scmOtherOutboundDto.customerName=t.customerName,a.formobj.scmOtherOutboundDto.pickingDepSid=t.pickingDepSid,a.formobj.scmOtherOutboundDto.pickingDepName=t.pickingDepName,a.formobj.scmOtherOutboundDto.businessType=t.businessType,a.formobj.scmOtherOutboundDto.cargoOwnerType=t.cargoOwnerType,a.formobj.scmOtherOutboundDto.stockOrgSid=t.stockOrgSid,a.formobj.scmOtherOutboundDto.stockOrgName=t.stockOrgName,a.formobj.scmOtherOutboundDto.pickingPersonSid=t.pickingPersonSid,a.formobj.scmOtherOutboundDto.pickingPerson=t.pickingPerson,a.formobj.scmOtherOutboundDto.cargoOwnerSid=t.cargoOwnerSid,a.formobj.scmOtherOutboundDto.cargoOwner=t.cargoOwner,a.formobj.scmOtherOutboundDto.claimOrgSid=t.claimOrgSid,a.formobj.scmOtherOutboundDto.claimOrgName=t.claimOrgName,a.formobj.scmOtherOutboundDto.warehouseKeeperSid=t.warehouseKeeperSid,a.formobj.scmOtherOutboundDto.warehouseKeeperName=t.warehouseKeeperName,a.formobj.scmOtherOutboundDto.billState=t.billState,a.formobj.scmOtherOutboundDto.inventoryDirection=t.inventoryDirection,a.formobj.scmOtherOutboundDto.invenGroupSid=t.invenGroupSid,a.formobj.scmOtherOutboundDto.invenGroupName=t.invenGroupName,a.formobj.scmOtherOutboundDto.date=t.date,a.formobj.scmOtherOutboundDto.transferInDepartment=t.transferInDepartment,a.formobj.scmOtherOutboundDto.remarks=t.remarks,a.formobj.scmOtherOutboundDetailDtoList=t.scmOtherOutboundDetailVoList})).catch((function(e){o.formobj=t}))},getSummaries:function(e){var t=e.columns,o=e.data,a=[];return t.forEach((function(e,t){if(0!==t){var r=o.map((function(t){return Number(t[e.property])}));if(e.property)switch(a[t]=r.reduce((function(e,t){var o=Number(t);return isNaN(o)?e:e+t}),0),e.property){case"realHairNum":a[t]+=" ";break;case"shippingUnit":a[t]+=" 元";break;case"deliveryAmount":a[t]+=" 元";break;default:a[t]="";break}}else a[t]="合计"})),a}}},D=w,k=(o("9d14"),Object(f["a"])(D,y,v,!1,null,"2e4fb84a",null)),S=k.exports,_=o("f07c"),j={name:"ScmOtherOutboundIndex",components:{ButtonBar:c["a"],Pagination:u["a"],pageye:m["a"],divAdd:O,divInfo:S},data:function(){return{btndisabled:!1,viewState:1,isSearchShow:!1,tableLoading:!1,billType_list:[],customer_list:[],pickingDep_list:[],dataArr:[],refreshItem:0,options:[],props:{value:"sid",label:"name",children:"children",multiple:!0},dataList:[],sids:[],queryParams:{current:1,size:10,total:0,params:{billNo:"",billType:"",customerName:"",pickingDepName:"",businessType:"",cargoOwnerType:"",stockOrgSid:"",stockOrgName:"",pickingPersonSid:"",pickingPerson:"",cargoOwnerSid:"",cargoOwner:"",claimOrgSid:"",claimOrgName:"",warehouseKeeperSid:"",warehouseKeeperName:"",billState:"",inventoryDirection:"",invenGroupSid:"",invenGroupName:"",date:"",transferInDepartment:""}},row:{}}},created:function(){this.loadList(),this.getBillType(),this.getCustomer(),this.getBuMen()},methods:{resetState:function(){this.viewState=1},btnHandle:function(e){switch(console.log("XXXXXXXXXXXXXXX "+e),e){case"toAdd":this.toAdd();break;case"toEdit":this.toEdit();break;case"doSubmit":this.doSubmit();break;case"doDel":this.doDel();break;case"doImport":this.doImport();break;case"doExport":this.doExport();break;default:break}},toAdd:function(e){this.viewState=2,this.$refs["divadd"].showAdd()},toEdit:function(){if(0!==this.sids.length)if(this.sids.length>1)this.$message({showClose:!0,type:"error",message:"只能选择一条记录进行编辑"});else{this.viewState=3;var e=this.sids[0],t=this.row;this.$refs["divadd"].showEdit(e,t)}else this.$message({showClose:!0,type:"error",message:"请选择一条记录进行编辑"})},doSubmit:function(e){var t=this;this.btndisabled=!0,l.doSubmit(this.queryParams.params,this.sids).then((function(e){console.log(e),t.btndisabled=!1})).catch((function(){t.btndisabled=!1}))},doDel:function(){var e=this;if(0!==this.sids.length){var t="请确认是否删除所选 "+this.sids.length+" 条记录?";this.$confirm(t,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),o=e;l.delBySids(e.sids).then((function(e){t.close(),o.$message({type:"success",message:e.msg,showClose:!0}),o.loadList()})).catch((function(e){t.close()}))})).catch((function(){}))}else this.$message({showClose:!0,type:"error",message:"请选择至少一条记录进行删除操作"})},getBillType:function(){var e=this;l.pullDown({type:"billsType"}).then((function(t){"200"===t.code&&(e.billType_list=t.data,console.log("下拉框请求111",t.data))}))},changeBillType:function(e){console.log("触发下拉框按钮");var t={};this.billType_list.forEach((function(o){o.dictKey==e&&(t={type:o.dictType,name:o.dictValue,key:o.dictKey,sid:o.sid})})),this.queryParams.params.billType=t.name,console.log("name",this.queryParams.params.billType)},getCustomer:function(){var e=this;l.kehu({}).then((function(t){"200"===t.code&&(e.customer_list=t.data,console.log("下拉框请求11133",t.data))}))},changeCustomer:function(e){console.log("触发下拉框按钮");var t={};this.customer_list.forEach((function(o){o.sid==e&&(t={name:o.customerName,sid:o.sid})})),this.queryParams.params.customerName=t.name,console.log("name",this.queryParams.params.customerName)},getBuMen:function(){var e=this;l.salesDepName().then((function(t){"200"===t.code&&(e.options=t.data,console.log("请求到的级联列表",e.options),e.BuMen0(e.options))}))},BuMen0:function(e){var t=this;e.forEach((function(e){if(0==e.children.length)return delete e.children,void t.dataArr.push(e);t.BuMen0(e.children)}))},pickingDepChange:function(e){var t=this;console.log("选中结果:"+JSON.stringify(e));var o="",a="";e.length>0&&e.forEach((function(e){var r=e[e.length-1];t.select_temp_Name="",t.select_temp_Sid="",t.findOrgId(r,t.options),o=o+t.select_temp_Name+",",a=a+t.select_temp_Sid+","})),""!==o&&(o=o.substring(0,o.length-1)),""!==a&&(a=a.substring(0,a.length-1)),this.queryParams.params.pickingDepName=o,console.log("选中名称:"+this.queryParams.params.pickingDepName,a)},findOrgId:function(e,t){for(var o=0;o<t.length;o++){if(e==t[o].sid)return this.select_temp_Name=t[o].name,this.select_temp_Sid=t[o].sid,!0;if(void 0!==t[o].children&&this.findOrgId(e,t[o].children))return!0}},doImport:function(){l.importExcel(this.queryParams.params).then((function(e){console.log(e)})).catch((function(){}))},doExport:function(e){l.exportExcel(this.queryParams.params,this.sids).then((function(e){var t=e.data,o=t.filename,a=document.createElement("a");a.download=o,a.style.display="none",a.href=t.downurl,document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)})).catch((function(){}))},dosearch:function(){this.queryParams.current=1,this.loadList()},resetQuery:function(){this.queryParams.params={},this.pickingDep_list=[],this.dosearch(),this.queryParams.params.sid="",this.queryParams.params.name=""},loadList:function(){var e=this;this.tableLoading=!0,l.listPage(this.queryParams).then((function(t){console.log("列表查询",t),e.tableLoading=!1;var o=t.data;e.queryParams.total=o.total,e.dataList=o.records})).catch((function(){e.tableLoading=!1}))},handleSelectionChange:function(e){var t=this;console.log("aaa",e);var o=[];e.forEach((function(e){o.push(e.sid),Object(_["c"])(t.sids)})),this.sids=o,this.row=e,console.log("获取sids数组",this.sids)},indexMethod:function(e){var t=(this.queryParams.current-1)*this.queryParams.size,o=e+1+t;return o},toInfo:function(e){var t=e.billNo;console.log("打开详情",t),this.$refs["divinfo"].showInfo(t,e),this.viewState=4}}},N=j,x=(o("efb7"),Object(f["a"])(N,r,n,!1,null,"065612e6",null));t["default"]=x.exports},5902:function(e,t,o){"use strict";o("ae30")},6511:function(e,t,o){},7042:function(e,t,o){"use strict";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"pagination-container e-pagination",class:{hidden:e.hidden}},[o("el-pagination",e._b({attrs:{background:e.background,"current-page":e.current,"page-size":e.Size,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.current=t},"update:current-page":function(t){e.current=t},"update:pageSize":function(t){e.Size=t},"update:page-size":function(t){e.Size=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[],n={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,15,20,30,50]}},layout:{type:String,default:"sizes"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{current:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},Size:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{pageNum:this.curren,pageSize:e})},handleCurrentChange:function(e){this.$emit("pagination",{pageNum:e,pageSize:this.Size})}}},s=n,i=(o("be5a"),o("2877")),l=Object(i["a"])(s,a,r,!1,null,null,null);t["a"]=l.exports},"77b3":function(e,t,o){"use strict";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"tab-header webtop"},[o("div",[e._v(e._s(e.viewTitle))]),o("div",e._l(e.btnList,(function(t){return o("el-button",{key:t.btnKey,attrs:{type:t.type,size:t.size,icon:t.icon,disabled:e.btndisabled},on:{click:function(o){return e.btnHandle(t.btnKey)}}},[e._v(" "+e._s(t.btnLabel)+" ")])})),1)])},r=[],n=(o("b775"),{name:"ButtonBar",props:{viewTitle:String,btndisabled:{type:Boolean,default:!1}},data:function(){return{currentPath:this.$route.path,userSid:this.$store.getters.userInfo?this.$store.getters.userInfo.userSid:"",btnList:[{type:"primary",size:"small",icon:"",btnKey:"toAdd",btnLabel:"新增"},{type:"primary",size:"small",icon:"el-icon-edit",btnKey:"toEdit",btnLabel:"编辑"},{type:"primary",size:"small",icon:"",btnKey:"doSubmit",btnLabel:"提交"},{type:"danger",size:"small",icon:"",btnKey:"doDel",btnLabel:"删除"},{type:"success",size:"small",icon:"",btnKey:"doImport",btnLabel:"导入"},{type:"success",size:"small",icon:"",btnKey:"doExport",btnLabel:"导出"}]}},created:function(){this.initPermission()},methods:{initPermission:function(){console.log("*******************当前路径 "+this.currentPath),console.log("*******************当前用户 "+this.userSid);this.currentPath,this.userSid},btnHandle:function(e){this.$emit("btnhandle",e)}}}),s=n,i=o("2877"),l=Object(i["a"])(s,a,r,!1,null,null,null);t["a"]=l.exports},"9d14":function(e,t,o){"use strict";o("6511")},ae30:function(e,t,o){},be5a:function(e,t,o){"use strict";o("f56b")},efb7:function(e,t,o){"use strict";o("2621a")},f07c:function(e,t,o){"use strict";o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return s}));var a="wj_user";function r(e){return localStorage.setItem(a,JSON.stringify(e))}function n(){return JSON.parse(localStorage.getItem(a))}function s(e){return localStorage.setItem(a,JSON.stringify(e))}},f56b:function(e,t,o){}}]);