1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
|
webpackJsonp([51],{"5VJO":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Hsi+"),o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box plan-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),179!=e.auditStatus?a("el-button",{directives:[{name:"has",rawName:"v-has",value:"warehouse:otherStock:save",expression:"'warehouse:otherStock:save'"}],attrs:{type:"primary",disabled:e.isDisabled},on:{click:function(t){return e.save("form")}}},[e._v("保存\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.clear}},[e._v("新增")]),e._v(" "),e.btnDelDisabled?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.print()}}},[e._v("打印")]):e._e(),e._v(" "),e.btnDelDisabled&&178==e.auditStatus?a("el-button",{directives:[{name:"has",rawName:"v-has",value:"warehouse:otherStock:audit",expression:"'warehouse:otherStock:audit'"}],attrs:{type:"primary"},on:{click:e.audit}},[e._v("审核\n ")]):e._e(),e._v(" "),e.btnDelDisabled&&179==e.auditStatus?a("el-button",{directives:[{name:"has",rawName:"v-has",value:"warehouse:otherStock:disAudit",expression:"'warehouse:otherStock:disAudit'"}],attrs:{type:"primary"},on:{click:e.disAudit}},[e._v("反审核\n ")]):e._e()],1),e._v(" "),a("div",{staticClass:"sys-form"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{"label-width":"120px","inline-message":!0,model:e.formData,rules:e.ruleForm}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"供应商"}},[a("btn-input",{attrs:{valueText:e.formData.sourceCompanyName,valueId:e.formData.sourceCompany,chooseVisible:e.chooseSupplierVisible,showBtn:179!=e.auditStatus},on:{"update:valueText":function(t){return e.$set(e.formData,"sourceCompanyName",t)},"update:value-text":function(t){return e.$set(e.formData,"sourceCompanyName",t)},"update:valueId":function(t){return e.$set(e.formData,"sourceCompany",t)},"update:value-id":function(t){return e.$set(e.formData,"sourceCompany",t)},"update:chooseVisible":function(t){e.chooseSupplierVisible=t},"update:choose-visible":function(t){e.chooseSupplierVisible=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"入库时间",prop:"inTime"}},[a("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","range-separator":"—",placeholder:"选择日期","value-format":"yyyy-MM-dd",clearable:"",disabled:179==e.auditStatus},model:{value:e.formData.inTime,callback:function(t){e.$set(e.formData,"inTime",t)},expression:"formData.inTime"}})],1)],1)]),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("物料列表")]),e._v(" "),a("el-form",{ref:"formChild",attrs:{rules:e.model.rules,model:e.model}},[a("el-form-item",{staticClass:"childlist",attrs:{prop:"childList"}},[a("div",{staticClass:"sys-operate",staticStyle:{"margin-bottom":"10px"}},[179!=e.auditStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.chooseMaterielVisible=!0}}},[e._v("新增")]):e._e(),e._v(" "),179!=e.auditStatus?a("el-button",{attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.removePart()}}},[e._v("删除\n ")]):e._e()],1),e._v(" "),a("el-table",{attrs:{data:e.model.childList,"show-summary":"","summary-method":e.getSummaries,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""},on:{"selection-change":e.handlePartChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"serialno",label:"物料代码",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"materielName",label:"物料名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"specification",align:"center","show-overflow-tooltip":"",label:"规格型号"}}
|