(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-QC-LLJ-SysSubmitFrom"],{5277:function(e,a,t){"use strict";t.r(a);var l=t("fe80"),r=t.n(l);for(var o in l)["default"].indexOf(o)<0&&function(e){t.d(a,e,(function(){return l[e]}))}(o);a["default"]=r.a},6166:function(e,a,t){"use strict";var l=t("9962"),r=t.n(l);r.a},9962:function(e,a,t){var l=t("f4a8");l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.i,l,""]]),l.locals&&(e.exports=l.locals);var r=t("967d").default;r("76f9baff",l,!0,{sourceMap:!1,shadowMode:!1})},"99eb":function(e,a,t){"use strict";t.r(a);var l=t("a5dc"),r=t("5277");for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(a,e,(function(){return r[e]}))}(o);t("6166");var n=t("828b"),i=Object(n["a"])(r["default"],l["b"],l["c"],!1,null,"76d65ce8",null,!1,l["a"],void 0);a["default"]=i.exports},a5dc:function(e,a,t){"use strict";t.d(a,"b",(function(){return r})),t.d(a,"c",(function(){return o})),t.d(a,"a",(function(){return l}));var l={"u-Form":t("3238").default,uFormItem:t("7942").default,uInput:t("2193").default,uIcon:t("a350").default,uPicker:t("cc2b").default,uButton:t("2c07").default},r=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("v-uni-view",{staticClass:"form-container"},[t("u--form",{ref:"uForm",attrs:{model:e.formData}},[t("u-form-item",{attrs:{label:"检验单号","label-width":"150rpx"}},[t("u-input",{attrs:{placeholder:"请输入检验单号",disabled:!0},model:{value:e.formData.PI_BILLNO,callback:function(a){e.$set(e.formData,"PI_BILLNO",a)},expression:"formData.PI_BILLNO"}})],1),t("u-form-item",{attrs:{label:"委托人","label-width":"150rpx"}},[t("u-input",{attrs:{placeholder:"请输入委托人姓名",disabled:!0},model:{value:e.formData.PI_USER,callback:function(a){e.$set(e.formData,"PI_USER",a)},expression:"formData.PI_USER"}})],1),t("u-form-item",{attrs:{label:"样品状况","label-width":"150rpx",prop:"PI_SAMPLE_STATUS",required:!0},nativeOn:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_STATUS=!0}}},[t("u-input",{staticClass:"input_Form",attrs:{disabled:!0,placeholder:"请选择样品状况","disabled-color":"#ffffff"},model:{value:e.formData.PI_SAMPLE_STATUS,callback:function(a){e.$set(e.formData,"PI_SAMPLE_STATUS",a)},expression:"formData.PI_SAMPLE_STATUS"}}),t("u-icon",{attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),t("u-form-item",{attrs:{label:"送样类型","label-width":"150rpx",prop:"PI_SAMPLE_TYPE",required:!0},nativeOn:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_TYPE=!0}}},[t("u-input",{staticClass:"input_Form",attrs:{disabled:!0,placeholder:"送样类型","disabled-color":"#ffffff"},model:{value:e.formData.PI_SAMPLE_TYPE,callback:function(a){e.$set(e.formData,"PI_SAMPLE_TYPE",a)},expression:"formData.PI_SAMPLE_TYPE"}}),t("u-icon",{attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),t("u-form-item",{attrs:{label:"送样原因","label-width":"150rpx",prop:"PI_SAMPLE_REASON",required:!0},nativeOn:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_REASON=!0}}},[t("u-input",{staticClass:"input_Form",attrs:{disabled:!0,placeholder:"请选择送样原因","disabled-color":"#ffffff"},model:{value:e.formData.PI_SAMPLE_REASON,callback:function(a){e.$set(e.formData,"PI_SAMPLE_REASON",a)},expression:"formData.PI_SAMPLE_REASON"}}),t("u-icon",{attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),t("u-form-item",{attrs:{label:"送检类别","label-width":"150rpx",prop:"PI_INSPECT_TYPE",required:!0},nativeOn:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_INSPECT_TYPE=!0}}},[t("u-input",{staticClass:"input_Form",attrs:{disabled:!0,placeholder:"请选择送检类别","disabled-color":"#ffffff"},model:{value:e.formData.PI_INSPECT_TYPE,callback:function(a){e.$set(e.formData,"PI_INSPECT_TYPE",a)},expression:"formData.PI_INSPECT_TYPE"}}),t("u-icon",{attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),t("u-form-item",{attrs:{label:"样品处理","label-width":"150rpx",prop:"PI_SAMPLE_PREPARATION",required:!0},nativeOn:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_PREPARATION=!0}}},[t("u-input",{staticClass:"input_Form",attrs:{disabled:!0,placeholder:"请选择样品处理","disabled-color":"#ffffff"},model:{value:e.formData.PI_SAMPLE_PREPARATION,callback:function(a){e.$set(e.formData,"PI_SAMPLE_PREPARATION",a)},expression:"formData.PI_SAMPLE_PREPARATION"}}),t("u-icon",{attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),t("u-form-item",{attrs:{label:"紧急程度","label-width":"150rpx",prop:"PI_URGENCY",required:!0},nativeOn:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_URGENCY=!0}}},[t("u-input",{staticClass:"input_Form",attrs:{disabled:!0,placeholder:"请选择紧急程度","disabled-color":"#ffffff"},model:{value:e.formData.PI_URGENCY,callback:function(a){e.$set(e.formData,"PI_URGENCY",a)},expression:"formData.PI_URGENCY"}}),t("u-icon",{attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),t("u-form-item",{attrs:{label:"固件版本","label-width":"150rpx"}},[t("u-input",{attrs:{placeholder:"请输入固件版本"},model:{value:e.formData.PI_FIRMWAREVERSION,callback:function(a){e.$set(e.formData,"PI_FIRMWAREVERSION",a)},expression:"formData.PI_FIRMWAREVERSION"}})],1),t("u-form-item",{attrs:{label:"硬件版本","label-width":"150rpx"}},[t("u-input",{attrs:{placeholder:"请输入硬件版本"},model:{value:e.formData.PI_HARDWAREVERSION,callback:function(a){e.$set(e.formData,"PI_HARDWAREVERSION",a)},expression:"formData.PI_HARDWAREVERSION"}})],1),t("u-form-item",{attrs:{label:"送检项目说明","label-width":"150rpx",prop:"PI_REMARK",required:!0}},[t("u-input",{attrs:{placeholder:"请输入送检项目说明"},model:{value:e.formData.PI_REMARK,callback:function(a){e.$set(e.formData,"PI_REMARK",a)},expression:"formData.PI_REMARK"}})],1),t("u-picker",{attrs:{show:e.show_PI_SAMPLE_STATUS,columns:[e.PI_SAMPLE_STATUS_Options],keyName:"label"},on:{confirm:function(a){arguments[0]=a=e.$handleEvent(a),e.confirm_PI_SAMPLE_STATUS.apply(void 0,arguments)},cancel:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_STATUS=!1}}}),t("u-picker",{attrs:{show:e.show_PI_SAMPLE_TYPE,columns:[e.PI_SAMPLE_TYPE_Options],keyName:"label"},on:{confirm:function(a){arguments[0]=a=e.$handleEvent(a),e.confirm_PI_SAMPLE_TYPE.apply(void 0,arguments)},cancel:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_TYPE=!1}}}),t("u-picker",{attrs:{show:e.show_PI_SAMPLE_REASON,columns:[e.PI_SAMPLE_REASON_Options],keyName:"label"},on:{confirm:function(a){arguments[0]=a=e.$handleEvent(a),e.confirm_PI_SAMPLE_REASON.apply(void 0,arguments)},cancel:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_REASON=!1}}}),t("u-picker",{attrs:{show:e.show_PI_INSPECT_TYPE,columns:[e.PI_INSPECT_TYPE_Options],keyName:"label"},on:{confirm:function(a){arguments[0]=a=e.$handleEvent(a),e.confirm_PI_INSPECT_TYPE.apply(void 0,arguments)},cancel:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_INSPECT_TYPE=!1}}}),t("u-picker",{attrs:{show:e.show_PI_SAMPLE_PREPARATION,columns:[e.PI_SAMPLE_PREPARATION_Options],keyName:"label"},on:{confirm:function(a){arguments[0]=a=e.$handleEvent(a),e.confirm_PI_SAMPLE_PREPARATION.apply(void 0,arguments)},cancel:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_SAMPLE_PREPARATION=!1}}}),t("u-picker",{attrs:{show:e.show_PI_URGENCY,columns:[e.PI_URGENCY_Options],keyName:"label"},on:{confirm:function(a){arguments[0]=a=e.$handleEvent(a),e.confirm_PI_URGENCY.apply(void 0,arguments)},cancel:function(a){arguments[0]=a=e.$handleEvent(a),e.show_PI_URGENCY=!1}}}),t("u-button",{staticClass:"submit-btn",attrs:{type:"primary"},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.submitForm.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)},o=[]},f4a8:function(e,a,t){var l=t("c86c");a=l(!1),a.push([e.i,".form-container[data-v-76d65ce8]{padding:%?30?%}.submit-btn[data-v-76d65ce8]{margin-top:%?60?%}.input_Form[data-v-76d65ce8]{pointer-events:none}",""]),e.exports=a},fe80:function(e,a,t){"use strict";(function(e){t("6a54");var l=t("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,t("d4b5");var r=l(t("2634")),o=l(t("2fdc")),n={data:function(){return{show_PI_SAMPLE_STATUS:!1,show_PI_SAMPLE_TYPE:!1,show_PI_SAMPLE_REASON:!1,show_PI_INSPECT_TYPE:!1,show_PI_SAMPLE_PREPARATION:!1,show_PI_URGENCY:!1,formData:{PI_BILLNO:"",PI_USER:"",PI_SAMPLE_STATUS:"",PI_SAMPLE_TYPE:"",PI_SAMPLE_REASON:"",PI_INSPECT_TYPE:"",PI_SAMPLE_PREPARATION:"",PI_URGENCY:"",PI_FIRMWAREVERSION:"",PI_HARDWAREVERSION:"",PI_REMARK:""},PI_SAMPLE_STATUS_Options:[{label:"电机类(主电机、同步电机)",value:"电机类(主电机、同步电机)"},{label:"电控件(控制板、水泵、适配器、电源线等)",value:"电控件(控制板、水泵、适配器、电源线等)"},{label:"注塑件(叶轮、外壳、扇叶)",value:"注塑件(叶轮、外壳、扇叶)"},{label:"金属件(螺丝)",value:"金属件(螺丝)"},{label:"滤网组件(滤芯)",value:"滤网组件(滤芯)"},{label:"包装类(外箱、缓冲材料)",value:"包装类(外箱、缓冲材料)"}],PI_SAMPLE_TYPE_Options:[{label:"新品开发研究",value:"新品开发研究"},{label:"试产型式验证",value:"试产型式验证"},{label:"质量改善验证",value:"质量改善验证"},{label:"二供导入验证",value:"二供导入验证"},{label:"来料检验验证",value:"来料检验验证"},{label:"产线生产抽检",value:"产线生产抽检"},{label:"降本验证",value:"降本验证"}],PI_SAMPLE_REASON_Options:[{label:"手板",value:"手板"},{label:"EVT",value:"EVT"},{label:"DVT1",value:"DVT1"},{label:"DVT2",value:"DVT2"},{label:"DVT3",value:"DVT3"},{label:"量产",value:"量产"},{label:"ECN",value:"ECN"},{label:"二供",value:"二供"},{label:"竞品",value:"竞品"}],PI_INSPECT_TYPE_Options:[{label:"性能/功能测试",value:"性能/功能测试"},{label:"可靠性测试",value:"可靠性测试"},{label:"老化测试",value:"老化测试"}],PI_SAMPLE_PREPARATION_Options:[{label:"退回委托方",value:"退回委托方"},{label:"实验室自行处理/报废",value:"实验室自行处理/报废"}],PI_URGENCY_Options:[{label:"一般",value:"一般"},{label:"重要",value:"重要"},{label:"加急",value:"加急"}],rules:{PI_BILLNO:[{required:!0,message:"请输入检验单号",trigger:["change"]}],PI_USER:[{required:!0,message:"请输入委托人",trigger:["change"]}],PI_SAMPLE_STATUS:[{required:!0,message:"请选择样品状况",trigger:["change"]}],PI_SAMPLE_TYPE:[{required:!0,message:"请选择送样类型",trigger:["change"]}],PI_SAMPLE_REASON:[{required:!0,message:"请选择送样原因",trigger:["change"]}],PI_INSPECT_TYPE:[{required:!0,message:"请选择送检类别",trigger:["change"]}],PI_SAMPLE_PREPARATION:[{required:!0,message:"请选择样品处理",trigger:["change"]}],PI_URGENCY:[{required:!0,message:"请选择紧急程度",trigger:["change"]}],PI_FIRMWAREVERSION:[{required:!0,message:"请输入固件版本",trigger:["change"]}],PI_HARDWAREVERSION:[{required:!0,message:"请输入硬件版本",trigger:["change"]}],PI_REMARK:[{required:!0,message:"请输入送检项目说明",trigger:["change"]}]}}},methods:{confirm_PI_SAMPLE_STATUS:function(e){var a=e.value[0];this.formData.PI_SAMPLE_STATUS=a.value,this.show_PI_SAMPLE_STATUS=!1},confirm_PI_SAMPLE_TYPE:function(e){var a=e.value[0];this.formData.PI_SAMPLE_TYPE=a.value,this.show_PI_SAMPLE_TYPE=!1},confirm_PI_SAMPLE_REASON:function(e){var a=e.value[0];this.formData.PI_SAMPLE_REASON=a.value,this.show_PI_SAMPLE_REASON=!1},confirm_PI_INSPECT_TYPE:function(e){var a=e.value[0];this.formData.PI_INSPECT_TYPE=a.value,this.show_PI_INSPECT_TYPE=!1},confirm_PI_SAMPLE_PREPARATION:function(e){var a=e.value[0];this.formData.PI_SAMPLE_PREPARATION=a.value,this.show_PI_SAMPLE_PREPARATION=!1},confirm_PI_URGENCY:function(e){var a=e.value[0];this.formData.PI_URGENCY=a.value,this.show_PI_URGENCY=!1},onReady:function(){this.$refs.uForm.setRules(this.rules)},onLoad:function(e){var a=e;this.formData.PI_BILLNO=a["releaseNo"],this.formData.PI_USER=a["userID"]},submitForm:function(){var a=this;return(0,o.default)((0,r.default)().mark((function t(){var l;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.$refs.uForm.validate();case 3:l=t.sent,l&&a.$post({url:"/LLJ/SaveSysSubmit",data:JSON.stringify(a.formData)}).then((function(e){0==e.status?(uni.showToast({title:"提交成功",icon:"success"}),setTimeout((function(){uni.navigateBack()}),2e3)):uni.showToast({title:e.message,icon:"error"})})),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),e.error("验证失败:",t.t0),uni.showToast({title:"请填写必填项",icon:"error",duration:2e3});case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()}}};a.default=n}).call(this,t("ba7c")["default"])}}]);
|