1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-indexForm"],{1605:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("acd8"),e("99af");var n={data:function(){return{param:{filed1:"0",filed2:"0",filed3:"0",filed4:"0",filed5:"0",filed6:"0",total:"0",banci:"白班",banzu:"甲班",type:"出库",inNum:"0",password:"",date:this.getDate()},radioGroup:["白班","夜班"],inOutType:["出库","入库"],list:[{name:"甲班"},{name:"乙班"},{name:"丙班"}],industryIndex:0}},computed:{total:function(){return parseFloat(this.param.filed1)+parseFloat(this.param.filed2)+parseFloat(this.param.filed3)+parseFloat(this.param.filed4)+parseFloat(this.param.filed5)+parseFloat(this.param.filed6)}},onLoad:function(){},methods:{submit:function(){if(console.log(this.param,12),!this.param.password)return uni.showToast({title:"密码不能为空",icon:"none"}),!1;this.param.total=this.total;var t=this;uni.showModal({title:"提示",content:"确定提交?",success:function(a){a.confirm&&(uni.showLoading({title:"正在提交",mask:!0}),uni.request({url:"/v1/testTable",method:"POST",data:t.param,success:function(t){200!=t.data.code?uni.showToast({title:t.data.msg,mask:!0,icon:"error",duration:2e3}):uni.showToast({title:"提交成功",mask:!0,icon:"success",duration:2e3})}}),uni.hideLoading().catch((function(t){uni.hideLoading()})))}})},chang:function(t){this.banci=t.detail.value,this.param.banci=t.detail.value},selectType:function(t){this.type=t.detail.value,this.param.type=t.detail.value},outtypeChange:function(t){this.industryIndex=t.detail.value,this.banzu=this.list[t.detail.value].name,this.param.banzu=this.list[t.detail.value].name},getDate:function(){var t=new Date,a=t.getFullYear(),e=t.getMonth()+1,n=t.getDate();return e=e>9?e:"0"+e,n=n>9?n:"0"+n,"".concat(a,"-").concat(e,"-").concat(n)},bindDateChange:function(t){this.date=t.detail.value}}};a.default=n},2437:function(t,a,e){"use strict";e.r(a);var n=e("2910"),i=e("f122");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("d2a6");var r=e("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"10120e04",null,!1,n["a"],void 0);a["default"]=s.exports},2910:function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("日期")]),e("v-uni-picker",{attrs:{mode:"date"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.bindDateChange.apply(void 0,arguments)}}},[e("v-uni-view",[t._v(t._s(t.param.date))])],1)],1),e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("类型")]),e("v-uni-radio-group",{on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.selectType.apply(void 0,arguments)}}},t._l(t.inOutType,(function(a){return e("v-uni-label",{key:a},[e("v-uni-radio",{attrs:{value:a,checked:a==t.param.type}}),t._v(t._s(a))],1)})),1)],1),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("班组")]),e("v-uni-picker",{attrs:{value:t.industryIndex,range:t.list,"range-key":"name"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.outtypeChange.apply(void 0,arguments)}}},[t._v(t._s(t.industryIndex>0?t.list[t.industryIndex].name:0==t.industryIndex?t.list[0].name:"请选择班组"))])],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("班次")]),e("v-uni-radio-group",{on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.chang.apply(void 0,arguments)}}},t._l(t.radioGroup,(function(a){return e("v-uni-label",{key:a},[e("v-uni-radio",{attrs:{value:a,checked:a==t.param.banci}}),t._v(t._s(a))],1)})),1)],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("巴西(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"number",placeholder:"请输入"},model:{value:t.param.filed1,callback:function(a){t.$set(t.param,"filed1",a)},expression:"param.filed1"}})],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("中美洲(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"number",placeholder:"请输入"},model:{value:t.param.filed2,callback:function(a){t.$set(t.param,"filed2",a)},expression:"param.filed2"}})],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("回溶(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"number",placeholder:"请输入"},model:{value:t.param.filed3,callback:function(a){t.$set(t.param,"filed3",a)},expression:"param.filed3"}})],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("加工糖100%(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"number",placeholder:"请输入"},model:{value:t.param.filed4,callback:function(a){t.$set(t.param,"filed4",a)},expression:"param.filed4"}})],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("非食用糖92%(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"number",placeholder:"请输入"},model:{value:t.param.filed5,callback:function(a){t.$set(t.param,"filed5",a)},expression:"param.filed5"}})],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("国储(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"number",placeholder:"请输入"},model:{value:t.param.filed6,callback:function(a){t.$set(t.param,"filed6",a)},expression:"param.filed6"}})],1):t._e(),"出库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("合计(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{disabled:!0,placeholder:"请输入"},model:{value:t.total,callback:function(a){t.total=a},expression:"total"}})],1):t._e(),"入库"==t.param.type?e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("入库量(吨)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{placeholder:"请输入"},model:{value:t.param.inNum,callback:function(a){t.$set(t.param,"inNum",a)},expression:"param.inNum"}})],1):t._e(),e("v-uni-view",{staticClass:"row row-bottom"},[e("v-uni-view",{staticClass:"left"},[t._v("密码(必填)")]),e("v-uni-input",{staticClass:"right-bottom",attrs:{type:"password",placeholder:"请输入"},model:{value:t.param.password,callback:function(a){t.$set(t.param,"password",a)},expression:"param.password"}})],1),e("v-uni-view",{staticClass:"bottom-btn"},[e("v-uni-button",{staticClass:"submit",attrs:{type:"primary","hover-class":"none"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.submit()}}},[t._v("提交")])],1)],1)},i=[]},afce:function(t,a,e){var n=e("d308");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("77a8abbb",n,!0,{sourceMap:!1,shadowMode:!1})},d2a6:function(t,a,e){"use strict";var n=e("afce"),i=e.n(n);i.a},d308:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.content[data-v-10120e04],\r\n.content1[data-v-10120e04],\r\n.content2[data-v-10120e04]{border-radius:%?20?%;background:#fff;padding:%?20?%}.content .title[data-v-10120e04],\r\n.content1 .title[data-v-10120e04],\r\n.content2 .title[data-v-10120e04]{font-size:%?28?%;font-weight:600;color:#333}.content .row[data-v-10120e04],\r\n.content1 .row[data-v-10120e04],\r\n.content2 .row[data-v-10120e04]{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:%?21?% 0}.content .row .right[data-v-10120e04],\r\n.content .row uni-input[data-v-10120e04],\r\n.content1 .row .right[data-v-10120e04],\r\n.content1 .row uni-input[data-v-10120e04],\r\n.content2 .row .right[data-v-10120e04],\r\n.content2 .row uni-input[data-v-10120e04]{font-size:%?28?%;color:#333}.content .row-bottom .right-bottom[data-v-10120e04],\r\n.content1 .row-bottom .right-bottom[data-v-10120e04],\r\n.content2 .row-bottom .right-bottom[data-v-10120e04]{width:%?280?%;text-align:right}.right-bottom[data-v-10120e04]{width:%?280?%;text-align:right}.logo[data-v-10120e04]{height:%?200?%;width:%?200?%;margin-top:%?200?%;margin-left:auto;margin-right:auto;margin-bottom:%?50?%}.text-area[data-v-10120e04]{display:flex;justify-content:center}.title[data-v-10120e04]{font-size:%?36?%;color:#8f8f94}.bottom-btn[data-v-10120e04]{padding:%?30?%;background:#fff;width:92%;position:fixed;bottom:%?0?%;display:flex}',""]),t.exports=a},f122:function(t,a,e){"use strict";e.r(a);var n=e("1605"),i=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a}}]);
|