|
@@ -33,14 +33,14 @@
|
|
|
@timeReturned="timeReturned($event)"
|
|
|
></period-date-picker>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" style="width: 360px">
|
|
|
+ <el-col :span="8" style="width: 400px">
|
|
|
<el-input
|
|
|
:size="searchSize"
|
|
|
v-model="input"
|
|
|
placeholder="关键字"
|
|
|
>
|
|
|
<el-select
|
|
|
- style="width: 115px"
|
|
|
+ style="width: 125px"
|
|
|
v-model="select"
|
|
|
slot="prepend"
|
|
|
placeholder="请选择"
|
|
@@ -52,21 +52,23 @@
|
|
|
</el-select>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
- <el-col :span="3" style="width: 195px; float: right">
|
|
|
+ <el-col :span="3" style="width: 60px; float: right">
|
|
|
<el-button
|
|
|
v-if="powers.some((item) => item == '002')"
|
|
|
:size="searchSize"
|
|
|
type="primary"
|
|
|
- style="float: right; margin-left: 5px"
|
|
|
+ style="float: right; margin-left: 10px"
|
|
|
@click="searchList"
|
|
|
>
|
|
|
刷新
|
|
|
- </el-button>
|
|
|
+ </el-button></el-col
|
|
|
+ >
|
|
|
+ <el-col :span="3" style="width: 60px; float: right">
|
|
|
<el-button
|
|
|
v-if="powers.some((item) => item == '003')"
|
|
|
:size="searchSize"
|
|
|
type="success"
|
|
|
- style="float: right; margin: 0"
|
|
|
+ style="float: right; margin-left: 10px"
|
|
|
@click="openModal('add', false)"
|
|
|
>
|
|
|
添加
|
|
@@ -76,7 +78,7 @@
|
|
|
<el-col :span="24" style="padding: 0">
|
|
|
<el-col :span="8" style="width: 470px">
|
|
|
<search-select
|
|
|
- :code="parmValue.a1"
|
|
|
+ :code="code1"
|
|
|
:placeholder="'确认单购买方公司名称'"
|
|
|
@end="searchChange1"
|
|
|
:type="'1'"
|
|
@@ -85,7 +87,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8" style="width: 470px">
|
|
|
<search-select
|
|
|
- :code="parmValue.a2"
|
|
|
+ :code="code2"
|
|
|
:placeholder="'采购单供应商名称'"
|
|
|
@end="searchChange2"
|
|
|
:type="'2'"
|
|
@@ -96,6 +98,95 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #expand="{ scope }">
|
|
|
+ <el-form
|
|
|
+ label-position="right"
|
|
|
+ size="mini"
|
|
|
+ inline
|
|
|
+ label-width="130px"
|
|
|
+ class="demo-table-expand"
|
|
|
+ >
|
|
|
+ <el-row>
|
|
|
+ <!-- <el-col :span="8">
|
|
|
+ <el-form-item size="mini" label="客户属性">
|
|
|
+ <span>{{ scope.row.khzzxz }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item size="mini" label="客户分公司">
|
|
|
+ <span>{{ scope.row.khcomp }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col> -->
|
|
|
+ <!-- <el-col :span="8">
|
|
|
+ <el-form-item size="mini" label="平台">
|
|
|
+ <span>{{ scope.row.suppitem }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col> -->
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="商品名称">
|
|
|
+ <span>{{ scope.row.product_name }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="部门">
|
|
|
+ <span>{{ scope.row.depart }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="单价">
|
|
|
+ <span>{{ scope.row.sale_price }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="数量">
|
|
|
+ <span>{{ scope.row.order_num }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="单据号">
|
|
|
+ <span>{{ scope.row.sequenceNo }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="PO编号">
|
|
|
+ <span>{{ scope.row.poNo }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="税点">
|
|
|
+ <span>{{ scope.row.tax }}%</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="确认单类型">
|
|
|
+ <span>{{ scope.row.qrd_type }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="已回款总金额">
|
|
|
+ <span>{{ scope.row.apay_fee }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="未回款总金额">
|
|
|
+ <span>{{ scope.row.wpay_fee }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="确认单开票金额">
|
|
|
+ <span>{{ scope.row.ainv_fee }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item size="mini" label="确认单未开票金额">
|
|
|
+ <span>{{ scope.row.winv_fee }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
<template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
@@ -118,14 +209,7 @@
|
|
|
<el-tooltip effect="dark" content="修改" placement="top">
|
|
|
<i
|
|
|
class="el-icon-edit tb-icon"
|
|
|
- @click="openModal(scope.row.companyNo, false)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
- <el-tooltip effect="dark" content="作废" placement="top">
|
|
|
- <i
|
|
|
- class="el-icon-video-pause tb-icon"
|
|
|
- @click="statusConfirm(scope.row.companyNo, scope.row.status)"
|
|
|
+ @click="openModal(scope.row.id, false)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -177,6 +261,8 @@ export default {
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ code1: [],
|
|
|
+ code2: [],
|
|
|
select: "1",
|
|
|
input: "",
|
|
|
isDetail: false,
|
|
@@ -198,6 +284,14 @@ export default {
|
|
|
loading: false,
|
|
|
modelId: 0,
|
|
|
parmValue: {
|
|
|
+ qrdNo: "", //确认单编号
|
|
|
+ cgdNo: "", //采购单编号
|
|
|
+ sale_name: "", //业务员
|
|
|
+ cgd_sale: "", //采购员
|
|
|
+ endtime: "", //完成时间
|
|
|
+ starttime: "", //开始下单时间
|
|
|
+ khNo: "", //客户code
|
|
|
+ supplierNo: "", //供应商编号
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
},
|
|
@@ -217,27 +311,66 @@ export default {
|
|
|
},
|
|
|
// 表格 - 列参数
|
|
|
columns: [
|
|
|
+ {
|
|
|
+ type: "expand",
|
|
|
+ label: "",
|
|
|
+ _slot_: "expand",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "qrdNo",
|
|
|
+ label: "确认单编号",
|
|
|
+ width: "165px",
|
|
|
+ // fixed: "left",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "sale_total",
|
|
|
+ label: "销售总额",
|
|
|
+ width: "100px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "sale_name",
|
|
|
+ label: "业务员",
|
|
|
+ width: "70px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "khNo",
|
|
|
+ label: "企业客户编码",
|
|
|
+ width: "125px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "khName",
|
|
|
+ label: "企业客户",
|
|
|
+ "min-width": "190px",
|
|
|
+ },
|
|
|
{
|
|
|
prop: "companyNo",
|
|
|
- label: "信息编号",
|
|
|
+ label: "确认单销售公司编码",
|
|
|
+ width: "175px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "company",
|
|
|
+ label: "确认单销售公司",
|
|
|
+ "min-width": "190px",
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: "cgdNo",
|
|
|
+ label: "采购单号",
|
|
|
+ width: "165px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "supplierNo",
|
|
|
+ label: "供应商编号",
|
|
|
+ width: "140px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "supplier",
|
|
|
+ label: "供应商",
|
|
|
"min-width": "190px",
|
|
|
},
|
|
|
// {
|
|
|
- // prop: "company_name",
|
|
|
- // label: "单位名称",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // prop: "company_license",
|
|
|
- // label: "纳税人识别号",
|
|
|
- // width: "190px",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // prop: "bank_name",
|
|
|
- // label: "银行名称",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // prop: "bankNo",
|
|
|
- // label: "银行卡号",
|
|
|
+ // prop: "suppitem",
|
|
|
+ // label: "平台",
|
|
|
// },
|
|
|
// {
|
|
|
// prop: "status",
|
|
@@ -246,28 +379,19 @@ export default {
|
|
|
// _slot_: "status",
|
|
|
// },
|
|
|
// {
|
|
|
- // prop: "contector",
|
|
|
- // label: "联系人",
|
|
|
+ // prop: "poNo",
|
|
|
+ // label: "po编号",
|
|
|
// },
|
|
|
|
|
|
- // {
|
|
|
- // prop: "mobile",
|
|
|
- // label: "联系电话",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // prop: "company_address",
|
|
|
- // label: "地址",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // prop: "addtime",
|
|
|
- // label: "创建时间",
|
|
|
- // width: "160px",
|
|
|
- // sortable: true,
|
|
|
- // },
|
|
|
+ {
|
|
|
+ prop: "ordertime",
|
|
|
+ label: "创建时间",
|
|
|
+ width: "140px",
|
|
|
+ },
|
|
|
{
|
|
|
prop: "",
|
|
|
label: "操作",
|
|
|
- width: "120px",
|
|
|
+ width: "85px",
|
|
|
fixed: "right",
|
|
|
_noset_: true,
|
|
|
_slot_: "operation",
|
|
@@ -281,9 +405,22 @@ export default {
|
|
|
methods: {
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
+ console.log("12345");
|
|
|
+ this.parmValue.qrdNo = this.select === "1" ? this.input : "";
|
|
|
+ this.parmValue.cgdNo = this.select === "2" ? this.input : "";
|
|
|
+ this.parmValue.sale_name = this.select === "3" ? this.input : "";
|
|
|
+ this.parmValue.cgd_sale = this.select === "4" ? this.input : "";
|
|
|
+ this.parmValue.khNo = this.code1.join(",");
|
|
|
+ this.parmValue.supplierNo = this.code2.join(",");
|
|
|
const res = await asyncRequest.list(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
+ this.tableData.forEach((v1) => {
|
|
|
+ v1.apay_fee = this.setnum(v1.apay_fee);
|
|
|
+ v1.wpay_fee = this.setnum(v1.wpay_fee);
|
|
|
+ v1.ainv_fee = this.setnum(v1.ainv_fee);
|
|
|
+ v1.winv_fee = this.setnum(v1.winv_fee);
|
|
|
+ });
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|
|
@@ -293,13 +430,26 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
+ setnum(s) {
|
|
|
+ let str = "";
|
|
|
+ if (isNaN(s)) {
|
|
|
+ str = "0";
|
|
|
+ } else if (typeof s == "undefined") {
|
|
|
+ str = "0";
|
|
|
+ } else if (!s && typeof s != "undefined" && s != 0) {
|
|
|
+ str = "0";
|
|
|
+ } else {
|
|
|
+ str = parseFloat(s + "").toFixed(2);
|
|
|
+ }
|
|
|
+ return str;
|
|
|
+ },
|
|
|
async searchChange1(e) {
|
|
|
- this.parmValue.a1 = JSON.parse(JSON.stringify(e));
|
|
|
+ this.code1 = JSON.parse(JSON.stringify(e));
|
|
|
this.parmValue.page = 1;
|
|
|
await this.searchList();
|
|
|
},
|
|
|
async searchChange2(e) {
|
|
|
- this.parmValue.a2 = JSON.parse(JSON.stringify(e));
|
|
|
+ this.code2 = JSON.parse(JSON.stringify(e));
|
|
|
this.parmValue.page = 1;
|
|
|
await this.searchList();
|
|
|
},
|