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

1 line
12 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([20,40],{"h/Q2":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={data:function(){return{dataForm:{key:""},taskId:"",dataList:[],endPosition:[{value:290,label:"A库出口"},{value:292,label:"B库出口"}],dataListLoading:!1,addOrUpdateVisible:!1}},components:{AddOrUpdate:a("twIQ").default},activated:function(){this.taskId=this.$route.params.id,this.getDataList()},methods:{getDataList:function(){var t=this;this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/work/mttaskinfodet/list"),method:"get",params:this.$http.adornParams({task_id:this.taskId,page:1,limit:500,key:this.dataForm.key})}).then(function(e){var a=e.data;console.log(a),a&&0===a.code?t.dataList=a.list:t.dataList=[],t.dataListLoading=!1})},addOrUpdateHandle:function(t){var e=this;this.addOrUpdateVisible=!0,this.$nextTick(function(){e.$refs.addOrUpdate.init(t)})},deleteHandle:function(t){var e=this;this.$confirm("确定对[id="+t+"]进行删除操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$http({url:e.$http.adornUrl("/work/mttaskinfodet/delete"),method:"post",data:e.$http.adornData(t,!1)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.getDataList()}}):e.$message.error(a.msg)})})},goback:function(){this.$router.go(-1)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mod-config"},[a("el-form",{attrs:{inline:!0,model:t.dataForm},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"参数名",clearable:""},model:{value:t.dataForm.key,callback:function(e){t.$set(t.dataForm,"key",e)},expression:"dataForm.key"}})],1),t._v(" "),a("el-form-item",[a("el-button",{on:{click:function(e){t.getDataList()}}},[t._v("查询")]),t._v(" "),a("el-button",{attrs:{type:"success"},on:{click:function(e){t.goback()}}},[t._v("返回")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:t.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"}}),t._v(" "),a("el-table-column",{attrs:{prop:"createTime","header-align":"center",align:"center",label:"添加时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"warehousRankName","header-align":"center",align:"center",label:"库位名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"taskType","header-align":"center",align:"center",label:"任务类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.taskType?"出库":1===e.row.taskType?"入库":"移库"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"warehousRankName","header-align":"center",align:"center",label:"起点"}}),t._v(" "),a("el-table-column",{attrs:{prop:"targetPosition","header-align":"center",align:"center",label:"终点"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.endPosition.find(function(t){return t.value===e.row.targetPosition}).label))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.status?"接收数据":1===e.row.status?"数据接收中":"数据接收完成"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskDetCode","header-align":"center",align:"center",label:"任务编码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"specModel","header-align":"center",align:"center",label:"型号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"num","header-align":"center",align:"center",label:"数量"}}),t._v(" "),a("el-table-column",{attrs:{prop:"remarks","header-align":"center",align:"center",label:"备注"}})],1),t._v(" "),t.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:t.getDataList}}):t._e()],1)},staticRenderFns:[]},s=a("VU/8")(r,o,!1,null,null,null);e.default=s.exports},twIQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,warehousRankId:"",warehousRankName:"",taskId:"",taskType:"",startPosition:"",targetPosition:"",status:"",taskDetCode:"",specModel:"",num:"",unit:"",isHeight:"",isWeight:"",dateNum:"",remarks:""},dataRule:{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(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.$http({url:e.$http.adornUrl("/work/mttaskinfodet/info/"+e.dataForm.id),method:"get",params:e.$http.adornParams()}).then(function(t){var a=t.data;a&&0===a.code&&(e.dataForm=a.mtTaskInfoDet)})})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){e&&t.$http({url:t.$http.adornUrl("/work/mttaskinfodet/"+(t.dataForm.id?"update":"save")),method:"post",data:t.$http.adornData({id:t.dataForm.id||void 0,warehousRankId:t.dataForm.warehousRankId,warehousRankName:t.dataForm.warehousRankName,taskId:t.dataForm.taskId,taskType:t.dataForm.taskType,startPosition:t.dataForm.startPosition,targetPosition:t.dataForm.targetPosition,status:t.dataForm.status,taskDetCode:t.dataForm.taskDetCode,specModel:t.dataForm.specModel,num:t.dataForm.num,unit:t.dataForm.unit,isHeight:t.dataForm.isHeight,isWeight:t.dataForm.isWeight,dateNum:t.dataForm.dateNum,remarks:t.dataForm.remarks})}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(a.msg)})})}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"库位id",prop:"warehousRankId"}},[a("el-input",{attrs:{placeholder:"库位id 关联库位表mt_warehous_rank",clearable:""},model:{value:t.dataForm.warehousRankId,callback:function(e){t.$set(t.dataForm,"warehousRankId",e)},expression:"dataForm.warehousRankId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"库位名称",prop:"warehousRankName"}},[a("el-input",{attrs:{placeholder:"库位名称",clearable:""},model:{value:t.dataForm.warehousRankName,callback:function(e){t.$set(t.dataForm,"warehousRankName",e)},expression:"dataForm.warehousRankName"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"任务id",prop:"taskId"}},[a("el-input",{attrs:{placeholder:"任务id关联任务表mt_task_info",clearable:""},model:{value:t.dataForm.taskId,callback:function(e){t.$set(t.dataForm,"taskId",e)},expression:"dataForm.taskId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"任务类型",prop:"taskType"}},[a("el-input",{attrs:{placeholder:"任务类型0 出库1入库2 移库",clearable:""},model:{value:t.dataForm.taskType,callback:function(e){t.$set(t.dataForm,"taskType",e)},expression:"dataForm.taskType"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"起点",prop:"startPosition"}},[a("el-input",{attrs:{placeholder:"起点",clearable:""},model:{value:t.dataForm.startPosition,callback:function(e){t.$set(t.dataForm,"startPosition",e)},expression:"dataForm.startPosition"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"终点",prop:"targetPosition"}},[a("el-input",{attrs:{placeholder:"终点",clearable:""},model:{value:t.dataForm.targetPosition,callback:function(e){t.$set(t.dataForm,"targetPosition",e)},expression:"dataForm.targetPosition"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-input",{attrs:{placeholder:"状态\t\t0接收数据1数据接收中2数据接收完成",clearable:""},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"任务编码",prop:"taskDetCode"}},[a("el-input",{attrs:{placeholder:"任务编码E代表入库O代表出库出入口加时间到秒EA120190912331724",clearable:""},model:{value:t.dataForm.taskDetCode,callback:function(e){t.$set(t.dataForm,"taskDetCode",e)},expression:"dataForm.taskDetCode"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"型号",prop:"specModel"}},[a("el-input",{attrs:{placeholder:"型号",clearable:""},model:{value:t.dataForm.specModel,callback:function(e){t.$set(t.dataForm,"specModel",e)},expression:"dataForm.specModel"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数量",prop:"num"}},[a("el-input",{attrs:{placeholder:"数量",clearable:""},model:{value:t.dataForm.num,callback:function(e){t.$set(t.dataForm,"num",e)},expression:"dataForm.num"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"单位",prop:"unit"}},[a("el-input",{attrs:{placeholder:"单位",clearable:""},model:{value:t.dataForm.unit,callback:function(e){t.$set(t.dataForm,"unit",e)},expression:"dataForm.unit"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"是否超高",prop:"isHeight"}},[a("el-input",{attrs:{placeholder:"是否超高0不超高1超高",clearable:""},model:{value:t.dataForm.isHeight,callback:function(e){t.$set(t.dataForm,"isHeight",e)},expression:"dataForm.isHeight"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"是否超重",prop:"isWeight"}},[a("el-input",{attrs:{placeholder:"是否超重0不超重1超重",clearable:""},model:{value:t.dataForm.isWeight,callback:function(e){t.$set(t.dataForm,"isWeight",e)},expression:"dataForm.isWeight"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"批次号",prop:"dateNum"}},[a("el-input",{attrs:{placeholder:"批次号",clearable:""},model:{value:t.dataForm.dateNum,callback:function(e){t.$set(t.dataForm,"dateNum",e)},expression:"dataForm.dateNum"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[a("el-input",{attrs:{placeholder:"备注",clearable:""},model:{value:t.dataForm.remarks,callback:function(e){t.$set(t.dataForm,"remarks",e)},expression:"dataForm.remarks"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},staticRenderFns:[]},s=a("VU/8")(r,o,!1,null,null,null);e.default=s.exports}});