浏览代码

Merge branch 'dev' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc into dev

zhongtianhaoyuan 3 年之前
父节点
当前提交
eeeb6b624d

+ 14 - 4
public/static/inspectionnew.html

@@ -143,10 +143,16 @@
         <div class="number">{{tableData.qualityNo}}</div>
         <table class="table">
           <tr class="row">
-            <td class="col col-bgc">客户姓名</td>
+            <!-- <td class="col col-bgc">客户姓名</td>
             <td class="col" colspan="2">{{tableData.customerName}}</td>
             <td class="col col-bgc">客户电话</td>
-            <td class="col" colspan="2">{{tableData.customerPhone}}</td>
+            <td class="col" colspan="2">{{tableData.customerPhone}}</td> -->
+            <td v-if='tableData.serviceManagementType==3' class="col col-bgc">客户姓名</td>
+            <td v-if='tableData.serviceManagementType==1' class="col col-bgc">发货单位</td>
+           <td class="col" colspan="2">{{ tableData.customerName }}</td>
+           <td v-if='tableData.serviceManagementType==3' class="col col-bgc">客户电话</td>
+           <td v-if='tableData.serviceManagementType==1' class="col col-bgc">联系电话</td>
+           <td class="col" colspan="2">{{ tableData.customerPhone }}</td>
             <td class="col col-bgc">车牌号</td>
             <td class="col">{{tableData.carNumber}}</td>
           </tr>
@@ -231,7 +237,11 @@
           <div>{{tableData.qualityNo}}</div>
         </div>
         <div class="small-row">
-          <div>客户姓名:</div>
+          <div v-if='tableData.serviceManagementType==3'>客户姓名:</div>
+          <div v-if='tableData.serviceManagementType==1' class="col col-bgc">发货单位</div>
+           <td class="col" colspan="2">{{ tableData.customerName }}</td>
+           <td v-if='tableData.serviceManagementType==3' class="col col-bgc">客户电话</td>
+           <td v-if='tableData.serviceManagementType==1' class="col col-bgc">联系电话</td>
           <div>{{tableData.customerName}}</div>
         </div>
         <div class="small-row">
@@ -336,7 +346,7 @@
         name: "",
         bigContent: false,
         smallContent: false,
