| | |
| | | return Vue; |
| | | |
| | | })); |
| | | Vue.directive('preventReClick', { |
| | | inserted(el, binding) { |
| | | el.addEventListener('click', () => { |
| | | if (!el.disabled) { |
| | | el.disabled = true |
| | | setTimeout(() => { |
| | | el.disabled = false |
| | | }, binding.value || 2000) |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | |
| | | <el-button v-if="orderData[scope.$index]['11_order_status']<2" |
| | | @click.native.prevent="updateOrderState(scope.$index, orderData)" |
| | | type="text" |
| | | size="small"> |
| | | size="small" |
| | | v-preventReClick |
| | | > |
| | | {{orderData[scope.$index]['11_order_status']==0?'审核':'反审'}} |
| | | </el-button> |
| | | |
| | |
| | | |
| | | <el-form v-show="!showFlag" :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" style="width: 25%;margin: auto;"> |
| | | <el-form-item> |
| | | <el-button v-show="updateShowFlag" type="primary" @click="updateGlassSub('ruleForm')">修改</el-button> |
| | | <el-button v-show="!updateShowFlag" type="primary" @click="submitForm('ruleForm')">提交</el-button> |
| | | <el-button v-show="updateShowFlag" type="primary" @click="updateGlassSub('ruleForm')" v-preventReClick >修改</el-button> |
| | | <el-button v-show="!updateShowFlag" type="primary" @click="submitForm('ruleForm')" v-preventReClick >提交</el-button> |
| | | <el-button @click="resetForm('ruleForm')">重置</el-button> |
| | | </el-form-item> |
| | | |
| | |
| | | |
| | | <el-form-item> |
| | | <el-button @click="resetForm('wornGlass');wornGlassFLAG = false">取 消</el-button> |
| | | <el-button v-show="!updateShowFlag" type="primary" @click="wornSub('wornGlass')">提交</el-button> |
| | | <el-button v-show="!updateShowFlag" type="primary" @click="wornSub('wornGlass')" v-preventReClick>提交</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | |
| | | ruleForm: { |
| | | produceid:"", |
| | | glassNum:"", |
| | | creator:"" |
| | | creator:'<%= request.getParameter("xingming") %>' |
| | | }, |
| | | rules: { |
| | | produceid: [ |
| | |
| | | return false; |
| | | } |
| | | let sql="{call AXJ_a_order_add(?,?,?,?)}~"+JSON.stringify(this.ruleForm); |
| | | this.connects("订单新增",sql,1,1); |
| | | this.connects("订单新增",sql,1,1); |
| | | }); |
| | | }, |
| | | resetForm(formName) {//清除新增重置 |
| | |
| | | if(arrFlag==0){ |
| | | sql="{call AXJ_a_order_select_into()}" |
| | | } |
| | | loadAjxs('产品查询',sql,2,"orderData") |
| | | this.loading=true |
| | | this.loadAjxss('订单查询',sql,2,"orderData") |
| | | }, |
| | | selectTimeOrder:function(){ |
| | | let arrObj={} |
| | |
| | | arrObj.endtime='' |
| | | sql="{call AXJ_a_order_select_into()}" |
| | | } |
| | | loadAjxs('产品查询',sql,2,"orderData") |
| | | this.loading=true |
| | | this.loadAjxss('订单查询',sql,2,"orderData") |
| | | //loadAjxs('产品查询',sql,2,"orderData") |
| | | |
| | | }, |
| | | open(index,row) {//打开刺破界面 |
| | |
| | | @click.native.prevent="updateRow(scope.$index, produceData)" |
| | | type="text" |
| | | size="small"> |
| | | 修改 |
| | | 修改 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | |
| | | <el-form v-show="!showFlag" :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" style="width: 25%;float: right;margin-right: 20%;"> |
| | | <el-form-item> |
| | | <el-button v-show="updateShowFlag" type="primary" @click="updateGlassSub('ruleForm')">修改</el-button> |
| | | <el-button v-show="!updateShowFlag" type="primary" @click="submitForm('ruleForm')">提交</el-button> |
| | | <el-button v-show="updateShowFlag" type="primary" @click="updateGlassSub('ruleForm')" v-preventReClick ='3000'>修改</el-button> |
| | | <el-button v-show="!updateShowFlag" type="primary" @click="submitForm('ruleForm')" v-preventReClick='3000'>提交</el-button> |
| | | <el-button @click="resetForm('ruleForm')">重置</el-button> |
| | | </el-form-item> |
| | | |
| | |
| | | thickness: '', |
| | | color:'', |
| | | optNum:'', |
| | | creator:'', |
| | | creator:'<%= request.getParameter("xingming") %>', |
| | | route:'' |
| | | }, |
| | | rules: { |