"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),r=require("../../gen/Apis.js"),s=require("./model.js"),i=require("../../common/libraries/naviHelper.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const u=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js"),u.useWeAppAuthStore();const l={handleSelectType(e){s.useModel.formData.value.type=null==e?void 0:e.value},handleSubmit(){var e,u,l,t,n,a,d,m;return(null==(l=null==(u=null==(e=s.useModel)?void 0:e.formData)?void 0:u.value)?void 0:l.type)?(null==(a=null==(n=null==(t=s.useModel)?void 0:t.formData)?void 0:n.value)?void 0:a.type)?void o.getApiLoading(r.Apis.Customer.CustomerOpinions.Store,null==(m=null==(d=s.useModel)?void 0:d.formData)?void 0:m.value).then(e=>{i.showToastBack("提交成功",1,!0),console.log(e)}):i.showToast("请输入反馈建议！"):i.showToast("请选择反馈类型！")},toWorkOrder(){e.index.navigateTo({url:"/WORKORDER/list/index"})}};exports.method=l;
