You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
6.6 KiB
JavaScript
1 line
6.6 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/workOrder/workOrderWrite"],{"08f9":function(e,o,i){"use strict";i.r(o);var t=i("7612"),s=i.n(t);for(var n in t)["default"].indexOf(n)<0&&function(e){i.d(o,e,(function(){return t[e]}))}(n);o["default"]=s.a},"509d":function(e,o,i){"use strict";(function(e,o){var t=i("4ea4");i("260f");t(i("66fd"));var s=t(i("c685"));e.__webpack_require_UNI_MP_PLUGIN__=i,o(s.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},5942:function(e,o,i){"use strict";i.d(o,"b",(function(){return s})),i.d(o,"c",(function(){return n})),i.d(o,"a",(function(){return t}));var t={uNavbar:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(i.bind(null,"84d1"))},uForm:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-form/u-form")]).then(i.bind(null,"f0ab"))},uFormItem:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(i.bind(null,"baa1"))},uIcon:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(i.bind(null,"da7f"))},uPicker:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(i.bind(null,"efe5"))},uTextarea:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-textarea/u-textarea")]).then(i.bind(null,"fcf5"))},uToast:function(){return i.e("node-modules/uview-ui/components/u-toast/u-toast").then(i.bind(null,"b7df"))}},s=function(){var e=this,o=e.$createElement;e._self._c;e._isMounted||(e.e0=function(o){e.custIdShow=!0},e.e1=function(o){e.custIdShow=!1},e.e2=function(o){e.issueTypeShow=!0},e.e3=function(o){e.issueTypeShow=!1},e.e4=function(o){e.priorityShow=!0},e.e5=function(o){e.priorityShow=!1},e.e6=function(o){e.isIssueShow=!0},e.e7=function(o){e.isIssueShow=!1})},n=[]},7612:function(e,o,i){"use strict";(function(e){var t=i("4ea4");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;t(i("79eb"));var s=t(i("3f96")),n={components:{imgUpload:function(){i.e("components/image-upload").then(function(){return resolve(i("7a08"))}.bind(null,i)).catch(i.oe)}},onLoad:function(o){var i=this;o.orderNo&&(this.sizeForm.busId=o.orderNo,e.$on("newPages",(function(e){"1"==e.type?(i.sizeForm.followDTOList=e.checkboxList.filter((function(o){return e.followDTOList.includes(o.optionValue)})),i.sizeForm.followDTOList.map((function(e){e.followerId=e.optionValue}))):i.sizeForm.handleIdList=e.checkboxList.filter((function(o){return e.followDTOList==o.optionValue}))})))},onUnload:function(){e.$off("newPages")},onShow:function(){var e=this;s.default.storge.queryByDictCode({dictCode:"work_issue_type",pageNum:1,pageSize:500}).then((function(o){var i;null!==o&&void 0!==o&&null!==(i=o.data)&&void 0!==i&&i.records&&(e.issueTypecolumns=[o.data.records])})),s.default.storge.queryByDictCode({dictCode:"work_issue_priority",pageNum:1,pageSize:500}).then((function(o){var i;null!==o&&void 0!==o&&null!==(i=o.data)&&void 0!==i&&i.records&&(e.prioritycolumns=[o.data.records])})),s.default.storge.queryByDictCode({dictCode:"yes_or_no",pageNum:1,pageSize:500}).then((function(o){var i;null!==o&&void 0!==o&&null!==(i=o.data)&&void 0!==i&&i.records&&(e.isIssuecolumns=[o.data.records],e.sizeForm.isIssue="1")})),s.default.storge.queryByDictCode({dictCode:"aaf_cust",pageNum:1,pageSize:500}).then((function(o){var i;null!==o&&void 0!==o&&null!==(i=o.data)&&void 0!==i&&i.records&&(e.custIdcolumns=[o.data.records])}))},data:function(){return{sizeForm:{ossFileDTOList:[],busId:"",issueType:"",content:"",title:"",isIssue:"",priority:"",followDTOList:[],handleIdList:[]},rules:{content:{type:"string",required:!0,message:"请输入工单内容",trigger:["blur","change"]},title:{type:"string",required:!0,message:"请输入工单标题",trigger:["blur","change"]},followDTOList:{type:"array",required:!0,message:"请添加关注人",trigger:["blur","change"]},handleIdList:{type:"array",required:!0,message:"请添加处理人",trigger:["blur","change"]}},issueTypeShow:!1,issueTypeLabel:"",issueTypecolumns:[[]],priorityShow:!1,priorityLabel:"",prioritycolumns:[[]],isIssueShow:!1,isIssueLabel:"是",isIssuecolumns:[[]],custIdShow:!1,custIdLabel:"",custIdcolumns:[[]]}},methods:{getUserAvatar:function(o){"1"==o&&e.navigateTo({url:"/pages/workOrder/userAvatarMul?data=".concat(JSON.stringify(this.sizeForm.followDTOList))}),"2"==o&&e.navigateTo({url:"/pages/workOrder/userAvatarSin?data=".concat(JSON.stringify(this.sizeForm.handleIdList))})},deleteAvatar:function(e,o){"1"==e&&this.sizeForm.followDTOList.splice(o,1),"2"==e&&this.sizeForm.handlerIdList.splice(o,1)},pickerConfirmIssueType:function(e){this.sizeForm.issueType=e.value[0].optionValue,this.issueTypeLabel=e.value[0].optionText,this.issueTypeShow=!1},clearIssueType:function(){this.sizeForm.issueType="",this.issueTypeLabel=""},pickerConfirmPriority:function(e){this.sizeForm.priority=e.value[0].optionValue,this.priorityLabel=e.value[0].optionText,this.priorityShow=!1},clearPriority:function(){this.sizeForm.priority="",this.priorityLabel=""},pickerConfirmIsIssue:function(e){this.sizeForm.isIssue=e.value[0].optionValue,this.isIssueLabel=e.value[0].optionText,this.isIssueShow=!1},clearIsIssue:function(){this.sizeForm.isIssue="",this.isIssueLabel=""},pickerConfirmCustId:function(e){this.sizeForm.custId=e.value[0].optionValue,this.custIdLabel=e.value[0].optionText,this.custIdShow=!1},clearCustId:function(){this.sizeForm.custId="",this.custIdLabel=""},submitData:function(){var o=this;this.sizeForm.custId?this.sizeForm.issueType?this.sizeForm.priority?this.sizeForm.isIssue?this.$refs.ruleFormRef.validate().then((function(i){o.sizeForm.handler=o.sizeForm.handleIdList[0].optionValue,s.default.storge.workIssueInsertByPage(o.sizeForm).then((function(i){o.$refs.uToast.show({type:"success",message:"提交成功"}),e.navigateBack()}))})):this.$refs.uToast.show({type:"warning",message:"请选择是否为问题件"}):this.$refs.uToast.show({type:"warning",message:"请选择优先级"}):this.$refs.uToast.show({type:"warning",message:"请选择工单类型"}):this.$refs.uToast.show({type:"warning",message:"请选择关联客户"})}}};o.default=n}).call(this,i("543d")["default"])},c685:function(e,o,i){"use strict";i.r(o);var t=i("5942"),s=i("08f9");for(var n in s)["default"].indexOf(n)<0&&function(e){i.d(o,e,(function(){return s[e]}))}(n);i("f3c8");var r=i("f0c5"),u=Object(r["a"])(s["default"],t["b"],t["c"],!1,null,"51b7732c",null,!1,t["a"],void 0);o["default"]=u.exports},f3c8:function(e,o,i){"use strict";var t=i("f5fd"),s=i.n(t);s.a},f5fd:function(e,o,i){}},[["509d","common/runtime","common/vendor"]]]); |