Browse Source

更新成本检验记录列表显示

chrislee 1 month ago
parent
commit
ff9f8fba4b
2 changed files with 225 additions and 447 deletions
  1. 123 167
      src/views/modules/check/finish-check.vue
  2. 102 280
      src/views/modules/order/order.vue

+ 123 - 167
src/views/modules/check/finish-check.vue

@@ -4,205 +4,161 @@
     <template v-if="!detailVisible">
       <el-form :inline="true" :model="dataForm" @keyup.enter.native="queryPage()">
         <el-form-item label="物料名称" prop="productName">
-          <el-input v-model="dataForm.productName" placeholder="物料名称" clearable/>
+          <el-input v-model="dataForm.productName" placeholder="物料名称" clearable />
         </el-form-item>
         <el-form-item label="物料编号" prop="productNumber">
-          <el-input v-model="dataForm.productNumber" placeholder="物料编号" clearable/>
+          <el-input v-model="dataForm.productNumber" placeholder="物料编号" clearable />
+        </el-form-item>
+        <el-form-item label="是否合格" prop="qualified">
+          <el-select v-model="dataForm.qualified" placeholder="全部" clearable>
+            <el-option :value="''" label="全部" />
+            <el-option :value="'1'" label="是" />
+            <el-option :value="'0'" label="否" />
+          </el-select>
         </el-form-item>
         <el-form-item>
           <el-button @click="queryPage()">查询</el-button>
         </el-form-item>
       </el-form>
-      <el-table
-        :data="dataList"
-        border
-        v-loading="dataListLoading"
-        style="width: 100%;">
-        <el-table-column
-          label="序号"
-          type="index"
-          width="50"
-          align="center">
+      <el-table :data="dataList" border v-loading="dataListLoading" style="width: 100%;">
+        <el-table-column label="序号" type="index" width="50" align="center">
         </el-table-column>
-        <el-table-column
-          prop="productName"
-          header-align="center"
-          align="center"
-          min-width="160"
-          :show-tooltip-when-overflow="true"
-          label="物料名称">
+        <el-table-column prop="productName" header-align="center" align="center" min-width="160"
+          :show-tooltip-when-overflow="true" label="物料名称">
         </el-table-column>
-        <el-table-column
-          prop="productNumber"
-          header-align="center"
-          align="center"
-          width="120"
-          :show-tooltip-when-overflow="true"
-          label="物料编号">
+        <el-table-column prop="productNumber" header-align="center" align="center" width="120"
+          :show-tooltip-when-overflow="true" label="物料编号">
         </el-table-column>
-        <el-table-column
-          prop="techName"
-          header-align="center"
-          align="center"
-          width="160"
-          :show-tooltip-when-overflow="true"
-          label="工艺名称">
+        <el-table-column prop="techName" header-align="center" align="center" width="160"
+          :show-tooltip-when-overflow="true" label="工艺名称">
         </el-table-column>
-        <el-table-column
-          prop="stepName"
-          header-align="center"
-          align="center"
-          width="100"
-          :show-tooltip-when-overflow="true"
-          label="工序号">
+        <el-table-column prop="stepName" header-align="center" align="center" width="100"
+          :show-tooltip-when-overflow="true" label="工序号">
         </el-table-column>
-        <el-table-column
-          prop="-"
-          header-align="center"
-          align="center"
-          :formatter="formatStates"
-          label="是否合格">
+        <el-table-column prop="-" header-align="center" align="center" :formatter="formatQualified" label="是否合格">
         </el-table-column>
-        <el-table-column
-          prop="operationRecords"
-          header-align="center"
-          align="center"
-          width="180"
-          :show-tooltip-when-overflow="true"
-          label="记录说明">
+        <el-table-column prop="operationRecords" header-align="center" align="center" width="180"
+          :show-tooltip-when-overflow="true" label="记录说明">
         </el-table-column>
-        <el-table-column
-          prop="operation"
-          header-align="center"
-          align="center"
-          label="检验员">
+        <el-table-column prop="operation" header-align="center" align="center" label="检验员">
         </el-table-column>
-        <el-table-column
-          prop="operationTime"
-          header-align="center"
-          align="center"
-          min-width="160"
-          label="检验时间">
+        <el-table-column prop="operationTime" header-align="center" align="center" min-width="160" label="检验时间">
         </el-table-column>
