|
@@ -19,8 +19,7 @@
|
|
|
v-for="(item, index) in statusList"
|
|
|
:key="index"
|
|
|
:label="item.value"
|
|
|
- >{{ item.label }}</el-radio-button
|
|
|
- >
|
|
|
+ >{{ item.label }}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -29,7 +28,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.orderNum"
|
|
|
placeholder="请输入发货单号"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -37,7 +36,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.mainOrderId"
|
|
|
placeholder="请输入订单号"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -45,7 +44,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.jxsName"
|
|
|
placeholder="请输入经销商名称"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -53,7 +52,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.jxsNum"
|
|
|
placeholder="请输入规格型号"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -61,7 +60,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.chName"
|
|
|
placeholder="请输入产品名称"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -69,7 +68,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.chNum"
|
|
|
placeholder="请输入物料编码"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -77,7 +76,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.model"
|
|
|
placeholder="请输入规格型号"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -85,7 +84,7 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.warehouse"
|
|
|
placeholder="请输入仓库名称"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -98,8 +97,7 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -112,8 +110,7 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -126,15 +123,14 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="打印时间排序" prop="printDesc">
|
|
|
<el-select v-model="screenForm.printDesc" clearable filterable>
|
|
|
- <el-option label="默认" :value="null"> </el-option>
|
|
|
- <el-option label="倒叙" :value="1"> </el-option>
|
|
|
+ <el-option label="默认" :value="null" />
|
|
|
+ <el-option label="倒叙" :value="1" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -143,15 +139,15 @@
|
|
|
<el-input
|
|
|
v-model="screenForm.id"
|
|
|
placeholder="请输入出库单号"
|
|
|
- ></el-input>
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="金蝶推送状态" prop="syncStatus">
|
|
|
<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-form-item>
|
|
@@ -159,9 +155,10 @@
|
|
|
<el-col :xs="24" :sm="12" :lg="24" class="tr">
|
|
|
<el-form-item label="">
|
|
|
<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-col>
|
|
|
</el-row>
|
|
@@ -175,7 +172,7 @@
|
|
|
<!-- <el-button size="mini" type="warning" icon="el-icon-finished" @click="batchExamine" :disabled="multipleSelection.length < 1" v-if="$checkBtnRole('examine', $route.meta.roles)">批量审批</el-button>-->
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
- <ExportButton :exUrl="'sale/order/export'" :exParams="exParams" />
|
|
|
+ <ExportButton :ex-url="'sale/order/export'" :ex-params="exParams" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="table">
|
|
@@ -187,9 +184,9 @@
|
|
|
fit
|
|
|
highlight-current-row
|
|
|
stripe
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
show-summary
|
|
|
:summary-method="$getSummaries"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<!-- <el-table-column align="center" type="selection" width="55"></el-table-column>-->
|
|
|
<el-table-column
|
|
@@ -221,7 +218,7 @@
|
|
|
prop="printTime"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="订单类型"
|
|
@@ -257,7 +254,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.id" />
|
|
|
+ <CopyButton :copy-text="scope.row.id" />
|
|
|
<span>{{ scope.row.id }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -269,7 +266,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.orderNo" />
|
|
|
+ <CopyButton :copy-text="scope.row.orderNo" />
|
|
|
<span>{{ scope.row.orderNo }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -281,15 +278,17 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<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' />
|
|
|
+ <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 === "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.mainOrderId
|
|
|
}}</span>
|
|
@@ -301,7 +300,7 @@
|
|
|
prop="correspondName"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="经销商编码"
|
|
@@ -310,7 +309,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.customerNumber" />
|
|
|
+ <CopyButton :copy-text="scope.row.customerNumber" />
|
|
|
<span>{{ scope.row.customerNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -322,7 +321,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.customerName" />
|
|
|
+ <CopyButton :copy-text="scope.row.customerName" />
|
|
|
<span>{{ scope.row.customerName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -332,7 +331,7 @@
|
|
|
prop="saleTypeName"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="物料编码"
|
|
@@ -341,7 +340,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.materialCode" />
|
|
|
+ <CopyButton :copy-text="scope.row.materialCode" />
|
|
|
<span>{{ scope.row.materialCode }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -353,7 +352,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.materialOldNumber" />
|
|
|
+ <CopyButton :copy-text="scope.row.materialOldNumber" />
|
|
|
<span>{{ scope.row.materialOldNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -365,7 +364,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.materialName" />
|
|
|
+ <CopyButton :copy-text="scope.row.materialName" />
|
|
|
<span>{{ scope.row.materialName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -377,7 +376,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.specification" />
|
|
|
+ <CopyButton :copy-text="scope.row.specification" />
|
|
|
<span>{{ scope.row.specification }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -387,14 +386,14 @@
|
|
|
prop="unit"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="right"
|
|
|
label="数量"
|
|
|
prop="refundableQty"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="right"
|
|
|
label="单价"
|
|
@@ -423,35 +422,44 @@
|
|
|
prop="headerRemark"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="审核时间"
|
|
|
+ prop="approvalTime"
|
|
|
+ min-width="150"
|
|
|
+ show-overflow-tooltip
|
|
|
+ sortable
|
|
|
+ />
|
|
|
+
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="发货申请备注"
|
|
|
prop="remark"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="表体备注"
|
|
|
prop="invoiceRemark"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="业务员"
|
|
|
prop="serviceName"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
align="left"
|
|
|
label="表头业务员"
|
|
|
prop="k3ServiceName"
|
|
|
min-width="100"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ />
|
|
|
<!-- <el-table-column align="center" label="操作" width="120" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
@@ -471,37 +479,36 @@
|
|
|
<div class="pagination clearfix">
|
|
|
<div class="fr">
|
|
|
<el-pagination
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
:current-page="currentPage"
|
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
|
:page-size="10"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
:total="listTotal"
|
|
|
- >
|
|
|
- </el-pagination>
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<ExamineDialog
|
|
|
- :isShow.sync="isShowExamineDialog"
|
|
|
- :examineForm.sync="examineForm"
|
|
|
+ :is-show.sync="isShowExamineDialog"
|
|
|
+ :examine-form.sync="examineForm"
|
|
|
/>
|
|
|
|
|
|
<SalesDetail
|
|
|
- :listItem="queryItem"
|
|
|
v-if="isShowDetail"
|
|
|
+ :list-item="queryItem"
|
|
|
@backListFormDetail="backList"
|
|
|
/>
|
|
|
<SalesExamine
|
|
|
- :listItem="queryItem"
|
|
|
v-if="isShowExamine"
|
|
|
+ :list-item="queryItem"
|
|
|
@backListFormExamine="backList"
|
|
|
/>
|
|
|
<SalesReturnForm
|
|
|
- :listItem="queryItem"
|
|
|
v-if="isShowReturnForm"
|
|
|
+ :list-item="queryItem"
|
|
|
@backListFormDetail="backList"
|
|
|
/>
|
|
|
</div>
|
|
@@ -512,44 +519,43 @@ import {
|
|
|
abandonData,
|
|
|
examineBatch,
|
|
|
examineJudge,
|
|
|
- getList,
|
|
|
-} 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";
|
|
|
+ getList
|
|
|
+} 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;
|
|
|
+let that
|
|
|
export default {
|
|
|
components: {
|
|
|
SalesDetail,
|
|
|
SalesExamine,
|
|
|
SalesReturnForm,
|
|
|
- ExamineDialog,
|
|
|
+ ExamineDialog
|
|
|
},
|
|
|
filters: {
|
|
|
statusFilter(val) {
|
|
|
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 ''
|
|
|
},
|
|
|
orderTypeFilter(val) {
|
|
|
-
|
|
|
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 ''
|
|
|
},
|
|
|
billStatusFilter(val) {
|
|
|
const MAP = {
|
|
|
- 1: "已开票",
|
|
|
- 0: "未开票",
|
|
|
- };
|
|
|
- return MAP[val];
|
|
|
- },
|
|
|
+ 1: '已开票',
|
|
|
+ 0: '未开票'
|
|
|
+ }
|
|
|
+ return MAP[val]
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -560,70 +566,70 @@ export default {
|
|
|
listLoading: false, // 列表加载loading
|
|
|
screenForm: {
|
|
|
// 筛选表单数据
|
|
|
- orderNum: "",
|
|
|
- jxsName: "",
|
|
|
- jxsNum: "",
|
|
|
- chName: "",
|
|
|
- chNum: "",
|
|
|
- model: "",
|
|
|
- warehouse: "",
|
|
|
- date: "",
|
|
|
- status: "",
|
|
|
- approval: "",
|
|
|
- printTime: "",
|
|
|
- mainOrderId: "",
|
|
|
+ orderNum: '',
|
|
|
+ jxsName: '',
|
|
|
+ jxsNum: '',
|
|
|
+ chName: '',
|
|
|
+ chNum: '',
|
|
|
+ model: '',
|
|
|
+ warehouse: '',
|
|
|
+ date: '',
|
|
|
+ status: '',
|
|
|
+ approval: '',
|
|
|
+ printTime: '',
|
|
|
+ mainOrderId: '',
|
|
|
printDesc: null,
|
|
|
- syncStatus:'',
|
|
|
- id: "",
|
|
|
+ syncStatus: '',
|
|
|
+ id: ''
|
|
|
},
|
|
|
statusList: [
|
|
|
- { label: "已保存", value: "SAVE" },
|
|
|
- { label: "待审核", value: "WAIT" },
|
|
|
- { label: "审核通过", value: "OK" },
|
|
|
+ { label: '已保存', value: 'SAVE' },
|
|
|
+ { label: '待审核', value: 'WAIT' },
|
|
|
+ { label: '审核通过', value: 'OK' }
|
|
|
// { label: '审核驳回', value: 'FAIL' },,
|
|
|
],
|
|
|
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' }
|
|
|
],
|
|
|
|
|
|
queryItem: {},
|
|
|
isShowDetail: false,
|
|
|
isShowExamine: false,
|
|
|
isShowReturnForm: false,
|
|
|
- value1: "",
|
|
|
- choiceDate: "",
|
|
|
+ value1: '',
|
|
|
+ choiceDate: '',
|
|
|
multipleSelection: [],
|
|
|
isShowExamineDialog: false,
|
|
|
examineForm: {
|
|
|
- status: "",
|
|
|
- remark: "",
|
|
|
+ status: '',
|
|
|
+ remark: ''
|
|
|
},
|
|
|
setDisabled: {
|
|
|
disabledDate: (time) => {
|
|
|
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 }) => {
|
|
|
- this.choiceDate = minDate.getTime();
|
|
|
- if (maxDate) this.choiceDate = "";
|
|
|
- },
|
|
|
- },
|
|
|
- };
|
|
|
+ this.choiceDate = minDate.getTime()
|
|
|
+ if (maxDate) this.choiceDate = ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
@@ -637,42 +643,42 @@ export default {
|
|
|
materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
correspondName: this.screenForm.warehouse,
|
|
|
- startTime: this.screenForm.date ? this.screenForm.date[0] : "",
|
|
|
- endTime: this.screenForm.date ? this.screenForm.date[1] : "",
|
|
|
- syncStatus:this.screenForm.syncStatus,
|
|
|
+ startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
+ endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
+ syncStatus: this.screenForm.syncStatus,
|
|
|
approvalStartTime: this.screenForm.approval
|
|
|
? this.screenForm.approval[0]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
approvalEndTime: this.screenForm.approval
|
|
|
? this.screenForm.approval[1]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
printStartTime: this.screenForm.printTime
|
|
|
? this.screenForm.printTime[0]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
printEndtTime: this.screenForm.printTime
|
|
|
? this.screenForm.printTime[1]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
printTimeDesc: this.screenForm.printDesc,
|
|
|
- id: this.screenForm.id,
|
|
|
- };
|
|
|
- },
|
|
|
+ id: this.screenForm.id
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
beforeCreate() {
|
|
|
- that = this;
|
|
|
+ that = this
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
- this.getList();
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
// 查询列表
|
|
|
getList() {
|
|
|
- this.listLoading = true;
|
|
|
+ this.listLoading = true
|
|
|
|
|
|
- let params = {
|
|
|
+ const params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
examineStatus: this.screenForm.status,
|
|
@@ -683,74 +689,74 @@ export default {
|
|
|
materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
correspondName: this.screenForm.warehouse,
|
|
|
- syncStatus:this.screenForm.syncStatus,
|
|
|
+ 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
|
|
|
? this.screenForm.approval[0]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
approvalEndTime: this.screenForm.approval
|
|
|
? this.screenForm.approval[1]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
printStartTime: this.screenForm.printTime
|
|
|
? this.screenForm.printTime[0]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
printEndtTime: this.screenForm.printTime
|
|
|
? this.screenForm.printTime[1]
|
|
|
- : "",
|
|
|
+ : '',
|
|
|
printTimeDesc: this.screenForm.printDesc,
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
- id: this.screenForm.id,
|
|
|
- };
|
|
|
+ id: this.screenForm.id
|
|
|
+ }
|
|
|
getList(params).then((res) => {
|
|
|
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
|
|
|
+ })
|
|
|
},
|
|
|
updateReceipt() {
|
|
|
if (!this.value1) {
|
|
|
- this.$errorMsg("请选择时间");
|
|
|
- return;
|
|
|
+ this.$errorMsg('请选择时间')
|
|
|
+ return
|
|
|
}
|
|
|
updateReceipt({
|
|
|
startTime: this.value1[0],
|
|
|
- endTime: this.value1[1],
|
|
|
+ endTime: this.value1[1]
|
|
|
}).then((res) => {
|
|
|
- this.getList();
|
|
|
- this.$successMsg("已更新");
|
|
|
- this.value1 = "";
|
|
|
- });
|
|
|
+ this.getList()
|
|
|
+ this.$successMsg('已更新')
|
|
|
+ this.value1 = ''
|
|
|
+ })
|
|
|
},
|
|
|
// 提交筛选表单
|
|
|
submitScreenForm() {
|
|
|
- this.currentPage = 1;
|
|
|
- this.getList();
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 重置筛选表单
|
|
|
resetScreenForm() {
|
|
|
- this.$refs.screenForm.resetFields();
|
|
|
- this.currentPage = 1;
|
|
|
- this.getList();
|
|
|
+ this.$refs.screenForm.resetFields()
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 更改每页数量
|
|
|
handleSizeChange(val) {
|
|
|
- this.pageSize = val;
|
|
|
- this.currentPage = 1;
|
|
|
- this.getList();
|
|
|
+ this.pageSize = val
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 更改当前页
|
|
|
handleCurrentChange(val) {
|
|
|
- this.currentPage = val;
|
|
|
- this.getList();
|
|
|
+ this.currentPage = val
|
|
|
+ this.getList()
|
|
|
},
|
|
|
|
|
|
// 判断是否可以审批
|
|
@@ -759,78 +765,78 @@ export default {
|
|
|
const result = await new Promise((resolve, reject) => {
|
|
|
examineJudge({ id: item.id })
|
|
|
.then((res) => {
|
|
|
- resolve(res.code == 200);
|
|
|
+ resolve(res.code == 200)
|
|
|
})
|
|
|
.catch((res) => {
|
|
|
- resolve(0);
|
|
|
- });
|
|
|
- });
|
|
|
- return result;
|
|
|
+ resolve(0)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ return result
|
|
|
},
|
|
|
|
|
|
// 进入表单
|
|
|
toReturnForm(item) {
|
|
|
- this.queryItem = item;
|
|
|
- this.isShowReturnForm = true;
|
|
|
+ this.queryItem = item
|
|
|
+ this.isShowReturnForm = true
|
|
|
},
|
|
|
|
|
|
// 进入详情
|
|
|
toDetail(item) {
|
|
|
- this.queryItem = item;
|
|
|
- this.isShowDetail = true;
|
|
|
+ this.queryItem = item
|
|
|
+ this.isShowDetail = true
|
|
|
},
|
|
|
|
|
|
// 进入审批
|
|
|
async toExamine(item) {
|
|
|
- const canExamine = await this.examineJudge(item);
|
|
|
+ const canExamine = await this.examineJudge(item)
|
|
|
if (!canExamine) {
|
|
|
- return false;
|
|
|
+ return false
|
|
|
}
|
|
|
- this.queryItem = item;
|
|
|
- this.isShowExamine = true;
|
|
|
+ this.queryItem = item
|
|
|
+ this.isShowExamine = true
|
|
|
},
|
|
|
|
|
|
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) {
|
|
|
- this.multipleSelection = val;
|
|
|
+ this.multipleSelection = val
|
|
|
},
|
|
|
|
|
|
// 打开 批量审批
|
|
|
batchExamine() {
|
|
|
- this.isShowExamineDialog = true;
|
|
|
+ this.isShowExamineDialog = true
|
|
|
},
|
|
|
|
|
|
// 提交 批量审批
|
|
|
submitExamineForm() {
|
|
|
- let ids = this.multipleSelection.map((item) => {
|
|
|
- return item.id;
|
|
|
- });
|
|
|
+ const ids = this.multipleSelection.map((item) => {
|
|
|
+ return item.id
|
|
|
+ })
|
|
|
examineBatch({
|
|
|
- ids: ids.join(","),
|
|
|
+ ids: ids.join(','),
|
|
|
examineStatus: this.examineForm.status,
|
|
|
- approvalRemark: this.examineForm.remark,
|
|
|
+ approvalRemark: this.examineForm.remark
|
|
|
}).then((res) => {
|
|
|
- this.isShowExamineDialog = false;
|
|
|
- this.getList();
|
|
|
- this.$successMsg("修改成功");
|
|
|
- });
|
|
|
+ this.isShowExamineDialog = false
|
|
|
+ this.getList()
|
|
|
+ this.$successMsg('修改成功')
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
// 弃审
|
|
|
handleAbandon(id) {
|
|
|
abandonData({ id }).then((res) => {
|
|
|
- this.$successMsg();
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
+ this.$successMsg()
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped></style>
|