|
@@ -100,11 +100,24 @@
|
|
|
/>
|
|
|
</el-col>
|
|
|
|
|
|
+ <el-col :span="4" style="margin-top: 15px;margin-left:10px">
|
|
|
+ <search-supplier
|
|
|
+ :size="'mini'"
|
|
|
+ :value="parmValue.supplierNo"
|
|
|
+ :disabled="false"
|
|
|
+ :placeholder="'供应商名称'"
|
|
|
+ :names="parmValue.supplierName"
|
|
|
+ :is-detail="true"
|
|
|
+ :no-disabled="true"
|
|
|
+ @searchChange="supplierChange"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+
|
|
|
<el-col :span="4" style="margin-top: 15px; margin-left: 10px">
|
|
|
<el-select
|
|
|
clearable
|
|
|
size="mini"
|
|
|
- placeholder="请选择状态"
|
|
|
+ placeholder="状态"
|
|
|
v-model="parmValue.status"
|
|
|
@change="
|
|
|
pageInfo.curr = 1;
|
|
@@ -134,6 +147,33 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
+ <template #company="{scope}">
|
|
|
+ <div style="display:flex;align-items:center">
|
|
|
+ <el-tooltip :content="'企业客户编码 : ' + (scope.row.companyCode || '--')" placement="top">
|
|
|
+ <i class="el-icon-warning-outline" style="margin-right:2px;cursor:pointer" />
|
|
|
+ </el-tooltip>
|
|
|
+ {{scope.row.companyName}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #customer="{scope}">
|
|
|
+ <div style="display:flex;align-items:center">
|
|
|
+ <el-tooltip :content="'业务公司编码 : ' + (scope.row.customerCode || '--')" placement="top">
|
|
|
+ <i class="el-icon-warning-outline" style="margin-right:2px;cursor:pointer" />
|
|
|
+ </el-tooltip>
|
|
|
+ {{scope.row.customerName}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #supplier="{scope}">
|
|
|
+ <div style="display:flex;align-items:center">
|
|
|
+ <el-tooltip :content="'供应商公司编码 : ' + (scope.row.supplierNo || '--')" placement="top">
|
|
|
+ <i class="el-icon-warning-outline" style="margin-right:2px;cursor:pointer" />
|
|
|
+ </el-tooltip>
|
|
|
+ {{scope.row.supplierName}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
@@ -151,17 +191,26 @@
|
|
|
<i class="el-icon-view tb-icon" @click="getRouter('/sellOut/filingDetail', scope.row.id)"></i>
|
|
|
</el-tooltip>
|
|
|
|
|
|
- <el-tooltip
|
|
|
- effect="dark"
|
|
|
- content="修改"
|
|
|
- placement="top"
|
|
|
- v-if="!isSupertube && powers.includes('005')"
|
|
|
- >
|
|
|
+ <el-tooltip effect="dark" content="修改" placement="top">
|
|
|
<i
|
|
|
+ v-if="String(scope.row.status) === '1' && !isSupertube"
|
|
|
class="el-icon-edit tb-icon"
|
|
|
@click="getRouter('/sellOut/filingDetail', scope.row.id,'edit')"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
+
|
|
|
+ <!-- TODO:未开通供应商端账号可以在这里取消 -->
|
|
|
+ <el-tooltip effect="dark" content="取消转单" placement="top">
|
|
|
+ <i
|
|
|
+ v-if="
|
|
|
+ String(scope.row.status) !== '4'
|
|
|
+ && String(scope.row.status) !== '5'
|
|
|
+ && Number(scope.row.wsm_has_account) === 0
|
|
|
+ "
|
|
|
+ class="el-icon-refresh-right tb-icon"
|
|
|
+ @click="handleCancel(scope.row.id)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
</template>
|
|
|
</ex-table>
|
|
|
</div>
|
|
@@ -230,6 +279,7 @@ export default {
|
|
|
wsm_code: [],
|
|
|
wsm_supplierNo: [],
|
|
|
parmValue: {
|
|
|
+ supplierNo: [],
|
|
|
companyCode: [],
|
|
|
start_date: "", //新建起始时间
|
|
|
end_date: "" // 新建结束时间
|
|
@@ -264,7 +314,7 @@ export default {
|
|
|
const { page, size, start_date, end_date } = this.parmValue;
|
|
|
|
|
|
this.pageInfo = {
|
|
|
- size: size,
|
|
|
+ size: this.pageInfo.size,
|
|
|
curr: page,
|
|
|
total: 0
|
|
|
};
|
|
@@ -277,6 +327,19 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ async handleCancel(id) {
|
|
|
+ const { code, message } = await asyncRequest.cancel({ id });
|
|
|
+ if (Number(code) === 0) {
|
|
|
+ this.searchList();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(message);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async supplierChange(e) {
|
|
|
+ const { code, label } = e;
|
|
|
+ this.parmValue.supplierNo = code ? [code] : [];
|
|
|
+ this.searchList();
|
|
|
+ },
|
|
|
getRouter(toRouter, queryId, type) {
|
|
|
console.log(toRouter, queryId);
|
|
|
if (toRouter && queryId) {
|
|
@@ -382,9 +445,15 @@ export default {
|
|
|
const res = await asyncRequest.list({
|
|
|
...this.parmValue,
|
|
|
...this.timeOBJ,
|
|
|
+ ...this.pageInfo,
|
|
|
+ supplierNo: Array.isArray(this.parmValue.supplierNo)
|
|
|
+ ? this.parmValue.supplierNo[0]
|
|
|
+ : this.parmValue.supplierNo,
|
|
|
companyCode: Array.isArray(this.parmValue.companyCode)
|
|
|
? this.parmValue.companyCode[0]
|
|
|
- : this.parmValue.companyCode
|
|
|
+ : this.parmValue.companyCode,
|
|
|
+ noRelation: true,
|
|
|
+ customerCode: this.currentCompany
|
|
|
});
|
|
|
const { code, data } = await this.useResHandle(res);
|
|
|
if (code === 0) {
|