1.删除未使用的接口方法和无用的页面文件
parent
fc8e572173
commit
85f5c69db9
@ -1,34 +0,0 @@
|
||||
/**
|
||||
* Created by lk on 17/6/4.
|
||||
*/
|
||||
import axios from "../../utils/axios";
|
||||
|
||||
// 谁最懂我相关
|
||||
|
||||
// 列表
|
||||
export function adList(query) {
|
||||
return axios({
|
||||
url: "/admin/ad/ad/index",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 保存
|
||||
export function adSave(data, formName, method = "post") {
|
||||
var url = formName === "add" ? "/admin/ad/ad/save" : "/admin/ad/ad/edit";
|
||||
return axios({
|
||||
url: url,
|
||||
method: method,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function adDelete(data) {
|
||||
return axios({
|
||||
url: "/admin/ad/ad/delete",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
/**
|
||||
* Created by lk on 17/6/4.
|
||||
*/
|
||||
import axios from "../../utils/axios";
|
||||
|
||||
// 谁最懂我相关
|
||||
|
||||
// 列表
|
||||
export function adSiteList(query) {
|
||||
return axios({
|
||||
url: "/admin/ad/site/index",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 广告列表
|
||||
export function adSiteAdList(query) {
|
||||
return axios({
|
||||
url: "/admin/ad/site/adList",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 保存
|
||||
export function adSiteSave(data, formName, method = "post") {
|
||||
var url =
|
||||
formName === "add" ? "/admin/ad/site/save" : "/admin/ad/site/edit";
|
||||
return axios({
|
||||
url: url,
|
||||
method: method,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function adSiteDelete(data) {
|
||||
return axios({
|
||||
url: "/admin/ad/site/delete",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import axios from "../../utils/axios";
|
||||
|
||||
export function getOriginBusType(query) {
|
||||
return axios({
|
||||
url: "/udiwms/originBusType/filter",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
@ -1,417 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="10" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>业务类型名称: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="inputQuery.name"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="10" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>业务类型代码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
disabled
|
||||
v-model="inputQuery.action"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="10" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>第三方单据类型: </span>
|
||||
</div>
|
||||
|
||||
<el-select v-model="inputQuery.originAction" placeholder="请选择第三方系统单据类型" clearable="true">
|
||||
<el-option
|
||||
v-for="item in originTypes"
|
||||
:key="item.name"
|
||||
:label="item.name"
|
||||
:value="item.action">
|
||||
<span style="float: left;font-size: 13px">{{ item.name }}</span>
|
||||
<span style="float: right; color: #8492a6; font-size: 13px;margin-left: 10px">{{
|
||||
item.thirdSysName
|
||||
}}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="20" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>备注: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 80%"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="inputQuery.remark"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<!-- <el-col :span="4" class="el-col">-->
|
||||
<!-- <div class="text item">-->
|
||||
<!-- <el-checkbox v-model="inputQuery.enable">启用当前单据</el-checkbox>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="4" class="el-col">
|
||||
<div class="text item">
|
||||
<el-checkbox v-model="inputQuery.advanceType">寄售类型单据</el-checkbox>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="4" class="el-col">
|
||||
<div class="text item">
|
||||
<el-checkbox v-model="inputQuery.changeEnable" @change="isChangeOrder"
|
||||
:disabled="!changeEnable || inputQuery.mainAction=='WareHouseIn' || inputQuery.id == null || inputQuery.mainAction==null">
|
||||
缺量自动补单
|
||||
</el-checkbox>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="4" class="el-col">
|
||||
<div class="text item">
|
||||
<el-checkbox v-model="inputQuery.spUse">允许供应商使用</el-checkbox>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<div v-if="visibleChange">
|
||||
|
||||
<!-- <div style="float:right;margin-bottom: 10px">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click.native="addChangeType"-->
|
||||
<!-- >新增流转单据类型-->
|
||||
<!-- </el-button-->
|
||||
<!-- >-->
|
||||
<!-- </div>-->
|
||||
<el-table border style="margin-bottom: 20px;margin-top: 10px" :data="changeList">
|
||||
<el-table-column label="序号" type="index" width="55"></el-table-column>
|
||||
<el-table-column label="补单说明" prop="intro"></el-table-column>
|
||||
<!-- <el-table-column label="补单单据类型代码" prop="action"></el-table-column>-->
|
||||
<el-table-column label="补单扫码单据类型" prop="name"></el-table-column>
|
||||
<el-table-column label="推前时长(小时)" prop="beforeTime"></el-table-column>
|
||||
<el-table-column label="备注" prop="remark"></el-table-column>
|
||||
<el-table-column label="操作" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="handleModifyClick(scope.row)"
|
||||
>编辑
|
||||
</el-button
|
||||
>
|
||||
<!-- <el-button-->
|
||||
<!-- type="text"-->
|
||||
<!-- size="small"-->
|
||||
<!-- @click.native.stop="deleteClick(scope.row)"-->
|
||||
<!-- >删除-->
|
||||
<!-- </el-button-->
|
||||
<!-- >-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
</div>
|
||||
<el-dialog
|
||||
:title="formMap[changeEdit]"
|
||||
:visible.sync="editChangeTypeVisible"
|
||||
width="55%"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
append-to-body
|
||||
v-if="editChangeTypeVisible">
|
||||
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="10" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>生成扫码单据类型: </span>
|
||||
</div>
|
||||
<el-select v-model="editQuery.scAction" placeholder="请选择扫码单据类型" clearable="true">
|
||||
<el-option
|
||||
v-for="item in codeTypes"
|
||||
:key="item.name"
|
||||
:label="item.name"
|
||||
:value="item.action">
|
||||
<span style="float: left">{{ item.name }}</span>
|
||||
<!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>-->
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
|
||||
</el-col>
|
||||
<el-col :span="10" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>往前推移时间(小时): </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.beforeTime"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="10" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>转换顺序号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.index"
|
||||
disabled="false"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click.native="hideForm" size="small">取消</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click.native="formSubmit()"
|
||||
:loading="formLoading"
|
||||
>提交
|
||||
</el-button
|
||||
>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {getOriginBusType} from "../../api/basic/busOriginType";
|
||||
import {getBussinessType, getJoinBussinessType} from "../../api/basic/bussinessType";
|
||||
import {
|
||||
getChangeBusType,
|
||||
addChangeBusType,
|
||||
deleteChangeBusType,
|
||||
updateChangeBusType, removeBusChange
|
||||
} from "../../api/basic/busChangeType";
|
||||
|
||||
export default {
|
||||
name: "inputQuery",
|
||||
props: {
|
||||
inputQuery: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
query: {
|
||||
action: null,
|
||||
type: null,
|
||||
},
|
||||
filterQuery: {
|
||||
enabled: true,
|
||||
isBuType: true,
|
||||
},
|
||||
editQuery: {},
|
||||
thirdSys: [],
|
||||
localTypes: [],
|
||||
originTypes: [],
|
||||
codeTypes: [],
|
||||
value: "",
|
||||
changeEnable: false,
|
||||
changeEdit: 0,
|
||||
editChangeTypeVisible: false,
|
||||
formMap: {
|
||||
0: "新增",
|
||||
1: "编辑",
|
||||
},
|
||||
changeList: [],
|
||||
visibleChange: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.query.action = this.inputQuery.action;
|
||||
getChangeBusType(this.query)
|
||||
.then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.changeList = response.data || [];
|
||||
if (this.inputQuery.changeEnable) {
|
||||
this.visibleChange = true;
|
||||
}
|
||||
|
||||
this.changeEnable = true;
|
||||
// if (this.changeList.length == 0)
|
||||
// this.changeEnable = false;
|
||||
// else
|
||||
// this.changeEnable = true;
|
||||
|
||||
} else {
|
||||
// this.$message.error(response.message);
|
||||
this.visibleChange = false;
|
||||
this.changeEnable = false;
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
},
|
||||
getTypes() {
|
||||
getOriginBusType()
|
||||
.then((response) => {
|
||||
this.originTypes = response.data.list || [];
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
this.getBusTypes();
|
||||
},
|
||||
|
||||
getBusTypes() {
|
||||
let query = {
|
||||
enabled: true,
|
||||
filterAction: this.inputQuery.action,
|
||||
};
|
||||
getJoinBussinessType(query)
|
||||
.then((response) => {
|
||||
this.codeTypes = response.data.list || [];
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
},
|
||||
|
||||
removeBusChangeType() {
|
||||
let query = {
|
||||
scAction: this.inputQuery.action,
|
||||
};
|
||||
removeBusChange(query)
|
||||
.then((response) => {
|
||||
this.changeList = [];
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
},
|
||||
addChangeType() {
|
||||
this.changeEdit = 0;
|
||||
this.editQuery = {};
|
||||
this.editChangeTypeVisible = true;
|
||||
}
|
||||
,
|
||||
handleModifyClick(row) {
|
||||
this.changeEdit = 1;
|
||||
this.editQuery = row;
|
||||
this.editChangeTypeVisible = true;
|
||||
this.getBusTypes();
|
||||
}
|
||||
,
|
||||
hideForm() {
|
||||
this.editChangeTypeVisible = false;
|
||||
}
|
||||
,
|
||||
formSubmit() {
|
||||
if (this.changeEdit == 0) {
|
||||
this.editQuery.action = this.inputQuery.action;
|
||||
addChangeBusType(this.editQuery)
|
||||
.then((response) => {
|
||||
this.editChangeTypeVisible = false;
|
||||
this.getList();
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
} else {
|
||||
updateChangeBusType(this.editQuery)
|
||||
.then((response) => {
|
||||
this.editChangeTypeVisible = false;
|
||||
this.getList();
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
}
|
||||
}
|
||||
,
|
||||
deleteClick(row) {
|
||||
let query = {
|
||||
id: row.id,
|
||||
}
|
||||
deleteChangeBusType(query)
|
||||
.then((response) => {
|
||||
this.editChangeTypeVisible = false;
|
||||
this.getList();
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
isChangeOrder() {
|
||||
if (this.inputQuery.changeEnable) {
|
||||
this.query.type = "changeEnable";
|
||||
this.getList()
|
||||
} else {
|
||||
this.visibleChange = false;
|
||||
this.removeBusChangeType();
|
||||
}
|
||||
}
|
||||
,
|
||||
},
|
||||
|
||||
created() {
|
||||
this.getTypes();
|
||||
this.getList();
|
||||
}
|
||||
,
|
||||
}
|
||||
;
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.itemTag {
|
||||
float: left;
|
||||
text-align: left;
|
||||
margin-top: 10px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 13px;
|
||||
font-family: "Microsoft YaHei";
|
||||
}
|
||||
|
||||
.el-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.el-col {
|
||||
border-radius: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue