Browse Source

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

ccj 1 year ago
parent
commit
352bab478d

+ 2 - 0
package.json

@@ -52,6 +52,7 @@
     "base-core-lib": "^1.3.16",
     "base-template-lib": "^1.0.7-beta",
     "countup": "^1.8.2",
+    "default-passive-events": "^2.0.0",
     "echarts": "^4.2.1",
     "element-china-area-data": "^5.0.2",
     "element-ui": "^2.15.9",
@@ -88,6 +89,7 @@
     "vue-print-nb": "^1.7.5",
     "vue-router": "3.0.2",
     "vue-seamless-scroll": "^1.1.17",
+    "vue-visibility-change": "^1.2.1",
     "vuedraggable": "2.20.0",
     "vuex": "3.1.0",
     "web-see": "^1.1.0",

+ 13 - 0
src/api/V2/warehouse/index.js

@@ -46,6 +46,8 @@ export const API_GET_WAREHOUSE_NO = '/warehouseBaseInfo/selectContractNoList'
 
 //获取检斤打印数据
 export const API_GET_PRINT_INFO = '/warehouseBaseInfo/getPrintInfo'
+//获取检斤打印数据(新)
+export const API_GET_PRINT_INFO_NEW = '/warehouseBaseInfo/getPrintInfoNew'
 // 获取负责人
 export const API_GET_STAFF = '/staff/query/getStaffListByCompIdAndWarehouseId'
 //临时仓库记录
@@ -199,3 +201,14 @@ export const API_GET_EXPORT ='/materialWarehouseInOut/exportMaterialWarehouse'
 export const API_GET_EXPORTJYNIN ='/warehouseBaseInfo/exportInJyn'
 // 导出出库(佳屹农)
 export const API_GET_EXPORTJYNOUT ='/warehouseBaseInfo/exportOutJyn'
+
+//巡检信息列表
+export const API_POST_INSPECTION_LIST = '/warehousePatrolInspectionInfo/selectInfo'
+//巡检信息添加
+export const API_POST_INSPECTION_ADD = '/warehousePatrolInspectionInfo/api/addInfo'
+//巡检信息编辑
+export const API_POST_INSPECTION_EDIT = '/warehousePatrolInspectionInfo/api/editInfo'
+//巡检信息删除
+export const API_POST_INSPECTION_DEL = '/warehousePatrolInspectionInfo/api/deleteInfo'
+//巡检信息查看
+export const API_POST_INSPECTION_GET = '/warehousePatrolInspectionInfo/getInfo'

+ 1 - 0
src/lang/zh.js

