shish 2 жил өмнө
parent
commit
0fbde2a626

+ 13 - 11
ghs/src/views/order/add.vue

@@ -41,16 +41,16 @@
       </el-table>
       </el-table>
     </div>
     </div>
     <div class="seek-list-box" v-if="getItemList!=''">
     <div class="seek-list-box" v-if="getItemList!=''">
-      <el-table ref="showItemRef" :data="getItemList" highlight-current-row style="width:100%" border :header-cell-style="{background:'#fdfdfd', color: '#666'}" class="tableBox active">
-        <el-table-column prop="cover" label="图片" align="center" width="180">
+      <el-table ref="showItemRef" :data="getItemList" highlight-current-row style="width:65%" border :header-cell-style="{background:'#fdfdfd', color: '#666'}" class="tableBox active" height="740">
+        <el-table-column prop="cover" label="图片" align="center" width="120">
           <template slot-scope="scope">
           <template slot-scope="scope">
-            <img :src="scope.row.cover" style="width:40px;margin:0 auto;" />
+            <img :src="scope.row.cover" style="width:26px;margin:0 auto;" />
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column prop="name" label="名称" align="center"></el-table-column>
         <el-table-column prop="name" label="名称" align="center"></el-table-column>
-        <el-table-column prop="price" label="价格" width="180" align="center"></el-table-column>
-        <el-table-column prop="stock" label="库存" width="180" align="center"></el-table-column>
-        <el-table-column prop="bigUnit" label="单位" width="180" align="center"></el-table-column>
+        <el-table-column prop="price" label="价格" width="100" align="center"></el-table-column>
+        <el-table-column prop="stock" label="库存" width="100" align="center"></el-table-column>
+        <el-table-column prop="bigUnit" label="单位" width="100" height="10" align="center"></el-table-column>
       </el-table>
       </el-table>
     </div>
     </div>
     <div class="bottom_input">
     <div class="bottom_input">
@@ -69,6 +69,7 @@
         <el-input style="width: 130px;margin-left: 15px" placeholder="价格" @keyup.key-backspace.native="backspaceFun('price')" @keyup.enter.native="confirmNumPrice()" type="number" v-model="customData.userPrice"></el-input>
         <el-input style="width: 130px;margin-left: 15px" placeholder="价格" @keyup.key-backspace.native="backspaceFun('price')" @keyup.enter.native="confirmNumPrice()" type="number" v-model="customData.userPrice"></el-input>
         <span>元</span>
         <span>元</span>
       </div>
       </div>
+      <div style="text-align:center;margin:20px 0 5px 0;font-weight:bold;font-size:18px;">剩 {{ getItemList[getIndex].stock ? parseFloat(getItemList[getIndex].stock) : 0 }} {{ getItemList[getIndex].bigUnit}}</div>
       <div class="remark">Enter 确定,Backspace 清0,Esc 取消</div>
       <div class="remark">Enter 确定,Backspace 清0,Esc 取消</div>
     </el-dialog>
     </el-dialog>
 
 
@@ -78,7 +79,7 @@
       </div>
       </div>
     </el-dialog>
     </el-dialog>
 
 
-    <el-dialog title="确认提交" v-if="showCommitPop" :visible.sync="showCommitPop" width="573px" center>
+    <el-dialog title="确认提交" v-if="showCommitPop" :visible.sync="showCommitPop" width="573px" center :close-on-click-modal="false">
       <div>
       <div>
         <div class="accounts-list">
         <div class="accounts-list">
           客户
           客户
@@ -540,7 +541,7 @@ export default {
       this.getIndex = 0;
       this.getIndex = 0;
       this.searchOldVal = this.searchVal;
       this.searchOldVal = this.searchVal;
       this.isSeek = true;
       this.isSeek = true;
-      await this.$service.item.getItemList({search:this.searchVal,requestType:'kd',pageSize:6}).then(res=>{
+      await this.$service.item.getItemList({search:this.searchVal,requestType:'kd',pageSize:20}).then(res=>{
         let list = this.$util.copyObject(res.list)
         let list = this.$util.copyObject(res.list)
         if(!that.$util.isEmpty(list)){
         if(!that.$util.isEmpty(list)){
           that.getItemList = list
           that.getItemList = list
@@ -730,10 +731,11 @@ export default {
   .seek-list-box{
   .seek-list-box{
     position: absolute;
     position: absolute;
     bottom: 70px;
     bottom: 70px;
-    right: 20%;
-    width: 70%;
-    max-height: 310px;
+    right: 5%;
+    width: 66%;
+    min-height: 310px;
     overflow: hidden;
     overflow: hidden;
+    z-index:9999;
   }
   }
   .bottom_input {
   .bottom_input {
     position: absolute;
     position: absolute;