Jelajahi Sumber

前端质检接口完成sdy

zhongtianhaoyuan 3 tahun lalu
induk
melakukan
38a608efdc

+ 12 - 1
src/api/V2/houseSelfCollect/index.js

@@ -30,5 +30,16 @@ export const API_POST_INSPECT_ADD = '/qualityInspectionManagement/api/addQuality
 export const API_GET_INSPECT_GETBINNUMBER = '/warehouseBaseInfo/getWarehouse'
 //客户下拉
 export const API_GET_INSPECT_GETCUSTOMER = '/identityAuthenticationInfo/identityAuthenticationInfoCustomer'
-
+//质检列表
+export const API_GET_INSPECT_GETINSPECTLIST = '/qualityInspectionManagement/selectQualityInspection'
+//质检查看
+export const API_GET_INSPECT_GETINSPECTLOOK = '/qualityInspectionManagement/api/getQualityInspection'
+//质检查看潮粮单价
+export const API_GET_INSPECT_GETINSPECTLOOKUNITPRICE = '/purchasePrice/tidalGrainPrice'
+//质检货名下拉
+export const API_GET_INSPECT_GETINSPECTLOOKGOODS = '/qualityInspectionManagement/api/goodsName'
+//质检修改
+export const API_POST_INSPECT_GETINSPECTEDIT = '/qualityInspectionManagement/api/editQualityInspection'
+//质检删除
+export const API_POST_INSPECT_GETINSPECTDELETE = '/qualityInspectionManagement/api/deleteQualityInspection'
 

+ 4 - 2
src/lang/zh.js

@@ -998,7 +998,8 @@
     customerManagementEdit:'客户管理编辑',
     customerManagementAdd:'客户管理添加',
     settlement:'结算',
-    inspectInfo:'质检信息'
+    inspectInfo:'质检信息',
+    weightCheck:'检斤'
   },
   // 后台错误码
   message: {
@@ -7424,7 +7425,8 @@
     customerManagementEdit:'客户管理编辑',
     customerManagementAdd:'客户管理添加',
     settlement:'结算',
-    inspectInfo:'质检信息'
+    inspectInfo:'质检信息',
+    weightCheck:'检斤'
 
   }
 

+ 18 - 1
src/model/houseSelfCollect/index.js

@@ -18,6 +18,12 @@ import {
   API_POST_INSPECT_ADD,
   API_GET_INSPECT_GETBINNUMBER,
   API_GET_INSPECT_GETCUSTOMER,
+  API_GET_INSPECT_GETINSPECTLIST,
+  API_GET_INSPECT_GETINSPECTLOOK,
+  API_GET_INSPECT_GETINSPECTLOOKUNITPRICE,
+  API_GET_INSPECT_GETINSPECTLOOKGOODS,
+  API_POST_INSPECT_GETINSPECTEDIT,
+  API_POST_INSPECT_GETINSPECTDELETE
 
 } from '@/api/V2/houseSelfCollect'
 //客户管理列表
@@ -53,5 +59,16 @@ export const inspectAdd = appRx.post(API_POST_INSPECT_ADD, errorCatcher, errorHa
 export const getbinNumber = appRx.get(API_GET_INSPECT_GETBINNUMBER, errorCatcher, errorHandle, filter)
 //客户下拉
 export const getcustomer = appRx.get(API_GET_INSPECT_GETCUSTOMER, errorCatcher, errorHandle, filter)
-
+//质检列表
+export const getinspectList = appRx.get(API_GET_INSPECT_GETINSPECTLIST, errorCatcher, errorHandle, filter)
+//质检查看
+export const getinspectLook = appRx.get(API_GET_INSPECT_GETINSPECTLOOK, errorCatcher, errorHandle, filter)
+//质检查看潮粮单价
+export const getinspectLookUnitPrice = appRx.get(API_GET_INSPECT_GETINSPECTLOOKUNITPRICE, errorCatcher, errorHandle, filter)
+//质检查看货名下拉
+export const getinspectLookGoods = appRx.get(API_GET_INSPECT_GETINSPECTLOOKGOODS, errorCatcher, errorHandle, filter)
+//质检修改
+export const getinspectEdit = appRx.post(API_POST_INSPECT_GETINSPECTEDIT, errorCatcher, errorHandle, filter)
+//质检删除
+export const getinspectDelete = appRx.post(API_POST_INSPECT_GETINSPECTDELETE, errorCatcher, errorHandle, filter)
 

+ 14 - 0
src/views/houseSelfCollect/component/routers/route.js

@@ -170,6 +170,20 @@ const houseSelfCollectRouter = {
       },
       hidden: true
     },
