瀏覽代碼

【修改】 bug

Howie 3 年之前
父節點
當前提交
315ae40cf7

+ 7 - 0
src/views/supply/engin/commerce_list.vue

@@ -149,6 +149,12 @@
                 {{scope.row.enginOrderType | typeFilter}}
               </template>
             </el-table-column>
+            <el-table-column align="left" label="经销商名称" prop="customerName" min-width="250" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerName" />
+                <span>{{ scope.row.customerName }}</span>
+              </template>
+            </el-table-column>
             <el-table-column align="left" label="使用单位" prop="refUseUnit" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="left" label="项目名称" prop="refProjectName" min-width="160" show-overflow-tooltip></el-table-column>
 <!--            <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip></el-table-column>-->
@@ -170,6 +176,7 @@
                 <span>{{scope.row.materialName}}</span>
               </template>
             </el-table-column>
+            
             <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip>
               <template slot-scope="scope">
                 <CopyButton :copyText="scope.row.specification" />

+ 1 - 1
src/views/supply/engin/components/engin_form.vue

@@ -535,7 +535,7 @@ export default {
       getDealerList({
         pageNum: 1,
         pageSize: -1,
-        bindUser: false
+        // bindUser: false
       }).then(res => {
         this.dealerList = res.data.records;
       })

+ 4 - 0
src/views/supply/engin/components/home_form.vue

@@ -1135,6 +1135,10 @@ export default {
               this.$errorMsg('请选择现金钱包');
               return;
             }
+            if(!this.goodsList[i].qty) {
+              this.$errorMsg('金额不能为0');
+              return;
+            }
           }
 
           let goodsList = JSON.parse(JSON.stringify(this.goodsList));

+ 9 - 1
src/views/supply/engin/home_list.vue

@@ -248,7 +248,15 @@
                 <span>{{ scope.row.customerName }}</span>
               </template>
             </el-table-column>
-
+            <el-table-column align="right" label="发货数量" prop="retiredQty" min-width="110" sortable show-overflow-tooltip>
+              <template slot-scope="scope">
+                {{scope.row.retiredQty }}
+              </template>
+            </el-table-column><el-table-column align="right" label="退货数量" prop="refundableQty" min-width="110" sortable show-overflow-tooltip>
+              <template slot-scope="scope">
+                {{scope.row.refundableQty }}
+              </template>
+            </el-table-column>
             <el-table-column align="left" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
               <template slot-scope="scope">
                 {{scope.row.isDirectTransfer ? '是':'否'}}