@@ -686,6 +686,7 @@ export default {
     customerrecord:'客户操作记录',
     goodsrollIn:'货权转入',
     gooddetail:'货权明细',
+    inspectionRecords:'巡检记录',
     storageCharge:'仓储费',
     earnestmoney:'保证金',
     oilcost:'油费',

+ 20 - 1
src/model/warehouse/index.js

@@ -96,7 +96,13 @@ import {
     API_SALESTRANINFO,
     API_GET_EXPORT,
     API_GET_EXPORTJYNIN,
-    API_GET_EXPORTJYNOUT
+    API_GET_EXPORTJYNOUT,
+    API_POST_INSPECTION_LIST,
+    API_POST_INSPECTION_ADD,
+    API_POST_INSPECTION_EDIT,
+    API_POST_INSPECTION_DEL,
+    API_POST_INSPECTION_GET,
+    API_GET_PRINT_INFO_NEW
     // API_GET_EXPENSEINFO
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
@@ -153,6 +159,9 @@ export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, erro
 export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
 //获取检斤打印数据
 export const getPrintInfo = appRx.get(API_GET_PRINT_INFO, errorCatcher, errorHandle, filter)
+//获取检斤打印数据(新)
+export const getPrintInfoNew = appRx.get(API_GET_PRINT_INFO_NEW, errorCatcher, errorHandle, filter)
+
 //任务列表
 export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter)
 // 成本管理
@@ -295,3 +304,13 @@ export const salestraninfo = appRx.post(API_SALESTRANINFO, errorCatcher, errorHa
 // 佳屹农导出入库出库
 export const postExportjynin = appRx.post(API_GET_EXPORTJYNIN)
 export const postExportjynout = appRx.post(API_GET_EXPORTJYNOUT)
+//巡检信息列表
+export const  inspectionList= appRx.get(API_POST_INSPECTION_LIST, errorCatcher, errorHandle, filter)
+//巡检信息添加
+export const  addInspection= appRx.post(API_POST_INSPECTION_ADD, errorCatcher, errorHandle, filter)
+//巡检信息编辑
+export const  editInspection= appRx.post(API_POST_INSPECTION_EDIT, errorCatcher, errorHandle, filter)
+//巡检信息删除
+export const delInspection = appRx.post(API_POST_INSPECTION_DEL, errorCatcher, errorHandle, filter)
+//巡检信息查看
+export const getInspection = appRx.get(API_POST_INSPECTION_GET, errorCatcher, errorHandle, filter)

+ 1 - 1
src/views/profitable/cashout.vue

@@ -103,7 +103,7 @@
             </el-input>
           </el-form-item>
           <el-form-item label-width='100px' label="附件">
-            <ws-upload ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx, .zip" :comp-id="compId"
+            <ws-upload ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx, .zip, .rar" :comp-id="compId"
               :appendix-ids="deptBudgetList.addressUrl" :size-limit="size" :limit="99" @onChange="onChange" />
             <!-- <el-upload ref='uploadfiles' :file-list='dataList' :action="global.uploadPath" :on-preview="Previewf"
             :on-success="handlefujian" :on-remove="handleRemove" class="photo2" >

+ 1 - 1
src/views/profitable/receipt.vue

@@ -52,7 +52,7 @@
             </el-select>
           </el-form-item>
           <el-form-item label-width='100px' label="金额" span="1" prop="contractNo" class="readonly">
-            <el-input placeholder="输入收款金额" class="input_css input50" v-model="deptBudgetList.amountMoney"></el-input>
+            <el-input type="number" placeholder="输入收款金额" class="input_css input50" v-model="deptBudgetList.amountMoney"></el-input>
           </el-form-item>
           <el-form-item label-width='100px' label="备注" span="1" prop="settlementMethod">
             <el-input

+ 1 - 1
src/views/taskManagement/tranManagementTransport.vue

@@ -101,7 +101,7 @@
           <div class="record" @click="delivery(scope.row)" v-hasPermission="
            `transportationTask.transportation.transportationInfo.edit`
           ">编辑</div>
-          <div class="record1" @click="deleteclick(scope.row)" v-hasPermission="
+          <div class="record" @click="deleteclick(scope.row)" v-hasPermission="
            `transportationTask.transportation.transportationInfo.delete`
           ">删除</div>
         </template>

+ 15 - 0
src/views/warehousenew/component/router/index.js

@@ -539,6 +539,21 @@ const warehouseManagementRouter = {
         // module: 'procurement.sparepart.applDetail'
       },
     },
+    {
+      path: 'inspectionRecords',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehousenew/inspectionRecords'),
+      name: 'inspectionRecords',
+      meta: {
+        title: 'inspectionRecords',
+        shortcutEntrance: 'warehouseManagementList',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true,
+        _title:'巡检记录'
+        // module: 'procurement.sparepart.applDetail'
+      },
+    },
     {
       path: 'customerrecord',
       component: () =>

+ 547 - 0
src/views/warehousenew/inspectionRecords.vue

@@ -0,0 +1,547 @@
+<!--巡检记录-->
+<template>
+  <div class="container">
+    <BaseHeaderLayout :leftSpan="16">
+      <template slot="left">
+          <el-select v-model="warehouseName" filterable placeholder="" @change="warehouseNameChange" >
+          <el-option v-for="item in warehouseList" :key="item.value" :label="item.warehouseName" :value="item.warehouseName"
+            style="color: #8890b1" />
+        </el-select>
+          <div style='width:50%;margin-right:10px;'>
+            <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="至"
+                start-placeholder="开始日期" value-format='yyyy-MM-dd' end-placeholder="结束日期" @change='datechange' :picker-options="pickerOptions">
+            </el-date-picker>
+          </div>
+<ws-input @keyup.enter.native="find()" class='findValue' v-model="searchKeyWord" placeholder="可按巡检人查找" clearable maxlength="300" type="input"></ws-input>
+        <ws-button class="find" type="primary" @click="lookUp()">
+          <img width="16" height="16" style="
+              vertical-align: text-top;
+              position: relative;
+              top: 0px;
+              left: -8px;
+            " src="../../../public/img/sousuo.png" alt />
+        </ws-button>
+      </template>
+      <template slot="right">
+          <el-button @click="add" type="primary">添加</el-button>
+      </template>
+    </BaseHeaderLayout>
+  <div class="fromdata" style='margin-top:10px;'>
+        <el-table :data="tableData" stripe style="width: 100%" >
+          <el-table-column width="100"  type="index" label="序号">
+            <template scope="scope">
+              <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+              <span v-else>{{ scope.$index + 1 }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column width="120" prop="qualityInspector" label="巡检人">
+          </el-table-column>
+           <el-table-column width="160" prop="warehouseName" label="仓库名称">
+          </el-table-column>
+           <el-table-column width="120" prop="binNumber" label="仓位">
+          </el-table-column>
+           <el-table-column width="120" prop="temperature" label="温度">
+          </el-table-column>
+           <el-table-column width="120" prop="humidity" label="湿度">
+          </el-table-column>
+                     <el-table-column prop="addressUrl"  width="120" label="附件">
+        <template slot-scope="scope">
+          <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
+          <span v-if="scope.row.addressUrlArray != null">
+            {{
+                scope.row.addressUrlArray.length == 0
+                  ? ''
+                  : scope.row.addressUrlArray.length
+            }}
+          </span>
+        </template>
+      </el-table-column>
+           <el-table-column width="120" prop="inspectionResults" label="巡检结果">
+          </el-table-column>
+           <el-table-column width="200" prop="inspectionDate,time" label="巡检时间">
+            <template slot-scope="scope">
+            {{ scope.row.inspectionDate }}  {{ scope.row.time }}
+            </template>
+          </el-table-column>
+           <el-table-column width="200" prop="updateDate" label="更新时间">
+          </el-table-column>
+           <el-table-column prop="seller" label="操作" >
+        <template slot-scope="scope">
+        
+          <div class="record" @click="edit(scope.row)" v-hasPermission="
+           `transportationTask.transportation.transportationInfo.edit`
+          ">编辑</div>
+          <div class="record" @click="deleteclick(scope.row)" v-hasPermission="
+           `transportationTask.transportation.transportationInfo.delete`
+          ">删除</div>
+        </template>
+      </el-table-column>
+        </el-table>
+      </div>
+      <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
+        :page-size="pageSize"  layout="total,  prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
+        <el-dialog
+        title="巡检记录"
+        :visible.sync="aduitshow"
+        width="30%"
+        :before-close="handleClose">
+        <div>
+          <el-form ref="form" :model="form" label-width="120px">
+            <el-row>
+              <el-col :span="12">
+             <el-form-item :label="this.warehouseName" v-model="form.warehouseName">
+            </el-form-item>
+            </el-col>
+              <el-col :span="12">
+            <el-form-item :label="'巡检员:'+this.qualityInspector" v-model="form.qualityInspector">
+            </el-form-item>
+            </el-col>
+          </el-row>
+           
+          <ws-form-item  label="巡检日期" span="1" prop="inspectionDate" class="inspectionDate">
+                        <ws-date-picker v-model="form.inspectionDate" type="date" placeholder="请选择巡检日期"
+                          value-format="yyyy-MM-dd" />
+                      </ws-form-item>
+                       <el-form-item label="巡检时间">
+          <el-time-picker v-model="form.time"  :picker-options="{ selectableRange: '00:00:00 - 23:59:59'}" format="HH:mm"
+   value-format="HH:mm" placeholder="请选择巡检时间">
+          </el-time-picker>
+          </el-form-item>
+            <el-form-item label="仓位">
+            <el-select  @focus="warehousefocus" @change="warehousechange" v-model="form.binNumber"
+              filterable placeholder="请选择">
+              <el-option v-for="item in options" :key="item.id" :label="item.binNumber" :value="item.binNumber">
+              </el-option>
+            </el-select>
+          </el-form-item>
+              <el-form-item label="温度(℃)" >
+              <el-input v-model="form.temperature" placeholder="输入温度"></el-input>
+            </el-form-item>
+            <el-form-item label="湿度(℃)">
+              <el-input v-model="form.humidity" placeholder="输入湿度"></el-input>
+            </el-form-item>
+              <el-form-item label="巡检结果">
+              <el-radio v-model="form.inspectionResults" label="正常">正常</el-radio>
+            <el-radio v-model="form.inspectionResults" label="异常">异常</el-radio>
+            </el-form-item>
+            <el-form-item label="附件">
+          <ws-upload ref="upload"  accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
+            :comp-id="compId" :appendix-ids="form.addressUrl" :size-limit="size" @onChange="onChange" />
+        </el-form-item>
+
+        <el-form-item label="备注">
+          <el-input maxlength="1000" rows="5" type="textarea" show-word-limit v-model="form.remark"></el-input>
+        </el-form-item>
+          </el-form>
+        </div>
+
+        <span slot="footer" class="dialog-footer">
+          <el-button type="primary" @click="submit(flag)">提交</el-button>
+        </span>
+      </el-dialog>
+          <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
+      @on-cancel="handleClose">
+          <ws-upload  ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
+        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+    </WinseaContentModal>
+  </div>
+</template>
+<script>
+    import {
+  inspectionList,
+  addInspection,
+  editInspection,
+  delInspection,
+  getInspection,
+  getposition
+} from '@/model/warehouse/index'
+    import {
+    selectWarehouseSelf,
+  } from '@/model/outboundManagement/index'
+  import Pagination from '@/components/Pagination'
+  import WsUpload from '@/components/WsUpload'
+  export default {
+    name: 'viewSpareMoney',
+    components: {
+      WsUpload,
+      Pagination,
+    },
+    watch: {
+      vesselId(val) {
+        this.getList()
+      },
+    },
+    data() {
+      return {
+        // 表格显示数据
+        options:[],
+        // 是否显示
+        warehouseName:'',
+        baseId:'',
+        warehouseList:[],
+        title:'',
+       tableData: [],
+        currentPage: 1,
+        primary: '1',
+        pickerOptions: {
+          shortcuts: [{
+              text: '本周',
+              onClick(picker) {
+                const end = new Date()
+                const start = new Date()
+                var thisDay = start.getDay()
+                var thisDate = start.getDate()
+                if (thisDay != 0) {
+                  start.setDate(thisDate - thisDay)
+                }
+                picker.$emit('pick', [start, end])
+              },
+            },
+            {
+              text: '本月',
+              onClick(picker) {
+                const end = new Date()
+                const start = new Date()
+                start.setDate(1)
+                picker.$emit('pick', [start, end])
+              },
+            },
+            {
+              text: '本季度',
+              onClick(picker) {
+                var oDate = new Date()
+
+                var thisYear = oDate.getFullYear()
+                var thisMonth = oDate.getMonth() + 1
+
+                var n = Math.ceil(thisMonth / 3) // 季度
+
+                var Month = n * 3 - 1
+
+                var start = new Date(thisYear, Month - 2, 1)
+                var end = new Date()
+
+                picker.$emit('pick', [start, end])
+              },
+            },
+          ],
+        },
+        accessoryTFs: false,
+        value2: '',
+        pageSize: 10,
+        searchKeyWord: '',
+        qualityInspector :localStorage.getItem('ws-pf_staffName'),
+        size: 10,
+        form1:{},
+        appendixIdss: '',
+        form:{ 
+            inspectionResults:'正常',
+            inspectionDate:'',
+            time:'',
+        },
+        flag:'',
+        startDate:'',
+        endDate:'',
+        deptBudgetTotal: 0,
+        compId: localStorage.getItem('ws-pf_compId'),
+        aduitshow:false,
+      }
+    },
+    activated() {
+      selectWarehouseSelf({
+            compId: localStorage.getItem('ws-pf_compId'),
+          })
+          .toPromise()
+          .then((response) => {
+            this.warehouseList=response
+            this.warehouseName = this.warehouseList[0].warehouseName
+            this.baseId = this.warehouseList[0].id
+          })
+      this.value2=this.getNowTime()
+      this.getList()
+    },
+    methods: {
+        fujian(row) {
+      this.form1=row
+      this.id = row.id
+      
+       if (!row.addressUrl) {
+        this.$message({
+          message: '暂无附件!',
+          type: 'warning',
+        })
+        return
+       }
+       else{
+         this.accessoryTFs = true
+         this.appendixIdss = row.addressUrl
+       }
+    },
+        onChange() {
+      this.$refs.upload
+        .handleSaveBill()
+        .then(async (response) => {
+          this.form.addressUrl = response
+        })
+        .catch((res) => {
+          EventBus.$emit('error', (JSON.parse(res) || {}).message)
+          this.$refs.upload.clearFiles()
+        })
+    },
+      warehousefocus() {
+      getposition({ baseId: this.baseId, flag: 0 }).toPromise()
+        .then((response) => {
+          this.options = response
+        })
+    },
+    warehousechange(e) {
+      for (let i = 0; i < this.options.length; i++) {
+        if (this.options[i].binNumber == e) {
+          this.form.positionId = this.options[i].id
+        }
+
+      }
+    },
+      warehouseNameChange(e){
+        for(let i =0 ; i<this.warehouseList.length;i++){
+          if(this.warehouseList[i].warehouseName == e){
+            this.baseId = this.warehouseList[i].id
+            this.warehouseName = this.warehouseList[i].warehouseName
+          }
+        }
+        this.getList()
+      },
+      getNowTime1() {
+        var now = new Date()
+        var year = now.getFullYear() //得到年份
+        var month = now.getMonth() //得到月份
+        var date = now.getDate() //得到日期
+        month = month + 1
+        month = month.toString().padStart(2, '0')
+        date = date.toString().padStart(2, '0')
+        var defaultDate = `${year}-${month}-${date}`
+        this.$set(this.form, 'inspectionDate', defaultDate)
+      },
+      edit(row) {
+      getInspection({ id: row.id }).toPromise().then(response => {
+        this.form = response
+      })
+        this.getNowTime1()
+        this.aduitshow=true
+      this.flag = 1
+    },
+    deleteclick(row) {
+      this.$confirm('确定删除该条巡检记录?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          delInspection({ id: row.id }).toPromise().then(response => {
+            this.$message({
+              message: '删除成功!',
+              type: 'success',
+            })
+            this.getList()
+          })
+        })
+    },
+      datechange(e){
+        this.value2=e
+        if (this.value2) {
+          this.startDate = this.value2[0]
+          this.endDate = this.value2[1]
+        }
+        this.getList()
+      },
+  
+      getNowTime() {
+      const start = new Date(new Date().getTime() - 3600 * 1000 * 24 )
+        .toISOString()
+        .replace('T', ' ')
+        .split('.')[0] //默认开始时间1天前
+      const end = new Date(new Date().getTime())
+        .toISOString()
+        .replace('T', ' ')
+        .split('.')[0]//默认结束时间今天
+      // console.log([start.split(' '), end])
+      return [start.split(' ')[0], end.split(' ')[0]]
+    },
+
+       handleCurrentChange(val) {
+        this.currentRow = val;
+      },
+      add(){
+          this.form={ 
+            inspectionResults:'正常',
+        },
+         this.getNowTime1()
+          this.aduitshow=true
+      },
+      async getList() {
+      inspectionList({
+        startDate: this.startDate,
+        endDate: this.endDate,
+        searchKeyWord: this.searchKeyWord,
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+        warehouseName:this.warehouseName,
+        compId: localStorage.getItem('ws-pf_compId')
+      })
+        .toPromise()
+        .then(response => {
+          if (response.records.length > 0) {
+            for (let i = 0; i < response.records.length; i++) {
+              if (response.records[i].addressUrl) {
+                response.records[i].addressUrlArray = []
+                var arr = response.records[i].addressUrl.split(',')
+                for (let q = 0; q < arr.length; q++) {
+                  if (arr[q] != '') {
+                    response.records[i].addressUrlArray.push(arr[q])
+                  }
+                }
+              }
+            }
+          }
+          this.tableData = response.records
+          this.deptBudgetTotal = response.total
+        })
+    },
+
+      //查找
+      lookUp() {
+        this.currentPage = 1
+        this.getList()
+      },
+      //提交
+      submit() {
+        if (!this.form.binNumber) {
+        this.$message({
+          message: '仓位号不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+         if (this.form.temperature) {
+          if (isNaN(this.form.temperature)) {
+            this.$message({
+              message: '温度非数字!',
+              type: 'warning',
+            })
+            return
+          }
+        }
+        if (!this.form.temperature) {
+          this.$message({
+            message: '温度不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+    if (this.form.humidity) {
+          if (isNaN(this.form.humidity)) {
+            this.$message({
+              message: '湿度非数字!',
+              type: 'warning',
+            })
+            return
+          }
+        }
+        if (!this.form.humidity) {
+          this.$message({
+            message: '湿度不能为空!',
+            type: 'warning',
+          })
+          return
+        }
+      this.form.baseId = this.baseId
+      this.form.warehouseName = this.warehouseName
+      if (this.flag != 1) {
+        this.$confirm('确定提交巡检记录?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
+          .then(() => {
+            this.form.compId = localStorage.getItem('ws-pf_compId')
+            this.form.qualityInspector =localStorage.getItem('ws-pf_staffName')
+            addInspection(this.form).toPromise().then(response => {
+              this.$message({
+                message: '提交成功!',
+                type: 'success',
+              })
+              this.getList()
+            })
+            this.flag=''
+            this.form = {}
+            this.$refs.upload.clearFiles()
+            this.aduitshow = false
+          })
+      } else {
+        this.$confirm('确定提交本次修改?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        })
+          .then(() => {
+            editInspection(this.form).toPromise().then(response => {
+              this.$message({
+                message: '修改成功!',
+                type: 'success',
+              })
+              this.getList()
+            })
+            this.flag=''
+            this.form = {}
+            this.$refs.upload.clearFiles()
+            this.aduitshow = false
+          })
+      }
+      },
+
+ 
+
+      handleClose() {
+        this.aduitshow = false
+      },
+      handleSizeChange(val) {
+        console.log(`每页 ${val} 条`)
+        this.pageSize = val
+        this.getList()
+      },
+      handleCurrentChange(val) {
+        this.currentPage = val
+        console.log(`当前页: ${val}`)
+        this.getList()
+      },
+      find() {
+        this.currentPage = 1
+        this.getList()
+      },
+    },
+  }
+</script>
+<style lang="scss" scoped>
+ 
+  /deep/.el-table td,
+    /deep/.el-table th {
+      text-align: center;
+    }
+
+  .el-select {
+    width: 30%;
+    margin-right: 10px;
+  }
+  //操作按钮
+  .record,
+  .adjustment {
+    display: inline-block;
+    color: #5878e8;
+    padding: 0 4px !important;
+    position: relative;
+    font-size: 14px;
+  }
+
+
+</style>

+ 1372 - 1029
src/views/warehousenew/warehouseManagementRecord.vue

@@ -5,75 +5,222 @@
         <h2 class="bg-left title1">流转记录</h2>
       </el-col>
       <el-col :span="6" class="bg-right">
-        <el-button class="bg-bottom" type="primary" size="small" @click="iossrecord()" v-show="this.warehouseType != 2">
-          盘损记录</el-button>
-        <el-button class="bg-bottom" type="primary" size="small" @click="returnWarehouse()">返回</el-button>
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="iossrecord()"
+          v-show="this.warehouseType != 2"
+        >
+          盘损记录</el-button
+        >
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="returnWarehouse()"
+          >返回</el-button
+        >
       </el-col>
     </el-row>
     <div class="center">
       <h2 style="padding-left: 20px">
-        <img style="position: relative; top: 2px" width="19" height="19" src="../../../public/img/cangku.png" alt="" />
+        <img
+          style="position: relative; top: 2px"
+          width="19"
+          height="19"
+          src="../../../public/img/cangku.png"
+          alt=""
+        />
         <!-- <span style="color: #323233">{{ deptBudgetList.warehouseName }}</span> -->
-        <el-select @change="warehousechange" v-model="deptBudgetList.baseId" placeholder="请选择仓库名称" filterable clearable>
-            <el-option v-for="item in warehouseAllXiaLa" :key="item.warehouseName" :label="item.warehouseName" :value="item.id" />
+        <el-select
+          @change="warehousechange"
+          v-model="deptBudgetList.baseId"
+          placeholder="请选择仓库名称"
+          filterable
+          clearable
+        >
+          <el-option
+            v-for="item in warehouseAllXiaLa"
+            :key="item.warehouseName"
+            :label="item.warehouseName"
+            :value="item.id"
+          />
         </el-select>
-        <div class="ware" v-show="warehouseType==1">
+        <div class="ware" v-show="warehouseType == 1">
           <!-- {{binNumber}}仓位(容量{{capacity}}吨) -->
           <span class="binNo">仓位号:</span>
-          <el-select filterable clearable v-model="binNumber" placeholder="请选择仓位" class="typeselect"
-            @change="binNumberChange">
+          <el-select
+            filterable
+            clearable
+            v-model="binNumber"
+            placeholder="请选择仓位"
+            class="typeselect"
+            @change="binNumberChange"
+          >
             <el-option key="" label="全部仓位" value="全部仓位" />
-            <el-option v-for="item in binnumberList" :key="item.binNumber" :label="item.binNumber"
-              :value="item.binNumber" />
+            <el-option
+              v-for="item in binnumberList"
+              :key="item.binNumber"
+              :label="item.binNumber"
+              :value="item.binNumber"
+            />
           </el-select>
         </div>
-        <span v-show="warehouseType==2">(临)</span>
+        <span v-show="warehouseType == 2">(临)</span>
       </h2>
-      <p v-if='remark' style="
+      <p
+        v-if="remark"
+        style="
           margin-left: 42px;
           background: #f6f7fc;
           color: #afb5cb;
           width: 245px;
-        ">
-        备注:{{remark }}
+        "
+      >
+        备注:{{ remark }}
       </p>
 
       <ws-form ref="deptBudgetList" :model="deptBudgetList">
-        <div class="record" :class="{ active: status == 1 }" @click="record('', 1)">
-          <img v-if="status != 1" width="14" height="14" src="../../../public/img/radio.png" alt="" />
-          <img v-if="status == 1" width="18" height="18" src="../../../public/img/radio-check.png" alt="" />全部记录
+        <div
+          class="record"
+          :class="{ active: status == 1 }"
+          @click="record('', 1)"
+        >
+          <img
+            v-if="status != 1"
+            width="14"
+            height="14"
+            src="../../../public/img/radio.png"
+            alt=""
+          />
+          <img
+            v-if="status == 1"
+            width="18"
+            height="18"
+            src="../../../public/img/radio-check.png"
+            alt=""
+          />全部记录
         </div>
-        <div class="record" :class="{ active: status == 2 }" @click="record(2, 2)">
-          <img v-if="status != 2" width="14" height="14" src="../../../public/img/radio.png" alt="" />
-          <img v-if="status == 2" width="18" height="18" src="../../../public/img/radio-check.png" alt="" />出库记录
+        <div
+          class="record"
+          :class="{ active: status == 2 }"
+          @click="record(2, 2)"
+        >
+          <img
+            v-if="status != 2"
+            width="14"
+            height="14"
+            src="../../../public/img/radio.png"
+            alt=""
+          />
+          <img
+            v-if="status == 2"
+            width="18"
+            height="18"
+            src="../../../public/img/radio-check.png"
+            alt=""
+          />出库记录
         </div>
-        <div class="record" :class="{ active: status == 3 }" @click="record(3, 3)">
-          <img v-if="status != 3" width="14" height="14" src="../../../public/img/radio.png" alt="" />
-          <img v-if="status == 3" width="18" height="18" src="../../../public/img/radio-check.png" alt="" />入库记录
+        <div
+          class="record"
+          :class="{ active: status == 3 }"
+          @click="record(3, 3)"
+        >
+          <img
+            v-if="status != 3"
+            width="14"
+            height="14"
+            src="../../../public/img/radio.png"
+            alt=""
+          />
+          <img
+            v-if="status == 3"
+            width="18"
+            height="18"
+            src="../../../public/img/radio-check.png"
+            alt=""
+          />入库记录
         </div>
-        <el-date-picker style="margin: 0 10px 0 0" class="dataClass" value-format='yyyy-MM-dd' v-model="value2"
-          @change='datechange' type="daterange" align="right" range-separator="至" start-placeholder="出入库日期起"
-          end-placeholder="出入库日期止">
+        <el-date-picker
+          style="margin: 0 10px 0 0"
+          class="dataClass"
+          value-format="yyyy-MM-dd"
+          v-model="value2"
+          @change="datechange"
+          type="daterange"
+          align="right"
+          range-separator="至"
+          start-placeholder="出入库日期起"
+          end-placeholder="出入库日期止"
+        >
         </el-date-picker>
-        <el-select filterable clearable v-model="inOutType" placeholder="请选择出入库类型" class="typeselect"
-            @change="binNumberChange">
-            <el-option key="全部类型" label="全部类型" value="" />
-            <el-option v-for="item in inOutTypeList" :key="item.value" :label="item.value"
-              :value="item.value" />
-          </el-select>
-        <ws-input v-model="searchKeyWord" placeholder="可按合同编号、车牌号查找" clearable maxlength="250" type="input"
-          class="input">
+        <el-select
+          filterable
+          clearable
+          v-model="inOutType"
+          placeholder="请选择出入库类型"
+          class="typeselect"
+          @change="binNumberChange"
+        >
+          <el-option key="全部类型" label="全部类型" value="" />
+          <el-option
+            v-for="item in inOutTypeList"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
+          />
+        </el-select>
+        <ws-input
+          v-model="searchKeyWord"
+          placeholder="可按合同编号、车牌号查找"
+          clearable
+          maxlength="250"
+          type="input"
+          class="input"
+        >
         </ws-input>
         <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
         <ws-button class="find" type="primary" @click="find()">
-          <img width="16" height="16" style="vertical-align: text-top; position: relative; top: 0px"
-            src="../../../public/img/sousuo.png" alt />
+          <img
+            width="16"
+            height="16"
+            style="vertical-align: text-top; position: relative; top: 0px"
+            src="../../../public/img/sousuo.png"
+            alt
+          />
         </ws-button>
+        <el-select
+          filterable
+          clearable
+          v-model="printedFlag"
+          placeholder="请选择"
+          class="typeselect"
+          @change="printChange"
+        >
+          <el-option key="全部" label="全部" value="" />
+          <el-option
+            v-for="item in printedFlagList"
+            :key="item.key"
+            :label="item.value"
+            :value="item.key"
+          />
+        </el-select>
         <el-button type="primary" @click="batchPrint">批量打印</el-button>
         <el-button type="primary" @click="salesTransfer">销售转移</el-button>
-        <el-table show-summary ref="tableData" :data="warehouseList.records" height="570"
-          v-show="this.warehouseType== '1'" @selection-change="handleSelectionChange">
-          <el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column>
+        <el-table
+          show-summary
+          ref="tableData"
+          :data="warehouseList.records"
+          height="570"
+          v-show="this.warehouseType == '1'"
+          @selection-change="handleSelectionChange"
+        >
+          <el-table-column
+            type="selection"
+            width="55"
+            :selectable="selectInit"
+          ></el-table-column>
           <el-table-column type="expand">
             <template #default="props">
               <ws-form ref="deptBudgetList" :model="deptBudgetList">
@@ -93,16 +240,28 @@
                   <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
                     {{ props.row.mildewGrain }}
                   </ws-form-item>
-                  <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
+                  <ws-form-item
+                    label="不完善粒(%)"
+                    span="1"
+                    prop="imperfectGrain"
+                  >
                     {{ props.row.imperfectGrain }}
                   </ws-form-item>
                   <ws-form-item label="质检员" span="1" prop="qualityInspector">
                     {{ props.row.qualityInspector }}
                   </ws-form-item>
-                  <ws-form-item label="扣重比" span="1" prop="buckleWeightRatio">
+                  <ws-form-item
+                    label="扣重比"
+                    span="1"
+                    prop="buckleWeightRatio"
+                  >
                     {{ props.row.buckleWeightRatio }}
                   </ws-form-item>
-                  <ws-form-item label="干粮水分(%)" span="1" prop="solidGrainWater">
+                  <ws-form-item
+                    label="干粮水分(%)"
+                    span="1"
+                    prop="solidGrainWater"
+                  >
                     {{ props.row.solidGrainWater }}
                   </ws-form-item>
                 </ws-info-table>
@@ -111,10 +270,34 @@
           </el-table-column>
 
           <el-table-column type="index" label="序号">
-
-            <template scope="scope">
-              <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
-              <span v-else>{{ scope.$index + 1 }}</span>
+            <template slot-scope="scope">
+              <span
+                v-if="scope.row.printedFlag == 0 && scope.$index < 9"
+                style="font-weight: 600"
+                >0{{ scope.$index + 1 }}</span
+              >
+              <span
+                v-else-if="scope.row.printedFlag == 0 && scope.$index >= 9"
+                style="font-weight: 600"
+                >{{ scope.$index + 1 }}</span
+              >
+              <el-tooltip
+                class="item"
+                effect="dark"
+                content="已打印"
+                placement="top-start"
+              >
+                <span
+                  v-if="scope.row.printedFlag == 1 && scope.$index < 9"
+                  style="color: red; font-weight: 600"
+                  >0{{ scope.$index + 1 }}</span
+                >
+                <span
+                  v-else-if="scope.row.printedFlag == 1 && scope.$index >= 9"
+                  style="color: red; font-weight: 600"
+                  >{{ scope.$index + 1 }}</span
+                >
+              </el-tooltip>
             </template>
           </el-table-column>
           <el-table-column prop="contractNo" label="合同/移库编号" width="180">
@@ -127,17 +310,28 @@
               <span style="color: #8890b1">{{ scope.row.inOutTaskNo }}</span>
             </template>
           </el-table-column>
-          <el-table-column prop="binNumber" label="仓位号" width="60px"> </el-table-column>
-          <el-table-column prop="goodsName" label="货名" width="100"> </el-table-column>
+          <el-table-column prop="binNumber" label="仓位号" width="100px">
+          </el-table-column>
+          <el-table-column prop="goodsName" label="货名" width="100">
+          </el-table-column>
           <!-- <el-table-column prop="type" label="类型" width="60px"> </el-table-column> -->
           <el-table-column prop="grossWeight" label="毛重(吨)">
-
           </el-table-column>
           <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
-          <el-table-column prop="deductionWeight" label="扣重(吨)"> </el-table-column>
-          <el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
-          <el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
-          <el-table-column prop="deductionAmount" label="扣款(元/吨)" width="100"> </el-table-column>
+          <el-table-column prop="deductionWeight" label="扣重(吨)">
+          </el-table-column>
+          <el-table-column
+            prop="netWeight"
+            label="净重(吨)"
+          ></el-table-column>
+          <el-table-column prop="pureWeight" label="纯重(吨)">
+          </el-table-column>
+          <el-table-column
+            prop="deductionAmount"
+            label="扣款(元/吨)"
+            width="100"
+          >
+          </el-table-column>
           <el-table-column prop="grade" label="品级" width="80px">
             <template slot-scope="scope">
               <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
@@ -160,18 +354,15 @@
             </template>
           </el-table-column>
           <el-table-column prop="inOutType" label="类型"> </el-table-column>
-         
+
           <el-table-column prop="carNo" label="车牌号">
             <template slot-scope="scope">
               <span style="color: #8890b1">{{ scope.row.carNo }}</span>
             </template>
           </el-table-column>
-          <el-table-column prop="boxNo" label="箱号-1">
-          </el-table-column>
-          <el-table-column prop="boxNoOther" label="箱号-2">
-          </el-table-column>
-          <el-table-column prop="titleNo" label="封号-1">
-          </el-table-column>
+          <el-table-column prop="boxNo" label="箱号-1"> </el-table-column>
+          <el-table-column prop="boxNoOther" label="箱号-2"> </el-table-column>
+          <el-table-column prop="titleNo" label="封号-1"> </el-table-column>
           <el-table-column prop="titleNoOther" label="封号-2">
           </el-table-column>
           <el-table-column prop="wingNumber" label="车厢号-1">
@@ -180,26 +371,44 @@
           </el-table-column>
           <el-table-column prop="agent" label="检斤员">
             <template slot-scope="scope">
-              <span v-if='scope.row.inOutFlag==2'>{{ scope.row.secretaryWeigher }}</span>
-              <span v-if='scope.row.inOutFlag==1'>{{ scope.row.skinInspector }}</span>
+              <span v-if="scope.row.inOutFlag == 2">{{
+                scope.row.secretaryWeigher
+              }}</span>
+              <span v-if="scope.row.inOutFlag == 1">{{
+                scope.row.skinInspector
+              }}</span>
             </template>
           </el-table-column>
           <el-table-column prop="backOffice" label="质检员" width="120px">
             <template slot-scope="scope">
-              <span v-if='scope.row.inOutFlag==2'>{{ scope.row.agent }}</span>
-              <span v-if='scope.row.inOutFlag==1'>{{ scope.row.backOffice }}</span>
+              <span v-if="scope.row.inOutFlag == 2">{{ scope.row.agent }}</span>
+              <span v-if="scope.row.inOutFlag == 1">{{
+                scope.row.backOffice
+              }}</span>
             </template>
           </el-table-column>
-          <el-table-column prop="salesTransferStatus" label="销售转移状态"  width="150px">
+          <el-table-column
+            prop="salesTransferStatus"
+            label="销售转移状态"
+            width="150px"
+          >
           </el-table-column>
-          
+
           <el-table-column prop="addressUrl" label="操作" width="100px">
             <template slot-scope="scope">
               <!-- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
 								src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" /> -->
-              <el-button @click="print(scope.row)" v-if="scope.row.inOutType != '收购入库'&&scope.row.inOutType != '期初'"
-                v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button>
-
+              <el-button
+                @click="print(scope.row)"
+                v-if="
+                  scope.row.inOutType != '收购入库' &&
+                  scope.row.inOutType != '期初'
+                "
+                v-hasPermission="
+                  `acquisitionManagement.acquisitionWeight.print`
+                "
+                >打印</el-button
+              >
             </template>
           </el-table-column>
           <el-table-column prop="createDate" label="录入时间">
@@ -207,11 +416,19 @@
               <span style="color: #8890b1">{{ scope.row.createDate }}</span>
             </template>
           </el-table-column>
-
         </el-table>
-        <el-table show-summary @selection-change="handleSelectionChange" :data="warehouseList.records" height="560"
-          v-show="this.warehouseType== '2'">
-          <el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column>
+        <el-table
+          show-summary
+          @selection-change="handleSelectionChange"
+          :data="warehouseList.records"
+          height="560"
+          v-show="this.warehouseType == '2'"
+        >
+          <el-table-column
+            type="selection"
+            width="55"
+            :selectable="selectInit"
+          ></el-table-column>
           <el-table-column type="expand">
             <template #default="props">
               <ws-form ref="deptBudgetList" :model="deptBudgetList">
@@ -231,7 +448,11 @@
                   <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
                     {{ props.row.mildewGrain }}
                   </ws-form-item>
-                  <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
+                  <ws-form-item
+                    label="不完善粒(%)"
+                    span="1"
+                    prop="imperfectGrain"
+                  >
                     {{ props.row.imperfectGrain }}
                   </ws-form-item>
                   <ws-form-item label="质检员" span="1" prop="qualityInspector">
@@ -242,9 +463,25 @@
             </template>
           </el-table-column>
           <el-table-column type="index" label="序号">
-            <template scope="scope">
-              <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
-              <span v-else>{{ scope.$index + 1 }}</span>
+            <template slot-scope="scope">
+              <span
+                v-if="scope.row.printedFlag == 0 && scope.$index < 9"
+                style="color: #5473e8; font-weight: 600"
+                >0{{ scope.$index + 1 }}</span
+              >
+              <span
+                v-else-if="scope.row.printedFlag == 0 && scope.$index > 9"
+                style="color: #5473e8; font-weight: 600"
+                >{{ scope.$index + 1 }}</span
+              >
+              <span
+                v-else-if="scope.row.printedFlag == 1 && scope.$index < 9"
+                style="color: red; font-weight: 600"
+                >0{{ scope.$index + 1 }}</span
+              >
+              <span v-else style="color: red; font-weight: 600">{{
+                scope.$index + 1
+              }}</span>
             </template>
           </el-table-column>
           <el-table-column prop="contractNo" label="合同/移库编号" width="180">
@@ -258,9 +495,15 @@
             </template>
           </el-table-column>
           <el-table-column prop="goodsName" label="货名"> </el-table-column>
-          <el-table-column prop="grossWeight" label="毛重(吨)"></el-table-column>
+          <el-table-column
+            prop="grossWeight"
+            label="毛重(吨)"
+          ></el-table-column>
           <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
-          <el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
+          <el-table-column
+            prop="netWeight"
+            label="净重(吨)"
+          ></el-table-column>
           <el-table-column prop="grade" label="品级">
             <template slot-scope="scope">
               <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
@@ -293,15 +536,24 @@
               <span style="color: #8890b1">{{ scope.row.carNo }}</span>
             </template>
           </el-table-column>
-          <el-table-column prop="agent" label="经办人">
-          </el-table-column>
+          <el-table-column prop="agent" label="经办人"> </el-table-column>
           <el-table-column prop="backOffice" label="操作人"> </el-table-column>
-          <el-table-column prop="salesTransferStatus" label="销售转移状态"  width="150px">
+          <el-table-column
+            prop="salesTransferStatus"
+            label="销售转移状态"
+            width="150px"
+          >
           </el-table-column>
           <el-table-column prop="addressUrl" label="附件">
             <template slot-scope="scope">
-              <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
-                src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
+              <img
+                width="18"
+                height="20"
+                style="vertical-align: text-top; position: relative; top: -1px"
+                src="../../../public/img/fujian.png"
+                @click="fujian(scope.row)"
+                alt=""
+              />
               <!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
                 scope.row.addressUrlArray.length
               }}</span> -->
@@ -313,1056 +565,1147 @@
               <span style="color: #8890b1">{{ scope.row.createDate }}</span>
             </template>
           </el-table-column>
-
         </el-table>
 
-
         <div style="text-align: center; padding: 10px">
-          <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
-            :current-page="currentPage" :page-sizes="[10, 30, 50, 100,500,1000,9999]"
-            layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
+          <el-pagination
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+            :current-page="currentPage"
+            :page-sizes="[10, 30, 50, 100, 500, 1000, 9999]"
+            layout="total, sizes, prev, pager, next, jumper"
+            :total="deptBudgetTotal"
+          ></el-pagination>
         </div>
       </ws-form>
     </div>
-    <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
-      @on-cancel="handleClose">
+    <WinseaContentModal
+      v-model="accessoryTFs"
+      :title="$t('system.noticeCircular.information')"
+      @on-cancel="handleClose"
+    >
       <p>查看附件</p>
-      <el-image style="width: 100px; height: 100px" :src="appendixIdss" :preview-src-list="srcList">
+      <el-image
+        style="width: 100px; height: 100px"
+        :src="appendixIdss"
+        :preview-src-list="srcList"
+      >
       </el-image>
     </WinseaContentModal>
-    <WinseaContentModal class="sale-form" v-model="show" title="销售转移"
-      @on-cancel="handleClose">
+    <WinseaContentModal
+      class="sale-form"
+      v-model="show"
+      title="销售转移"
+      @on-cancel="handleClose"
+    >
       <div>
         <div class="title">转移前:</div>
-        <div style="display:inline-block;" v-for="item in modification">{{ item.carNo }} ({{ item.netWeight }})</div>
+        <div style="display: inline-block" v-for="item in modification">
+          {{ item.carNo }} ({{ item.netWeight }})
+        </div>
       </div>
-      <div style="margin:10px 0;">合计:{{modification.length}}车 {{num}}吨 合同编号:{{currectdata.contractNo}}({{currectdata.pointOut}})</div>
-      
-      <el-form label-position="left" class="sale-form" ref="form" :model="currectdata" label-width="160px">
+      <div style="margin: 10px 0">
+        合计:{{ modification.length }}车 {{ num }}吨 合同编号:{{
+          currectdata.contractNo
+        }}({{ currectdata.pointOut }})
+      </div>
+
+      <el-form
+        label-position="left"
+        class="sale-form"
+        ref="form"
+        :model="currectdata"
+        label-width="160px"
+      >
         <div class="title">转移后:</div>
         <el-form-item label="出入库任务">
-          <el-select @change="taskNochange" v-model="currectdata.taskNoNew" placeholder="选择转移后的出入库任务编号">
-            <el-option v-for="item in arr2"  :key="item.id" :label="item.inOutTaskNo+(item.taskFlag?'('+item.taskFlag+')':'')" :value="item.inOutTaskNo"></el-option>
+          <el-select
+            @change="taskNochange"
+            v-model="currectdata.taskNoNew"
+            placeholder="选择转移后的出入库任务编号"
+          >
+            <el-option
+              v-for="item in arr2"
+              :key="item.id"
+              :label="
+                item.inOutTaskNo +
+                (item.taskFlag ? '(' + item.taskFlag + ')' : '')
+              "
+              :value="item.inOutTaskNo"
+            ></el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="转至销售/移库">
-          <el-input disabled v-model="currectdata.contractNopointOut" placeholder="选择转移后的销售合同编号或移库编号"></el-input>
+          <el-input
+            disabled
+            v-model="currectdata.contractNopointOut"
+            placeholder="选择转移后的销售合同编号或移库编号"
+          ></el-input>
         </el-form-item>
         <el-form-item label="运输任务(自运必填)">
           <!-- <el-input disabled v-model="currectdata.tranTaskNew" placeholder="选择转移后的运输任务编号"></el-input> -->
-          <el-select :disabled="this.contractNo.deliverType==2" v-model="currectdata.tranTaskNew" placeholder="选择转移后的运输任务编号">
-            <el-option  v-for="item in taskInfo" :label="item.taskNo" :value="item.taskNo"></el-option>
+          <el-select
+            :disabled="this.contractNo.deliverType == 2"
+            v-model="currectdata.tranTaskNew"
+            placeholder="选择转移后的运输任务编号"
+          >
+            <el-option
+              v-for="item in taskInfo"
+              :label="item.taskNo"
+              :value="item.taskNo"
+            ></el-option>
           </el-select>
         </el-form-item>
       </el-form>
-      <div style="text-align:center;"><el-button @click="show=false">取消</el-button>
-          <el-button type="primary" @click="onSubmit">提交</el-button></div>
+      <div style="text-align: center">
+        <el-button @click="show = false">取消</el-button>
+        <el-button type="primary" @click="onSubmit">提交</el-button>
+      </div>
     </WinseaContentModal>
   </div>
-
 </template>
 
 
 <script>
-  import {
-    addselectinfoList,
-    recordss,
-    getPrintInfo,
-    getbinnumber,
-    getExpense,
-    getReceiptTaskNo,
-    salestraninfo,
-    getwarehousNameNew
-  } from '@/model/warehouse/index'
-  import {
-    downloadFile
-  } from '@/utils/batchDown'
-  import {
-    getcontract
-  } from '@/model/outboundManagement/index'
-  import {
-    getYunShuXiaLa,
-    getYunShuNumber,
-  } from '@/model/statisticalReport/index'
-  import Pagination from '@/components/Pagination'
-  import WsUpload from '@/components/WsUpload'
-  import {
-    dayjs,
-    fmoney,
-    EventBus
-  } from 'base-core-lib'
-  export default {
-    name: 'viewSpareMoney',
-    components: {
-      WsUpload,
-      Pagination,
+import {
+  addselectinfoList,
+  recordss,
+  getPrintInfoNew,
+  getbinnumber,
+  getExpense,
+  getReceiptTaskNo,
+  salestraninfo,
+  getwarehousNameNew,
+} from '@/model/warehouse/index'
+import { downloadFile } from '@/utils/batchDown'
+import { getcontract } from '@/model/outboundManagement/index'
+import {
+  getYunShuXiaLa,
+  getYunShuNumber,
+} from '@/model/statisticalReport/index'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+import { dayjs, fmoney, EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    vesselId(val) {
+      this.getList()
     },
-    watch: {
-      vesselId(val) {
-        this.getList()
-      },
-      isShow(val) {
-        this.showType = val
-      },
+    isShow(val) {
+      this.showType = val
     },
-    data() {
-      return {
-        //弹出框
-        dialogViewSpareMoney: false,
-        binnumberList: [],
-        // 船舶类型
-        monetaryKey: null,
-        // 是否显示
-        showType: true,
-        // 年
-        year: '',
-        form:{},
-        contractNo:{},
-        show:false,
-        srcList: [],
-        currectdata:{
-          compId: localStorage.getItem('ws-pf_compId'),
-        },
-        inOutType:'',
-        inOutTypeList:[
-          {value:'货权转入'},
-          {value:'货权转出'},
-          {value:'移库入库'},
-          {value:'采购入库'},
-          {value:'移库出库'},
-          {value:'销售出库'},
-          {value:'折转入库'},
-          {value:'折转出库'},
-          {value:'退库'}],
-        num:0,
-        taskInfo:[],
-        deptBudgetTotal: 0,
-        currentPage: 1,
-        pageSize: 10,
-        capacity: '',
-        searchKeyWord: '',
-        contractType: 2,
-        startDate: null,
-        endDate: null,
-        remark: '',
-        binNumber: '全部仓位',
-        status: 1,
-        value2: [],
-        appendixIdss: '',
-        // 提交类型
-        submitType: true,
-        selectpackingMethod: {},
-        size: 10,
-        warehouseType: '1',
-        taskNolist1:[],
+  },
+  data() {
+    return {
+      //弹出框
+      dialogViewSpareMoney: false,
+      binnumberList: [],
+      // 船舶类型
+      monetaryKey: null,
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+      form: {},
+      contractNo: {},
+      show: false,
+      srcList: [],
+      currectdata: {
         compId: localStorage.getItem('ws-pf_compId'),
-        deptCircularPage: {},
-        pcFlag: 1,
-        date: {
-          year: dayjs().format('YYYY'),
-          month: dayjs().format('MM'),
-        },
-        warehouseList: [],
-        taskNolist:[],
-        taskNolist1:[],
-        arr2:[],
-        deptBudgetList: {},
-        historyList: [],
-        searchType: '',
-        allurl: '../../../public/img/radio.png',
-        pickerBeginDateBefore: {
-          disabledDate: (time) => {
-            return time.getTime() > Date.now()
-          },
+      },
+      inOutType: '',
+      printedFlag: '',
+      inOutTypeList: [
+        { value: '货权转入' },
+        { value: '货权转出' },
+        { value: '移库入库' },
+        { value: '采购入库' },
+        { value: '移库出库' },
+        { value: '销售出库' },
+        { value: '折转入库' },
+        { value: '折转出库' },
+        { value: '退库' },
+      ],
+      printedFlagList: [
+        { key: 0, value: '未打印' },
+        { key: 1, value: '已打印' },
+      ],
+      num: 0,
+      taskInfo: [],
+      deptBudgetTotal: 0,
+      currentPage: 1,
+      pageSize: 10,
+      capacity: '',
+      searchKeyWord: '',
+      contractType: 2,
+      startDate: null,
+      endDate: null,
+      remark: '',
+      binNumber: '全部仓位',
+      status: 1,
+      value2: [],
+      appendixIdss: '',
+      // 提交类型
+      submitType: true,
+      selectpackingMethod: {},
+      size: 10,
+      warehouseType: '1',
+      taskNolist1: [],
+      compId: localStorage.getItem('ws-pf_compId'),
+      deptCircularPage: {},
+      pcFlag: 1,
+      date: {
+        year: dayjs().format('YYYY'),
+        month: dayjs().format('MM'),
+      },
+      warehouseList: [],
+      taskNolist: [],
+      taskNolist1: [],
+      arr2: [],
+      deptBudgetList: {},
+      historyList: [],
+      searchType: '',
+      allurl: '../../../public/img/radio.png',
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
         },
-        accessoryTFs: false,
-        modification: [],
-        printList: [], //批量打印数据
-        warehouseAllXiaLa:[]
+      },
+      accessoryTFs: false,
+      modification: [],
+      printList: [], //批量打印数据
+      warehouseAllXiaLa: [],
+    }
+  },
+  mounted() {
+    let that = this
+    document.addEventListener('visibilitychange', function () {
+      console.log(document.hidden ? '用户离开了' : '用户回来了')
+      if (!document.hidden) {
+        that.getList()
       }
-    },
-
-    activated() {
-      this.deptBudgetList.baseId = this.$route.query.baseId
-      // this.deptBudgetList.positionId = this.$route.query.positionId
-      this.deptBudgetList.warehouseName = this.$route.query.warehouseName
-      this.remark = this.$route.query.remark
-      // this.binNumber = this.$route.query.binNumber
-      this.capacity = this.$route.query.capacity
-      this.warehouseType = this.$route.query.warehouseType
-      getwarehousNameNew({
-        compId: localStorage.getItem('ws-pf_compId')
-      })
+    })
+  },
+  activated() {
+    this.deptBudgetList.baseId = this.$route.query.baseId
+    // this.deptBudgetList.positionId = this.$route.query.positionId
+    this.deptBudgetList.warehouseName = this.$route.query.warehouseName
+    this.remark = this.$route.query.remark
+    // this.binNumber = this.$route.query.binNumber
+    this.capacity = this.$route.query.capacity
+    this.warehouseType = this.$route.query.warehouseType
+    getwarehousNameNew({
+      compId: localStorage.getItem('ws-pf_compId'),
+    })
       .toPromise()
       .then((response) => {
-        for(var tmp = 0 ; tmp < response.length ; tmp++){
-          if(response[tmp].warehouseType == '2'){
-            response[tmp].warehouseName = response[tmp].warehouseName + ' (临)'
+        for (var tmp = 0; tmp < response.length; tmp++) {
+          if (response[tmp].warehouseType == '2') {
+            response[tmp].warehouseName =
+              response[tmp].warehouseName + ' (临)'
           }
         }
         this.warehouseAllXiaLa = response
       })
+    this.getList()
+    // this.getPassYearFormatDate()
+    this.showType = this.isShow
+  },
+  updated() {
+    this.$nextTick(() => {
+      // this.$refs['tableData'].doLayout();
+    })
+  },
+  methods: {
+    warehousechange(e) {
+      for (let i = 0; i < this.warehouseAllXiaLa.length; i++) {
+        if (this.warehouseAllXiaLa[i].id == e) {
+          this.deptBudgetList.warehouseName =
+            this.warehouseAllXiaLa[i].warehouseName
+        }
+      }
       this.getList()
-      // this.getPassYearFormatDate()
-      this.showType = this.isShow
     },
-    updated() {
-      this.$nextTick(() => {
-        // this.$refs['tableData'].doLayout();
+    onSubmit() {
+      if (!this.currectdata.taskNoNew) {
+        this.$message.error('合同/移库编号不能为空!')
+        return
+      }
+      if (!this.currectdata.contractNoNew) {
+        this.$message.error('出入库任务编号不能为空!')
+        return
+      }
+      if (
+        (!this.currectdata.tranTaskNew &&
+          this.currectdata.inOutType == '移库出库') ||
+        (!this.currectdata.tranTaskNew &&
+          this.currectdata.inOutType == '移库入库')
+      ) {
+        this.$message.error('移库运输任务编号不能为空!')
+        return
+      }
+      this.$confirm('确定转移出库数据?', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      }).then(() => {
+        salestraninfo(this.currectdata)
+          .toPromise()
+          .then(() => {
+            this.show = false
+            this.currectdata = {
+              compId: localStorage.getItem('ws-pf_compId'),
+            }
+            this.$message.success('提交成功!')
+            this.getList()
+          })
       })
     },
-    methods: {
-      warehousechange(e){
-        for (let i = 0; i < this.warehouseAllXiaLa.length; i++) {
-          if(this.warehouseAllXiaLa[i].id==e){
-            this.deptBudgetList.warehouseName=this.warehouseAllXiaLa[i].warehouseName
+    async taskNochange(e) {
+      for (let i = 0; i < this.taskNolist.length; i++) {
+        if (this.taskNolist[i].inOutTaskNo == e) {
+          this.currectdata.inOutType = this.taskNolist[i].inOutType
+          this.currectdata.contractNoNew = this.taskNolist[i].contractNo
+            ? this.taskNolist[i].contractNo
+            : this.taskNolist[i].moveTaskNo
+        }
+      }
+
+      this.contractNo = await getcontract({
+        contractNo: this.currectdata.contractNoNew,
+        warehouseName: this.warehouseName,
+        compId: localStorage.getItem('ws-pf_compId'),
+      }).toPromise()
+      this.currectdata.pointOutNew = this.contractNo.pointOut
+      if (this.contractNo.pointOut) {
+        this.currectdata.contractNopointOut =
+          this.currectdata.contractNoNew +
+          '(' +
+          this.currectdata.pointOutNew +
+          ')'
+      } else {
+        this.currectdata.contractNopointOut = this.currectdata.contractNoNew
+      }
+
+      var data = await getYunShuNumber({
+        contractNo: this.currectdata.contractNoNew,
+      }).toPromise()
+      this.currectdata.tranTaskNew = data[0].taskNo
+      this.taskInfo = data
+      console.log(this.taskinfo)
+    },
+    async salesTransfer() {
+      var arr = []
+      if (this.modification.length == 0) {
+        this.$message.error('请勾选要转移的条目!')
+      } else {
+        this.num = 0
+        for (var i = 0; i < this.modification.length; i++) {
+          if (this.modification[i].inOutType != '销售出库') {
+            this.$message.error('请勾选相同合同编号的销售出库记录!')
+            return
+          }
+          this.num += Number(this.modification[i].netWeight)
+          if (arr.length == 0) {
+            arr.push(this.modification[i])
+          }
+          var arr1 = arr.filter((item) => {
+            return item.contractNo == this.modification[i].contractNo
+          })
+          if (arr1.length == 0) {
+            arr.push(this.modification[i])
           }
         }
-        this.getList()
-      },
-      onSubmit(){
-        if(!this.currectdata.taskNoNew){
-          this.$message.error("合同/移库编号不能为空!")
+        if (arr.length > 1) {
+          this.$message.error('请勾选相同合同编号的销售出库记录!')
           return
         }
-        if(!this.currectdata.contractNoNew){
-          this.$message.error("出入库任务编号不能为空!")
+        var contractNo = await getExpense({
+          contractNo: arr[0].contractNo,
+          compId: this.compId,
+        }).toPromise()
+        if (contractNo.status == '已完成' || contractNo.status == '已结算') {
+          this.$message.error('已完成的合同记录不可转移!')
           return
         }
-        if(!this.currectdata.tranTaskNew&&this.currectdata.inOutType=='移库出库'||!this.currectdata.tranTaskNew&&this.currectdata.inOutType=='移库入库'){
-          this.$message.error("移库运输任务编号不能为空!")
-          return
+        this.currectdata.warehouseInOutInfoList = this.modification
+
+        let map = new Map()
+        for (let item of this.modification) {
+          map.set(item.inOutTaskNo, item.inOutTaskNo)
         }
-        this.$confirm('确定转移出库数据?', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning',
-        })
-        .then(() => {
-          salestraninfo(this.currectdata).toPromise().then(() => {
-            this.show=false
-            this.currectdata={
-                compId: localStorage.getItem('ws-pf_compId'),
-              }
-              this.$message.success("提交成功!")
-              this.getList()
-          })
-        })
-      },
-      async taskNochange(e){
+        var arr = [...map.values()]
+        console.log(arr)
+        this.currectdata.taskNo = arr.toString()
+        this.currectdata.contractNo = this.modification[0].contractNo
+        this.currectdata.pointOut = contractNo.pointOut
+        this.taskNolist = this.taskNolist1
+        this.arr2 = []
         for (let i = 0; i < this.taskNolist.length; i++) {
-          if(this.taskNolist[i].inOutTaskNo==e){
-            this.currectdata.inOutType=this.taskNolist[i].inOutType
-            this.currectdata.contractNoNew=this.taskNolist[i].contractNo?this.taskNolist[i].contractNo:this.taskNolist[i].moveTaskNo
+          if (
+            (this.taskNolist[i].contractNo &&
+              this.taskNolist[i].contractNo != this.currectdata.contractNo) ||
+            (this.taskNolist[i].moveTaskNo &&
+              this.taskNolist[i].moveTaskNo != this.currectdata.contractNo)
+          ) {
+            this.arr2.push(this.taskNolist[i])
           }
         }
-
-        this.contractNo=await getcontract({contractNo:this.currectdata.contractNoNew,warehouseName:this.warehouseName,compId:localStorage.getItem('ws-pf_compId')}).toPromise()
-        this.currectdata.pointOutNew=this.contractNo.pointOut
-        if(this.contractNo.pointOut){
-          this.currectdata.contractNopointOut=this.currectdata.contractNoNew+'('+this.currectdata.pointOutNew+')'
-        }else{
-           this.currectdata.contractNopointOut=this.currectdata.contractNoNew
-        }
-       
-        
-        var data=await getYunShuNumber({contractNo:this.currectdata.contractNoNew}).toPromise()
-        this.currectdata.tranTaskNew=data[0].taskNo
-        this.taskInfo=data
-        console.log(this.taskinfo)
-      },
-      async salesTransfer(){
-        var arr=[]
-        if (this.modification.length == 0) {
-          this.$message.error("请勾选要转移的条目!")
-        } else {
-          this.num=0
-          for (var i = 0; i < this.modification.length; i++) {
-            if(this.modification[i].inOutType!='销售出库'){
-              this.$message.error("请勾选相同合同编号的销售出库记录!")
-              return
-            }
-            this.num+=Number(this.modification[i].netWeight)
-            if(arr.length==0){
-              arr.push(this.modification[i])
-            }
-            var arr1=arr.filter((item)=>{return item.contractNo==this.modification[i].contractNo})
-            if(arr1.length==0){
-              arr.push(this.modification[i])
-            }
-          }
-          if(arr.length>1){
-            this.$message.error("请勾选相同合同编号的销售出库记录!")
-            return
-          }
-          var contractNo=await getExpense({ contractNo: arr[0].contractNo, compId: this.compId }).toPromise()
-          if(contractNo.status=='已完成'||contractNo.status=='已结算'){
-            this.$message.error("已完成的合同记录不可转移!")
+        console.log(this.arr2)
+        this.show = true
+      }
+    },
+    batchPrint() {
+      this.printList=[]
+      if (this.modification.length == 0) {
+        this.$message.error('请勾选要打印的条目!')
+      } else {
+        localStorage.removeItem('warehouseBatchPrint')
+        var count = 0
+        for (var i = 0; i < this.modification.length; i++) {
+          if (this.modification[i].printedFlag == 1) {
+            this.$message({
+              message: '不能选择已打印的数据',
+              type: 'warning',
+            })
             return
           }
-          this.currectdata.warehouseInOutInfoList=this.modification
-          
-          let map = new Map();
-          for (let item of this.modification) {
-            map.set(item.inOutTaskNo, item.inOutTaskNo);
-          }
-          var arr = [...map.values()]
-          console.log(arr)
-          this.currectdata.taskNo=arr.toString()
-          this.currectdata.contractNo=this.modification[0].contractNo
-          this.currectdata.pointOut=contractNo.pointOut
-          this.taskNolist=this.taskNolist1
-          this.arr2=[]
-          for (let i = 0; i < this.taskNolist.length; i++) {
-            if(this.taskNolist[i].contractNo&&this.taskNolist[i].contractNo!=this.currectdata.contractNo||this.taskNolist[i].moveTaskNo&&this.taskNolist[i].moveTaskNo!=this.currectdata.contractNo){
-              this.arr2.push(this.taskNolist[i])
-            }
-          }
-          console.log(this.arr2)
-          this.show=true
+          getPrintInfoNew({
+            id: this.modification[i].id,
+          })
+            .toPromise()
+            .then((response) => {
+              count++
+              this.printList.push(response)
+              if (count == this.modification.length) {
+                localStorage.setItem(
+                  'warehouseBatchPrint',
+                  JSON.stringify(this.printList)
+                )
+                window.open('../../../../static/warehouseBatchPrint.html')
+              }
+            })
         }
-      },
-      batchPrint() {
-        if (this.modification.length == 0) {
-          this.$message.error("请勾选要打印的条目!")
-        } else {
-          localStorage.removeItem("warehouseBatchPrint")
-          var count = 0
-          for (var i = 0; i < this.modification.length; i++) {
-            getPrintInfo({
-                id: this.modification[i].id
-              })
-              .toPromise()
-              .then((response) => {
-                count++
-                this.printList.push(response)
-                if (count == this.modification.length) {
-                  localStorage.setItem("warehouseBatchPrint", JSON.stringify(this.printList))
-                  window.open('../../../../static/warehouseBatchPrint.html')
-                }
-              })
+      }
+    },
+    handleSelectionChange(val) {
+      this.modification = val
+      console.log('sfasa', this.modification)
+    },
+    selectInit(row) {
+      //在这里一定要记得类型匹配的上。
+      // if (row.inOutType != '收购入库' && row.inOutType != '期初') {
+      return true
+      // } else {
+      //   return false
+      // }
+    },
+    binNumberChange(e) {
+      if (e == '全部仓位') {
+        this.deptBudgetList.positionId = ''
+        this.getList()
+      } else {
+        for (let i = 0; i < this.binnumberList.length; i++) {
+          if (this.binnumberList[i].binNumber == e) {
+            this.deptBudgetList.positionId = this.binnumberList[i].id
           }
         }
+        this.getList()
+        // var seperator1 = "-"
+        // var date = new Date()
 
-      },
-      handleSelectionChange(val) {
-        this.modification = val
-        console.log("sfasa", this.modification)
-      },
-      selectInit(row) {
-        //在这里一定要记得类型匹配的上。
-        if (row.inOutType != '收购入库' && row.inOutType != '期初') {
-          return true
-        } else {
-          return false
+        // var formatDate = date.getFullYear() + seperator1 + Number(date.getMonth() + 1) + seperator1 + date.getDate()
+        // this.getNowFormatDate(formatDate)
+      }
+    },
+    printChange(e) {
+      this.printedFlag = e
+      this.getList()
+    },
+    /* 获取现在时间,并接受过去时间的值 */
+    getNowFormatDate(formatDate) {
+      var date = new Date()
+      date.setTime(date.getTime() + 24 * 60 * 60 * 1000)
+      var seperator1 = '-'
+      var year = date.getFullYear()
+      var month = date.getMonth() + 1
+      var strDate = date.getDate()
+      if (month >= 1 && month <= 9) {
+        month = '0' + month
+      }
+      if (strDate >= 0 && strDate <= 9) {
+        strDate = '0' + strDate
+      }
+      var nowData = year + seperator1 + month + seperator1 + strDate
+      this.value2 = [formatDate, nowData] // 默认赋值一年时间
+    },
+    print(row) {
+      sessionStorage.removeItem('record_print')
+      getPrintInfo({
+        id: row.id,
+      })
+        .toPromise()
+        .then((response) => {
+          localStorage.setItem('ck_bd_printData', JSON.stringify(response))
+          window.open('../../../../static/weightCheckInOut.html?type=2')
+        })
+    },
+    //返回按钮
+    returnWarehouse() {
+      this.$router.push({
+        path: 'warehouseManagementList',
+      })
+      this.searchKeyWord = ''
+    },
+    //
+    iossrecord() {
+      this.$router.push({
+        path: 'warehouseManagementIossRecord',
+        query: {
+          baseId: this.deptBudgetList.baseId,
+          positionId: this.deptBudgetList.positionId,
+          warehouseName: this.deptBudgetList.warehouseName,
+          binNumber: this.binNumber,
+        },
+      })
+    },
+    dateFormat(fmt, date) {
+      let ret
+      const opt = {
+        'Y+': date.getFullYear().toString(), // 年
+        'm+': (date.getMonth() + 1).toString(), // 月
+        'd+': date.getDate().toString(), // 日
+        'H+': date.getHours().toString(), // 时
+        // "M+": date.getMinutes().toString(),         // 分
+        // "S+": date.getSeconds().toString()          // 秒
+        // 有其他格式化字符需求可以继续添加,必须转化成字符串
+      }
+      for (let k in opt) {
+        ret = new RegExp('(' + k + ')').exec(fmt)
+        if (ret) {
+          fmt = fmt.replace(
+            ret[1],
+            ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
+          )
         }
-      },
-      binNumberChange(e) {
-        if (e == '全部仓位') {
-          this.deptBudgetList.positionId = ''
-          this.getList()
-        } else {
-          for (let i = 0; i < this.binnumberList.length; i++) {
-            if (this.binnumberList[i].binNumber == e) {
-              this.deptBudgetList.positionId = this.binnumberList[i].id
+      }
+      return fmt
+    },
+    datechange() {
+      this.getList()
+    },
+    find() {
+      this.getList()
+    },
+    handleClose() {
+      this.accessoryTFs = false
+      this.show = true
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    record(status, status1) {
+      this.status = status1
+      this.searchType = status
+      this.currentPage = '1'
+      this.getList()
+    },
+    // 上传附件
+    uploadSuccess(data, files, url) {
+      console.log(data, files, url)
+
+      // this.deptBudgetList.
+      // this.formData.append('files', files)
+      // this.feedbackObj.uploadNameAttachment = data.appendixName
+      // this.feedbackObj.pathUploadAttachment = data.appendixPath
+      // // this.newAppendixs = files
+      // this.onChangeFlag = true
+    },
+    getList() {
+      var startDate = ''
+      var endDate = ''
+      if (this.value2) {
+        startDate = this.value2[0] ? this.value2[0] : ''
+        endDate = this.value2[1] ? this.value2[1] : ''
+      }
+      if (this.warehouseType == 1) {
+        getbinnumber({ id: this.deptBudgetList.baseId })
+          .toPromise()
+          .then((response) => {
+            this.binnumberList = response.warehousePositionInfoList
+          })
+        addselectinfoList({
+          compId: localStorage.getItem('ws-pf_compId'),
+          baseId: this.deptBudgetList.baseId,
+          positionId: this.deptBudgetList.positionId,
+          warehouseName: this.deptBudgetList.warehouseName,
+          startDate: startDate,
+          endDate: endDate,
+          inOutType: this.inOutType,
+          printedFlag: this.printedFlag,
+          searchType: this.searchType,
+          searchKeyWord: this.searchKeyWord,
+          currentPage: this.currentPage,
+          pcFlag: this.pcFlag,
+          pageSize: this.pageSize,
+        })
+          .toPromise()
+          .then((response) => {
+            for (var i = 0; i < response.records.length; i++) {
+              if (response.records[i].addressUrl != null) {
+                response.records[i].addressUrlArray =
+                  response.records[i].addressUrl.split(',')
+              } else {
+                response.records[i].addressUrlArray = []
+              }
             }
-          }
-          this.getList()
-          // var seperator1 = "-"
-          // var date = new Date()
-      
-          // var formatDate = date.getFullYear() + seperator1 + Number(date.getMonth() + 1) + seperator1 + date.getDate()
-          // this.getNowFormatDate(formatDate)
-        }
-      },
-		/* 获取现在时间,并接受过去时间的值 */
-        getNowFormatDate (formatDate) {
-			var date = new Date()
-			date.setTime(date.getTime()+24*60*60*1000)
-			var seperator1 = '-'
-			var year = date.getFullYear()
-			var month = date.getMonth() + 1
-			var strDate = date.getDate()
-			if (month >= 1 && month <= 9) {
-				month = '0' + month
-			}
-			if (strDate >= 0 && strDate <= 9) {
-				strDate = '0' + strDate
-			}
-			var nowData = year + seperator1 + month + seperator1 + strDate
-			this.value2= [formatDate, nowData]  // 默认赋值一年时间
-   		 },
-			print(row){
-				sessionStorage.removeItem('record_print')
-				getPrintInfo({
-                        id: row.id
-                      })
-                        .toPromise()
-                        .then((response) => {
-                                     localStorage.setItem('ck_bd_printData',JSON.stringify(response))
-                         window.open('../../../../static/weightCheckInOut.html?type=2')
-                         
-                        })
-			},
-			//返回按钮
-			returnWarehouse() {
-				this.$router.push({
-					path: 'warehouseManagementList'
-				})
-				this.searchKeyWord = ''
-			},
-			//
-			iossrecord() {
-				this.$router.push({
-					path: 'warehouseManagementIossRecord',
-					query: {
-						baseId: this.deptBudgetList.baseId,
-						positionId: this.deptBudgetList.positionId,
-						warehouseName: this.deptBudgetList.warehouseName,
-						binNumber: this.binNumber,
-					},
-				})
-			},
-			dateFormat(fmt, date) {
-				let ret
-				const opt = {
-					'Y+': date.getFullYear().toString(), // 年
-					'm+': (date.getMonth() + 1).toString(), // 月
-					'd+': date.getDate().toString(), // 日
-					'H+': date.getHours().toString(), // 时
-					// "M+": date.getMinutes().toString(),         // 分
-					// "S+": date.getSeconds().toString()          // 秒
-					// 有其他格式化字符需求可以继续添加,必须转化成字符串
-				}
-				for (let k in opt) {
-					ret = new RegExp('(' + k + ')').exec(fmt)
-					if (ret) {
-						fmt = fmt.replace(
-							ret[1],
-							ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
-						)
-					}
-				}
-				return fmt
-			},
-			datechange(){
-				this.getList()
-			},
-			find() {
-      			this.getList()
-    		},
-			handleClose() {
-				this.accessoryTFs = false
-        this.show=true
-			},
-			handleSizeChange(val) {
-				console.log(`每页 ${val} 条`)
-				this.pageSize = val
-				this.getList()
-			},
-			handleCurrentChange(val) {
-				this.currentPage = val
-				console.log(`当前页: ${val}`)
-				this.getList()
-			},
-			record(status, status1) {
-				this.status = status1
-				this.searchType = status
-				this.currentPage = '1'
-				this.getList()
-			},
-			// 上传附件
-			uploadSuccess(data, files, url) {
-				console.log(data, files, url)
-
-				// this.deptBudgetList.
-				// this.formData.append('files', files)
-				// this.feedbackObj.uploadNameAttachment = data.appendixName
-				// this.feedbackObj.pathUploadAttachment = data.appendixPath
-				// // this.newAppendixs = files
-				// this.onChangeFlag = true
-			},
-			getList() {
-        
-					var startDate=''
-					var endDate=''
-					if(this.value2){
-					startDate=this.value2[0]?this.value2[0]:''
-					endDate=this.value2[1]?this.value2[1]:''
-				}
-				if (this.warehouseType == 1) {
-					getbinnumber({id: this.deptBudgetList.baseId}).toPromise()
-						.then((response) => {
-							
-							this.binnumberList = response.warehousePositionInfoList
-						})
-					addselectinfoList({
-							compId: localStorage.getItem('ws-pf_compId'),
-							baseId: this.deptBudgetList.baseId,
-							positionId: this.deptBudgetList.positionId,
-							warehouseName: this.deptBudgetList.warehouseName,
-							startDate:startDate,
-       				endDate:endDate,
-              inOutType:this.inOutType,
-							searchType: this.searchType,
-							searchKeyWord: this.searchKeyWord,
-							currentPage: this.currentPage,
-							pcFlag: this.pcFlag,
-							pageSize: this.pageSize
-						})
-						.toPromise()
-						.then((response) => {
-							for (var i = 0; i < response.records.length; i++) {
-								if (response.records[i].addressUrl != null) {
-									response.records[i].addressUrlArray = response.records[
-										i
-									].addressUrl.split(',')
-								} else {
-									response.records[i].addressUrlArray = []
-								}
-							}
-							this.deptCircularPage.currentPage = response.current
-							this.deptCircularPage.pageSize = response.size
-							this.deptBudgetTotal = response.total
-							this.warehouseList = response
-						})
-				} else if (this.warehouseType == 2) {
-					recordss({
-							compId: localStorage.getItem('ws-pf_compId'),
-							baseId: this.deptBudgetList.baseId,
-							positionId: this.deptBudgetList.positionId,
-							warehouseName: this.deptBudgetList.warehouseName,
-							startDate:startDate,
-       					    endDate:endDate,
-							searchType: this.searchType,
-							searchKeyWord: this.searchKeyWord,
-							currentPage: this.currentPage,
-							pageSize: this.pageSize,
-						})
-						.toPromise()
-						.then((response) => {
-							for (var i = 0; i < response.records.length; i++) {
-								if (response.records[i].addressUrl != null) {
-									response.records[i].addressUrlArray = response.records[
-										i
-									].addressUrl.split(',')
-								} else {
-									response.records[i].addressUrlArray = []
-								}
-							}
-							this.deptCircularPage.currentPage = response.current
-							this.deptCircularPage.pageSize = response.size
-							this.deptBudgetTotal = response.total
-							this.warehouseList = response
-						})
-            
-				}
-        getReceiptTaskNo({
-            flag: 1,
-            warehouseName: this.deptBudgetList.warehouseName,
-            agentKey: localStorage.getItem('ws-pf_userId'),
+            this.deptCircularPage.currentPage = response.current
+            this.deptCircularPage.pageSize = response.size
+            this.deptBudgetTotal = response.total
+            this.warehouseList = response
           })
+      } else if (this.warehouseType == 2) {
+        recordss({
+          compId: localStorage.getItem('ws-pf_compId'),
+          baseId: this.deptBudgetList.baseId,
+          positionId: this.deptBudgetList.positionId,
+          warehouseName: this.deptBudgetList.warehouseName,
+          startDate: startDate,
+          endDate: endDate,
+          searchType: this.searchType,
+          searchKeyWord: this.searchKeyWord,
+          currentPage: this.currentPage,
+          pageSize: this.pageSize,
+        })
           .toPromise()
           .then((response) => {
-            this.taskNolist1 = response
-            this.taskNolist = response
+            for (var i = 0; i < response.records.length; i++) {
+              if (response.records[i].addressUrl != null) {
+                response.records[i].addressUrlArray =
+                  response.records[i].addressUrl.split(',')
+              } else {
+                response.records[i].addressUrlArray = []
+              }
+            }
+            this.deptCircularPage.currentPage = response.current
+            this.deptCircularPage.pageSize = response.size
+            this.deptBudgetTotal = response.total
+            this.warehouseList = response
           })
-
-			},
-			selecttaskType(e) {
-				for (var i = 0; i < this.taskTypeList.length; i++) {
-					if (this.taskTypeList[i].value == e) {
-						this.searchType = this.taskTypeList[i].type
-					}
-				}
-			},
-			fujian(row) {
-				if (
-					row.addressUrl === null ||
-					row.addressUrl === ''
-				) {
-					EventBus.$emit(
-						'warning',
-						this.$t('system.noticeCircular.NoInformation')
-					)
-				} else {
-					this.accessoryTFs = true
-				}
-				this.appendixIdss = row.addressUrl
-				this.srcList=[row.addressUrl]
-			},
-			// 关闭 dialog时 处理文件url 初始化upload组件
-			handleCloe() {
-				this.dialogViewSpareMoney = false
-			},
-			history(row) {
-				console.log(row)
-				billoperatehis({
-						id: row.id
-					})
-					.toPromise()
-					.then((response) => {
-						this.historyList = response
-					})
-			},
-			// async exportlist() {
-			//   const { data } = await export1(
-			//     {
-			//       compId: localStorage.getItem('ws-pf_compId'),
-			//       contractType: this.contractType,
-			//       currentPage: this.currentPage,
-			//       pageSize: this.pageSize,
-			//       searchType: this.searchType,
-			//       searchKeyWord: this.searchKeyWord,
-			//       startDate: this.startDate,
-			//       endDate: this.endDate,
-			//     },
-			//     {},
-			//     { responseType: 'blob' }
-			//   ).toPromise()
-			//   downloadFile({
-			//     res: data,
-			//     fileName: `${
-			//       this.date.year + (this.date.month ? `-${this.date.month}` : '')
-			//     }_采购合同`,
-			//     type: 'xls',
-			//   })
-			// },
-			// deletecontract(){},
-			//删除
-
-			approve() {},
-			listQuery() {},
-			total() {},
-			clearfiltQuery() {},
-			selectCrtDuty() {},
-		},
-	}
+      }
+      getReceiptTaskNo({
+        flag: 1,
+        warehouseName: this.deptBudgetList.warehouseName,
+        agentKey: localStorage.getItem('ws-pf_userId'),
+      })
+        .toPromise()
+        .then((response) => {
+          this.taskNolist1 = response
+          this.taskNolist = response
+        })
+    },
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    fujian(row) {
+      if (row.addressUrl === null || row.addressUrl === '') {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      } else {
+        this.accessoryTFs = true
+      }
+      this.appendixIdss = row.addressUrl
+      this.srcList = [row.addressUrl]
+    },
+    // 关闭 dialog时 处理文件url 初始化upload组件
+    handleCloe() {
+      this.dialogViewSpareMoney = false
+    },
+    history(row) {
+      console.log(row)
+      billoperatehis({
+        id: row.id,
+      })
+        .toPromise()
+        .then((response) => {
+          this.historyList = response
+        })
+    },
+    // async exportlist() {
+    //   const { data } = await export1(
+    //     {
+    //       compId: localStorage.getItem('ws-pf_compId'),
+    //       contractType: this.contractType,
+    //       currentPage: this.currentPage,
+    //       pageSize: this.pageSize,
+    //       searchType: this.searchType,
+    //       searchKeyWord: this.searchKeyWord,
+    //       startDate: this.startDate,
+    //       endDate: this.endDate,
+    //     },
+    //     {},
+    //     { responseType: 'blob' }
+    //   ).toPromise()
+    //   downloadFile({
+    //     res: data,
+    //     fileName: `${
+    //       this.date.year + (this.date.month ? `-${this.date.month}` : '')
+    //     }_采购合同`,
+    //     type: 'xls',
+    //   })
+    // },
+    // deletecontract(){},
+    //删除
+
+    approve() {},
+    listQuery() {},
+    total() {},
+    clearfiltQuery() {},
+    selectCrtDuty() {},
+  },
+}
 </script>
 <style lang="scss" scoped>
-  /deep/.totalStorage .el-input__inner {
-    color: #afb5cb;
-    background: #f5f7fa;
-  }
-
-  .small-title {
-    position: relative;
-    padding: 10px;
-    font-weight: 600;
-  }
-
-  .small-title::before {
-    position: absolute;
-    content: '';
-    display: block;
-    background: #5473e8;
-    width: 4px;
-    height: 14px;
-    left: 0px;
-    top: 13px;
-  }
-
-  .position {
-    position: relative;
-  }
-
-  .add,
-  .del {
-    position: absolute;
-    right: -38px;
-    top: 9px;
-    cursor: pointer;
-  }
-
-  .del {
-    right: -70px;
-  }
-
-  .amap-page-container {
-    width: 300px;
-    height: 300px;
-  }
-
-  .ware {
-    font-size: 12px;
-    color: rgb(255, 255, 255);
-    padding: 3px;
-    position: relative;
-    top: -1px;
-    border-radius: 3px;
-    display: inline-block;
-    text-align: center;
-  }
-
-  .title1 {
-    position: relative;
-  }
-
-  .title1::before {
-    content: '';
-    display: inline-block;
-    width: 5px;
-    height: 30px;
-    background: #5473e8;
-    position: absolute;
-    left: 0;
-  }
-
-  .ws-info-table {
-    border-left: 1px solid transparent;
-    border-top: 1px solid transparent;
-  }
-
-  .el-button--primary {
-    background-color: #5878e8;
-    border-color: #5878e8;
-  }
-
-  .adjustment.el-button--primary {
-    background-color: #51cdd9;
-    border-color: #51cdd9;
-  }
-
-  .el-col {
-    background: #f6f7fc;
-  }
-
-  .record {
-    background: #fff;
-    color: #8890b1;
-    border-color: #fff;
-    display: inline-block;
-    margin-bottom: 10px;
-    cursor: pointer;
-    margin-left: 5px;
-    margin-right: 5px;
-  }
-
-  .record img {
-    position: relative;
-    top: 2px;
-  }
-
-  .record.active img {
-    position: relative;
-    top: 4px;
-  }
-
-  .record.active {
-    color: #262626;
-  }
-
-  .button-container {
+/deep/.totalStorage .el-input__inner {
+  color: #afb5cb;
+  background: #f5f7fa;
+}
+
+.small-title {
+  position: relative;
+  padding: 10px;
+  font-weight: 600;
+}
+
+.small-title::before {
+  position: absolute;
+  content: '';
+  display: block;
+  background: #5473e8;
+  width: 4px;
+  height: 14px;
+  left: 0px;
+  top: 13px;
+}
+
+.position {
+  position: relative;
+}
+
+.add,
+.del {
+  position: absolute;
+  right: -38px;
+  top: 9px;
+  cursor: pointer;
+}
+
+.del {
+  right: -70px;
+}
+
+.amap-page-container {
+  width: 300px;
+  height: 300px;
+}
+
+.ware {
+  font-size: 12px;
+  color: rgb(255, 255, 255);
+  padding: 3px;
+  position: relative;
+  top: -1px;
+  border-radius: 3px;
+  display: inline-block;
+  text-align: center;
+}
+
+.title1 {
+  position: relative;
+}
+
+.title1::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+
+.ws-info-table {
+  border-left: 1px solid transparent;
+  border-top: 1px solid transparent;
+}
+
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+
+.adjustment.el-button--primary {
+  background-color: #51cdd9;
+  border-color: #51cdd9;
+}
+
+.el-col {
+  background: #f6f7fc;
+}
+
+.record {
+  background: #fff;
+  color: #8890b1;
+  border-color: #fff;
+  display: inline-block;
+  margin-bottom: 10px;
+  cursor: pointer;
+  margin-left: 5px;
+  margin-right: 5px;
+}
+
+.record img {
+  position: relative;
+  top: 2px;
+}
+
+.record.active img {
+  position: relative;
+  top: 4px;
+}
+
+.record.active {
+  color: #262626;
+}
+
+.button-container {
+  display: flex;
+  flex-wrap: nowrap;
+  justify-content: space-between;
+  align-items: center;
+  background-color: #fff;
+  width: 100%;
+  height: 50px;
+  padding: 0 10px;
+
+  & > div {
+    margin-left: 10px;
     display: flex;
     flex-wrap: nowrap;
-    justify-content: space-between;
-    align-items: center;
-    background-color: #fff;
-    width: 100%;
-    height: 50px;
-    padding: 0 10px;
-
-    &>div {
-      margin-left: 10px;
-      display: flex;
-      flex-wrap: nowrap;
-      flex-direction: row;
-
-      &>span {
-        line-height: 50px;
-      }
-    }
+    flex-direction: row;
 
-    /deep/.auditFlow-box {
-      position: unset;
-      margin-left: 10px;
-
-      &/deep/.auditFlow-icon {
-        width: auto;
-        padding-right: 30px;
-      }
-
-      &/deep/.auditFlow-main {
-        position: absolute;
-      }
+    & > span {
+      line-height: 50px;
     }
   }
 
-  .box-app {
-    display: inline-block;
-    float: left;
-    margin-left: 30px;
-    line-height: 50px;
-  }
+  /deep/.auditFlow-box {
+    position: unset;
+    margin-left: 10px;
 
-  /deep/.el-dialog {
-    .el-form-item {
-      margin-bottom: 0 !important;
-
-      .el-input--medium {
-        textarea {
-          min-height: 100px !important;
-        }
-      }
+    &/deep/.auditFlow-icon {
+      width: auto;
+      padding-right: 30px;
     }
-  }
-
-  .top-grade {
-    background: linear-gradient(90deg, #5678e9, #7993f6);
-    color: #fff;
-    padding: 3px;
-    border-radius: 2px;
-  }
-
-  .second-class {
-    background: linear-gradient(90deg, #50cdd9, #82e2ea);
-    color: #fff;
-    padding: 3px;
-    border-radius: 2px;
-  }
-
-  .third-class {
-    background: linear-gradient(90deg, #ffa735, #ffbf70);
-    color: #fff;
-    padding: 3px;
-    border-radius: 2px;
-  }
-
-  .substandard {
-    background: linear-gradient(90deg, #b2b4bb, #ced0d5);
-    color: #fff;
-    padding: 3px;
-    border-radius: 2px;
-  }
-
-  .collapse-bottom {
-    margin-bottom: 20px;
-  }
-
-  .input-main .textarea .el-textarea__inner {
-    width: 100%;
-    z-index: 1;
-  }
-
-  .bg-left {
-    padding-left: 30px;
-  }
-
-  .bg-right {
-    padding-right: 10px;
-    text-align: right;
-  }
-
-  .bg-bottom {
-    margin: 15px 0px;
-  }
 
-  .wenzi {
-    width: 900px;
-    margin: 0 auto;
-  }
-
-  .wenzi h3 {
-    display: inline-block;
-    left: 10px;
+    &/deep/.auditFlow-main {
+      position: absolute;
+    }
   }
-
-  .wenzi p {
-    display: inline-block;
+}
+
+.box-app {
+  display: inline-block;
+  float: left;
+  margin-left: 30px;
+  line-height: 50px;
+}
+
+/deep/.el-dialog {
+  .el-form-item {
+    margin-bottom: 0 !important;
+
+    .el-input--medium {
+      textarea {
+        min-height: 100px !important;
+      }
+    }
   }
-
-  .center {
-    padding: 0 1%;
+}
+
+.top-grade {
+  background: linear-gradient(90deg, #5678e9, #7993f6);
+  color: #fff;
+  padding: 3px;
+  border-radius: 2px;
+}
+
+.second-class {
+  background: linear-gradient(90deg, #50cdd9, #82e2ea);
+  color: #fff;
+  padding: 3px;
+  border-radius: 2px;
+}
+
+.third-class {
+  background: linear-gradient(90deg, #ffa735, #ffbf70);
+  color: #fff;
+  padding: 3px;
+  border-radius: 2px;
+}
+
+.substandard {
+  background: linear-gradient(90deg, #b2b4bb, #ced0d5);
+  color: #fff;
+  padding: 3px;
+  border-radius: 2px;
+}
+
+.collapse-bottom {
+  margin-bottom: 20px;
+}
+
+.input-main .textarea .el-textarea__inner {
+  width: 100%;
+  z-index: 1;
+}
+
+.bg-left {
+  padding-left: 30px;
+}
+
+.bg-right {
+  padding-right: 10px;
+  text-align: right;
+}
+
+.bg-bottom {
+  margin: 15px 0px;
+}
+
+.wenzi {
+  width: 900px;
+  margin: 0 auto;
+}
+
+.wenzi h3 {
+  display: inline-block;
+  left: 10px;
+}
+
+.wenzi p {
+  display: inline-block;
+}
+
+.center {
+  padding: 0 1%;
+}
+
+.el-form-item__label {
+  text-align: center;
+}
+
+.ce {
+  width: 900px;
+  margin: 0 auto;
+}
+
+/*.crt-main .textarea /deep/ .el-form-item__label {*/
+/*  height: 82px;*/
+/*}*/
+// 控制select为只读的时候显示样式
+
+.hide-sel {
+  .el-input__inner {
+    border: 0px;
   }
 
-  .el-form-item__label {
-    text-align: center;
+  .el-icon-arrow-up {
+    display: none;
   }
 
-  .ce {
-    width: 900px;
-    margin: 0 auto;
+  .el-textarea__inner {
+    background-color: #fff !important;
+    border: 0;
   }
 
-  /*.crt-main .textarea /deep/ .el-form-item__label {*/
-  /*  height: 82px;*/
-  /*}*/
-  // 控制select为只读的时候显示样式
-
-  .hide-sel {
-    .el-input__inner {
-      border: 0px;
-    }
-
-    .el-icon-arrow-up {
+  .el-date-editor {
+    i {
       display: none;
     }
+  }
 
-    .el-textarea__inner {
+  .is-disabled {
+    .el-input__inner:hover {
       background-color: #fff !important;
       border: 0;
     }
 
-    .el-date-editor {
-      i {
-        display: none;
-      }
-    }
-
-    .is-disabled {
-      .el-input__inner:hover {
-        background-color: #fff !important;
-        border: 0;
-      }
+    color: #606266;
 
+    .el-input__inner {
+      background-color: #fff !important;
+      border: 0;
       color: #606266;
-
-      .el-input__inner {
-        background-color: #fff !important;
-        border: 0;
-        color: #606266;
-      }
-
-      .el-textarea__inner {
-        background-color: #fff !important;
-        border: 0;
-        color: #606266;
-      }
-    }
-  }
-
-  // 控制select为只读的时候显示样式
-  /deep/.ws-class-table-col {
-    height: auto;
-    padding: 0px 2px;
-
-    /deep/.el-input__inner {
-      padding: 0px 2px;
     }
-  }
 
-  /deep/.is-disabled {
-    .el-input__prefix,
-    .el-input__suffix {
-      display: none;
-    }
-
-    .el-input__inner {
-      background-color: #fff;
-      border-color: #fff !important;
-      color: #000 !important;
-      font-size: 14px;
-      cursor: text;
-      padding: 0 !important;
+    .el-textarea__inner {
+      background-color: #fff !important;
+      border: 0;
+      color: #606266;
     }
   }
+}
 
-  .winseaview-view {
-    padding: 0 0 20px;
-  }
+// 控制select为只读的时候显示样式
+/deep/.ws-class-table-col {
+  height: auto;
+  padding: 0px 2px;
 
-  .container {
-    overflow: scroll;
-    height: 93vh;
+  /deep/.el-input__inner {
+    padding: 0px 2px;
   }
+}
 
-  .el-textarea__inner {
+/deep/.is-disabled {
+  .el-input__prefix,
+  .el-input__suffix {
     display: none;
   }
 
-  .readonly {
-    width: 16%;
-  }
-
-  .ws-info-table .el-form-item {
-    width: 14.28%;
-  }
-
-  .dataClass {
-    width: 20% !important;
-  }
-
-  .input {
-    width: 20% !important;
-  }
-
-
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    background-color: #f6f7fc;
-    font-size: 12px;
-    height: 45px;
-  }
-
-  //去边框
-  /deep/.el-form-item {
-    border-right: 0px;
-    border-bottom: 0px;
-  }
-
-  /deep/.ws-info-table {
-    border-left: 0px;
-    border-top: 0px;
-  }
-
-  .ws-info-table .el-form-item .el-form-item__content {
-    border-right: 0px;
-    border-bottom: 0px;
-    border-left: 0px;
-    border-top: 0px;
-  }
-
-  /deep/.ws-info-table .el-form-item {
-    border-right: 0px;
-    border-bottom: 0px;
-    border-left: 0px;
-    border-top: 0px;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__content {
-    background: #f5f7fa;
-    border-radius: 4px;
-    border: 1px solid #d8dce6;
-    font-family: PingFangSC-Regular, PingFang SC;
-    margin-bottom: 5px;
+  .el-input__inner {
     background-color: #fff;
+    border-color: #fff !important;
+    color: #000 !important;
     font-size: 14px;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__content {
-    border: 0px;
-  }
-
-  /deep/.el-table td,
-  /deep/.el-table .el-table__header .cell {
-    text-align: center;
-  }
-
-  .binNo {
-    color: #333;
-    font-size: 18px;
-    margin-left: 20px;
-  }
-  /deep/.sale-form .el-select{
-    width:100%;
-  }
-  /deep/.winsea__content-modal .winsea__content-modal__win-wrap {
-    width:50%;
-    position: absolute;
-    top: 0;
-    bottom: 0;
-    left: 0;
-    right: 0;
-    margin: auto;
-    height: 369px;
-    border-radius: 10px;
-  }
-  /deep/.sale-form .title{
-    font-weight:600;
-  }
-  /deep/.sale-form .el-form-item__label{
-    font-weight:500;
+    cursor: text;
+    padding: 0 !important;
   }
+}
+
+.winseaview-view {
+  padding: 0 0 20px;
+}
+
+.container {
+  overflow: scroll;
+  height: 93vh;
+}
+
+.el-textarea__inner {
+  display: none;
+}
+
+.readonly {
+  width: 16%;
+}
+
+.ws-info-table .el-form-item {
+  width: 14.28%;
+}
+
+.dataClass {
+  width: 20% !important;
+}
+
+.input {
+  width: 20% !important;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  background-color: #f6f7fc;
+  font-size: 12px;
+  height: 45px;
+}
+
+//去边框
+/deep/.el-form-item {
+  border-right: 0px;
+  border-bottom: 0px;
+}
+
+/deep/.ws-info-table {
+  border-left: 0px;
+  border-top: 0px;
+}
+
+.ws-info-table .el-form-item .el-form-item__content {
+  border-right: 0px;
+  border-bottom: 0px;
+  border-left: 0px;
+  border-top: 0px;
+}
+
+/deep/.ws-info-table .el-form-item {
+  border-right: 0px;
+  border-bottom: 0px;
+  border-left: 0px;
+  border-top: 0px;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  background: #f5f7fa;
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+  font-family: PingFangSC-Regular, PingFang SC;
+  margin-bottom: 5px;
+  background-color: #fff;
+  font-size: 14px;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  border: 0px;
+}
+
+/deep/.el-table td,
+/deep/.el-table .el-table__header .cell {
+  text-align: center;
+}
+
+.binNo {
+  color: #333;
+  font-size: 18px;
+  margin-left: 20px;
+}
+/deep/.sale-form .el-select {
+  width: 100%;
+}
+/deep/.winsea__content-modal .winsea__content-modal__win-wrap {
+  width: 50%;
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  margin: auto;
+  height: 369px;
+  border-radius: 10px;
+}
+/deep/.sale-form .title {
+  font-weight: 600;
+}
+/deep/.sale-form .el-form-item__label {
+  font-weight: 500;
+}
 </style>