+    {
+      path: 'weightCheck',
+      component: () =>
+        import(/* webpackChunkName: "sparepartList" */ '@/views/houseSelfCollect/weightCheck'),
+      name: 'weightCheck',
+      meta: {
+        title: 'weightCheck',
+        shortcutEntrance: 'weightCheck',
+        module: 'procurement.procurementOrder.delete',
+        permissicon: [],
+        keepAlive: true
+      },
+      hidden: true
+    },
   ],
 
 };

+ 1 - 0
src/views/houseSelfCollect/customerManagement.vue

@@ -263,6 +263,7 @@ export default {
       })
         .toPromise()
         .then((response) => {
+          this.warehouseList = []
           for (let i = 0; i < response.length; i++) {
             this.warehouseList.push({
               value: response[i].warehouseName,

+ 14 - 3
src/views/houseSelfCollect/houseSelfCollectPrint.vue

@@ -1,8 +1,8 @@
 <!--打印-->
 <template>
   <div id="print" class="center">
-   <div class="title">中天昊元粮食贸易有限公司结算凭证</div>
-   
+   <div class="title">{{name}}</div>
+    <div @click="print">打印</div>
   </div>
 </template>
 <script>
@@ -21,14 +21,25 @@ export default {
   data() {
     return {
       tableData:{},
+      name:""
  
     }
   },
   activated() {
 
+  },
+  created(){debugger
+  // this.$route.query.type
+this.name = this.$route.query.name
   },
   methods: {
-
+print(){
+        let newstr = document.getElementById('print').innerHTML
+      let oldstr = document.body.innerHTML
+      document.body.innerHTML = newstr
+      window.print()
+            document.body.innerHTML = oldstr
+}
   },
 }
 </script>

+ 136 - 67
src/views/houseSelfCollect/inspectInfo.vue

@@ -22,8 +22,9 @@
         <div style="width: 50%; margin: 0 auto">
           <div class="title">基本信息</div>
           <ws-info-table>
-            <ws-form-item label="编号" span="1" prop="waterContent">
+            <ws-form-item label="编号" span="1" prop="qualityNo">
               <ws-input
+                v-model="inspect.qualityNo"
                 placeholder="请输入编号"
                 maxlength="100"
                 disabled
@@ -82,18 +83,19 @@
             </ws-form-item>
             <ws-form-item label="货名" span="1" prop="goodsName">
               <ws-select
-              v-model="inspect.goodsName"
-              placeholder=""
-              class="typeselect"
-              @change="selectpackingMethod"
-            >
-              <ws-option
-                v-for="item in goodnameList"
-                :key="item.constKey"
-                :label="item.constValue"
-                :value="item.constValue"
-              />
-            </ws-select>
+                v-model="inspect.goodsName"
+                placeholder=""
+                class="typeselect"
+                :disabled="disabled"
+                @change="waterContentChange"
+              >
+                <ws-option
+                  v-for="item in goodnameList"
+                  :key="item.goodsNameKey"
+                  :label="item.goodsName"
+                  :value="item.goodsName"
+                />
+              </ws-select>
             </ws-form-item>
             <ws-form-item label="扣重比" span="1" prop="buckleWeightRatio">
               <ws-input
@@ -113,7 +115,7 @@
                 v-model="inspect.grade"
                 placeholder="请输入等级"
                 class="typeselect"
-                @change="selectpackingMethod"
+                @change="waterContentChange"
                 :disabled="disabled"
               >
                 <ws-option
@@ -139,6 +141,7 @@
                 placeholder="请输入水分占比"
                 maxlength="100"
                 size="small"
+                @change = "waterContentChange"
                 :disabled="disabled"
               />
             </ws-form-item>
@@ -180,7 +183,7 @@
             </ws-form-item>
           </ws-info-table>
           <div style="text-align: right; color: #323233">
-            潮粮单价(元/公斤):000000000{{ inspect.tidalGrainPrice }}
+            潮粮单价(元/公斤):{{ inspect.tidalGrainPrice ==null?"0": inspect.tidalGrainPrice}}
           </div>
           <div class="but">
             <el-button @click="cancel" v-if="this.types != 2" type="primary"
@@ -200,10 +203,16 @@
   </div>
 </template>
 <script>
-import { inspectAdd,getCustomerManage,getbinNumber,getcustomer } from '@/model/houseSelfCollect/index'
 import {
-  packList,
-} from '@/model/contarct/index'
+  inspectAdd,
+  getbinNumber,
+  getcustomer,
+  getinspectLook,
+  getinspectLookUnitPrice,
+  getinspectLookGoods,
+  getinspectEdit
+} from '@/model/houseSelfCollect/index'
+import { packList } from '@/model/contarct/index'
 import houseSelfCollectPrint from './houseSelfCollectPrint.vue'
 export default {
   components: {
@@ -217,16 +226,18 @@ export default {
       disabled: false,
       types: '',
       information: '添加',
-      goodnameList:[],
-      gradeList:[],
-      customerList:[],
-      getbinNumberList:[],
-      id:"",
+      goodnameList: [],
+      gradeList: [],
+      customerList: [],
+      getbinNumberList: [],
+      cangid: '', //仓库id
+      // calculation:''
     }
   },
   activated() {
     this.types = this.$route.query.type
-    this.id = this.$route.query.id
+    this.cangid = this.$route.query.cangid
+    let id = this.$route.query.id
     if (this.types == 2) {
       this.disabled = true
       this.information = '查看'
@@ -234,52 +245,104 @@ export default {
       this.disabled = false
       this.information = '编辑'
     }
-    this.getList()
+    this.calculation()
+    this.getList(id)
   },
   methods: {
+    getdate() {
+      var date = new Date()
+      var year = date.getFullYear() //获取完整的年份(4位)
+      var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
+      var datetime = date.getDate() //获取当前日(1-31)
+      if (mouth < 10) {
+        mouth = '0' + mouth
+      }
+      if (datetime < 10) {
+        datetime = '0' + datetime
+      }
+      return year + mouth + datetime
+    },
+    calculation() {
+      this.inspect.qualityNo = 'SGRK' + this.getdate()
+      // + this.verifyinit()
+    },
     print() {
-      this.$confirm('确定保存质检信息?', '提示', {
+      if(this.types == 1){
+         this.$confirm('确定保存质检信息?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning',
       })
         .then(() => {
+          // return
           inspectAdd(this.inspect)
             .toPromise()
             .then((response) => {
-              // this.customerList.id = response
-              // customerIdentity(this.customerList)
-              //   .toPromise()
-              //   .then((response) => {
-                  // console.log(response.code)
-                  this.$message.success('保存成功')
-                  // this.$router.push({ path: 'customerManagement' })
+              this.$message.success('保存成功')
+              // this.xx = true;
+              let newstr = document.getElementById('print').innerHTML
+              let oldstr = document.body.innerHTML
+              document.body.innerHTML = newstr
+              window.print()
+              document.body.innerHTML = oldstr
+              // window.location.reload()
+              this.$router.push({ path: 'paymentManagement' })
+            })
+        })
+        .catch(() => {
+          return false
+        })
 
-                  // this.xx = true;
-                  let newstr = document.getElementById('print').innerHTML
-                  let oldstr = document.body.innerHTML
-                  document.body.innerHTML = newstr
-                  window.print()
-                  document.body.innerHTML = oldstr
-                  // window.location.reload()
-                  this.$router.push({ path: 'paymentManagement' })
-                // })
+      }else if(this.types == 3){
+         this.$confirm('确定保存质检信息?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          // return
+          getinspectEdit(this.inspect)
+            .toPromise()
+            .then((response) => {
+              this.$message.success('修改成功')
+              // this.xx = true;
+              let newstr = document.getElementById('print').innerHTML
+              let oldstr = document.body.innerHTML
+              document.body.innerHTML = newstr
+              window.print()
+              document.body.innerHTML = oldstr
+              // window.location.reload()
+              this.$router.push({ path: 'paymentManagement' })
             })
         })
         .catch(() => {
           return false
         })
+
+      }
+     
     },
     cancel() {
       this.$router.push({ path: 'inspectionManagement' })
     },
-    //货名改变事件
-    selectpackingMethod(){
-
+    waterContentChange() {
+      //潮粮单价改变事件
+      getinspectLookUnitPrice({
+        warehouseId: this.cangid,
+        goodsName: this.inspect.goodsName,
+        waterContent: this.inspect.waterContent,
+        grade:this.inspect.grade
+      })
+        .toPromise()
+        .then((response) => {
+          this.inspect.tidalGrainPrice = response
+        })
     },
-    getList(){
-        // 货名
-      packList({ constId: 'CON2' })
+    //货名改变事件
+    selectpackingMethod() {},
+    getList(ids) {
+      // 货名
+      getinspectLookGoods({ warehouseId: this.cangid })
         .toPromise()
         .then((response) => {
           this.goodnameList = response
@@ -290,37 +353,43 @@ export default {
         .then((response) => {
           this.gradeList = response
         })
-        //客户
-        getcustomer({ compId: sessionStorage.getItem('ws-pf_compId') })
+      //客户
+      getcustomer({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
         .then((response) => {
           // this.gradeList = response
-           let customer = response
-          for(let i = 0 ; i < response.length ; i++ ){
-            customer = response[i].customerName +"(" + response[i].customerPhone + ")"
+          this.customerList = []
+          let customer = response
+          for (let i = 0; i < response.length; i++) {
+            customer =
+              response[i].customerName + '(' + response[i].customerPhone + ')'
             this.customerList.push({
-              valueKey:i,
-              value:customer
+              valueKey: i,
+              value: customer,
             })
-
-
           }
-         
-          console.log( this.customerList)
         })
-        // 仓位
-      getbinNumber({ id:this.id })
+      // 仓位
+      getbinNumber({ id: this.cangid })
         .toPromise()
         .then((response) => {
-          for(let i = 0 ; i < response.warehousePositionInfoList.length;i++ ){
-             this.getbinNumberList.push({
-               value:response.warehousePositionInfoList[i].binNumber
-             })
+          this.getbinNumberList=[]
+          for (let i = 0; i < response.warehousePositionInfoList.length; i++) {
+            this.getbinNumberList.push({
+              value: response.warehousePositionInfoList[i].binNumber,
+            })
           }
           // this.getbinNumberList = response.warehousePositionInfoList
         })
-
-    }
+      if (this.types == 2 || this.types == 3) {
+        //查看
+        getinspectLook({ id: ids })
+          .toPromise()
+          .then((response) => {
+            this.inspect = response
+          })
+      }
+    },
   },
 }
 </script>

+ 91 - 47
src/views/houseSelfCollect/inspectionManagement.vue

@@ -44,9 +44,9 @@
       </template>
     </BaseHeaderLayout>
     <el-table
-      :data="warehouseList1"
+      :data="inspect"
       style="width: 100%; margin-top: 20px"
-      ref="warehouseList1"
+      ref="inspect"
       border
       height="780"
     >
@@ -57,45 +57,49 @@
         </template>
       </el-table-column>
       <el-table-column
-        prop="contractNo"
+        prop="qualityNo"
         width="120"
         label="编号"
       ></el-table-column>
-      <el-table-column prop="contractNo" label="客户"></el-table-column>
-      <el-table-column prop="contractNo" label="车牌号"></el-table-column>
-      <el-table-column prop="contractNo" label="货名"></el-table-column>
-      <el-table-column prop="contractNo" label="水分(%)"></el-table-column>
+      <el-table-column 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="水分(%)"></el-table-column>
       <el-table-column
-        prop="contractNo"
+        prop="tidalGrainPrice"
         label="净重单价(元/公斤)"
       ></el-table-column>
-      <el-table-column prop="contractNo" label="仓位号"></el-table-column>
-      <el-table-column prop="contractNo" label="囤位号"></el-table-column>
-      <el-table-column prop="contractNo" label="质检员"></el-table-column>
-      <el-table-column prop="contractNo" label="质检时间"></el-table-column>
-      <el-table-column prop="contractNo" label="状态"></el-table-column>
-      <el-table-column width="300" prop="contractNo1" label="操作">
-        <el-button @click="inspectInfo(2)">查看</el-button>
-        <el-button @click="inspectInfo(3)">编辑</el-button>
-        <el-button @click="del">删除</el-button>
+      <el-table-column prop="binNumber" label="仓位号"></el-table-column>
+      <el-table-column prop="storageTagNo" label="囤位号"></el-table-column>
+      <el-table-column prop="qualityInspector" label="质检员"></el-table-column>
+      <el-table-column prop="qualityDate" label="质检时间"></el-table-column>
+      <el-table-column prop="status" label="状态"></el-table-column>
+      <el-table-column width="300" label="操作">
+        <template slot-scope="scope">
+          <el-button @click="inspectInfo(scope.row, 2)">查看</el-button>
+          <el-button @click="inspectInfo(scope.row, 3)">编辑</el-button>
+          <el-button @click="del(scope.row)">删除</el-button>
+        </template>
       </el-table-column>
     </el-table>
-    <div style="text-align:center">
-    <el-pagination
-      @size-change="handleSizeChange"
-      @current-change="handleCurrentChange"
-      :current-page="currentPage"
-      :page-size="deptCircularPage.pageSize"
-      layout="total, sizes, prev, pager, next, jumper"
-      :total="deptBudgetTotal"
-    >
-    </el-pagination>
+    <div style="text-align: center">
+      <el-pagination
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+        :current-page="currentPage"
+        :page-size="deptCircularPage.pageSize"
+        layout="total, sizes, prev, pager, next, jumper"
+        :total="deptBudgetTotal"
+      >
+      </el-pagination>
     </div>
   </div>
 </template>
 <script>
-import{
-selectWarehouseSelf
+import {
+  selectWarehouseSelf,
+  getinspectList,
+  getinspectDelete,
 } from '@/model/houseSelfCollect/index'
 
 export default {
@@ -103,44 +107,60 @@ export default {
   watch: {},
   data() {
     return {
-       //分页
+      //分页
       currentPage: 1,
       pageSize: 10,
-      deptCircularPage:{},
+      deptCircularPage: {},
       deptBudgetTotal: 0,
 
       searchKeyWord: '',
       taskTypeList: [],
       searchType: 0,
       searchTypeText: '',
-      warehouseList1: [
-        {
-          contractNo: '快付款',
-        },
-      ],
-      warehouseList:[],
-      id:"",//仓库id
+      inspect: [],
+      warehouseList: [],
+      cangid: '', //仓库id
     }
   },
   activated() {
     this.getList()
   },
   methods: {
-    inspectInfo(index) {
+    find(){
+     this.getList()
+    },
+    inspectInfo(row, index) {
       //添加,编辑,查看
-      this.$router.push({ path: 'inspectInfo', query: { type: index,id:this.id } })
+      console.log(row.id, 'id值')
+      this.$router.push({
+        path: 'inspectInfo',
+        query: { type: index, cangid: this.cangid, id: row.id },
+      })
     },
     selecttaskType(e) {
       console.log(e)
     },
-    del() {
+    del(row) {
       //删除
       this.$confirm('确定删除质检信息?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning',
       })
-        .then(() => {})
+        .then(() => {
+          getinspectDelete({ id: row.id })
+            .toPromise()
+            .then((response) => {
+              this.$notify.success({
+                title: '成功',
+                message: '删除成功',
+              })
+              this.getList()
+            })
+            .catch((response) => {
+              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+            })
+        })
         .catch(() => {
           return false
         })
@@ -155,24 +175,48 @@ export default {
       console.log(`当前页: ${val}`)
       this.getList()
     },
-    getList(){
+    getList() {
       selectWarehouseSelf({
         compId: sessionStorage.getItem('ws-pf_compId'),
         personCharge: sessionStorage.getItem('ws-pf_staffName'),
       })
         .toPromise()
         .then((response) => {
+          this.warehouseList = []
           for (let i = 0; i < response.length; i++) {
             this.warehouseList.push({
-              valueKey: i,
+              // valueKey: i,
               value: response[i].warehouseName,
-              id:response[i].id
+              id: response[i].id,
             })
           }
           this.searchTypeText = response[0].warehouseName
-          this.id = response[0].id
+          this.cangid = response[0].id
         })
-    }
+
+      getinspectList({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+        searchKeyWord: this.searchKeyWord,
+        searchTypeText: this.searchTypeText,
+      })
+        .toPromise()
+        .then((response) => {
+          // for (let i = 0; i < response.length; i++) {
+          //   this.warehouseList.push({
+          //     valueKey: i,
+          //     value: response[i].warehouseName,
+          //     id:response[i].id
+          //   })
+          // }
+          // this.searchTypeText = response[0].warehouseName
+          // this.id = response[0].id
+          // console.log(response)
+          this.inspect = response.records
+          this.deptBudgetTotal = response.total
+        })
+    },
   },
 }
 </script>

+ 17 - 9
src/views/houseSelfCollect/settlement.vue

@@ -327,15 +327,15 @@
         </div>
       </ws-form>
     </div>
-    <houseSelfCollectPrint v-show="false"></houseSelfCollectPrint>
+    <!-- <houseSelfCollectPrint v-show="false"></houseSelfCollectPrint> -->
   </div>
 </template>
 <script>
 import {} from '@/model/houseSelfCollect/index'
-import houseSelfCollectPrint from './houseSelfCollectPrint.vue'
+// import houseSelfCollectPrint from './houseSelfCollectPrint.vue'
 export default {
   components: {
-    houseSelfCollectPrint,
+    // houseSelfCollectPrint,
   },
   watch: {},
   data() {
@@ -359,14 +359,22 @@ export default {
   },
   methods: {
     print() {
+      debugger
       // this.xx = true;
-      let newstr = document.getElementById('print').innerHTML
-      let oldstr = document.body.innerHTML
-      document.body.innerHTML = newstr
-      window.print()
-      document.body.innerHTML = oldstr
+      // let newstr = document.getElementById('print').innerHTML
+      // let oldstr = document.body.innerHTML
+      // document.body.innerHTML = newstr
+      // window.print()
+        this.$router.push({ path: 'houseSelfCollectPrint',
+            query:{
+          name:"123"
+        }
+        },
+    
+        )
+      // document.body.innerHTML = oldstr
       // window.location.reload()
-      this.$router.push({ path: 'paymentManagement' })
+      // this.$router.push({ path: 'paymentManagement' })
     },
     cancel() {
       this.$router.push({ path: 'paymentManagement' })

+ 175 - 0
src/views/houseSelfCollect/weightCheck.vue

@@ -0,0 +1,175 @@
+<template>
+  <div class="center">
+    <el-row>
+      <el-col :span="12">
+        <h2 class="bg-left titleup">{{ information }}检斤信息</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button class="bg-bottom" type="primary" size="small" @click="cancel"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回</el-button
+        >
+      </el-col>
+    </el-row>
+    <div>
+      <ws-form>
+        <div style="width: 50%; margin: 0 auto">
+          <div class="title">基本信息</div>
+          <ws-info-table>
+            <ws-form-item label="编号" span="1" prop="qualityNo">
+              <ws-input
+                v-model="inspect.qualityNo"
+                placeholder="请输入编号"
+                maxlength="100"
+                disabled
+                size="small"
+              />
+            </ws-form-item>
+            <ws-form-item label="仓位号" span="1" prop="binNumber">
+              <ws-select
+                v-model="inspect.binNumber"
+                placeholder="请输入仓位号"
+                class="typeselect"
+                @change="selectpackingMethod"
+                :disabled="disabled"
+              >
+                <ws-option
+                  v-for="item in getbinNumberList"
+                  :key="item.value"
+                  :label="item.value"
+                  :value="item.value"
+                />
+              </ws-select>
+            </ws-form-item>
+            <ws-form-item label="客户" span="1" prop="customerName">
+              <ws-select
+                v-model="inspect.customerName"
+                placeholder="请输入客户"
+                class="typeselect"
+                @change="selectpackingMethod"
+                :disabled="disabled"
+              >
+                <ws-option
+                  v-for="item in customerList"
+                  :key="item.valueKey"
+                  :label="item.value"
+                  :value="item.value"
+                />
+              </ws-select>
+            </ws-form-item>
+            <ws-form-item label="囤位号" span="1" prop="storageTagNo">
+              <ws-input
+                v-model="inspect.storageTagNo"
+                placeholder="请输入囤位号"
+                maxlength="100"
+                size="small"
+                :disabled="disabled"
+              />
+            </ws-form-item>
+            <ws-form-item label="车牌号" span="1" prop="carNumber">
+              <ws-input
+                v-model="inspect.carNumber"
+                placeholder="请输入车牌号"
+                maxlength="100"
+                size="small"
+                :disabled="disabled"
+              />
+            </ws-form-item>
+            <ws-form-item label="货名" span="1" prop="goodsName">
+              <ws-select
+                v-model="inspect.goodsName"
+                placeholder=""
+                class="typeselect"
+                :disabled="disabled"
+                @change="waterContentChange"
+              >
+                <ws-option
+                  v-for="item in goodnameList"
+                  :key="item.goodsNameKey"
+                  :label="item.goodsName"
+                  :value="item.goodsName"
+                />
+              </ws-select>
+            </ws-form-item>
+            <ws-form-item label="毛重(公斤)" span="1" prop="buckleWeightRatio">
+              <ws-input
+                v-model="inspect.buckleWeightRatio"
+                placeholder="请输入毛重"
+                maxlength="100"
+                size="small"
+                :disabled="disabled"
+              />
+            </ws-form-item>
+             <ws-form-item label="皮重(公斤)" span="1" prop="buckleWeightRatio">
+              <ws-input
+                v-model="inspect.buckleWeightRatio"
+                placeholder="请输入皮重)"
+                maxlength="100"
+                size="small"
+                :disabled="disabled"
+              />
+            </ws-form-item>
+             <ws-form-item label="扣杂(公斤)" span="1" prop="buckleWeightRatio">
+              <ws-input
+                v-model="inspect.buckleWeightRatio"
+                placeholder="请输入扣杂"
+                maxlength="100"
+                size="small"
+                :disabled="disabled"
+              />
+            </ws-form-item>
+            <ws-form-item label="净重(公斤)" span="1" prop="buckleWeightRatio">
+              <ws-input
+                v-model="inspect.buckleWeightRatio"
+                placeholder="请输入净重"
+                maxlength="100"
+                size="small"
+                :disabled="disabled"
+              />
+            </ws-form-item>
+          </ws-info-table>
+           
+          
+          <div style="text-align: right; color: #323233">
+            潮粮单价(元/公斤):{{
+              inspect.tidalGrainPrice == null ? '0' : inspect.tidalGrainPrice
+            }}
+          </div>
+          <div class="but">
+            <el-button @click="cancel" v-if="this.types != 2" type="primary"
+              >取消</el-button
+            >
+            <el-button @click="print" v-if="this.types != 2" type="primary"
+              >保存并打印</el-button
+            >
+            <el-button @click="cancel" v-if="this.types == 2" type="primary"
+              >关闭</el-button
+            >
+          </div>
+        </div>
+      </ws-form>
+    </div>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+        inspect:{},
+        types:1,
+    }
+  },
+  activated() {},
+  methods: {},
+}
+</script>
+<style lang="scss" scoped>
+.center {
+  background: #f6f7fc;
+}
+</style>