shish 2 anni fa
parent
commit
f341eacdad
2 ha cambiato i file con 25 aggiunte e 2 eliminazioni
  1. 11 1
      ghs/src/views/in/add.vue
  2. 14 1
      ghs/src/views/order/add.vue

+ 11 - 1
ghs/src/views/in/add.vue

@@ -92,7 +92,8 @@
         <div style="display: inline-block;" class="allPrice">{{allCount.kind}}种</div>
         <div style="display: inline-block;" class="allPrice">{{allCount.kind}}种</div>
         <div style="display: inline-block;" class="allPrice">{{ allCount.bigLength }}扎</div>
         <div style="display: inline-block;" class="allPrice">{{ allCount.bigLength }}扎</div>
         <div style="display: inline-block;" class="allPrice">¥{{ allPrice }}</div>
         <div style="display: inline-block;" class="allPrice">¥{{ allPrice }}</div>
-        <el-button type="primary" size="medium" style="margin-left:50px;" @click="comeBack()">返回( Ctrl + B )</el-button>
+        <el-button type="primary" size="medium" style="margin-left:50px;" @click="commitOrder()">提交</el-button>
+        <el-button size="medium" style="margin-left:50px;" @click="comeBack()">返回( Ctrl + B )</el-button>
     </div>
     </div>
 
 
     <el-dialog :title="currentItem.name" v-if="showConfirmNum" :visible.sync="showConfirmNum" width="30%" center>
     <el-dialog :title="currentItem.name" v-if="showConfirmNum" :visible.sync="showConfirmNum" width="30%" center>
@@ -491,6 +492,15 @@ export default {
     setTransType(type){
     setTransType(type){
       this.form.transType = type
       this.form.transType = type
     },
     },
+    commitOrder(){
+        let that = this
+        if(that.$util.isEmpty(that.selectList)){
+          that.$message({message: '请选择花材',type: 'warning'});
+          return;
+        }
+        that.$refs['itemSearchRef'].blur()
+        that.showCommitPop = true
+    },
     comeBack(){
     comeBack(){
       this.form.ghsId = 0
       this.form.ghsId = 0
       this.form.ghsName = ''
       this.form.ghsName = ''

+ 14 - 1
ghs/src/views/order/add.vue

@@ -92,7 +92,8 @@
         <div style="display: inline-block;" class="allPrice">{{allCount.kind}}种</div>
         <div style="display: inline-block;" class="allPrice">{{allCount.kind}}种</div>
         <div style="display: inline-block;" class="allPrice">{{ allCount.bigLength }}扎</div>
         <div style="display: inline-block;" class="allPrice">{{ allCount.bigLength }}扎</div>
         <div style="display: inline-block;" class="allPrice">¥{{ allPrice }}</div>
         <div style="display: inline-block;" class="allPrice">¥{{ allPrice }}</div>
-        <el-button type="primary" size="medium" style="margin-left:50px;" @click="comeBack()">返回( Ctrl + B )</el-button>
+        <el-button type="primary" size="medium" style="margin-left:50px;" @click="commitOrder()">提交</el-button>
+        <el-button size="medium" style="margin-left:50px;" @click="comeBack()">返回( Ctrl + B )</el-button>
     </div>
     </div>
 
 
     <el-dialog :title="currentItem.name" v-if="showConfirmNum" :visible.sync="showConfirmNum" width="30%" center>
     <el-dialog :title="currentItem.name" v-if="showConfirmNum" :visible.sync="showConfirmNum" width="30%" center>
@@ -495,6 +496,18 @@ export default {
         this.form.sendCost = ""
         this.form.sendCost = ""
       }
       }
     },
     },
+    commitOrder(){
+        let that = this
+        if(that.$util.isEmpty(that.selectList)){
+          that.$message({message: '请选择花材',type: 'warning'});
+          return;
+        }
+        that.$refs['itemSearchRef'].blur()
+        that.setSendType(0)
+        that.setTransType(4)
+        that.form.hasPay = 2
+        that.showCommitPop = true
+    },
     comeBack(){
     comeBack(){
       this.form.customId = 0
       this.form.customId = 0
       this.form.customName = ''
       this.form.customName = ''