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

1 line
14 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([19,39],{jphu: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("qyvl").default},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/work/mttaskinfodetlog/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/mttaskinfodetlog/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)})})}}},l={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("查询")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addOrUpdateHandle()}}},[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:"userName","header-align":"center",align:"center",label:"操作员名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"warehousRankName","header-align":"center",align:"center",label:"库位名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"taskType","header-align":"center",align:"center",label:"任务类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.taskType?"出库":1===t.row.taskType?"入库":"移库"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"startPosition","header-align":"center",align:"center",label:"起点"}}),e._v(" "),a("el-table-column",{attrs:{prop:"targetPosition","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?"数据接收中":"数据接收完成"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"taskDetCode","header-align":"center",align:"center",label:"任务编码"}}),e._v(" "),a("el-table-column",{attrs:{prop:"specModel","header-align":"center",align:"center",label:"型号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num","header-align":"center",align:"center",label:"数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"unit","header-align":"center",align:"center",label:"单位"}}),e._v(" "),a("el-table-column",{attrs:{prop:"isHeight","header-align":"center",align:"center",label:"是否超高"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.isHeight?"不超高":"超高"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"isWeight","header-align":"center",align:"center",label:"是否超重"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.isWeight?"不超重":"超重"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"dateNum","header-align":"center",align:"center",label:"批次号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"remarks","header-align":"center",align:"center",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.addOrUpdateHandle(t.row.id)}}},[e._v("修改")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.deleteHandle(t.row.id)}}},[e._v("删除")])]}}])})],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:[]},o=a("VU/8")(r,l,!1,null,null,null);t.default=o.exports},qyvl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,userId:"",userName:"",warehousRankId:"",warehousRankName:"",taskId:"",taskType:"",startPosition:"",targetPosition:"",status:"",taskDetCode:"",specModel:"",num:"",unit:"",isHeight:"",isWeight:"",dateNum:"",remarks:""},dataRule:{userId:[{required:!0,message:"操作员账号id关联表sys_user不能为空",trigger:"blur"}],userName:[{required:!0,message:"操作员名称,如果是系统对接数据,名称显示为空不能为空",trigger:"blur"}],warehousRankId:[{required:!0,message:"库位id 关联库位表mt_warehous_rank不能为空",trigger:"blur"}],warehousRankName:[{required:!0,message:"库位名称不能为空",trigger:"blur"}],taskId:[{required:!0,message:"任务id关联任务表mt_task_info不能为空",trigger:"blur"}],taskType:[{required:!0,message:"任务类型0 出库1入库2 移库不能为空",trigger:"blur"}],startPosition:[{required:!0,message:"起点不能为空",trigger:"blur"}],targetPosition:[{required:!0,message:"终点不能为空",trigger:"blur"}],status:[{required:!0,message:"状态0接收数据1数据接收中2数据接收完成不能为空",trigger:"blur"}],taskDetCode:[{required:!0,message:"任务编码E代表入库O代表出库出入口加时间到秒EA120190912331724不能为空",trigger:"blur"}],specModel:[{required:!0,message:"型号不能为空",trigger:"blur"}],num:[{required:!0,message:"数量不能为空",trigger:"blur"}],unit:[{required:!0,message:"单位不能为空",trigger:"blur"}],isHeight:[{required:!0,message:"是否超高0不超高1超高不能为空",trigger:"blur"}],isWeight:[{required:!0,message:"是否超重0不超重1超重不能为空",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/mttaskinfodetlog/info/"+t.dataForm.id),method:"get",params:t.$http.adornParams()}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.mtTaskInfoDetLog)})})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("/work/mttaskinfodetlog/"+(e.dataForm.id?"update":"save")),method:"post",data:e.$http.adornData({id:e.dataForm.id||void 0,userId:e.dataForm.userId,userName:e.dataForm.userName,warehousRankId:e.dataForm.warehousRankId,warehousRankName:e.dataForm.warehousRankName,taskId:e.dataForm.taskId,taskType:e.dataForm.taskType,startPosition:e.dataForm.startPosition,targetPosition:e.dataForm.targetPosition,status:e.dataForm.status,taskDetCode:e.dataForm.taskDetCode,specModel:e.dataForm.specModel,num:e.dataForm.num,unit:e.dataForm.unit,isHeight:e.dataForm.isHeight,isWeight:e.dataForm.isWeight,dateNum:e.dataForm.dateNum,remarks:e.dataForm.remarks})}).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)})})}}},l={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:"操作员账号id",prop:"userId"}},[a("el-input",{attrs:{placeholder:"操作员账号id关联表sys_user",clearable:""},model:{value:e.dataForm.userId,callback:function(t){e.$set(e.dataForm,"userId",t)},expression:"dataForm.userId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"操作员名称",prop:"userName"}},[a("el-input",{attrs:{placeholder:"操作员名称,如果是系统对接数据,名称显示为空",clearable:""},model:{value:e.dataForm.userName,callback:function(t){e.$set(e.dataForm,"userName",t)},expression:"dataForm.userName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"库位id",prop:"warehousRankId"}},[a("el-input",{attrs:{placeholder:"库位id 关联库位表mt_warehous_rank",clearable:""},model:{value:e.dataForm.warehousRankId,callback:function(t){e.$set(e.dataForm,"warehousRankId",t)},expression:"dataForm.warehousRankId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"库位名称",prop:"warehousRankName"}},[a("el-input",{attrs:{placeholder:"库位名称",clearable:""},model:{value:e.dataForm.warehousRankName,callback:function(t){e.$set(e.dataForm,"warehousRankName",t)},expression:"dataForm.warehousRankName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务id",prop:"taskId"}},[a("el-input",{attrs:{placeholder:"任务id关联任务表mt_task_info",clearable:""},model:{value:e.dataForm.taskId,callback:function(t){e.$set(e.dataForm,"taskId",t)},expression:"dataForm.taskId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务类型",prop:"taskType"}},[a("el-input",{attrs:{placeholder:"任务类型0 出库1入库2 移库",clearable:""},model:{value:e.dataForm.taskType,callback:function(t){e.$set(e.dataForm,"taskType",t)},expression:"dataForm.taskType"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"起点",prop:"startPosition"}},[a("el-input",{attrs:{placeholder:"起点",clearable:""},model:{value:e.dataForm.startPosition,callback:function(t){e.$set(e.dataForm,"startPosition",t)},expression:"dataForm.startPosition"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"终点",prop:"targetPosition"}},[a("el-input",{attrs:{placeholder:"终点",clearable:""},model:{value:e.dataForm.targetPosition,callback:function(t){e.$set(e.dataForm,"targetPosition",t)},expression:"dataForm.targetPosition"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-input",{attrs:{placeholder:"状态\t\t0接收数据1数据接收中2数据接收完成",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:"taskDetCode"}},[a("el-input",{attrs:{placeholder:"任务编码E代表入库O代表出库出入口加时间到秒EA120190912331724",clearable:""},model:{value:e.dataForm.taskDetCode,callback:function(t){e.$set(e.dataForm,"taskDetCode",t)},expression:"dataForm.taskDetCode"}})],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:"num"}},[a("el-input",{attrs:{placeholder:"数量",clearable:""},model:{value:e.dataForm.num,callback:function(t){e.$set(e.dataForm,"num",t)},expression:"dataForm.num"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"单位",prop:"unit"}},[a("el-input",{attrs:{placeholder:"单位",clearable:""},model:{value:e.dataForm.unit,callback:function(t){e.$set(e.dataForm,"unit",t)},expression:"dataForm.unit"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否超高",prop:"isHeight"}},[a("el-input",{attrs:{placeholder:"是否超高0不超高1超高",clearable:""},model:{value:e.dataForm.isHeight,callback:function(t){e.$set(e.dataForm,"isHeight",t)},expression:"dataForm.isHeight"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否超重",prop:"isWeight"}},[a("el-input",{attrs:{placeholder:"是否超重0不超重1超重",clearable:""},model:{value:e.dataForm.isWeight,callback:function(t){e.$set(e.dataForm,"isWeight",t)},expression:"dataForm.isWeight"}})],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:"remarks"}},[a("el-input",{attrs:{placeholder:"备注",clearable:""},model:{value:e.dataForm.remarks,callback:function(t){e.$set(e.dataForm,"remarks",t)},expression:"dataForm.remarks"}})],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:[]},o=a("VU/8")(r,l,!1,null,null,null);t.default=o.exports}});