|
@@ -19,8 +19,7 @@
|
|
v-for="(item, index) in statusList"
|
|
v-for="(item, index) in statusList"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.value"
|
|
:label="item.value"
|
|
- >{{ item.label }}</el-radio-button
|
|
|
|
- >
|
|
|
|
|
|
+ >{{ item.label }}</el-radio-button>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -29,7 +28,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.orderNum"
|
|
v-model="screenForm.orderNum"
|
|
placeholder="请输入发货单号(多个单号请用逗号隔开)"
|
|
placeholder="请输入发货单号(多个单号请用逗号隔开)"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -37,7 +36,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.mainOrderId"
|
|
v-model="screenForm.mainOrderId"
|
|
placeholder="请输入订单号"
|
|
placeholder="请输入订单号"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -45,7 +44,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.jxsName"
|
|
v-model="screenForm.jxsName"
|
|
placeholder="请输入经销商名称"
|
|
placeholder="请输入经销商名称"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -53,7 +52,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.jxsNum"
|
|
v-model="screenForm.jxsNum"
|
|
placeholder="请输入规格型号"
|
|
placeholder="请输入规格型号"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -61,7 +60,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.chName"
|
|
v-model="screenForm.chName"
|
|
placeholder="请输入产品名称"
|
|
placeholder="请输入产品名称"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -69,7 +68,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.chNum"
|
|
v-model="screenForm.chNum"
|
|
placeholder="请输入物料编码"
|
|
placeholder="请输入物料编码"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -77,7 +76,7 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.model"
|
|
v-model="screenForm.model"
|
|
placeholder="请输入规格型号"
|
|
placeholder="请输入规格型号"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -92,11 +91,11 @@
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- :label="item.name"
|
|
|
|
- :value="item.id"
|
|
|
|
v-for="(item, index) in warehouseList"
|
|
v-for="(item, index) in warehouseList"
|
|
:key="index"
|
|
:key="index"
|
|
- ></el-option>
|
|
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -110,8 +109,7 @@
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -124,8 +122,7 @@
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<!-- <el-col :xs="24" :sm="12" :lg="6">
|
|
<!-- <el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -146,8 +143,7 @@
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -155,15 +151,15 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="screenForm.id"
|
|
v-model="screenForm.id"
|
|
placeholder="请输入出库单号(多个单号请用逗号隔开)"
|
|
placeholder="请输入出库单号(多个单号请用逗号隔开)"
|
|
- ></el-input>
|
|
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-form-item label="金蝶推送状态" prop="syncStatus">
|
|
<el-form-item label="金蝶推送状态" prop="syncStatus">
|
|
<el-select v-model="screenForm.syncStatus" clearable filterable>
|
|
<el-select v-model="screenForm.syncStatus" clearable filterable>
|
|
- <el-option label="未推送" :value="0"> </el-option>
|
|
|
|
- <el-option label="推送成功" :value="1"> </el-option>
|
|
|
|
- <el-option label="失败推送" :value="-1"> </el-option>
|
|
|
|
|
|
+ <el-option label="未推送" :value="0" />
|
|
|
|
+ <el-option label="推送成功" :value="1" />
|
|
|
|
+ <el-option label="失败推送" :value="-1" />
|
|
|
|
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -171,9 +167,10 @@
|
|
<el-col :xs="24" :sm="12" :lg="24" class="tr">
|
|
<el-col :xs="24" :sm="12" :lg="24" class="tr">
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
<el-button @click="resetScreenForm">清空</el-button>
|
|
<el-button @click="resetScreenForm">清空</el-button>
|
|
- <el-button type="primary" @click="submitScreenForm"
|
|
|
|
- >搜索</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="submitScreenForm"
|
|
|
|
+ >搜索</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -184,27 +181,25 @@
|
|
<div class="btn-group clearfix">
|
|
<div class="btn-group clearfix">
|
|
<div class="fl">
|
|
<div class="fl">
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="$checkBtnRole('refund', $route.meta.roles)"
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
@click="toReturnForm()"
|
|
@click="toReturnForm()"
|
|
- v-if="$checkBtnRole('refund', $route.meta.roles)"
|
|
|
|
- >退货申请</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >退货申请</el-button>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="$checkBtnRole('examine', $route.meta.roles)"
|
|
size="mini"
|
|
size="mini"
|
|
type="warning"
|
|
type="warning"
|
|
icon="el-icon-finished"
|
|
icon="el-icon-finished"
|
|
- @click="batchExamine"
|
|
|
|
:disabled="multipleSelection.length < 1"
|
|
:disabled="multipleSelection.length < 1"
|
|
- v-if="$checkBtnRole('examine', $route.meta.roles)"
|
|
|
|
- >批量审批</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ @click="batchExamine"
|
|
|
|
+ >批量审批</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="fr">
|
|
<div class="fr">
|
|
<ExportButton
|
|
<ExportButton
|
|
- :exUrl="'sale/order/exportChuku'"
|
|
|
|
- :exParams="exParams"
|
|
|
|
|
|
+ :ex-url="'sale/order/exportChuku'"
|
|
|
|
+ :ex-params="exParams"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -216,21 +211,21 @@
|
|
border
|
|
border
|
|
fit
|
|
fit
|
|
:row-style="rowClass"
|
|
:row-style="rowClass"
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
show-summary
|
|
show-summary
|
|
:summary-method="$getSummaries"
|
|
:summary-method="$getSummaries"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
type="selection"
|
|
type="selection"
|
|
width="55"
|
|
width="55"
|
|
fixed="left"
|
|
fixed="left"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="金蝶推送状态"
|
|
label="金蝶推送状态"
|
|
prop="syncStatus"
|
|
prop="syncStatus"
|
|
- min-width="100"
|
|
|
|
|
|
+ min-width="130"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
@@ -257,7 +252,7 @@
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="订单类型"
|
|
label="订单类型"
|
|
@@ -291,7 +286,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.id" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.id" />
|
|
<span>{{ scope.row.id }}</span>
|
|
<span>{{ scope.row.id }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -304,7 +299,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.orderNo" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.orderNo" />
|
|
<span>{{ scope.row.orderNo }}</span>
|
|
<span>{{ scope.row.orderNo }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -317,14 +312,16 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText='(scope.row.orderType === "TRADE" ||
|
|
|
|
- scope.row.orderType === "HOME" || scope.row.orderType
|
|
|
|
- ==="REQUISITION_TRADE" || scope.row.orderType
|
|
|
|
- ==="REQUISITION_HOME")? scope.row.enginOrderNo:scope.row.mainOrderId' /> <span>{{
|
|
|
|
|
|
+ <CopyButton
|
|
|
|
+ :copy-text="(scope.row.orderType === "TRADE" ||
|
|
|
|
+ scope.row.orderType === "HOME" || scope.row.orderType
|
|
|
|
+ ==="REQUISITION_TRADE" || scope.row.orderType
|
|
|
|
+ ==="REQUISITION_HOME")? scope.row.enginOrderNo:scope.row.mainOrderId"
|
|
|
|
+ /> <span>{{
|
|
(scope.row.orderType === "TRADE" ||
|
|
(scope.row.orderType === "TRADE" ||
|
|
- scope.row.orderType === "HOME" ||
|
|
|
|
- scope.row.orderType === "REQUISITION_TRADE" ||
|
|
|
|
- scope.row.orderType === "REQUISITION_HOME")
|
|
|
|
|
|
+ scope.row.orderType === "HOME" ||
|
|
|
|
+ scope.row.orderType === "REQUISITION_TRADE" ||
|
|
|
|
+ scope.row.orderType === "REQUISITION_HOME")
|
|
? scope.row.enginOrderNo
|
|
? scope.row.enginOrderNo
|
|
: scope.row.mainOrderId
|
|
: scope.row.mainOrderId
|
|
}}</span>
|
|
}}</span>
|
|
@@ -337,7 +334,7 @@
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="经销商编码"
|
|
label="经销商编码"
|
|
@@ -347,7 +344,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.customerNumber" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.customerNumber" />
|
|
<span>{{ scope.row.customerNumber }}</span>
|
|
<span>{{ scope.row.customerNumber }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -360,7 +357,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.customerName" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.customerName" />
|
|
<span>{{ scope.row.customerName }}</span>
|
|
<span>{{ scope.row.customerName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -373,7 +370,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.materialCode" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.materialCode" />
|
|
<span>{{ scope.row.materialCode }}</span>
|
|
<span>{{ scope.row.materialCode }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -386,7 +383,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.materialOldNumber" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.materialOldNumber" />
|
|
<span>{{ scope.row.materialOldNumber }}</span>
|
|
<span>{{ scope.row.materialOldNumber }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -399,7 +396,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.materialName" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.materialName" />
|
|
<span>{{ scope.row.materialName }}</span>
|
|
<span>{{ scope.row.materialName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -412,7 +409,7 @@
|
|
sortable
|
|
sortable
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText="scope.row.specification" />
|
|
|
|
|
|
+ <CopyButton :copy-text="scope.row.specification" />
|
|
<span>{{ scope.row.specification }}</span>
|
|
<span>{{ scope.row.specification }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -423,7 +420,7 @@
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="制单人"
|
|
label="制单人"
|
|
@@ -431,7 +428,7 @@
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="审核时间"
|
|
label="审核时间"
|
|
@@ -439,7 +436,7 @@
|
|
min-width="150"
|
|
min-width="150"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
align="right"
|
|
align="right"
|
|
@@ -448,7 +445,7 @@
|
|
min-width="100"
|
|
min-width="100"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
sortable
|
|
sortable
|
|
- ></el-table-column>
|
|
|
|
|
|
+ />
|
|
|
|
|
|
<!-- <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip
|
|
<!-- <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip
|
|
sortable>
|
|
sortable>
|
|
@@ -480,34 +477,33 @@
|
|
fixed="right"
|
|
fixed="right"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="text" @click="toDetail(scope.row)"
|
|
|
|
- >详情</el-button
|
|
|
|
- >
|
|
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
|
|
+ @click="toDetail(scope.row)"
|
|
|
|
+ >详情</el-button>
|
|
|
|
+ <el-button
|
|
v-if="
|
|
v-if="
|
|
scope.row.type === 2 && scope.row.examineStatus !== 'OK'
|
|
scope.row.type === 2 && scope.row.examineStatus !== 'OK'
|
|
"
|
|
"
|
|
|
|
+ type="text"
|
|
@click="toDetail(scope.row), (edit = true)"
|
|
@click="toDetail(scope.row), (edit = true)"
|
|
- >编辑</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >编辑</el-button>
|
|
<el-button
|
|
<el-button
|
|
|
|
+ v-if="
|
|
|
|
+ $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
|
+ scope.row.examineStatus === 'WAIT'
|
|
|
|
+ "
|
|
type="text"
|
|
type="text"
|
|
@click="toExamine(scope.row)"
|
|
@click="toExamine(scope.row)"
|
|
|
|
+ >审批</el-button>
|
|
|
|
+ <el-popconfirm
|
|
v-if="
|
|
v-if="
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
- scope.row.examineStatus === 'WAIT'
|
|
|
|
|
|
+ scope.row.examineStatus === 'OK'
|
|
"
|
|
"
|
|
- >审批</el-button
|
|
|
|
- >
|
|
|
|
- <el-popconfirm
|
|
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
title="确定弃审吗?"
|
|
title="确定弃审吗?"
|
|
@onConfirm="handleAbandon(scope.row.id)"
|
|
@onConfirm="handleAbandon(scope.row.id)"
|
|
- v-if="
|
|
|
|
- $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
|
- scope.row.examineStatus === 'OK'
|
|
|
|
- "
|
|
|
|
>
|
|
>
|
|
<el-button slot="reference" type="text">弃审</el-button>
|
|
<el-button slot="reference" type="text">弃审</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
@@ -519,38 +515,37 @@
|
|
<div class="pagination clearfix">
|
|
<div class="pagination clearfix">
|
|
<div class="fr">
|
|
<div class="fr">
|
|
<el-pagination
|
|
<el-pagination
|
|
- @size-change="handleSizeChange"
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
:page-sizes="[10, 20, 30, 50, 100]"
|
|
:page-sizes="[10, 20, 30, 50, 100]"
|
|
:page-size="10"
|
|
:page-size="10"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="listTotal"
|
|
:total="listTotal"
|
|
- >
|
|
|
|
- </el-pagination>
|
|
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<ExamineDialog
|
|
<ExamineDialog
|
|
- :isShow.sync="isShowExamineDialog"
|
|
|
|
- :examineForm.sync="examineForm"
|
|
|
|
|
|
+ :is-show.sync="isShowExamineDialog"
|
|
|
|
+ :examine-form.sync="examineForm"
|
|
/>
|
|
/>
|
|
|
|
|
|
<SalesDetail
|
|
<SalesDetail
|
|
- :listItem="queryItem"
|
|
|
|
- :edit="edit"
|
|
|
|
v-if="isShowDetail"
|
|
v-if="isShowDetail"
|
|
|
|
+ :list-item="queryItem"
|
|
|
|
+ :edit="edit"
|
|
@backListFormDetail="backList"
|
|
@backListFormDetail="backList"
|
|
/>
|
|
/>
|
|
<SalesExamine
|
|
<SalesExamine
|
|
- :listItem="queryItem"
|
|
|
|
v-if="isShowExamine"
|
|
v-if="isShowExamine"
|
|
|
|
+ :list-item="queryItem"
|
|
@backListFormExamine="backList"
|
|
@backListFormExamine="backList"
|
|
/>
|
|
/>
|
|
<SalesReturnForm
|
|
<SalesReturnForm
|
|
- :listItem="queryItem"
|
|
|
|
v-if="isShowReturnForm"
|
|
v-if="isShowReturnForm"
|
|
|
|
+ :list-item="queryItem"
|
|
@backListFormDetail="backList"
|
|
@backListFormDetail="backList"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -563,44 +558,43 @@ import {
|
|
examineJudge,
|
|
examineJudge,
|
|
getList,
|
|
getList,
|
|
getWarehouseList,
|
|
getWarehouseList,
|
|
- getListOrderNo,
|
|
|
|
-} from "@/api/supply/sales";
|
|
|
|
-import SalesDetail from "@/views/supply/sales/components/sales_detail";
|
|
|
|
-import SalesExamine from "@/views/supply/sales/components/sales_examine";
|
|
|
|
-import SalesReturnForm from "@/views/supply/sales/components/sales_return_form";
|
|
|
|
-import ExamineDialog from "@/components/Common/examine-dialog";
|
|
|
|
-
|
|
|
|
-let that;
|
|
|
|
|
|
+ getListOrderNo
|
|
|
|
+} from '@/api/supply/sales'
|
|
|
|
+import SalesDetail from '@/views/supply/sales/components/sales_detail'
|
|
|
|
+import SalesExamine from '@/views/supply/sales/components/sales_examine'
|
|
|
|
+import SalesReturnForm from '@/views/supply/sales/components/sales_return_form'
|
|
|
|
+import ExamineDialog from '@/components/Common/examine-dialog'
|
|
|
|
+
|
|
|
|
+let that
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
SalesDetail,
|
|
SalesDetail,
|
|
SalesExamine,
|
|
SalesExamine,
|
|
SalesReturnForm,
|
|
SalesReturnForm,
|
|
- ExamineDialog,
|
|
|
|
|
|
+ ExamineDialog
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
statusFilter(val) {
|
|
statusFilter(val) {
|
|
if (that.statusList.length) {
|
|
if (that.statusList.length) {
|
|
- let obj = that.statusList.find(o => o.value == val);
|
|
|
|
- return obj ? obj.label : ''
|
|
|
|
|
|
+ const obj = that.statusList.find(o => o.value == val)
|
|
|
|
+ return obj ? obj.label : ''
|
|
}
|
|
}
|
|
return ''
|
|
return ''
|
|
},
|
|
},
|
|
orderTypeFilter(val) {
|
|
orderTypeFilter(val) {
|
|
if (that.orderTypeList.length) {
|
|
if (that.orderTypeList.length) {
|
|
- let obj = that.orderTypeList.find(o => o.value == val);
|
|
|
|
- return obj ? obj.label : ''
|
|
|
|
|
|
+ const obj = that.orderTypeList.find(o => o.value == val)
|
|
|
|
+ return obj ? obj.label : ''
|
|
}
|
|
}
|
|
return ''
|
|
return ''
|
|
-
|
|
|
|
},
|
|
},
|
|
billStatusFilter(val) {
|
|
billStatusFilter(val) {
|
|
const MAP = {
|
|
const MAP = {
|
|
- 1: "已开票",
|
|
|
|
- 0: "未开票",
|
|
|
|
- };
|
|
|
|
- return MAP[val];
|
|
|
|
- },
|
|
|
|
|
|
+ 1: '已开票',
|
|
|
|
+ 0: '未开票'
|
|
|
|
+ }
|
|
|
|
+ return MAP[val]
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -611,192 +605,192 @@ export default {
|
|
listLoading: false, // 列表加载loading
|
|
listLoading: false, // 列表加载loading
|
|
screenForm: {
|
|
screenForm: {
|
|
// 筛选表单数据
|
|
// 筛选表单数据
|
|
- orderNum: "",
|
|
|
|
- jxsName: "",
|
|
|
|
- jxsNum: "",
|
|
|
|
- chName: "",
|
|
|
|
- chNum: "",
|
|
|
|
- model: "",
|
|
|
|
|
|
+ orderNum: '',
|
|
|
|
+ jxsName: '',
|
|
|
|
+ jxsNum: '',
|
|
|
|
+ chName: '',
|
|
|
|
+ chNum: '',
|
|
|
|
+ model: '',
|
|
warehouse: [],
|
|
warehouse: [],
|
|
- date: "",
|
|
|
|
- status: "",
|
|
|
|
- mainOrderId: "",
|
|
|
|
- approval: "",
|
|
|
|
- printTime: "",
|
|
|
|
|
|
+ date: '',
|
|
|
|
+ status: '',
|
|
|
|
+ mainOrderId: '',
|
|
|
|
+ approval: '',
|
|
|
|
+ printTime: '',
|
|
printDesc: null,
|
|
printDesc: null,
|
|
- syncStatus:'',
|
|
|
|
- id: "",
|
|
|
|
|
|
+ syncStatus: '',
|
|
|
|
+ id: ''
|
|
},
|
|
},
|
|
statusList: [
|
|
statusList: [
|
|
- { label: "已保存", value: "SAVE" },
|
|
|
|
- { label: "待审核", value: "WAIT" },
|
|
|
|
- { label: "审核通过", value: "OK" },
|
|
|
|
|
|
+ { label: '已保存', value: 'SAVE' },
|
|
|
|
+ { label: '待审核', value: 'WAIT' },
|
|
|
|
+ { label: '审核通过', value: 'OK' }
|
|
// { label: '审核驳回', value: 'FAIL' },,
|
|
// { label: '审核驳回', value: 'FAIL' },,
|
|
],
|
|
],
|
|
orderTypeList: [
|
|
orderTypeList: [
|
|
- { label: "商用", value: "TRADE" },
|
|
|
|
- { label: "家用", value: "HOME" },
|
|
|
|
- { label: "零售单", value: "RETAIL" },
|
|
|
|
- { label: "销售政策单", value: "RETAIL_POLICY" },
|
|
|
|
- { label: "置换单家用", value: "PERMU_HOME" },
|
|
|
|
- { label: "置换商用", value: "PERMU_TRADE" },
|
|
|
|
- { label: "置换零售", value: "PERMU_RETAIL" },
|
|
|
|
- { label: "置换销售政策单", value: "PERMU_RETAIL_POLICY" },
|
|
|
|
- { label: "调拨单零售", value: "REQUISITION_RETAIL" },
|
|
|
|
- { label: "调拨单销售政策", value: "REQUISITION_RETAIL_POLICY" },
|
|
|
|
- { label: "调拨单商用", value: "REQUISITION_TRADE" },
|
|
|
|
- { label: "调拨单家用", value: "REQUISITION_HOME" },
|
|
|
|
|
|
+ { label: '商用', value: 'TRADE' },
|
|
|
|
+ { label: '家用', value: 'HOME' },
|
|
|
|
+ { label: '零售单', value: 'RETAIL' },
|
|
|
|
+ { label: '销售政策单', value: 'RETAIL_POLICY' },
|
|
|
|
+ { label: '置换单家用', value: 'PERMU_HOME' },
|
|
|
|
+ { label: '置换商用', value: 'PERMU_TRADE' },
|
|
|
|
+ { label: '置换零售', value: 'PERMU_RETAIL' },
|
|
|
|
+ { label: '置换销售政策单', value: 'PERMU_RETAIL_POLICY' },
|
|
|
|
+ { label: '调拨单零售', value: 'REQUISITION_RETAIL' },
|
|
|
|
+ { label: '调拨单销售政策', value: 'REQUISITION_RETAIL_POLICY' },
|
|
|
|
+ { label: '调拨单商用', value: 'REQUISITION_TRADE' },
|
|
|
|
+ { label: '调拨单家用', value: 'REQUISITION_HOME' }
|
|
],
|
|
],
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
centerDialogVisible: false,
|
|
centerDialogVisible: false,
|
|
- cid: "",
|
|
|
|
|
|
+ cid: '',
|
|
queryItem: {},
|
|
queryItem: {},
|
|
isShowDetail: false,
|
|
isShowDetail: false,
|
|
isShowExamine: false,
|
|
isShowExamine: false,
|
|
isShowReturnForm: false,
|
|
isShowReturnForm: false,
|
|
- value1: "",
|
|
|
|
- qty: "",
|
|
|
|
|
|
+ value1: '',
|
|
|
|
+ qty: '',
|
|
edit: false,
|
|
edit: false,
|
|
- choiceDate: "",
|
|
|
|
|
|
+ choiceDate: '',
|
|
selectRow: [],
|
|
selectRow: [],
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
isShowExamineDialog: false,
|
|
isShowExamineDialog: false,
|
|
examineForm: {
|
|
examineForm: {
|
|
- status: "",
|
|
|
|
- remark: "",
|
|
|
|
|
|
+ status: '',
|
|
|
|
+ remark: ''
|
|
},
|
|
},
|
|
setDisabled: {
|
|
setDisabled: {
|
|
disabledDate: (time) => {
|
|
disabledDate: (time) => {
|
|
if (this.choiceDate) {
|
|
if (this.choiceDate) {
|
|
- const res = 13 * 24 * 3600 * 1000;
|
|
|
|
- const minTime = this.choiceDate - res;
|
|
|
|
- const maxTime = this.choiceDate + res;
|
|
|
|
- return time.getTime() < minTime || time.getTime() > maxTime;
|
|
|
|
|
|
+ const res = 13 * 24 * 3600 * 1000
|
|
|
|
+ const minTime = this.choiceDate - res
|
|
|
|
+ const maxTime = this.choiceDate + res
|
|
|
|
+ return time.getTime() < minTime || time.getTime() > maxTime
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onPick: ({ maxDate, minDate }) => {
|
|
onPick: ({ maxDate, minDate }) => {
|
|
- this.choiceDate = minDate.getTime();
|
|
|
|
- if (maxDate) this.choiceDate = "";
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
|
|
+ this.choiceDate = minDate.getTime()
|
|
|
|
+ if (maxDate) this.choiceDate = ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
computed: {
|
|
computed: {
|
|
exParams() {
|
|
exParams() {
|
|
return {
|
|
return {
|
|
examineStatus: this.screenForm.status,
|
|
examineStatus: this.screenForm.status,
|
|
- orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
|
|
|
|
|
|
+ orderNo: this.screenForm.orderNum.replace(/,/gi, ','),
|
|
customerName: this.screenForm.jxsName,
|
|
customerName: this.screenForm.jxsName,
|
|
customerNumber: this.screenForm.jxsNum,
|
|
customerNumber: this.screenForm.jxsNum,
|
|
materialName: this.screenForm.chName,
|
|
materialName: this.screenForm.chName,
|
|
materialNumber: this.screenForm.chNum,
|
|
materialNumber: this.screenForm.chNum,
|
|
specification: this.screenForm.model,
|
|
specification: this.screenForm.model,
|
|
- correspondId: this.screenForm.warehouse.join(","),
|
|
|
|
- startTime: this.screenForm.date ? this.screenForm.date[0] : "",
|
|
|
|
- endTime: this.screenForm.date ? this.screenForm.date[1] : "",
|
|
|
|
- syncStatus:this.screenForm.syncStatus,
|
|
|
|
|
|
+ correspondId: this.screenForm.warehouse.join(','),
|
|
|
|
+ startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
|
+ endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
|
+ syncStatus: this.screenForm.syncStatus,
|
|
|
|
|
|
approvalStartTime: this.screenForm.approval
|
|
approvalStartTime: this.screenForm.approval
|
|
? this.screenForm.approval[0]
|
|
? this.screenForm.approval[0]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
approvalEndTime: this.screenForm.approval
|
|
approvalEndTime: this.screenForm.approval
|
|
? this.screenForm.approval[1]
|
|
? this.screenForm.approval[1]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
printStartTime: this.screenForm.printTime
|
|
printStartTime: this.screenForm.printTime
|
|
? this.screenForm.printTime[0]
|
|
? this.screenForm.printTime[0]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
printEndTime: this.screenForm.printTime
|
|
printEndTime: this.screenForm.printTime
|
|
? this.screenForm.printTime[1]
|
|
? this.screenForm.printTime[1]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
printTimeDesc: this.screenForm.printDesc,
|
|
printTimeDesc: this.screenForm.printDesc,
|
|
- id: this.screenForm.id.replace(/,/gi, ","),
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
|
|
+ id: this.screenForm.id.replace(/,/gi, ',')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
watch: {
|
|
watch: {
|
|
multipleSelection(data) {
|
|
multipleSelection(data) {
|
|
// 监听选中状态
|
|
// 监听选中状态
|
|
- this.selectRow = [];
|
|
|
|
|
|
+ this.selectRow = []
|
|
if (data.length > 0) {
|
|
if (data.length > 0) {
|
|
data.forEach((item, index) => {
|
|
data.forEach((item, index) => {
|
|
- this.selectRow.push(item.id);
|
|
|
|
- });
|
|
|
|
|
|
+ this.selectRow.push(item.id)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
beforeCreate() {
|
|
beforeCreate() {
|
|
- that = this;
|
|
|
|
|
|
+ that = this
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
- this.getWarehouseList();
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.getWarehouseList()
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
// 查询列表
|
|
// 查询列表
|
|
getList() {
|
|
getList() {
|
|
- this.listLoading = true;
|
|
|
|
- let params = {
|
|
|
|
|
|
+ this.listLoading = true
|
|
|
|
+ const params = {
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
examineStatus: this.screenForm.status,
|
|
examineStatus: this.screenForm.status,
|
|
- orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
|
|
|
|
|
|
+ orderNo: this.screenForm.orderNum.replace(/,/gi, ','),
|
|
customerName: this.screenForm.jxsName,
|
|
customerName: this.screenForm.jxsName,
|
|
customerNumber: this.screenForm.jxsNum,
|
|
customerNumber: this.screenForm.jxsNum,
|
|
materialName: this.screenForm.chName,
|
|
materialName: this.screenForm.chName,
|
|
materialNumber: this.screenForm.chNum,
|
|
materialNumber: this.screenForm.chNum,
|
|
specification: this.screenForm.model,
|
|
specification: this.screenForm.model,
|
|
- correspondId: this.screenForm.warehouse.join(","),
|
|
|
|
- syncStatus:this.screenForm.syncStatus,
|
|
|
|
|
|
+ correspondId: this.screenForm.warehouse.join(','),
|
|
|
|
+ syncStatus: this.screenForm.syncStatus,
|
|
|
|
|
|
- startTime: this.screenForm.date ? this.screenForm.date[0] : "",
|
|
|
|
- endTime: this.screenForm.date ? this.screenForm.date[1] : "",
|
|
|
|
|
|
+ startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
|
+ endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
approvalStartTime: this.screenForm.approval
|
|
approvalStartTime: this.screenForm.approval
|
|
? this.screenForm.approval[0]
|
|
? this.screenForm.approval[0]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
approvalEndTime: this.screenForm.approval
|
|
approvalEndTime: this.screenForm.approval
|
|
? this.screenForm.approval[1]
|
|
? this.screenForm.approval[1]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
printStartTime: this.screenForm.printTime
|
|
printStartTime: this.screenForm.printTime
|
|
? this.screenForm.printTime[0]
|
|
? this.screenForm.printTime[0]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
printEndTime: this.screenForm.printTime
|
|
printEndTime: this.screenForm.printTime
|
|
? this.screenForm.printTime[1]
|
|
? this.screenForm.printTime[1]
|
|
- : "",
|
|
|
|
|
|
+ : '',
|
|
printTimeDesc: this.screenForm.printDesc,
|
|
printTimeDesc: this.screenForm.printDesc,
|
|
- id: this.screenForm.id.replace(/,/gi, ","),
|
|
|
|
- };
|
|
|
|
|
|
+ id: this.screenForm.id.replace(/,/gi, ',')
|
|
|
|
+ }
|
|
getList(params).then((res) => {
|
|
getList(params).then((res) => {
|
|
res.data.records.forEach((item) => {
|
|
res.data.records.forEach((item) => {
|
|
- item.sums1 = ["refundableQty"];
|
|
|
|
- item.sums2 = ["price", "payAmount"];
|
|
|
|
- });
|
|
|
|
- this.dataList = res.data.records;
|
|
|
|
- this.listTotal = res.data.total;
|
|
|
|
- this.listLoading = false;
|
|
|
|
- });
|
|
|
|
|
|
+ item.sums1 = ['refundableQty']
|
|
|
|
+ item.sums2 = ['price', 'payAmount']
|
|
|
|
+ })
|
|
|
|
+ this.dataList = res.data.records
|
|
|
|
+ this.listTotal = res.data.total
|
|
|
|
+ this.listLoading = false
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
// 获取仓库列表
|
|
// 获取仓库列表
|
|
getWarehouseList() {
|
|
getWarehouseList() {
|
|
getWarehouseList({
|
|
getWarehouseList({
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
- pageSize: -1,
|
|
|
|
|
|
+ pageSize: -1
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.warehouseList = res.data.records;
|
|
|
|
- });
|
|
|
|
|
|
+ this.warehouseList = res.data.records
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
updateReceipt() {
|
|
updateReceipt() {
|
|
if (!this.value1) {
|
|
if (!this.value1) {
|
|
- this.$errorMsg("请选择时间");
|
|
|
|
- return;
|
|
|
|
|
|
+ this.$errorMsg('请选择时间')
|
|
|
|
+ return
|
|
}
|
|
}
|
|
// updateReceipt({
|
|
// updateReceipt({
|
|
// startTime:this.value1[0],
|
|
// startTime:this.value1[0],
|
|
@@ -809,40 +803,40 @@ export default {
|
|
},
|
|
},
|
|
// 提交筛选表单
|
|
// 提交筛选表单
|
|
submitScreenForm() {
|
|
submitScreenForm() {
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
+ this.getList()
|
|
if (this.screenForm.orderNum) {
|
|
if (this.screenForm.orderNum) {
|
|
getListOrderNo({
|
|
getListOrderNo({
|
|
- orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
|
|
|
|
|
|
+ orderNo: this.screenForm.orderNum.replace(/,/gi, ',')
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
- this.$confirm(res.data, "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- showCancelButton: false,
|
|
|
|
- });
|
|
|
|
|
|
+ this.$confirm(res.data, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ showCancelButton: false
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
// 重置筛选表单
|
|
// 重置筛选表单
|
|
resetScreenForm() {
|
|
resetScreenForm() {
|
|
- this.$refs.screenForm.resetFields();
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.$refs.screenForm.resetFields()
|
|
|
|
+ this.currentPage = 1
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
|
|
|
|
// 更改每页数量
|
|
// 更改每页数量
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
- this.pageSize = val;
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.pageSize = val
|
|
|
|
+ this.currentPage = 1
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
|
|
|
|
// 更改当前页
|
|
// 更改当前页
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
- this.currentPage = val;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ this.currentPage = val
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
|
|
|
|
// 判断是否可以审批
|
|
// 判断是否可以审批
|
|
@@ -851,89 +845,89 @@ export default {
|
|
const result = await new Promise((resolve, reject) => {
|
|
const result = await new Promise((resolve, reject) => {
|
|
examineJudge({ id: item.id })
|
|
examineJudge({ id: item.id })
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- resolve(res.code == 200);
|
|
|
|
|
|
+ resolve(res.code == 200)
|
|
})
|
|
})
|
|
.catch((res) => {
|
|
.catch((res) => {
|
|
- resolve(0);
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- return result;
|
|
|
|
|
|
+ resolve(0)
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ return result
|
|
},
|
|
},
|
|
|
|
|
|
// 进入表单
|
|
// 进入表单
|
|
toReturnForm(item) {
|
|
toReturnForm(item) {
|
|
- this.queryItem = item;
|
|
|
|
- this.isShowReturnForm = true;
|
|
|
|
|
|
+ this.queryItem = item
|
|
|
|
+ this.isShowReturnForm = true
|
|
},
|
|
},
|
|
|
|
|
|
// 进入详情
|
|
// 进入详情
|
|
toDetail(item) {
|
|
toDetail(item) {
|
|
- this.queryItem = item;
|
|
|
|
- this.isShowDetail = true;
|
|
|
|
|
|
+ this.queryItem = item
|
|
|
|
+ this.isShowDetail = true
|
|
},
|
|
},
|
|
|
|
|
|
// 进入审批
|
|
// 进入审批
|
|
async toExamine(item) {
|
|
async toExamine(item) {
|
|
- const canExamine = await this.examineJudge(item);
|
|
|
|
|
|
+ const canExamine = await this.examineJudge(item)
|
|
if (!canExamine) {
|
|
if (!canExamine) {
|
|
- return false;
|
|
|
|
|
|
+ return false
|
|
}
|
|
}
|
|
- this.queryItem = item;
|
|
|
|
- this.isShowExamine = true;
|
|
|
|
|
|
+ this.queryItem = item
|
|
|
|
+ this.isShowExamine = true
|
|
},
|
|
},
|
|
|
|
|
|
backList() {
|
|
backList() {
|
|
- this.queryItem = {};
|
|
|
|
- this.isShowDetail = false;
|
|
|
|
- this.isShowExamine = false;
|
|
|
|
- this.isShowReturnForm = false;
|
|
|
|
|
|
+ this.queryItem = {}
|
|
|
|
+ this.isShowDetail = false
|
|
|
|
+ this.isShowExamine = false
|
|
|
|
+ this.isShowReturnForm = false
|
|
},
|
|
},
|
|
|
|
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
- this.multipleSelection = val;
|
|
|
|
|
|
+ this.multipleSelection = val
|
|
if (val) {
|
|
if (val) {
|
|
- this.selections = val;
|
|
|
|
|
|
+ this.selections = val
|
|
} else {
|
|
} else {
|
|
- this.selections = [];
|
|
|
|
|
|
+ this.selections = []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
rowClass({ row, rowIndex }) {
|
|
rowClass({ row, rowIndex }) {
|
|
if (this.selectRow.includes(row.id)) {
|
|
if (this.selectRow.includes(row.id)) {
|
|
- return { "background-color": "#ecf5ff" };
|
|
|
|
|
|
+ return { 'background-color': '#ecf5ff' }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
// 打开 批量审批
|
|
// 打开 批量审批
|
|
batchExamine() {
|
|
batchExamine() {
|
|
- this.isShowExamineDialog = true;
|
|
|
|
|
|
+ this.isShowExamineDialog = true
|
|
},
|
|
},
|
|
|
|
|
|
// 提交 批量审批
|
|
// 提交 批量审批
|
|
submitExamineForm() {
|
|
submitExamineForm() {
|
|
- let ids = this.multipleSelection.map((item) => {
|
|
|
|
- return item.id;
|
|
|
|
- });
|
|
|
|
|
|
+ const ids = this.multipleSelection.map((item) => {
|
|
|
|
+ return item.id
|
|
|
|
+ })
|
|
examineBatch({
|
|
examineBatch({
|
|
- ids: ids.join(","),
|
|
|
|
|
|
+ ids: ids.join(','),
|
|
examineStatus: this.examineForm.status,
|
|
examineStatus: this.examineForm.status,
|
|
- approvalRemark: this.examineForm.remark,
|
|
|
|
|
|
+ approvalRemark: this.examineForm.remark
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- this.isShowExamineDialog = false;
|
|
|
|
- this.getList();
|
|
|
|
- this.$successMsg("修改成功");
|
|
|
|
- });
|
|
|
|
|
|
+ this.isShowExamineDialog = false
|
|
|
|
+ this.getList()
|
|
|
|
+ this.$successMsg('修改成功')
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
// 弃审
|
|
// 弃审
|
|
handleAbandon(id) {
|
|
handleAbandon(id) {
|
|
abandonData({ id }).then((res) => {
|
|
abandonData({ id }).then((res) => {
|
|
- this.$successMsg();
|
|
|
|
- this.getList();
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
-};
|
|
|
|
|
|
+ this.$successMsg()
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped></style>
|
|
<style lang="scss" scoped></style>
|