-        printData :{},
+        tableData :{},
       },
       computed: {},
       methods: {

+ 9 - 2
src/views/houseSelfCollect/component/inspectInfoPrint.vue

@@ -4,10 +4,16 @@
     <div class="number">{{ printData.qualityNo }}</div>
     <table class="table">
       <tr class="row">
-        <td class="col col-bgc">客户姓名</td>
+         <td v-if='printData.serviceManagementType==3' class="col col-bgc">客户姓名</td>
+         <td v-if='printData.serviceManagementType==1' class="col col-bgc">发货单位</td>
+         <!-- <td v-if='printData.serviceManagementType==1&&printData.inOutType=="采购入库"' class="col col-bgc">发货单位</td> -->
         <td class="col" colspan="2">{{ printData.customerName }}</td>
-        <td class="col col-bgc">客户电话</td>
+        <td v-if='printData.serviceManagementType==3' class="col col-bgc">客户电话</td>
+        <td v-if='printData.serviceManagementType==1' class="col col-bgc">联系电话</td>
+         <!-- <td v-if='printData.serviceManagementType==1&&printData.inOutType=="采购入库"' class="col col-bgc">联系电话</td> -->
         <td class="col" colspan="2">{{ printData.customerPhone }}</td>
+        
+        
         <td class="col col-bgc">车牌号</td>
         <td class="col">{{ printData.carNumber }}</td>
       </tr>
@@ -102,6 +108,7 @@
       }
     },
     activated() {
+      console.log(this.printData)
 
     },
     methods: {

+ 8 - 7
src/views/houseSelfCollect/inspectInfoLook.vue

@@ -16,7 +16,7 @@
         <div style="width: 80%; margin: 0 auto">
           <div class="title">基本信息</div>
           <ws-info-table>
-            <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <ws-form-item v-if='inspect.serviceManagementType==1' label="任务编号" span="1" prop="inOutTaskNo">
               <ws-input v-model="inspect.inOutTaskNo" placeholder="请输入任务编号" maxlength="100" disabled size="small" />
             </ws-form-item>
             <ws-form-item label="仓位号" span="1" prop="binNumber">
@@ -31,13 +31,13 @@
               <ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
                 :disabled="disabled3" />
             </ws-form-item>
-             <ws-form-item label="合同/移库编号" span="1" prop="contractNo">
+             <ws-form-item  v-if='inspect.serviceManagementType==1' label="合同/移库编号" span="1" prop="contractNo">
               <ws-input v-model="inspect.contractNo" placeholder="请输入合同/移库编号" maxlength="100" disabled size="small" />
             </ws-form-item>
-            <ws-form-item label="成本" span="1" prop="cost">
+            <ws-form-item v-if='inspect.serviceManagementType==1' label="成本" span="1" prop="cost">
               <ws-input v-model="inspect.cost" placeholder="请输入成本" maxlength="100" disabled size="small" />
             </ws-form-item>
-            <ws-form-item label="提示" span="1" prop="cost">
+            <ws-form-item v-if='inspect.serviceManagementType==1' label="提示" span="1" prop="cost">
               <ws-input v-model="inspect.tips" placeholder="请输入提示" maxlength="100" disabled size="small" />
             </ws-form-item>
             <ws-form-item label="扣款" span="1" prop="cost">
@@ -54,10 +54,11 @@
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="入库类型" span="1" prop="goodsName">
-               <ws-input v-model="inspect.inOutType" placeholder="请输入入库类型" maxlength="10" size="small"
+               <ws-input v-if='inspect.serviceManagementType==1'  v-model="inspect.inOutType" placeholder="请输入入库类型" maxlength="10" size="small"
                 :disabled="disabled" />
+              <div v-else>收购入库</div>
             </ws-form-item>
-            <ws-form-item label="入库日期" span="1" prop="natureOfGrainPurchase">
+            <ws-form-item v-if='inspect.serviceManagementType==1' label="入库日期" span="1" prop="natureOfGrainPurchase">
               <ws-input v-model="inspect.inOutDate" placeholder="请输入入库日期" maxlength="10" size="small"
                 :disabled="disabled" />
             </ws-form-item>
@@ -66,7 +67,7 @@
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="车队" span="1" prop="natureOfGrainPurchase">
-              <ws-input v-model="inspect.fleet" placeholder="请输入彻底" maxlength="10" size="small"
+              <ws-input v-model="inspect.fleet" placeholder="请输入车队" maxlength="10" size="small"
                 :disabled="disabled" />
             </ws-form-item>
             <!-- <ws-form-item label="购粮性质" span="1" prop="natureOfGrainPurchase">

+ 32 - 7
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -149,15 +149,19 @@
                   </el-select>
                 </ws-form-item>
                 <ws-form-item label="车牌号" span="1" prop="carNo">
-                  <ws-input :disabled="disabled2" v-if="options2.length == 0 || serviceManagementType==3" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
+                  <ws-input :disabled="disabled2" v-if="options2.length == 0&&serviceManagementType==1 || serviceManagementType==3&&carNumberList.length==0" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
                   size="small" />
-                <el-select :disabled="disabled2" v-if="carstatus && options2.length > 0 && serviceManagementType!=3" filterable clearable v-model="deptBudgetList.carNoCopy" placeholder="请选择车牌号" class="typeselect" @change="carChange">
+                <el-select :disabled="disabled2" v-if="carstatus && options2.length > 0 && serviceManagementType!=3" filterable clearable v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange($event,0)">
                   <el-option v-for="(item,index) in options2" :key="index"
                     :label="item.carNo + '(' + item.tranCarNo + ')'" :value="index" />
                 </el-select>
-                <el-select :disabled="disabled2" v-if="!carstatus && options2.length > 0" filterable clearable :filter-method="dataFilter2"
-                  v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
+                <el-select :disabled="disabled2" v-if="!carstatus && options2.length > 0 && serviceManagementType!=3" filterable clearable :filter-method="dataFilter2"
+                  v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange($event,0)">
                   <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo" :value="item.carNo" />
+                </el-select>
+                <el-select :disabled="disabled2" v-if="carNumberList.length > 0 && serviceManagementType==3" filterable clearable :filter-method="dataFilter2"
+                  v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange($event,1)">
+                  <el-option v-for="item in carNumberList" :key="item.constKey" :label="item.carNo" :value="item.carNo" />
                 </el-select>
                   <!-- <el-select @change='carchange' v-if="statusTypetext=='初检'&&editcar==false&&carstatus||statusTypetext=='确认'&&editcar==false&&carstatus" v-model="deptBudgetList.carNo" placeholder="请选择车牌号">
                     <el-option v-for="(item,index) in options2" :key="item.value" :label="item.carNo + '(' + item.tranCarNo + ')'" :value="index"  />
@@ -313,6 +317,7 @@
     getcustomer,
     getDryGrainPrice,
     getinspectLookGoods,
+    getshippinginfo
   } from '@/model/houseSelfCollect/index'
   import {
     pullDown,
@@ -339,6 +344,8 @@
         typeList: ['干粮', '潮粮'],
         disablednotarize:false,
         goodsdisabled:false,
+        customerName:'',
+        customerPhone:'',
         deptBudgetList:{
           type: '潮粮',
           freight: 0,
@@ -423,6 +430,7 @@
         directselling:false,
         fleetNameList:[],
         outContractNo:[],
+        carNumberList:[],
         options1:[],
         editcar:false,
         isGetCost:'',
@@ -529,9 +537,13 @@
       record(){
         this.$router.push({path: 'inspectionManagementrecord' })
       },
-      carChange(e) {
-        this.$set(this.deptBudgetList, 'customerName', this.carNumberList[e].shipperName)
-        this.$set(this.deptBudgetList, 'customerPhone', this.carNumberList[e].shipperPhone)
+      carChange(e,status) {
+        console.log(status)
+        if(status==1){
+          this.$set(this.deptBudgetList, 'customerName', this.carNumberList[e].shipperName)
+          this.$set(this.deptBudgetList, 'customerPhone', this.carNumberList[e].shipperPhone)
+        }
+
         for (let i = 0; i < this.customerList1.length; i++) {
           if (this.customerList1[i].customerName == this.deptBudgetList.customerName) {
             this.deptBudgetList.customerNumberCard = this.customerList1[i].customerNumberCard
@@ -1645,6 +1657,8 @@
                               // this.printData.qrCodeUrl = res
                               // })
                         this.deptBudgetList = response2
+                        this.deptBudgetList.customerName=this.customerName
+                        this.deptBudgetList.customerPhone=this.customerPhone
                         if (response.compName == '黑龙江秋收有限公司') {
                     		 this.deptBudgetList.compName = '黑龙江中天昊元贸易有限公司'
                     			}
@@ -1751,6 +1765,7 @@
                         natureOfGrainPurchase: '贸易粮',
                         buckleMiscellaneous: 0,
                         paramType: 1,
+                        
                         warehouseInOutDetail: {
                           grade:'',
                           reGrade:'',
@@ -1953,6 +1968,8 @@
             this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
             this.deptBudgetList.grade = this.outContractNo[i].grade
             if (this.outContractNo[i].inOutType == '采购入库') {
+              this.customerName=this.carNumberList[e].buyer
+              this.customerPhone=this.carNumberList[e].buyerPhone
               this.deptBudgetList.qualityNo='CGRK'+this.getTime()+this.warehouseNo+this.warehouseCount
               if (!this.outContractNo[i].unitContractPrice) {
                 this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
@@ -1961,6 +1978,7 @@
               }
               this.deptBudgetList.inOutTypeKey = 1
             } else if (this.outContractNo[i].inOutType == '移库入库') {
+              this.customerName=localStorage.getItem('ws-pf_compName')
               this.deptBudgetList.qualityNo='YKRK'+this.getTime()+this.warehouseNo+this.warehouseCount
               this.deptBudgetList.goodsName = data.goodsName
               this.deptBudgetList.goodsNameKey = data.goodsNameKey
@@ -2110,6 +2128,13 @@
             this.goodnameList = response
             this.purchasePriceList = response
           })
+           getshippinginfo({
+            compId: localStorage.getItem('ws-pf_compId'),
+            warehouseName: this.warehouseName
+          }).toPromise()
+          .then((response) => {
+            this.carNumberList = response
+          })
         // 品级
         pullDown({
             constId: 'CON3',

+ 5 - 5
src/views/houseSelfCollect/inspectionManagementrecord.vue

@@ -42,13 +42,13 @@
         </template>
       </el-table-column>
       <el-table-column prop="qualityNo" width="100" label="业务编号"></el-table-column>
-      <el-table-column v-if='serviceManagementType==1' prop="qualityNo" width="100" label="合同编号/移库编号">
+      <el-table-column :key='Math.random()' v-if='serviceManagementType==1' prop="qualityNo" width="100" label="合同编号/移库编号">
         <template scope="scope">
           <span v-if="scope.row.contractNo">{{ scope.row.contractNo }}</span>
           <span v-else>{{ scope.row.moveTaskNo }}</span>
         </template>
       </el-table-column>
-      <el-table-column v-if='serviceManagementType==3' prop="customerName" label="客户"></el-table-column>
+      <el-table-column :key='Math.random()' v-if='serviceManagementType==3' prop="customerName" label="客户"></el-table-column>
       <el-table-column prop="carNumber" label="车牌号"></el-table-column>
       <el-table-column prop="goodsName" label="货名"></el-table-column>
       <el-table-column prop="waterContent" label="水分(%)" width="120">
@@ -59,8 +59,8 @@
         </template>
       </el-table-column>
       <el-table-column prop="type" label="类型"></el-table-column>
-      <el-table-column v-if='serviceManagementType==1' prop="cost" label="成本(元/吨)"></el-table-column>
-      <el-table-column v-if='serviceManagementType==3' prop="tidalGrainPrice" label="单价(元/公斤)" width="120px">
+      <el-table-column :key='Math.random()' v-if='serviceManagementType==1' prop="cost" label="成本(元/吨)"></el-table-column>
+      <el-table-column :key='Math.random()' v-if='serviceManagementType==3' prop="tidalGrainPrice" label="单价(元/公斤)" width="120px">
         <template scope="scope">
           <span v-if="scope.row.type == '潮粮'">{{ scope.row.tidalGrainPrice }}</span>
           <span v-else>{{ scope.row.dryGrainPrice }}</span>
@@ -179,7 +179,7 @@
         if(status=='初检'){
           this.statusType=1
         }else if(status=='复检'){
-          this.statusType=1
+          this.statusType=2
         }else if(status=='确认'){
           this.statusType=3
         }else if(status=='全部'){

+ 14 - 2
src/views/houseSelfCollect/newWeighingManagement.vue

@@ -360,8 +360,8 @@
             this.tpyeNo = _saomaData.typeNo
             this.inWarehouseType = _saomaData.managementType
             localStorage.removeItem("saoma_data"); //第一次进来结束后清除缓存
-          } else if (localStorage.getItem('ck')) {
-            this.warehouseName = localStorage.getItem('ck')
+          } else if ( localStorage.getItem('houseSelfCollect_house1')) {
+            this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
             for (var i = 0; i < response.length; i++) {
               if (this.warehouseName == this.warehouseList[i].warehouseName) {
                 this.cangid = this.warehouseList[i].id
@@ -372,6 +372,12 @@
               }
             }
           } else {
+            localStorage.setItem('houseSelfCollect_house1',JSON.stringify({  value:  this.warehouseList[0].warehouseName,
+                warehouseId:  this.warehouseList[0].id,
+                count:  this.warehouseList[0].count,
+                No: this.warehouseList[0].commonWarehouseNo,
+                allowEdit:  this.warehouseList[0].allowEdit,
+                compId: localStorage.getItem('ws-pf_compId')}))
             this.warehouseName = this.warehouseList[0].warehouseName
             localStorage.setItem('ck', this.warehouseName)
             this.cangid = this.warehouseList[0].id
@@ -402,6 +408,12 @@
         this.deptBudgetList.warehouseName = this.warehouseName
         for (var i = 0; i < this.warehouseList.length; i++) {
           if (this.warehouseName == this.warehouseList[i].warehouseName) {
+             localStorage.setItem('houseSelfCollect_house1',JSON.stringify({  value:  this.warehouseList[i].warehouseName,
+                warehouseId:  this.warehouseList[i].id,
+                count:  this.warehouseList[i].count,
+                No: this.warehouseList[i].commonWarehouseNo,
+                allowEdit:  this.warehouseList[i].allowEdit,
+                compId: localStorage.getItem('ws-pf_compId')}))
             this.cangid = this.warehouseList[i].id
             this.monitorUrl1 = this.warehouseList[i].monitorUrl1
             this.monitorUrl2 = this.warehouseList[i].monitorUrl2

+ 3 - 0
src/views/outboundManagement/weighingManagementNew.vue

@@ -404,6 +404,9 @@
 		record(){
 			this.$router.push({path: 'weighingManagementrecord' })
 		},
+		closePrint() {
+        	this.isShowPrint = false
+      	},
 		printSmall() {
 			localStorage.setItem('inspect',JSON.stringify(this.inspect))
         window.open('../../../static/weightChecknew.html?type=1' )