2023-04-23 15:58:54 +08:00
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6fcd227c","chunk-551bd403","chunk-2d22491e"],{"3d7b":function(t,e,a){"use strict";a("99af"),a("4160"),a("159b");e["a"]={data:function(){return{urlOptions:{submitURL:"",infoURL:"",getOption:!1,optionArrUrl:[],optionArr:{}},visible:!1,setData:!1,isGetCode:!1}},created:function(){},activated:function(){},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){e.$refs["dataForm"].resetFields(),e.dataForm.id?e.$http.get("".concat(e.urlOptions.infoURL,"/").concat(e.dataForm.id)).then((function(t){var a=t.data;if(0!==a.code)return e.$message.error(a.msg);e.dataForm=a.data,e.setData&&e.setDataForm()})).catch((function(){})):e.isGetCode&&e.getCode()}))},getArr:function(){var t=this;this.urlOptions.optionArrUrl.forEach((function(e,a){t.$http.get(e,{params:{page:1,limit:500}}).then((function(e){var o=e.data;if(0!==o.code)return t.$message.error(o.msg);t.$set(t.urlOptions.optionArr,"arr".concat(a),o.data.list)})).catch((function(){}))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(!e)return!1;t.$http[t.dataForm.id?"put":"post"](t.urlOptions.submitURL,t.dataForm).then((function(e){var a=e.data;if(0!==a.code)return t.$message.error(a.msg);t.$message({message:t.$t("prompt.success"),type:"success",duration:500,onClose:function(){t.visible=!1,t.$emit("successSubmit")}})})).catch((function(){}))}))},formClear:function(){this.$refs.dataForm.resetFields()}}}},"451d":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-sys__user"},[a("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),a("base-table",{attrs:{"table-props":t.tableProps,page:t.listQuery.page,limit:t.listQuery.limit,"table-data":t.tableData}},[t.tableBtn.length?a("method-btn",{attrs:{slot:"handleBtn",width:120,label:"操作","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),a("pagination",{attrs:{limit:t.listQuery.limit,page:t.listQuery.page,total:t.listQuery.total},on:{"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},"update:page":function(e){return t.$set(t.listQuery,"page",e)},pagination:t.getDataList}}),a("base-dialog",{attrs:{dialogTitle:t.addOrEditTitle,dialogVisible:t.addOrUpdateVisible,"before-close":t.handleCancel},on:{cancel:t.handleCancel,confirm:t.handleConfirm}},[a("add-or-update",{ref:"addOrUpdate",on:{successSubmit:t.successSubmit}})],1)],1)])},r=[],l=(a("b0c0"),a("4622")),s=a("e162"),n=a("ed26"),i=a("f44d"),d=[{prop:"createTime",label:"添加时间"},{prop:"num",label:"数量"},{prop:"prodectCode",label:"产品编码"},{prop:"specModel",label:"型号"},{prop:"source",label:"来源"},{prop:"status",label:"状态",filter:Object(i["a"])("detStatus")},{prop:"taskCode",label:"任务编码"},{prop:"taskType",label:"任务类型",filter:Object(i["a"])("taskType")},{prop:"unit",label:"单位"},{prop:"detInfo",label:"子任务",subcomponent:s["default"]}],c=[{type:"edit",btnName:"编辑"},{type:"run",btnName:"执行"},{type:"delete",btnName:"删除"}],u={mixins:[n["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtTaskInfo/page",deleteURL:"/code/mtTaskInfo",statusUrl:"/code/mtTaskInfo/status",exportUrl:"/code/mtTaskInfo/export"},tableProps:d,tableBtn:c,tableData:[],formConfig:[{type:"input",label:"产品编码",placeholder:"产品编码",param:"prodectCode"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"新增",name:"add",color:"primary",plain:!0},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}]}},components:{AddOrUpdate:l["default"]},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.name=t.name,this.listQuery.prodectCode=t.prodectCode,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUp
|