|
@@ -26,12 +26,18 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="发货单号" prop="orderNum">
|
|
|
- <el-input v-model="screenForm.orderNum" placeholder="请输入发货单号(多个单号请用逗号隔开)"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.orderNum"
|
|
|
+ placeholder="请输入发货单号(多个单号请用逗号隔开)"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="订单号" prop="mainOrderId">
|
|
|
- <el-input v-model="screenForm.mainOrderId" placeholder="请输入订单号"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.mainOrderId"
|
|
|
+ placeholder="请输入订单号"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -76,8 +82,21 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="仓库" prop="warehouse">
|
|
|
- <el-select v-model="screenForm.warehouse" placeholder="请选择仓库" filterable clearable multiple collapse-tags style="width: 100%">
|
|
|
- <el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.warehouse"
|
|
|
+ placeholder="请选择仓库"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ multiple
|
|
|
+ collapse-tags
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ v-for="(item, index) in warehouseList"
|
|
|
+ :key="index"
|
|
|
+ ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -111,7 +130,10 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="出库单号" prop="id">
|
|
|
- <el-input v-model="screenForm.id" placeholder="请输入出库单号(多个单号请用逗号隔开)"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.id"
|
|
|
+ placeholder="请输入出库单号(多个单号请用逗号隔开)"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6" class="tr">
|
|
@@ -146,7 +168,6 @@
|
|
|
v-if="$checkBtnRole('examine', $route.meta.roles)"
|
|
|
>批量审批</el-button
|
|
|
>
|
|
|
-
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
<ExportButton :exUrl="'sale/order/export'" :exParams="exParams" />
|
|
@@ -215,16 +236,39 @@
|
|
|
<span>{{ scope.row.id }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="发货单号" prop="orderNo" min-width="130" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="发货单号"
|
|
|
+ prop="orderNo"
|
|
|
+ min-width="130"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.orderNo" />
|
|
|
- <span>{{scope.row.orderNo}}</span>
|
|
|
+ <span>{{ scope.row.orderNo }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="订单号" prop="orderNo" min-width="140" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="订单号"
|
|
|
+ prop="orderNo"
|
|
|
+ min-width="140"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <CopyButton :copyText="scope.row.orderType === 'TRADE' ? scope.row.enginOrderNo : scope.row.mainOrderId" />
|
|
|
- <span>{{scope.row.orderType === 'TRADE' || scope.row.orderType === 'HOME' ? scope.row.enginOrderNo : scope.row.mainOrderId}}</span>
|
|
|
+ <CopyButton
|
|
|
+ :copyText="
|
|
|
+ scope.row.orderType === 'TRADE'
|
|
|
+ ? scope.row.enginOrderNo
|
|
|
+ : scope.row.mainOrderId
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <span>{{
|
|
|
+ scope.row.orderType === "TRADE" ||
|
|
|
+ scope.row.orderType === "HOME"
|
|
|
+ ? scope.row.enginOrderNo
|
|
|
+ : scope.row.mainOrderId
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -347,8 +391,12 @@
|
|
|
<el-button type="text" @click="toDetail(scope.row)"
|
|
|
>详情</el-button
|
|
|
>
|
|
|
- <el-button type="text" v-if="scope.row.type ===2 && scope.row.examineStatus!=='OK'"
|
|
|
- @click="toDetail(scope.row),edit = true"
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.type === 2 && scope.row.examineStatus !== 'OK'
|
|
|
+ "
|
|
|
+ @click="toDetail(scope.row), (edit = true)"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -399,7 +447,7 @@
|
|
|
|
|
|
<SalesDetail
|
|
|
:listItem="queryItem"
|
|
|
- :edit ='edit'
|
|
|
+ :edit="edit"
|
|
|
v-if="isShowDetail"
|
|
|
@backListFormDetail="backList"
|
|
|
/>
|
|
@@ -423,6 +471,7 @@ import {
|
|
|
examineJudge,
|
|
|
getList,
|
|
|
getWarehouseList,
|
|
|
+ getListOrderNo,
|
|
|
} from "@/api/supply/sales";
|
|
|
import SalesDetail from "@/views/supply/sales/components/sales_detail";
|
|
|
import SalesExamine from "@/views/supply/sales/components/sales_examine";
|
|
@@ -473,8 +522,8 @@ export default {
|
|
|
date: "",
|
|
|
status: "",
|
|
|
mainOrderId: "",
|
|
|
- approval:'',
|
|
|
- id:'',
|
|
|
+ approval: "",
|
|
|
+ id: "",
|
|
|
},
|
|
|
statusList: [
|
|
|
{ label: "已保存", value: "SAVE" },
|
|
@@ -483,29 +532,29 @@ export default {
|
|
|
// { 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" },
|
|
|
],
|
|
|
warehouseList: [],
|
|
|
- centerDialogVisible:false,
|
|
|
- cid:'',
|
|
|
+ centerDialogVisible: false,
|
|
|
+ cid: "",
|
|
|
queryItem: {},
|
|
|
isShowDetail: false,
|
|
|
isShowExamine: false,
|
|
|
isShowReturnForm: false,
|
|
|
value1: "",
|
|
|
- qty:'',
|
|
|
- edit:false,
|
|
|
+ qty: "",
|
|
|
+ edit: false,
|
|
|
choiceDate: "",
|
|
|
selectRow: [],
|
|
|
multipleSelection: [],
|
|
@@ -535,32 +584,37 @@ export default {
|
|
|
exParams() {
|
|
|
return {
|
|
|
examineStatus: this.screenForm.status,
|
|
|
- orderNo: this.screenForm.orderNum.replace(/,/ig,','),
|
|
|
+ orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
materialName: this.screenForm.chName,
|
|
|
materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
- correspondId: this.screenForm.warehouse.join(','),
|
|
|
+ correspondId: this.screenForm.warehouse.join(","),
|
|
|
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] : "",
|
|
|
+ approvalStartTime: this.screenForm.approval
|
|
|
+ ? this.screenForm.approval[0]
|
|
|
+ : "",
|
|
|
+ approvalEndTime: this.screenForm.approval
|
|
|
+ ? this.screenForm.approval[1]
|
|
|
+ : "",
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
- id: this.screenForm.id.replace(/,/ig,',')
|
|
|
+ id: this.screenForm.id.replace(/,/gi, ","),
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
|
- multipleSelection(data) { // 监听选中状态
|
|
|
- this.selectRow = []
|
|
|
+ multipleSelection(data) {
|
|
|
+ // 监听选中状态
|
|
|
+ this.selectRow = [];
|
|
|
if (data.length > 0) {
|
|
|
data.forEach((item, index) => {
|
|
|
- this.selectRow.push(item.id)
|
|
|
- })
|
|
|
+ this.selectRow.push(item.id);
|
|
|
+ });
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
beforeCreate() {
|
|
@@ -580,19 +634,23 @@ export default {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
examineStatus: this.screenForm.status,
|
|
|
- orderNo: this.screenForm.orderNum.replace(/,/ig,','),
|
|
|
+ orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
materialName: this.screenForm.chName,
|
|
|
materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
- correspondId: this.screenForm.warehouse.join(','),
|
|
|
+ correspondId: this.screenForm.warehouse.join(","),
|
|
|
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] : "",
|
|
|
+ approvalStartTime: this.screenForm.approval
|
|
|
+ ? this.screenForm.approval[0]
|
|
|
+ : "",
|
|
|
+ approvalEndTime: this.screenForm.approval
|
|
|
+ ? this.screenForm.approval[1]
|
|
|
+ : "",
|
|
|
mainOrderId: this.screenForm.mainOrderId,
|
|
|
- id: this.screenForm.id.replace(/,/ig,',')
|
|
|
+ id: this.screenForm.id.replace(/,/gi, ","),
|
|
|
};
|
|
|
getList(params).then((res) => {
|
|
|
res.data.records.forEach((item) => {
|
|
@@ -609,17 +667,16 @@ export default {
|
|
|
getWarehouseList() {
|
|
|
getWarehouseList({
|
|
|
pageNum: 1,
|
|
|
- pageSize: -1
|
|
|
+ pageSize: -1,
|
|
|
}).then((res) => {
|
|
|
this.warehouseList = res.data.records;
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
updateReceipt() {
|
|
|
-
|
|
|
if (!this.value1) {
|
|
|
- this.$errorMsg('请选择时间')
|
|
|
- return
|
|
|
+ this.$errorMsg("请选择时间");
|
|
|
+ return;
|
|
|
}
|
|
|
// updateReceipt({
|
|
|
// startTime:this.value1[0],
|
|
@@ -629,12 +686,23 @@ export default {
|
|
|
// this.$successMsg("已更新");
|
|
|
// this.value1 = ''
|
|
|
// })
|
|
|
-
|
|
|
},
|
|
|
// 提交筛选表单
|
|
|
submitScreenForm() {
|
|
|
this.currentPage = 1;
|
|
|
this.getList();
|
|
|
+ if (this.screenForm.orderNum) {
|
|
|
+ getListOrderNo({
|
|
|
+ orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.$confirm(res.data, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ showCancelButton:false
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 重置筛选表单
|
|
@@ -703,16 +771,16 @@ export default {
|
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
|
- if(val) {
|
|
|
+ if (val) {
|
|
|
this.selections = val;
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.selections = [];
|
|
|
}
|
|
|
},
|
|
|
|
|
|
rowClass({ row, rowIndex }) {
|
|
|
if (this.selectRow.includes(row.id)) {
|
|
|
- return { 'background-color': '#ecf5ff' }
|
|
|
+ return { "background-color": "#ecf5ff" };
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -748,4 +816,4 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped></style>
|