qy-renren-qt/dist/2209301437/static/js/15.js
2022-09-30 14:43:03 +08:00

1 line
11 KiB
JavaScript
Raw Permalink 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([15,35],{"26Yw":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={data:function(){return{dataForm:{key:""},dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,addOrUpdateVisible:!1}},components:{AddOrUpdate:a("p0Q0").default},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/work/mtwarehouspositionrelatlog/list"),method:"get",params:this.$http.adornParams({page:this.pageIndex,limit:this.pageSize,key:this.dataForm.key})}).then(function(t){var a=t.data;a&&0===a.code?(e.dataList=a.page.list,e.totalPage=a.page.totalCount):(e.dataList=[],e.totalPage=0),e.dataListLoading=!1})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()},addOrUpdateHandle:function(e){var t=this;this.addOrUpdateVisible=!0,this.$nextTick(function(){t.$refs.addOrUpdate.init(e)})},deleteHandle:function(e){var t=this;this.$confirm("确定对[id="+e+"]进行删除操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http({url:t.$http.adornUrl("/work/mtwarehouspositionrelatlog/delete"),method:"post",data:t.$http.adornData(e,!1)}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}}):t.$message.error(a.msg)})})}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-config"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"参数名",clearable:""},model:{value:e.dataForm.key,callback:function(t){e.$set(e.dataForm,"key",t)},expression:"dataForm.key"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.getDataList()}}},[e._v("查询")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,stripe:!0,"header-cell-style":{background:"#eef1f6",color:"#606266",height:"56px"},border:""}},[a("el-table-column",{attrs:{type:"index",label:"序号","header-align":"center",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"createTime","header-align":"center",align:"center",label:"添加时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"updateTime","header-align":"center",align:"center",label:"修改时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"库位状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.status?"空库位":1===t.row.status?"空货架":2===t.row.status?"货物正常":3===t.row.status?"货物预入库":4===t.row.status?"货物预出库":"不可用"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"isEmpty","header-align":"center",align:"center",label:"是否为空"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.isEmpty?"空":"有货"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"specModel","header-align":"center",align:"center",label:"详细规格"}}),e._v(" "),a("el-table-column",{attrs:{prop:"productCode","header-align":"center",align:"center",label:"产品编码"}}),e._v(" "),a("el-table-column",{attrs:{prop:"productName","header-align":"center",align:"center",label:"板材名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"quantity","header-align":"center",align:"center",label:"货物数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"warehousPositionName","header-align":"center",align:"center",label:"库位名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"dateNum","header-align":"center",align:"center",label:"批次号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"remark","header-align":"center",align:"center",label:"备注"}})],1),e._v(" "),a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}),e._v(" "),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e()],1)},staticRenderFns:[]},l=a("VU/8")(r,o,!1,null,null,null);t.default=l.exports},p0Q0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,status:"",isEmpty:"",productId:"",specModel:"",productCode:"",productName:"",quantity:"",warehousPositionId:"",warehousPositionName:"",dateNum:"",remark:""},dataRule:{status:[{required:!0,message:"表示库位状态 -1:不可用0:空库位, 1:空货架, 2:货物正常, 3:货物预入库, 4:货物预出库不能为空",trigger:"blur"}],isEmpty:[{required:!0,message:"是否为空0表示空1表示有货不能为空",trigger:"blur"}],productId:[{required:!0,message:"产品id关联产品表mt_product不能为空",trigger:"blur"}],specModel:[{required:!0,message:"详细规格不能为空",trigger:"blur"}],productCode:[{required:!0,message:"产品编码不能为空",trigger:"blur"}],productName:[{required:!0,message:"板材名称不能为空",trigger:"blur"}],quantity:[{required:!0,message:"货物数量, 货物总的数量不能为空",trigger:"blur"}],warehousPositionId:[{required:!0,message:"库位id关联表mt_warehous_rank不能为空",trigger:"blur"}],warehousPositionName:[{required:!0,message:"库位名称不能为空",trigger:"blur"}],dateNum:[{required:!0,message:"批次号不能为空",trigger:"blur"}]}}},methods:{init:function(e){var t=this;this.dataForm.id=e||"",this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.dataForm.id&&t.$http({url:t.$http.adornUrl("/work/mtwarehouspositionrelatlog/info/"+t.dataForm.id),method:"get",params:t.$http.adornParams()}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.mtWarehousPositionRelatLog)})})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("/work/mtwarehouspositionrelatlog/"+(e.dataForm.id?"update":"save")),method:"post",data:e.$http.adornData({id:e.dataForm.id||void 0,status:e.dataForm.status,isEmpty:e.dataForm.isEmpty,productId:e.dataForm.productId,specModel:e.dataForm.specModel,productCode:e.dataForm.productCode,productName:e.dataForm.productName,quantity:e.dataForm.quantity,warehousPositionId:e.dataForm.warehousPositionId,warehousPositionName:e.dataForm.warehousPositionName,dateNum:e.dataForm.dateNum,remark:e.dataForm.remark})}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}}):e.$message.error(a.msg)})})}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"库位状态",prop:"status"}},[a("el-input",{attrs:{placeholder:"表示库位状态 -1:不可用0:空库位, 1:空货架, 2:货物正常, 3:货物预入库, 4:货物预出库",clearable:""},model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否为空",prop:"isEmpty"}},[a("el-input",{attrs:{placeholder:"是否为空0表示空1表示有货",clearable:""},model:{value:e.dataForm.isEmpty,callback:function(t){e.$set(e.dataForm,"isEmpty",t)},expression:"dataForm.isEmpty"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"产品id",prop:"productId"}},[a("el-input",{attrs:{placeholder:"产品id关联产品表mt_product",clearable:""},model:{value:e.dataForm.productId,callback:function(t){e.$set(e.dataForm,"productId",t)},expression:"dataForm.productId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"详细规格",prop:"specModel"}},[a("el-input",{attrs:{placeholder:"详细规格",clearable:""},model:{value:e.dataForm.specModel,callback:function(t){e.$set(e.dataForm,"specModel",t)},expression:"dataForm.specModel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"产品编码",prop:"productCode"}},[a("el-input",{attrs:{placeholder:"产品编码",clearable:""},model:{value:e.dataForm.productCode,callback:function(t){e.$set(e.dataForm,"productCode",t)},expression:"dataForm.productCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"板材名称",prop:"productName"}},[a("el-input",{attrs:{placeholder:"板材名称",clearable:""},model:{value:e.dataForm.productName,callback:function(t){e.$set(e.dataForm,"productName",t)},expression:"dataForm.productName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"货物数量",prop:"quantity"}},[a("el-input",{attrs:{placeholder:"货物数量, 货物总的数量",clearable:""},model:{value:e.dataForm.quantity,callback:function(t){e.$set(e.dataForm,"quantity",t)},expression:"dataForm.quantity"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"库位id",prop:"warehousPositionId"}},[a("el-input",{attrs:{placeholder:"库位id关联表mt_warehous_rank",clearable:""},model:{value:e.dataForm.warehousPositionId,callback:function(t){e.$set(e.dataForm,"warehousPositionId",t)},expression:"dataForm.warehousPositionId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"库位名称",prop:"warehousPositionName"}},[a("el-input",{attrs:{placeholder:"库位名称",clearable:""},model:{value:e.dataForm.warehousPositionName,callback:function(t){e.$set(e.dataForm,"warehousPositionName",t)},expression:"dataForm.warehousPositionName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"批次号",prop:"dateNum"}},[a("el-input",{attrs:{placeholder:"批次号",clearable:""},model:{value:e.dataForm.dateNum,callback:function(t){e.$set(e.dataForm,"dateNum",t)},expression:"dataForm.dateNum"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{placeholder:"备注",clearable:""},model:{value:e.dataForm.remark,callback:function(t){e.$set(e.dataForm,"remark",t)},expression:"dataForm.remark"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},l=a("VU/8")(r,o,!1,null,null,null);t.default=l.exports}});