Kaynağa Gözat

入库单客户信息

gjy 2 yıl önce
ebeveyn
işleme
02ba04c2b0

+ 3 - 3
src/views/warehousenew/inventoryCheck.vue

@@ -336,8 +336,8 @@
         var data=this.gainList[index].warehousingOrderList
         for (let i = 0; i < data.length; i++) {
           data[i].select=false
-          }
-        row.select=!row.select
+        }
+        // row.select=!row.select
         
         console.log(this.multipleSelection)
       },
@@ -355,7 +355,7 @@
         this.currentRow = val;
       },
       aduit(row){
-        if(localStorage.getItem('ws-pf_staffName')=='吕波'){
+        if(localStorage.getItem('ws-pf_roleName')=='单证中心主任'){
           this.aduitList=row
           this.form.id=row.id
           this.form.surplusWeight=row.surplusWeight

+ 47 - 1
src/views/warehousenew/warehousingOrder.vue

@@ -87,7 +87,11 @@
         </el-table-column>
         <el-table-column prop="goodsSource" label="货源" width="80"></el-table-column>
         <el-table-column prop="deliveryWarehouse" label="发货库" width="80"></el-table-column>
-        <el-table-column prop="customer" label="客户" width="100"></el-table-column>
+        <el-table-column prop="customer" label="客户" width="100">
+           <template scope="scope">
+             <span @click='lookcustomer(scope.row)'>{{scope.row.customer}}</span>
+            </template>
+        </el-table-column>
         <el-table-column prop="goodsName" label="货名" width="60">
         </el-table-column>
         <el-table-column prop="inWarehouseWeight1"  width="140" class="table_td" label="入库重量(吨)">
@@ -184,6 +188,28 @@
           <el-button @click="aduitshow = false">取消</el-button>
           <el-button type="primary" @click="paymentsubmit">确定</el-button>
         </span>
+      </el-dialog>
+        <el-dialog
+        title="客户信息"
+        :visible.sync="customershow"
+        width="50%"
+        :before-close="handleClose3">
+        <div>
+            <el-form label-position="left">
+            <el-form-item  label-width='100px' label="收款方" span="1" prop="purpose" class="readonly">
+            {{customerInfo.customerType=="企业客户"?customerInfo.compName:customerInfo.customerName}}
+            </el-form-item>
+            <el-form-item  label-width='100px' label="账号" span="1" prop="purpose" class="readonly">
+            {{customerInfo.bankCard}}
+            </el-form-item>
+            <el-form-item  label-width='100px' label="开户行" span="1" prop="purpose" class="readonly">
+            {{customerInfo.bankDeposit}}
+            </el-form-item>
+            <el-form-item  label-width='100px' label="开户支行" span="1" prop="purpose" class="readonly">
+            {{customerInfo.bankDepositBranch}}
+            </el-form-item>
+             </el-form>
+        </div>
       </el-dialog>
             <el-dialog
         title="预付款分配"
@@ -469,6 +495,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
         size: 10,
         spanArr: [],
         id:'',
+        customerInfo:{},
         appendixIdss:[],
         paymentScreenshot:[],
         endDate:'',
@@ -488,6 +515,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
             return time.getTime() > Date.now()
           },
         },
+        customershow:false,
         accessoryTFs: false,
         remarkList: false,
         dialogTitle:'',
@@ -988,6 +1016,21 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
           });
           
       },
+      lookcustomer(row){
+        if(row.inType=='采购入库'){
+            getpayeeinfo({compId: localStorage.getItem('ws-pf_compId'),contractNo:row.contractNo}).toPromise()
+            .then((response) => {
+              this.customerInfo=response
+              this.customershow=true
+            })
+          }else if(row.inType=='收购入库'){
+            getbuypayeeinfo({compId: localStorage.getItem('ws-pf_compId'),customerName:row.customer}).toPromise()
+            .then((response) => {
+              this.customerInfo=response
+              this.customershow=true
+            })
+          }
+      },
       payment(item){
         if(localStorage.getItem('ws-pf_roleName')=='出纳'){
           this.money=0
@@ -1301,6 +1344,9 @@ multiFilter(array, filters) {
       handleClose() {
         this.aduitshow = false
       },
+      handleClose3() {
+        this.customershow = false
+      },
       handleClose1() {
         this.form.distributionIng=''
         this.distributionshow = false