| | |
| | | <body> |
| | | <div id="app" > |
| | | <el-container > |
| | | <el-header style="height: 3%;"> |
| | | <el-header style="margin-top: 3%;height: 3%;"> |
| | | <el-button @click="showFlagFuc" type="primary" round style="float:right;">{{showFlag==false?'返回订单':'新增订单'}}</el-button> |
| | | <el-date-picker v-show="showFlag" style="float: left;margin-bottom: 0.3%;" |
| | | v-model="selectdate" |
| | |
| | | :key="index" |
| | | :label="item" |
| | | > |
| | | <el-table-column :prop="keys" v-if="index==0"> |
| | | <el-table-column :prop="keys" v-if="index==0" width=130> |
| | | <template slot-scope="scope" v-if="Object.keys(orderData[0]).length!=0"> |
| | | |
| | | <el-button v-if="orderData[scope.$index]['11_order_status']<2" |
| | |
| | | size="small"> |
| | | 修改 |
| | | </el-button> |
| | | <el-button |
| | | @click.native.prevent="open(scope.$index, orderData)" |
| | | type="text" |
| | | size="small"> |
| | | 次破 |
| | | </el-button> |
| | | |
| | | |
| | | </template> |
| | | </el-table-column> |
| | |
| | | |
| | | |
| | | </el-form> |
| | | |
| | | <el-dialog |
| | | title="刺破" |
| | | :visible.sync="wornGlassFLAG" |
| | | width="30%" |
| | | center> |
| | | <span style="text-align: center;"> |
| | | <el-form :model="wornGlass" ref="wornGlass" :rules="rules"> |
| | | <el-form-item label="次破数量:" prop="wornNum"> |
| | | <el-input for="a" style="width: 50%;" v-model.number="wornGlass.wornNum" autocomplete="off" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="次破原因:" > |
| | | <el-input for="b" style="width: 50%;" v-model.number="wornGlass.reason" autocomplete="off" ></el-input> |
| | | </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-form-item> |
| | | </el-form> |
| | | |
| | | </span> |
| | | <!-- <span slot="footer" class="dialog-footer"> |
| | | |
| | | <el-button type="primary" @click="wornSub">确 定</el-button> |
| | | </span> --> |
| | | </el-dialog> |
| | | </el-main> |
| | | <!-- <el-footer style="background-color: azure;"></el-footer> --> |
| | | </el-container> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </body> |
| | | <!-- import Vue before Element --> |
| | |
| | | let reg = new RegExp(`^[0-9]*[1-9][0-9]*$`) |
| | | |
| | | if (!reg.test(value)) { |
| | | callback(new Error('请输入正整数的厚度')); |
| | | callback(new Error('请输入正整数')); |
| | | }else { |
| | | callback(); |
| | | } |
| | |
| | | ], |
| | | glassNum: [ |
| | | { validator: checkInt, trigger: 'blur' } |
| | | ] |
| | | ], |
| | | wornNum: [ |
| | | { validator: checkInt, trigger: 'blur' } |
| | | ], |
| | | |
| | | }, |
| | | tableHead:[], |
| | |
| | | orderProduce:[], |
| | | fileList:[], |
| | | slectOrder:["","","","","","","","","",""], |
| | | selectdate:["",""] |
| | | selectdate:["",""], |
| | | wornGlassFLAG: false,//次破界面显示标记 |
| | | wornGlass:{ |
| | | glassID:'', |
| | | wornNum:'', |
| | | reason:'' |
| | | } |
| | | |
| | | |
| | | }; |
| | |
| | | if(arrFlag==0){ |
| | | sql="{call AXJ_a_order_select_into()}" |
| | | } |
| | | loadAjxs('订单查询',sql,2,"orderData") |
| | | loadAjxs('产品查询',sql,2,"orderData") |
| | | }, |
| | | selectTimeOrder:function(){ |
| | | let arrObj={} |
| | |
| | | arrObj.endtime='' |
| | | sql="{call AXJ_a_order_select_into()}" |
| | | } |
| | | loadAjxs('订单查询',sql,2,"orderData") |
| | | loadAjxs('产品查询',sql,2,"orderData") |
| | | |
| | | }, |
| | | open(index,row) {//打开刺破界面 |
| | | this.wornGlassFLAG= true |
| | | this.wornGlass.glassID=row[index]['0_id'] |
| | | //wornGlass.wornNum:'', |
| | | //wornGlass.reason:'' |
| | | }, |
| | | wornSub(formName){//刺破提交 |
| | | |
| | | this.$refs[formName].validate((valid) => { |
| | | if (!valid) { |
| | | return false; |
| | | } |
| | | this.wornGlassFLAG = false |
| | | let sql="{call AXJ_a_order_glassWorn(?,?,?,?)}~"+JSON.stringify(this.wornGlass); |
| | | this.connects("订单小片破损",sql,1,1); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | computed:{ |
| | | |
| | |
| | | }, |
| | | |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | </html> |