ywj_dev
anthonywj 2 years ago
parent b8865d7584
commit d5c8fc7410

@ -4,7 +4,13 @@ VUE_APP_TITLE = 供应商自助管理系统
# 生产环境配置
ENV = 'production'
# VUE_APP_BASE_API = 'http://116.204.71.86:9150/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/'
#林纪裕
# VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/'
# 平潭
VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/'
# 应用访问路径 例如使用前缀 /admin/
VUE_APP_CONTEXT_PATH = '/UDI_SPMS_CLIENT/'

@ -4,8 +4,8 @@
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item" label="单据类型:">
<el-input
v-model="filterQuery.name"
placeholder="请输入单据类型"
v-model="filterQuery.name"
placeholder="请输入单据类型"
></el-input>
</el-form-item>
<el-form-item class="query-form-item" label="出入库类型:">
@ -31,13 +31,13 @@
>
<el-button type="primary" icon="el-icon-download" @click="exportJsonFile"></el-button>
<el-upload
:action="uploadFileUrl"
multiple
:limit="3"
:headers="headers"
:show-file-list="false"
:on-success="handleChange"
:file-list="fileList"
:action="uploadFileUrl"
multiple
:limit="3"
:headers="headers"
:show-file-list="false"
:on-success="handleChange"
:file-list="fileList"
>
<el-button icon="el-icon-upload2" type="primary">导入单据类型</el-button>
</el-upload>
@ -78,15 +78,15 @@
<el-table-column label="操作">
<template slot-scope="scope">
<el-button
type="text"
@click.native.stop="handleModifyClick(scope.row)"
type="text"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
>
<el-button
type="text"
:disabled="!configParams.typeScan"
@click.native.stop="deleteDialog(scope.row)"
type="text"
:disabled="!configParams.typeScan"
@click.native.stop="deleteDialog(scope.row)"
>删除
</el-button
>
@ -96,14 +96,14 @@
</el-table>
<el-dialog
title="新增扫码单据类型"
:visible.sync="addDialogVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="addDialogVisible"
class="dialog-two"
width="60%"
top="5vh"
title="新增扫码单据类型"
:visible.sync="addDialogVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="addDialogVisible"
class="dialog-two"
width="60%"
top="5vh"
>
<modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div slot="footer" class="dialog-footer">
@ -120,12 +120,12 @@
</el-dialog>
<el-dialog
title="编辑单据类型"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
title="编辑单据类型"
:visible.sync="modifyDialogVisible"
width="70%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="modifyDialogVisible"
>
<modifyDialog :inputQuery="inputQuery" :modifySubmit="onModifySubmit"></modifyDialog>
<div style="text-align: center;margin-top: 12px">
@ -142,11 +142,11 @@
</el-dialog>
<pagination
v-show="total>0"
:total="total"
:limit.sync="filterQuery.limit"
:page.sync="filterQuery.page"
@pagination="getList"
v-show="total>0"
:total="total"
:limit.sync="filterQuery.limit"
:page.sync="filterQuery.page"
@pagination="getList"
></pagination>
</el-card>
</div>
@ -223,11 +223,12 @@ export default {
originAction: null,
checkBalance: null,
secCheckBalance: null,
preInBack: null,
preInBack: true,
vailDispatch: null,
vailGroupBuy: null,
inStock: null,
actionType: null,
inStock: false,
actionType: 0,
fillCodeRel: false,
thrCheckEnable: null,
thrCheckWebNew: null,
@ -239,7 +240,9 @@ export default {
thrCheckChange: null,
thrCheckBalance: null,
thrCheckCopy: null,
checkVailDate:true, //
checkExpire:true, //
checkCertExpire:true, //
},
enableMap: {
@ -287,20 +290,20 @@ export default {
getList() {
this.loading = true;
getBusTypeList(this.filterQuery)
.then((response) => {
if (response.code === 20000) {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
this.loading = false;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
.then((response) => {
if (response.code === 20000) {
this.list = response.data.list || [];
this.total = response.data.total || 0;
} else {
this.$message.error(response.message);
}
this.loading = false;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
handleCurrentChange(val) {
this.filterQuery.page = val;
@ -330,23 +333,23 @@ export default {
this.$message.error("请选择是否更改库存!");
return;
}
if (isBlank(this.inputQuery.busType)) {
this.$message.error("请选择特定页面!");
return;
}
// if (isBlank(this.inputQuery.busType)) {
// this.$message.error("");
// return;
// }
insertBusType(this.inputQuery)
.then((response) => {
if (response.code == 20000) {
this.loading = false;
this.cancelDialog();
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
.then((response) => {
if (response.code == 20000) {
this.loading = false;
});
this.cancelDialog();
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
});
},
onModifySubmit() {
@ -371,32 +374,32 @@ export default {
this.$message.error("请选择是否更改库存!");
return;
}
if (isBlank(this.inputQuery.busType)) {
this.$message.error("请选择特定页面!");
return;
}
// if (isBlank(this.inputQuery.busType)) {
// this.$message.error("");
// return;
// }
updateBusType(this.inputQuery)
.then((response) => {
if (response.code == 20000) {
this.loading = false;
this.cancelDialog();
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
.then((response) => {
if (response.code == 20000) {
this.loading = false;
this.cancelDialog();
});
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.cancelDialog();
});
},
exportJsonFile() {
exportFile().then((response) => {
const binaryData = [];
binaryData.push(response);
let url = window.URL.createObjectURL(
new Blob(binaryData, {type: "application/json"})
new Blob(binaryData, {type: "application/json"})
);
this.loading = false;
const eleLink = document.createElement('a');
@ -464,11 +467,12 @@ export default {
advanceType: null,
preIn: null,
originAction: null,
preInBack: null,
preInBack: true,
vailDispatch: null,
vailGroupBuy: null,
inStock: null,
actionType: null,
inStock: false,
actionType: 0,
fillCodeRel: false,
thrCheckEnable: null,
thrCheckWebNew: null,
thrCheckPdaUn: null,
@ -479,6 +483,10 @@ export default {
thrCheckChange: null,
thrCheckBalance: null,
thrCheckCopy: null,
checkVailDate:true, //
checkExpire:true, //
checkCertExpire:true, //
}
this.addDialogVisible = true;
},
@ -494,11 +502,11 @@ export default {
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.deleteOrders(rowId);
})
.catch(() => {
});
.then(() => {
this.deleteOrders(rowId);
})
.catch(() => {
});
},
deleteOrders(data) {
@ -507,20 +515,20 @@ export default {
id: data.id + "",
};
deleteBusType(tquery)
.then((response) => {
this.getList();
if (response.code == 20000) {
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
}
.then((response) => {
this.getList();
if (response.code == 20000) {
this.$message({
type: "success",
message: "删除成功!",
});
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
})
.catch(() => {
});
},
handleChange(response, files, fileList) {
if (response.code != 20000) {
@ -543,13 +551,13 @@ export default {
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParams = response.data;
}
})
.catch(() => {
});
.then((response) => {
if (response.code == 20000) {
this.configParams = response.data;
}
})
.catch(() => {
});
},
},
components: {

@ -58,6 +58,33 @@
</el-col>
</el-row>
<el-row>
<el-col :span="8" v-if="showSup">
<el-form-item class="query-form-item" label="送货单位:">
<el-select
v-model="filterQuery.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="送货单位"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
style="width: 90%"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:">
<el-date-picker
@ -118,7 +145,7 @@
<!-- </el-table-column>-->
<el-table-column label="单据类型" prop="billTypeName" width="150">
</el-table-column>
<el-table-column label="供应商" prop="fromName" width="220" v-if="showSup">
<el-table-column label="送货单位" prop="fromName" width="220" v-if="showSup">
</el-table-column>
<el-table-column label="创建时间" prop="createTimem" width="150" show-overflow-tooltip>
</el-table-column>
@ -326,6 +353,7 @@ import InvoiceRegister from "@/views/inout/InvoiceRegister";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getDeptListByUser} from "@/api/auth/authDept";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
const formJson = {
@ -352,6 +380,10 @@ export default {
endTime: null,
invCode: this.$store.getters.locInvCode,
},
corpLoading: false,
fromOptions: [],
formName: 1,
formMap: {
1: "发票登记"
@ -629,6 +661,24 @@ export default {
.catch(() => {
});
},
findMethod(key) {
this.corpLoading = true;
this.fromOptions = [];
let params = {
key: key,
corpType: 2,
page: 1,
limit: 20
};
getBasicUnitMaintains(params).then((res) => {
this.corpLoading = false;
this.fromOptions = res.data.list || [];
}).catch(() => {
this.corpLoading = false;
})
},
deleteDialog(row) {
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
confirmButtonText: "确定",

@ -4,34 +4,8 @@
<el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" v-show="showSearch">
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="送货单位:">
<el-select
v-model="filterQuery.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商名称"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
style="width: 90%"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="8">
<el-form-item class="query-form-item" label="送货单号:">
<el-input v-model="filterQuery.billNo" placeholder="请输入送货单号"
style="width: 90%"
@ -39,7 +13,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="8">
<el-form-item class="query-form-item" label="收货仓库:">
<el-select v-model="filterQuery.invCode" placeholder="请选择收货仓库" clearable="true"
style="width: 90%"
@ -55,7 +29,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="8">
<el-form-item class="query-form-item" label="单据类型:">
<el-select v-model="filterQuery.action" placeholder="请选择单据类型"
style="width: 90%"
@ -72,18 +46,43 @@
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="审核状态:">
<el-select v-model="filterQuery.status" placeholder="请选择出入库类型" style="width: 90%">
<el-option label="全部" value=""></el-option>
<el-option label="已审核" :value="7"></el-option>
<el-option label="待审核" :value="10"></el-option>
<el-col :span="8">
<el-form-item class="query-form-item" label="送货单位:">
<el-select
v-model="filterQuery.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商名称"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
style="width: 90%"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="审核状态:">-->
<!-- <el-select v-model="filterQuery.status" placeholder="请选择出入库类型" style="width: 90%">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="已审核" :value="7"></el-option>-->
<!-- <el-option label="待审核" :value="10"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:">
<el-date-picker
:picker-options="pickerOptions"
@ -100,22 +99,22 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="审核时间:">
<el-date-picker
:picker-options="pickerOptions"
v-model="auditDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
style="width: 90%"
>
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="审核时间:">-->
<!-- <el-date-picker-->
<!-- :picker-options="pickerOptions"-->
<!-- v-model="auditDateRange"-->
<!-- type="daterange"-->
<!-- format="yyyy 年 MM 月 dd 日"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- range-separator="至"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期"-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-form>
<div class="top-right-btn">

@ -37,6 +37,8 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="单据类型:">
<el-select v-model="filterQuery.action" placeholder="请选择单据类型"
@ -56,14 +58,39 @@
<el-row>
<el-col :span="8">
<el-form-item class="query-form-item" label="审核状态:">
<el-select v-model="filterQuery.status" placeholder="请选择出入库类型" style="width: 90%">
<el-option label="全部" value=""></el-option>
<el-option label="已审核" :value="7"></el-option>
<el-option label="待审核" :value="10"></el-option>
<el-form-item class="query-form-item" label="往来单位:">
<el-select
v-model="filterQuery.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="往来单位"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
style="width: 90%"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="审核状态:">-->
<!-- <el-select v-model="filterQuery.status" placeholder="请选择出入库类型" style="width: 90%">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="已审核" :value="7"></el-option>-->
<!-- <el-option label="待审核" :value="10"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:">
@ -122,7 +149,7 @@
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="送单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column>
<el-table-column label="送货单位" prop="fromName" width="220">
<el-table-column label="往来单位" prop="fromName" width="220">
</el-table-column>
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150">
<template slot-scope="scope">
@ -508,6 +535,7 @@ import {getCodeDetailList} from "@/api/inout/orderDetailCode";
import {getCodeList} from "@/api/inout/code";
import AcceptOrder from "@/views/inout/DialogReviewOrder";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
const formJson = {
@ -535,6 +563,10 @@ export default {
endTime: null,
invCode: this.$store.getters.locInvCode,
},
corpLoading: false,
fromOptions: [],
customerId: this.$store.getters.customerId,
checkStatus: {
1: "草稿",
@ -738,7 +770,7 @@ export default {
let query = {
code: this.filterQuery.invCode,
enabled: true,
busType: 2,//
// busType: 2,//
};
getLocalJoinByUser(query)
.then((response) => {
@ -816,6 +848,22 @@ export default {
.catch(() => {
});
},
findMethod(key) {
this.corpLoading = true;
this.fromOptions = [];
let params = {
key: key,
corpType: 2,
page: 1,
limit: 20
};
getBasicUnitMaintains(params).then((res) => {
this.corpLoading = false;
this.fromOptions = res.data.list || [];
}).catch(() => {
this.corpLoading = false;
})
},
deleteDialog(row) {
this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
confirmButtonText: "确定",

@ -117,6 +117,12 @@
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<el-table-column label="审核时间" prop="createTime" show-overflow-tooltip width="150">
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<el-table-column label="来源订单号" prop="corpOrderId" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="来源" prop="fromType" width="120">
<template slot-scope="scope">
@ -699,7 +705,7 @@ export default {
let query = {
code: this.filterQuery.invCode,
enabled: true,
inStock: true,
// inStock: true,
};
getLocalJoinByUser(query)
.then((response) => {

@ -10,21 +10,21 @@
clearable="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="单据类型:">
<el-select v-model="filterQuery.action" placeholder="请选择单据类型"
style="width: 90%"
clearable>
<el-option
v-for="item in busTypes"
:key="item.name"
:label="item.name"
:value="item.action">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="单据类型:">-->
<!-- <el-select v-model="filterQuery.action" placeholder="请选择单据类型"-->
<!-- style="width: 90%"-->
<!-- clearable>-->
<!-- <el-option-->
<!-- v-for="item in busTypes"-->
<!-- :key="item.name"-->
<!-- :label="item.name"-->
<!-- :value="item.action">-->
<!-- <span style="float: left">{{ item.name }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="出入库类型:">-->
<!-- <el-select v-model="filterQuery.mainAction" placeholder="请选择出入库类型" style="width: 90%">-->
@ -51,18 +51,42 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="审核状态:">
<el-select v-model="filterQuery.status" style="width: 90%" placeholder="请选择审核状态">
<el-option label="全部" value=""></el-option>
<el-option label="已审核" :value="7"></el-option>
<el-option label="未审核" :value="10"></el-option>
<el-col :span="8" v-if="showSup">
<el-form-item class="query-form-item" label="供应商:">
<el-select
v-model="filterQuery.fromCorp"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
style="width: 90%"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-col :span="8">-->
<!-- <el-form-item label="审核状态:">-->
<!-- <el-select v-model="filterQuery.status" style="width: 90%" placeholder="请选择审核状态">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="已审核" :value="7"></el-option>-->
<!-- <el-option label="未审核" :value="10"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:">
<el-date-picker
@ -79,7 +103,6 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="审核时间:">
<el-date-picker
@ -120,6 +143,8 @@
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="退货单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column>
<el-table-column label="供应商" prop="fromName" width="220" v-if="showSup">
</el-table-column>
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150">
<template slot-scope="scope">
<i class="el-icon-time"></i>
@ -133,8 +158,7 @@
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="供应商" prop="fromName" width="220">-->
<!-- </el-table-column>-->
<el-table-column label="退货部门" prop="deptName" width="120">
</el-table-column>
<el-table-column label="退货仓库" prop="invName" width="120">
@ -167,6 +191,7 @@
<el-button
type="text"
size="small"
v-if="customerId == 110"
@click.native.stop="rollback(scope.row)"
>撤回
</el-button
@ -174,7 +199,7 @@
<el-button
type="text"
size="small"
v-if="customerId == 110 && scope.row.status == 5"
v-if="scope.row.status == 10"
@click.native.stop="reviewOrder(scope.row)"
>审核
</el-button
@ -485,6 +510,7 @@ import {getCodeDetailList} from "@/api/inout/orderDetailCode";
import {getCodeList} from "@/api/inout/code";
import AcceptOrder from "@/views/inout/DialogReviewOrder";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
const formJson = {
@ -514,6 +540,9 @@ export default {
status: 10,
invCode: this.$store.getters.locInvCode,
},
corpLoading: false,
fromOptions: [],
customerId: this.$store.getters.customerId,
checkStatus: {
1: "草稿",
@ -622,6 +651,7 @@ export default {
resultDetailList: [],
acceptQuery: null,
acceptOrderVisible: false,
showSup: false,
};
},
components: {AcceptOrder},
@ -644,6 +674,24 @@ export default {
};
this.getList();
},
findMethod(key) {
this.corpLoading = true;
this.fromOptions = [];
let params = {
key: key,
corpType: 2,
page: 1,
limit: 20
};
getBasicUnitMaintains(params).then((res) => {
this.corpLoading = false;
this.fromOptions = res.data.list || [];
}).catch(() => {
this.corpLoading = false;
})
},
onSubmit() {
this.loading = true;
if (this.actDateRange !== null) {
@ -977,6 +1025,12 @@ export default {
}
,
created() {
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.getInvList();
this.getBusType();
selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => {

@ -597,7 +597,7 @@ export default {
let query = {
code: this.filterQuery.invCode,
enabled: true,
busType: 2,//
spUse: true,
};
getLocalJoinByUser(query)
.then((response) => {
@ -637,7 +637,6 @@ export default {
this.loading = true;
this.currentRow = {billNo: ""};
this.clearDetailList();
this.filterQuery.busType = 2;
getOrderList(this.filterQuery)
.then((response) => {
this.loading = false;

@ -41,6 +41,9 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item class="query-form-item" label="单据类型:">
<el-select v-model="filterQuery.action" placeholder="请选择单据类型"
@ -56,8 +59,7 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:">
<el-date-picker
@ -74,22 +76,22 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="审核时间:">
<el-date-picker
:picker-options="pickerOptions"
v-model="auditDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
style="width: 90%"
>
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="审核时间:">-->
<!-- <el-date-picker-->
<!-- :picker-options="pickerOptions"-->
<!-- v-model="auditDateRange"-->
<!-- type="daterange"-->
<!-- format="yyyy 年 MM 月 dd 日"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- range-separator="至"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期"-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-form>
@ -157,14 +159,14 @@
>打印
</el-button
>
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- v-if="scope.row.status == 10"-->
<!-- @click.native.stop="reviewOrder(scope.row)"-->
<!-- >审核-->
<!-- </el-button-->
<!-- >-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- v-if="scope.row.status == 10"-->
<!-- @click.native.stop="reviewOrder(scope.row)"-->
<!-- >审核-->
<!-- </el-button-->
<!-- >-->
<el-button
type="text"
size="small"

@ -37,7 +37,31 @@
</el-col>
</el-row>
<el-row>
<el-col :span="8" v-if="showSup">
<el-form-item class="query-form-item" label="供应商:">
<el-select
v-model="filterQuery.supId"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
style="width: 90%"
>
<el-option
v-for="item in fromOptions"
:key="item.name"
:label="item.name"
:value="item.erpId"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="发布时间:">
<el-date-picker
@ -70,7 +94,9 @@
@current-change="handleDetail">
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="采购订单号" prop="billNo" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="发布时间" prop="auditTime" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="发布时间" prop="auditTime" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="供应商" prop="supName" show-overflow-tooltip="true" width="180"
v-if="showSup"></el-table-column>
<el-table-column label="处理状态" prop="emergency" width="120">
<template slot-scope="scope">
{{ dealStatus[scope.row.emergency] }}
@ -112,8 +138,9 @@
<el-table-column label="计划数量" prop="planCount" width="100"></el-table-column>
<el-table-column label="订单数量" prop="count" width="100"></el-table-column>
<el-table-column label="计量单位" prop="spec" show-overflow-tooltip="true" width="100"></el-table-column>
<!-- <el-table-column label="供应商" prop="supName" show-overflow-tooltip="true"></el-table-column>-->
<el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip="true" width="160"></el-table-column>
<el-table-column label="
" prop="manufactory" show-overflow-tooltip="true" width="160"></el-table-column>
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip="true" width="160"></el-table-column>
<!-- <el-table-column label="注册/备案人" prop="ylqxzcrbarmc" show-overflow-tooltip="true"></el-table-column>-->
</el-table>
@ -142,6 +169,7 @@
import purPlanEdit from "./purOrderDetailDialog";
import {delApply, listOrder, listOrderDetail, delOrderDetailAll} from "@/api/purchase/purOrder";
import {selectAuthMenu} from "@/api/system/sysMenuHelp";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
export default {
@ -159,6 +187,10 @@ export default {
type: 1,
editStatus: 1,
},
corpLoading: false,
fromOptions: [],
Menustatus: null,
filePath: "",
createTimes: null,
@ -186,7 +218,7 @@ export default {
2: "未处理",
3: "作废",
},
showSup: false,
invList: {},
deptList: {},
idQuery: {},
@ -385,6 +417,25 @@ export default {
}
})
},
findMethod(key) {
this.corpLoading = true;
this.fromOptions = [];
let params = {
key: key,
corpType: 2,
page: 1,
limit: 20
};
getBasicUnitMaintains(params).then((res) => {
this.corpLoading = false;
this.fromOptions = res.data.list || [];
}).catch(() => {
this.corpLoading = false;
})
},
closeDialog() {
this.newSpDistributionVisible = false;
this.getList();
@ -434,6 +485,13 @@ export default {
}
,
created() {
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.selectAuthMenu();
let end = new Date();

Loading…
Cancel
Save