1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
|
webpackJsonp([41],{"0TT5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={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:"仓库",prop:"warehouseName"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择仓库"},on:{change:function(e){t.warehouseC()}},model:{value:t.dataForm.warehouseName,callback:function(e){t.$set(t.dataForm,"warehouseName",e)},expression:"dataForm.warehouseName"}},t._l(t.warehouseArr,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"任务类型",prop:"taskType"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择任务类型"},model:{value:t.dataForm.taskType,callback:function(e){t.$set(t.dataForm,"taskType",e)},expression:"dataForm.taskType"}},t._l(t.options,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"起点",prop:"startPosition"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择起点"},model:{value:t.dataForm.startPosition,callback:function(e){t.$set(t.dataForm,"startPosition",e)},expression:"dataForm.startPosition"}},t._l(t.startPositionArr,function(t){return a("el-option",{key:t.id,attrs:{label:t.anotherName,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"终点",prop:"endPosition"}},[a("el-select",{attrs:{clearable:"",disabled:"",placeholder:"请选择终点"},model:{value:t.dataForm.endPosition,callback:function(e){t.$set(t.dataForm,"endPosition",e)},expression:"dataForm.endPosition"}},t._l(t.endPosition,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],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:[]},o=a("VU/8")({data:function(){return{visible:!1,dataForm:{id:0,warehouseName:"",taskType:0,startPosition:"",endPosition:"",remarks:""},options:[{value:0,label:"出库"}],warehouseArr:[{value:"A",label:"A库"},{value:"B",label:"B库"}],endPosition:[{value:290,label:"A库出口"},{value:292,label:"B库出口"}],productArr:[],startPositionArr:[],dataRule:{taskType:[{required:!0,message:"任务类型,0 出库,1入库,2 移库不能为空",trigger:"blur"}],warehouseName:[{required:!0,message:"仓库不能为空",trigger:"change"}],startPosition:[{required:!0,message:"起点不能为空",trigger:"change"}],endPosition:[{required:!0,message:"终点不能为空",trigger:"change"}]}}},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/mttaskinfo/info/"+e.dataForm.id),method:"get",params:e.$http.adornParams()}).then(function(t){var a=t.data;a&&0===a.code&&(e.dataForm=a.mtTaskInfo)}),e.$http({url:e.$http.adornUrl("/work/mtproduct/list"),method:"get",params:e.$http.adornParams({page:1,limit:500,key:""})}).then(function(t){var a=t.data;a&&0===a.code?e.productArr=a.page.list:e.productArr=[]}),e.$http({url:e.$http.adornUrl("/work/mtwarehousrank/list"),method:"get",params:e.$http.adornParams({page:1,limit:500,key:""})}).then(function(t){var a=t.data;a&&0===a.code?e.startPo
|