|
@@ -0,0 +1,153 @@
|
|
|
+<!-- 外协结算前审核 -->
|
|
|
+<template>
|
|
|
+ <div class="page-container column-container">
|
|
|
+ <!-- 搜索区 -->
|
|
|
+ <el-form class="list-search-container" :model="queryParams" ref="queryRef" :inline="true">
|
|
|
+ <el-form-item label="单据号:" prop="outsourcedInspectionNo">
|
|
|
+ <el-input v-model="queryParams.outsourcedInspectionNo" placeholder="请输入单据号" style="width: 144px" clearable
|
|
|
+ @keyup.enter="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="状态:" prop="auditStatus">
|
|
|
+ <el-select v-model="queryParams.auditStatus" style="width: 144px" clearable placeholder="请选择">
|
|
|
+ <el-option v-for="dict in outsource_before_checkout_verify_status" :key="dict.value" :label="dict.label"
|
|
|
+ :value="dict.value" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <!-- 功能按钮区 -->
|
|
|
+ <!-- <div class="list-btns-container">
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <!-- 渲染数据区 -->
|
|
|
+ <div class="el-table-container">
|
|
|
+ <div class="el-table-inner-container">
|
|
|
+ <el-table v-loading="loading" :data="orderList" size="small" border height="100%"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column type="selection" width="48" align="center" />
|
|
|
+ <el-table-column label="质检单号" align="center" prop="outsourcedInspectionNo" width="120" />
|
|
|
+ <el-table-column label="外协日期" align="center" prop="outsourcedOrderDetail.formDate" width="120">
|
|
|
+ <template #default="scope">
|
|
|
+ {{ parseTime(scope.row.outsourcedOrderDetail.formDate, "{y}-{m}-{d}") }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="外协商" align="center" prop="outsourcedOrderDetail.supplierName" width="320" />
|
|
|
+ <el-table-column label="收回日期" align="center" prop="returnReceiptDetail.formDate" width="120" />
|
|
|
+ <el-table-column label="外协工序" align="center" prop="settlementType" width="120" />
|
|
|
+ <el-table-column label="状态" align="center" prop="auditStatus" width="120">
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag :options="outsource_before_checkout_verify_status" :value="scope.row.auditStatus" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" />
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button v-if="scope.row.auditStatus == 0 || scope.row.auditStatus == 2" link type="warning" icon="Edit"
|
|
|
+ @click="handleUpdate(scope.row)" v-hasPermi="['business:beforeCheckoutVerify:edit']">
|
|
|
+ 通过
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.auditStatus == 0 || scope.row.auditStatus == 1" link type="primary" icon="View"
|
|
|
+ @click="handleView(scope.row)" v-hasPermi="['business:beforeCheckoutVerify:edit']">
|
|
|
+ 不通过
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 分页 -->
|
|
|
+ <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
+ v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup name="Order">
|
|
|
+import {
|
|
|
+ listCheckoutInspection
|
|
|
+} from '@/api/business/beforeCheckoutVerify'
|
|
|
+import { nextTick } from "vue";
|
|
|
+const { proxy } = getCurrentInstance();
|
|
|
+/** 字典数组区 */
|
|
|
+const { outsource_before_checkout_verify_status } = proxy.useDict("outsource_before_checkout_verify_status");
|
|
|
+
|
|
|
+const orderList = ref([]);
|
|
|
+const loading = ref(true);
|
|
|
+const ids = ref([]);
|
|
|
+const single = ref(true);
|
|
|
+const multiple = ref(true);
|
|
|
+const total = ref(0);
|
|
|
+const printCarriers = ref([])
|
|
|
+const webHost = import.meta.env.VITE_APP_PRODUCTION_API;
|
|
|
+/** 查询对象 */
|
|
|
+const queryParams = ref({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ formCode: null,
|
|
|
+ formDate: null,
|
|
|
+ startTime: null,
|
|
|
+ endTime: null,
|
|
|
+ supplierName: null,
|
|
|
+ deliveryMethod: null,
|
|
|
+ packagingMethod: null,
|
|
|
+ freightPrice: null,
|
|
|
+ freightAmount: null,
|
|
|
+ isFirstProcess: 0
|
|
|
+});
|
|
|
+
|
|
|
+/*********************** 方法区 ****************************/
|
|
|
+
|
|
|
+/** 查询外协单主
|
|
|
+带箱方式,是整单的。如果换新箱子,明细中,都需要更换箱子列表 */
|
|
|
+function getList() {
|
|
|
+ loading.value = true;
|
|
|
+ listCheckoutInspection(queryParams.value).then((response) => {
|
|
|
+ orderList.value = response.rows;
|
|
|
+ total.value = response.total;
|
|
|
+ loading.value = false;
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/** 搜索按钮操作 */
|
|
|
+function handleQuery() {
|
|
|
+ queryParams.value.pageNum = 1;
|
|
|
+ getList();
|
|
|
+}
|
|
|
+
|
|
|
+/** 重置按钮操作 */
|
|
|
+function resetQuery() {
|
|
|
+ proxy.resetForm("queryRef");
|
|
|
+ handleQuery();
|
|
|
+}
|
|
|
+
|
|
|
+// 多选框选中数据
|
|
|
+function handleSelectionChange(selection) {
|
|
|
+ ids.value = selection.map((item) => item.id);
|
|
|
+ single.value = selection.length != 1;
|
|
|
+ multiple.value = !selection.length;
|
|
|
+}
|
|
|
+
|
|
|
+/** 新增按钮操作 */
|
|
|
+function handleAdd() {
|
|
|
+ proxy.$refs.orderRef.open();
|
|
|
+}
|
|
|
+
|
|
|
+/** 修改按钮操作 */
|
|
|
+function handleUpdate(row) {
|
|
|
+ const id = row.id || ids.value;
|
|
|
+ row.flag = true
|
|
|
+ proxy.$refs.orderRef.open(row);
|
|
|
+}
|
|
|
+function handleView(row) {
|
|
|
+ const id = row.id || ids.value;
|
|
|
+ row.flag = false
|
|
|
+ proxy.$refs.orderRef.open(row);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+getList();
|
|
|
+</script>
|