-        <el-table-column
-          fixed="right"
-          header-align="center"
-          align="center"
-          width="80"
-          label="操作">
+        <el-table-column fixed="right" header-align="center" align="center" width="80" label="操作">
           <template slot-scope="scope">
-            <el-button v-if="isAuth('quality:finished:info')" type="text" size="small" @click="detailHandle(scope.row.taskId)">查看</el-button>
+            <el-button v-if="isAuth('quality:finished:info')" type="text" size="small"
+              @click="detailHandle(scope.row.taskId)">查看</el-button>
           </template>
         </el-table-column>
       </el-table>
-      <el-pagination
-        @size-change="sizeChangeHandle"
-        @current-change="currentChangeHandle"
-        :current-page="pageIndex"
-        :page-sizes="[10, 20, 50, 100]"
-        :page-size="pageSize"
-        :total="totalPage"
+      <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex"
+        :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage"
         layout="total, sizes, prev, pager, next, jumper">
       </el-pagination>
     </template>
-    <detail v-if="detailVisible" ref="details" @onChose="onChose"/>
+    <detail v-if="detailVisible" ref="details" @onChose="onChose" />
   </div>
 </template>
 
 <script>
-  import Detail from './fc-detail'
-  import { getFinishCheckList } from '@/api/check'
-  export default {
-    name: 'product-check',
-    components: {Detail},
-    data () {
-      return {
-        detailVisible: false,
-        dataForm: {},
-        dataList: [],
-        pageIndex: 1,
-        pageSize: 10,
-        totalPage: 0,
-        dataListLoading: false,
-        dataListSelections: []
+import Detail from './fc-detail'
+import { getFinishCheckList } from '@/api/check'
+export default {
+  name: 'product-check',
+  components: { Detail },
+  data() {
+    return {
+      detailVisible: false,
+      dataForm: {},
+      dataList: [],
+      pageIndex: 1,
+      pageSize: 10,
+      totalPage: 0,
+      dataListLoading: false,
+      dataListSelections: []
+    }
+  },
+  created() {
+    this.getDataList()
+  },
+  methods: {
+    // 查询
+    queryPage() {
+      this.pageIndex = 1
+      this.getDataList()
+    },
+    onChose() {
+      this.detailVisible = false
+    },
+    // 获取数据列表
+    getDataList() {
+      this.dataListLoading = true
+      let params = {
+        'current': this.pageIndex,
+        'size': this.pageSize,
+        'productName': this.dataForm.productName ? this.dataForm.productName : null,
+        'productNumber': this.dataForm.productNumber ? this.dataForm.productNumber : null,
+        'qualified': (this.dataForm.qualified === '1' || this.dataForm.qualified === '0') ? this.dataForm.qualified : null
       }
+      if (params.qualified === '0') {
+        // 清空列表
+        this.dataList = []
+        this.totalPage = 0
+        this.dataListLoading = false
+        return
+      }
+      getFinishCheckList(params).then(({ data }) => {
+        if (data && data.code === '200') {
+          this.dataList = data.data.records
+          this.totalPage = Number(data.data.total)
+        } else {
+          this.dataList = []
+          this.totalPage = 0
+        }
+        this.dataListLoading = false
+      })
     },
-    created () {
+    // 每页数
+    sizeChangeHandle(val) {
+      this.pageSize = val
+      this.pageIndex = 1
       this.getDataList()
     },
-    methods: {
-      // 查询
-      queryPage () {
-        this.pageIndex = 1
-        this.getDataList()
-      },
-      onChose () {
-        this.detailVisible = false
-      },
-      // 获取数据列表
-      getDataList () {
-        this.dataListLoading = true
-        let params = {
-          'current': this.pageIndex,
-          'size': this.pageSize,
-          'productName': this.dataForm.productName ? this.dataForm.productName : null,
-          'productNumber': this.dataForm.productNumber ? this.dataForm.productNumber : null
-        }
-        getFinishCheckList(params).then(({data}) => {
-          if (data && data.code === '200') {
-            this.dataList = data.data.records
-            this.totalPage = Number(data.data.total)
-          } else {
-            this.dataList = []
-            this.totalPage = 0
-          }
-          this.dataListLoading = false
-        })
-      },
-      // 每页数
-      sizeChangeHandle (val) {
-        this.pageSize = val
-        this.pageIndex = 1
-        this.getDataList()
-      },
-      // 当前页
-      currentChangeHandle (val) {
-        this.pageIndex = val
-        this.getDataList()
-      },
-      // 多选
-      selectionChangeHandle (val) {
-        this.dataListSelections = val
-      },
-      // 新增 / 修改
-      addOrUpdateHandle (id, disable) {
-        this.addOrUpdateVisible = true
-        this.$nextTick(() => {
-          this.$refs.addOrUpdate.init(id, disable)
-        })
-      },
-      formatStates (row) {
-        if (!row.state) return ''
-        if (row.state === '3') {
-          return '合格'
-        }
-        if (row.state === '4') {
-          return '不合格'
-        }
-        return ''
-      },
-      // 详情
-      detailHandle (id) {
-        this.detailVisible = true
-        this.$nextTick(() => {
-          this.$refs.details.init(id)
-        })
-      }
+    // 当前页
+    currentChangeHandle(val) {
+      this.pageIndex = val
+      this.getDataList()
+    },
+    // 多选
+    selectionChangeHandle(val) {
+      this.dataListSelections = val
+    },
+    // 新增 / 修改
+    addOrUpdateHandle(id, disable) {
+      this.addOrUpdateVisible = true
+      this.$nextTick(() => {
+        this.$refs.addOrUpdate.init(id, disable)
+      })
+    },
+    formatQualified(row) {
+      // 后端新增字段 qualified: 1=是,0=否;兼容旧数据使用 state 字段(3=合格,4=不合格)
+      const q = row.qualified
+      if (q === 1 || q === '1') return '合格'
+      if (q === 0 || q === '0') return '不合格'
+      // 兼容旧字段 state
+      // if (row.state === '3') return '合格'
+      // if (row.state === '4') return '不合格'
+      return ''
+    },
+    // 详情
+    detailHandle(id) {
+      this.detailVisible = true
+      this.$nextTick(() => {
+        this.$refs.details.init(id)
+      })
     }
   }
+}
 </script>
 
-<style scoped>
-
-</style>
-
+<style scoped></style>

+ 102 - 280
src/views/modules/order/order.vue

@@ -1,83 +1,44 @@
 <!-- 任务单列表 -->
 <template>
   <div class="order">
-    <template
-      v-if="
-        !attachVisible &&
-        !addOrUpdateVisible &&
-        !detailVisible &&
-        !arrivedVisible &&
-        !confirmVisible &&
-        !noticeChangeAttachVisible &&
-        !amountMaskSettingVisible
-      "
-    >
-      <el-form
-        :inline="true"
-        :model="dataForm"
-        @keyup.enter.native="queryData()"
-      >
+    <template v-if="
+      !attachVisible &&
+      !addOrUpdateVisible &&
+      !detailVisible &&
+      !arrivedVisible &&
+      !confirmVisible &&
+      !noticeChangeAttachVisible &&
+      !amountMaskSettingVisible
+    ">
+      <el-form :inline="true" :model="dataForm" @keyup.enter.native="queryData()">
         <el-form-item label="客户名称">
-          <cus-component
-            v-model="dataForm.customerId"
-            :cus-id="dataForm.customerId"
-          ></cus-component>
+          <cus-component v-model="dataForm.customerId" :cus-id="dataForm.customerId"></cus-component>
         </el-form-item>
         <el-form-item label="合同编码">
-          <el-input
-            v-model="dataForm.contractNumber"
-            placeholder="合同号"
-            clearable
-          ></el-input>
+          <el-input v-model="dataForm.contractNumber" placeholder="合同号" clearable></el-input>
         </el-form-item>
         <el-form-item label="状态" prop="orderState">
           <el-select v-model="dataForm.orderState" remote placeholder="请选择">
-            <el-option
-              v-for="item in optionsOrderState"
-              :key="item.code"
-              :label="item.value"
-              :value="item.code"
-            >
+            <el-option v-for="item in optionsOrderState" :key="item.code" :label="item.value" :value="item.code">
             </el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="创建日期">
-          <el-date-picker
-            v-model="dataForm.createTime"
-            value-format="yyyy-MM-dd"
-            type="date"
-          >
+          <el-date-picker v-model="dataForm.createTime" value-format="yyyy-MM-dd" type="date">
           </el-date-picker>
         </el-form-item>
         <el-form-item>
           <el-button @click="queryData()">查询</el-button>
-          <el-button
-            v-if="isAuth('order:ctl:save')"
-            @click="addOrUpdateHandle(0, false)"
-            type="primary"
-            >创建任务单</el-button
-          >
-          <el-button
-            v-if="isAuth('order:ctl:noteChangeConfig')"
-            type="primary"
-            @click="setNoticeChangeHandel()"
-            >任务单变更通知设置</el-button
-          >
-          <el-button
-            v-if="isAuth('order:ctl:priceConfig')"
-            type="primary"
-            @click="setAmountMaskHandel()"
-            >任务单金额屏蔽设置</el-button
-          >
+          <el-button v-if="isAuth('order:ctl:save')" @click="addOrUpdateHandle(0, false)"
+            type="primary">创建任务单</el-button>
+          <el-button v-if="isAuth('order:ctl:noteChangeConfig')" type="primary"
+            @click="setNoticeChangeHandel()">任务单变更通知设置</el-button>
+          <el-button v-if="isAuth('order:ctl:priceConfig')" type="primary"
+            @click="setAmountMaskHandel()">任务单金额屏蔽设置</el-button>
         </el-form-item>
       </el-form>
-      <el-table
-        :data="dataList"
-        border
-        v-loading="dataListLoading"
-        @selection-change="selectionChangeHandle"
-        style="width: 100%"
-      >
+      <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle"
+        style="width: 100%">
         <el-table-column label="序号" type="index" width="50" align="center">
         </el-table-column>
         <!-- <el-table-column
@@ -88,85 +49,34 @@
           :show-tooltip-when-overflow="true"
           label="任务单编码">
         </el-table-column> -->
-        <el-table-column
-          prop="projectName"
-          header-align="center"
-          align="center"
-          min-width="180"
-          :show-tooltip-when-overflow="true"
-          label="项目名称"
-        >
+        <el-table-column prop="projectName" header-align="center" align="center" min-width="180"
+          :show-tooltip-when-overflow="true" label="项目名称">
         </el-table-column>
-        <el-table-column
-          prop="productName"
-          header-align="center"
-          align="center"
-          min-width="160"
-          :show-tooltip-when-overflow="true"
-          label="物料名称"
-        >
+        <el-table-column prop="productName" header-align="center" align="center" min-width="160"
+          :show-tooltip-when-overflow="true" label="物料名称">
         </el-table-column>
-        <el-table-column
-          prop="mapNumber"
-          header-align="center"
-          align="center"
-          min-width="160"
-          :show-tooltip-when-overflow="true"
-          label="主图号"
-        >
+        <el-table-column prop="mapNumber" header-align="center" align="center" min-width="160"
+          :show-tooltip-when-overflow="true" label="主图号">
         </el-table-column>
-        <el-table-column
-          prop="productSpec"
-          header-align="center"
-          align="center"
-          min-width="160"
-          :show-tooltip-when-overflow="true"
-          label="物料规格"
-        >
+        <el-table-column prop="productSpec" header-align="center" align="center" min-width="160"
+          :show-tooltip-when-overflow="true" label="物料规格">
         </el-table-column>
-        <el-table-column
-          prop="cnt"
-          header-align="center"
-          align="center"
-          min-width="80"
-          label="单套数量"
-        >
+        <el-table-column prop="cnt" header-align="center" align="center" min-width="80" label="单套数量">
         </el-table-column>
-        <el-table-column
-          prop="customerName"
-          header-align="center"
-          align="center"
-          min-width="180"
-          :show-overflow-tooltip="true"
-          label="客户名称"
-        >
+        <el-table-column prop="planCnt" header-align="center" align="center" min-width="80" label="生产数量">
         </el-table-column>
-        <el-table-column
-          prop="contractNumber"
-          header-align="center"
-          align="center"
-          min-width="120"
-          :show-tooltip-when-overflow="true"
-          label="合同号"
-        >
+        <el-table-column prop="materialCnt" header-align="center" align="center" min-width="80" label="入库数量">
         </el-table-column>
-        <el-table-column
-          prop="createTime"
-          header-align="center"
-          align="center"
-          min-width="160"
-          label="下单时间"
-        >
+        <el-table-column prop="customerName" header-align="center" align="center" min-width="180"
+          :show-overflow-tooltip="true" label="客户名称">
         </el-table-column>
-        <el-table-column
-          fixed="right"
-          prop="deliveryDate"
-          :formatter="formatDate"
-          header-align="center"
-          align="center"
-          min-width="160"
-          label="合同交期"
-        >
+        <el-table-column prop="contractNumber" header-align="center" align="center" min-width="120"
+          :show-tooltip-when-overflow="true" label="合同号">
+        </el-table-column>
+        <el-table-column prop="createTime" header-align="center" align="center" min-width="160" label="下单时间">
+        </el-table-column>
+        <el-table-column fixed="right" prop="deliveryDate" :formatter="formatDate" header-align="center" align="center"
+          min-width="160" label="合同交期">
         </el-table-column>
         <!-- <el-table-column
           fixed="right"
@@ -178,147 +88,59 @@
           label="评审状态"
         >
         </el-table-column> -->
-        <el-table-column
-          fixed="right"
-          prop="orderState"
-          header-align="center"
-          align="center"
-          min-width="120"
-          :formatter="formatOrderState"
-          label="任务单状态"
-        >
+        <el-table-column fixed="right" prop="orderState" header-align="center" align="center" min-width="120"
+          :formatter="formatOrderState" label="任务单状态">
         </el-table-column>
-        <el-table-column
-          prop="approver"
-          header-align="center"
-          align="center"
-          :min-width="140"
-          :show-overflow-tooltip="true"
-          label="当前审批人"
-        >
+        <el-table-column prop="approver" header-align="center" align="center" :min-width="140"
+          :show-overflow-tooltip="true" label="当前审批人">
         </el-table-column>
-        <el-table-column
-          prop="completeDate"
-          header-align="center"
-          align="center"
-          min-width="160"
-          label="任务单完成时间"
-        >
+        <el-table-column prop="completeDate" header-align="center" align="center" min-width="160" label="任务单完成时间">
         </el-table-column>
-        <el-table-column
-          prop="notes"
-          header-align="center"
-          align="center"
-          min-width="180"
-          :show-overflow-tooltip="true"
-          label="备注"
-        >
+        <el-table-column prop="notes" header-align="center" align="center" min-width="180" :show-overflow-tooltip="true"
+          label="备注">
         </el-table-column>
         <el-table-column header-align="center" align="center" label="附件">
           <template slot-scope="scope">
-            <el-button
-              :disabled="
-                !scope.row.attachList || scope.row.attachList.length === 0
-              "
-              type="text"
-              size="small"
-              @click="attachDetails(scope.row)"
-              >查看</el-button
-            >
+            <el-button :disabled="!scope.row.attachList || scope.row.attachList.length === 0
+              " type="text" size="small" @click="attachDetails(scope.row)">查看</el-button>
           </template>
         </el-table-column>
-        <el-table-column
-          fixed="right"
-          header-align="center"
-          align="center"
-          width="150"
-          label="操作"
-        >
+        <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
           <template slot-scope="scope">
-            <el-button
-              v-if="isAuth('order:ctl:info')"
-              type="text"
-              size="small"
-              @click="detailHandle(scope.row.orderId)"
-              >查看</el-button
-            >
-            <el-button
-              v-if="
-                isAuth('order:ctl:editor') &&
-                (Number(scope.row.state) === 0 || Number(scope.row.state) === 2)
-              "
-              type="text"
-              size="small"
-              @click="addOrUpdateHandle(scope.row.orderId, false)"
-              >编辑</el-button
-            >
+            <el-button v-if="isAuth('order:ctl:info')" type="text" size="small"
+              @click="detailHandle(scope.row.orderId)">查看</el-button>
+            <el-button v-if="
+              isAuth('order:ctl:editor') &&
+              (Number(scope.row.state) === 0 || Number(scope.row.state) === 2)
+            " type="text" size="small" @click="addOrUpdateHandle(scope.row.orderId, false)">编辑</el-button>
             <!-- <el-button v-if="isAuth('order:clt:revoke') && Number(scope.row.state) === 1 && scope.row.creatorId === userId.toString()" type="text" size="small" @click="cancelOrder(scope.row)">撤回</el-button> -->
-            <el-button
-              v-if="
-                isAuth('order:clt:editor') &&
-                Number(scope.row.state) === 0 &&
-                scope.row.creatorId === userId.toString()
-              "
-              type="text"
-              size="small"
-              @click="deleteOrder(scope.row)"
-              >删除</el-button
-            >
-            <el-button
-              v-if="
-                isAuth('order:ctl:determine') &&
-                Number(scope.row.state) === 3 &&
-                Number(scope.row.orderState) === 6
-              "
-              type="text"
-              size="small"
-              @click="techConfirm(scope.row)"
-              >技术确定</el-button
-            >
-            <el-button
-              type="text"
-              size="small"
-              @click="exportHandle(scope.row.orderId)"
-              >导出</el-button
-            >
+            <el-button v-if="
+              isAuth('order:clt:editor') &&
+              Number(scope.row.state) === 0 &&
+              scope.row.creatorId === userId.toString()
+            " type="text" size="small" @click="deleteOrder(scope.row)">删除</el-button>
+            <el-button v-if="
+              isAuth('order:ctl:determine') &&
+              Number(scope.row.state) === 3 &&
+              Number(scope.row.orderState) === 6
+            " type="text" size="small" @click="techConfirm(scope.row)">技术确定</el-button>
+            <el-button type="text" size="small" @click="exportHandle(scope.row.orderId)">导出</el-button>
           </template>
         </el-table-column>
       </el-table>
-      <el-pagination
-        @size-change="sizeChangeHandle"
-        @current-change="currentChangeHandle"
-        :current-page="pageIndex"
-        :page-sizes="[10, 20, 50, 100]"
-        :page-size="pageSize"
-        :total="totalPage"
-        layout="total, sizes, prev, pager, next, jumper"
-      >
+      <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex"
+        :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage"
+        layout="total, sizes, prev, pager, next, jumper">
       </el-pagination>
     </template>
     <!-- 弹窗, 新增 / 修改 -->
-    <add-or-update
-      v-if="addOrUpdateVisible"
-      ref="addOrUpdate"
-      @refreshDataList="getDataList"
-      @onChose="onChose"
-    ></add-or-update>
+    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"
+      @onChose="onChose"></add-or-update>
     <detail v-if="detailVisible" ref="detail" @onChose="onChose" />
-    <dispatch-arrived
-      v-if="arrivedVisible"
-      ref="arrived"
-      @refreshDataList="getDataList"
-      @onChose="onChose"
-    ></dispatch-arrived>
-    <notice-change-setting
-      v-if="noticeChangeAttachVisible"
-      ref="noticeChangeSetting"
-      @onChose="onChose"
-    />
-    <amount-mask-setting
-      v-if="amountMaskSettingVisible"
-      ref="amountMaskSetting"
-      @onChose="onChose"
-    />
+    <dispatch-arrived v-if="arrivedVisible" ref="arrived" @refreshDataList="getDataList"
+      @onChose="onChose"></dispatch-arrived>
+    <notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose" />
+    <amount-mask-setting v-if="amountMaskSettingVisible" ref="amountMaskSetting" @onChose="onChose" />
     <!-- 文件预览 -->
     <attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose" />
   </div>
@@ -350,12 +172,12 @@ export default {
     NoticeChangeSetting,
     AmountMaskSetting
   },
-  created () {
+  created() {
     this.optionsState = this.$store.state.common.approveStates
     this.userId = this.$store.state.user.id
     this.queryData()
   },
-  data () {
+  data() {
     return {
       addOrUpdateVisible: false,
       detailVisible: false,
@@ -407,7 +229,7 @@ export default {
     }
   },
   methods: {
-    formatDate (row, column, cellValue) {
+    formatDate(row, column, cellValue) {
       if (!cellValue) return ''
       const date = new Date(cellValue)
       const year = date.getFullYear()
@@ -415,7 +237,7 @@ export default {
       const day = date.getDate().toString().padStart(2, '0')
       return `${year}-${month}-${day}`
     },
-    onChose () {
+    onChose() {
       this.addOrUpdateVisible = false
       this.detailVisible = false
       this.arrivedVisible = false
@@ -425,12 +247,12 @@ export default {
       this.attachVisible = false
     },
     // 查询
-    queryData () {
+    queryData() {
       this.pageIndex = 1
       this.getDataList()
     },
     // 获取数据列表
-    getDataList () {
+    getDataList() {
       this.dataListLoading = true
       let params = {
         current: this.pageIndex,
@@ -454,29 +276,29 @@ export default {
       })
     },
     // 每页数
-    sizeChangeHandle (val) {
+    sizeChangeHandle(val) {
       this.pageSize = val
       this.pageIndex = 1
       this.getDataList()
     },
     // 当前页
-    currentChangeHandle (val) {
+    currentChangeHandle(val) {
       this.pageIndex = val
       this.getDataList()
     },
     // 多选
-    selectionChangeHandle (val) {
+    selectionChangeHandle(val) {
       this.dataListSelections = val
     },
     // 新增 / 修改
-    addOrUpdateHandle (id, disable) {
+    addOrUpdateHandle(id, disable) {
       this.addOrUpdateVisible = true
       this.$nextTick(() => {
         this.$refs.addOrUpdate.init(id, disable)
       })
     },
     // 转换属性“审批状态”
-    formatState (row) {
+    formatState(row) {
       if (!row.state) return ''
       const item1 = this.optionsState.find(
         (item) => item.code === row.state.toString()
@@ -484,7 +306,7 @@ export default {
       return item1 ? item1.value : ''
     },
     // 转换属性“任务单状态”
-    formatOrderState (row) {
+    formatOrderState(row) {
       if (!row.orderState) return ''
       const item1 = this.optionsOrderState.find(
         (item) => item.code === row.orderState.toString()
@@ -492,14 +314,14 @@ export default {
       return item1 ? item1.value : ''
     },
     // 详情
-    detailHandle (id) {
+    detailHandle(id) {
       this.detailVisible = true
       this.$nextTick(() => {
         this.$refs.detail.init(id)
       })
     },
     // 发货
-    deliverHandle (orderId) {
+    deliverHandle(orderId) {
       if (!orderId) return
       this.$confirm(`确定发货?`, '提示', {
         confirmButtonText: '确定',
@@ -522,31 +344,31 @@ export default {
             }
           })
         })
-        .catch(() => {})
+        .catch(() => { })
     },
     // 送达
-    arrivedHandle (row) {
+    arrivedHandle(row) {
       this.arrivedVisible = true
       this.$nextTick(() => {
         this.$refs.arrived.init(row.orderId, row.orderCode)
       })
     },
     // 技术确定
-    techConfirm (row) {
+    techConfirm(row) {
       this.addOrUpdateVisible = true
       this.$nextTick(() => {
         this.$refs.addOrUpdate.init(row.orderId, false, 2)
       })
     },
     // 变更通知人设置
-    setNoticeChangeHandel () {
+    setNoticeChangeHandel() {
       this.noticeChangeAttachVisible = true
       this.$nextTick(() => {
         this.$refs.noticeChangeSetting.init()
       })
     },
     // 撤回任务单
-    cancelOrder (row) {
+    cancelOrder(row) {
       this.$confirm(`确定撤回任务单${row.orderCode}?`, '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -568,10 +390,10 @@ export default {
             }
           })
         })
-        .catch(() => {})
+        .catch(() => { })
     },
     // 删除任务单
-    deleteOrder (row) {
+    deleteOrder(row) {
       this.$confirm('是否确认要删除?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -604,20 +426,20 @@ export default {
         })
     },
     // 采购金额屏蔽设置
-    setAmountMaskHandel () {
+    setAmountMaskHandel() {
       this.amountMaskSettingVisible = true
       this.$nextTick(() => {
         this.$refs.amountMaskSetting.init()
       })
     },
     // 附件
-    attachDetails (row) {
+    attachDetails(row) {
       this.attachVisible = true
       this.$nextTick(() => {
         this.$refs.attachDetail.init(row.attachList)
       })
     },
-    exportHandle (val) {
+    exportHandle(val) {
       location.href = this.$http.adornUrl(
         `/biz-service/order/exportExcel/${val}?_token=${Vue.cookie.get(
           'token'