diff --git a/src/views/inout/InvoiceRegByFp.vue b/src/views/inout/InvoiceRegByFp.vue
index 466a59e..35a7041 100644
--- a/src/views/inout/InvoiceRegByFp.vue
+++ b/src/views/inout/InvoiceRegByFp.vue
@@ -72,8 +72,8 @@
>
+ clearable="true"
+ >
@@ -20,7 +21,8 @@
v-for="item in invList"
:key="item.name"
:label="item.name"
- :value="item.code">
+ :value="item.code"
+ >
{{ item.name }}
@@ -30,12 +32,14 @@
+ clearable
+ >
+ :value="item.action"
+ >
{{ item.name }}
@@ -107,7 +111,8 @@
-
+
@@ -132,7 +137,8 @@
border
@current-change="handleSelectionChange"
:default-sort="defaultSort"
- @sort-change="handleSortChange">
+ @sort-change="handleSortChange"
+ >
@@ -156,11 +162,13 @@
+ :sort-orders="['ascending', 'descending']"
+ >
+ :sort-orders="['ascending', 'descending']"
+ >
@@ -196,7 +204,8 @@
确认
+ @click.native.stop="determine(scope.row)"
+ >确认
{
- binaryData.push(res);
- let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
- window.open(URL);
+ binaryData.push(res)
+ let URL = window.URL.createObjectURL(new Blob(binaryData, { type: pdf }))
+ window.open(URL)
})
// window.open(this.imgList[0])
return false
}
- this.imgViewerVisible = true;
+ this.imgViewerVisible = true
// previewImage({
// imageUrl: this.inputQuery.licenseUrl,
// certFileUrl: this.certFileUrl,
@@ -799,102 +814,101 @@ export default {
// console.log(this.imgList);
// });
const m = (e) => {
- e.preventDefault();
- };
- document.body.style.overflow = "hidden";
- document.addEventListener("touchmove", m, false); // 禁止页面滑动
+ e.preventDefault()
+ }
+ document.body.style.overflow = 'hidden'
+ document.addEventListener('touchmove', m, false) // 禁止页面滑动
},
closeImgViewer() {
- this.imgViewerVisible = false;
+ this.imgViewerVisible = false
const m = (e) => {
e.preventDefault()
- };
- document.body.style.overflow = 'auto';
- document.removeEventListener("touchmove", m, true);
+ }
+ document.body.style.overflow = 'auto'
+ document.removeEventListener('touchmove', m, true)
},
-
invChange() {
- this.filterQuery.action = null;
- this.getBusType();
+ this.filterQuery.action = null
+ this.getBusType()
},
freshen() {
- this.Upinvoice = false;
- this.getBizDetailListInv();
+ this.Upinvoice = false
+ this.getBizDetailListInv()
},
printOrder(row) {
- this.currentManufacturer = row;
- this.Upinvoice = true;
+ this.currentManufacturer = row
+ this.Upinvoice = true
},
getBusType() {
let query = {
code: this.filterQuery.invCode,
enable: true,
- vueType: "supInvoice",
- };
+ vueType: 'supInvoice'
+ }
getLocalJoinByUser(query)
.then((response) => {
- this.busTypes = response.data.list || [];
+ this.busTypes = response.data.list || []
})
.catch(() => {
- });
+ })
},
deleteInvoice(row) {
- this.$confirm("此操作将永久删除该发票信息, 是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
+ this.$confirm('此操作将永久删除该发票信息, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
})
.then(() => {
- this.par = row;
- this.par.regId = this.regId;
+ this.par = row
+ this.par.regId = this.regId
deleteById(row)
.then((response) => {
if (response.code == 20000) {
if (response.data.length == 0) {
- this.getList();
+ this.getList()
} else {
- this.getCodeDetailList();
+ this.getCodeDetailList()
}
- this.getBizDetailListInv(this.subRow);
+ this.getBizDetailListInv(this.subRow)
this.$message({
- type: "success",
- message: "删除成功!",
- });
+ type: 'success',
+ message: '删除成功!'
+ })
}
})
.catch(() => {
- });
+ })
})
.catch(() => {
- });
+ })
},
handleSelectionChange(val) {
- this.currentRow.billNo = val.billNo;
- this.getOrderDetails();
- this.getBizDetailListInv();
+ this.currentRow.billNo = val.billNo
+ this.getOrderDetails()
+ this.getBizDetailListInv()
},
// 获取单据 业务详情、扫码详情、扫码明细
getOrderDetails() {
- this.codeQuery.page = 1;
+ this.codeQuery.page = 1
//this.resultQuery.page = 1;
- this.getCodeDetailList();
+ this.getCodeDetailList()
//this.getResultDetailList();
},
// 清空单据详情数据列表
clearDetailList() {
// 清空业务详情
- this.bizDetailList = [];
- this.bizTotal = 0;
+ this.bizDetailList = []
+ this.bizTotal = 0
// 清空扫码详情
- this.codeDetailList = [];
- this.codeTotal = 0;
+ this.codeDetailList = []
+ this.codeTotal = 0
// 清空扫码明细
- this.resultDetailList = [];
- this.resultTotal = 0;
+ this.resultDetailList = []
+ this.resultTotal = 0
},
handleSortChange(column, prop, order) {
@@ -903,154 +917,153 @@ export default {
} else {
this.filterQuery.sort = 'asc'
}
- this.filterQuery.orderBy = column.prop;
- this.getList();
+ this.filterQuery.orderBy = column.prop
+ this.getList()
},
-
//获取订单列表
getList() {
- this.loading = true;
- this.currentRow = {billNo: ""};
- this.clearDetailList();
- this.filterQuery.vueType = "supInvoice";
+ this.loading = true
+ this.currentRow = { billNo: '' }
+ this.clearDetailList()
+ this.filterQuery.vueType = 'supInvoice'
filterOrderList(this.filterQuery)
.then((response) => {
- this.loading = false;
+ this.loading = false
if (response.code === 20000) {
- this.list = response.data.list || [];
- this.total = response.data.total || 0;
+ this.list = response.data.list || []
+ this.total = response.data.total || 0
} else {
- this.$message.error(response.message);
+ this.$message.error(response.message)
}
})
.catch((error) => {
this.$message.error(error.message)
- this.loading = false;
- this.list = [];
- this.total = 0;
- });
+ this.loading = false
+ this.list = []
+ this.total = 0
+ })
},
deleteOrders(data) {
- this.loading = true;
- this.deleteData.billNo = data.billNo;
+ this.loading = true
+ this.deleteData.billNo = data.billNo
deleteByOrderId(this.deleteData)
.then((response) => {
if (response.code == 20000) {
- this.getList();
+ this.getList()
this.$message({
- type: "success",
- message: "删除成功!",
- });
+ type: 'success',
+ message: '删除成功!'
+ })
} else if (response.code == 520) {
- this.$message.error("新增扫码单据列表已不存在该扫码单据!");
- this.getList();
+ this.$message.error('新增扫码单据列表已不存在该扫码单据!')
+ this.getList()
}
})
.catch(() => {
- });
+ })
},
findMethod(key) {
- this.corpLoading = true;
- this.fromOptions = [];
+ 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 || [];
+ this.corpLoading = false
+ this.fromOptions = res.data.list || []
}).catch(() => {
- this.corpLoading = false;
+ this.corpLoading = false
})
},
deleteDialog(row) {
- this.$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
+ this.$confirm('此操作将永久删除该订单, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
})
.then(() => {
- this.deleteOrders(row);
+ this.deleteOrders(row)
})
.catch(() => {
- });
+ })
},
getInvList() {
getInvListByUser()
.then((response) => {
- let invlist1 = response.data || [];
+ let invlist1 = response.data || []
for (var i = 0; i < invlist1.length; i++) {
if (invlist1[i].code == 1000000) {
- this.invList.push(invlist1[i]);
- this.filterQuery.invCode = invlist1[i].code;
+ this.invList.push(invlist1[i])
+ this.filterQuery.invCode = invlist1[i].code
}
}
})
.catch(() => {
- });
+ })
},
getDeptList() {
getDeptListByUser().then((res) => {
- this.deptList = res.data || [];
- });
+ this.deptList = res.data || []
+ })
},
getResultDetailList() {
if (isBlank(this.currentRow.billNo)) {
- this.$message.error("请先选择需要查询的单据!")
- return;
+ this.$message.error('请先选择需要查询的单据!')
+ return
}
- this.resultQuery.orderId = this.currentRow.billNo;
- this.resultDetailLoading = true;
+ this.resultQuery.orderId = this.currentRow.billNo
+ this.resultDetailLoading = true
getCodeList(this.resultQuery).then((res) => {
- this.resultDetailLoading = false;
+ this.resultDetailLoading = false
if (res.code === 20000) {
- this.resultDetailList = res.data.list || [];
- this.resultTotal = res.data.total || 0;
+ this.resultDetailList = res.data.list || []
+ this.resultTotal = res.data.total || 0
} else {
- this.$message.error(res.message);
- this.resultDetailList = [];
- this.resultTotal = 0;
+ this.$message.error(res.message)
+ this.resultDetailList = []
+ this.resultTotal = 0
}
}).catch((error) => {
- this.resultDetailLoading = false;
- this.$message.error(error.message);
- this.resultDetailList = [];
- this.resultTotal = 0;
- });
+ this.resultDetailLoading = false
+ this.$message.error(error.message)
+ this.resultDetailList = []
+ this.resultTotal = 0
+ })
},
getCodeDetailList() {
if (isBlank(this.currentRow.billNo)) {
- this.$message.error("请先选择需要查询的单据!")
- return;
+ this.$message.error('请先选择需要查询的单据!')
+ return
}
- this.codeQuery.orderIdFk = this.currentRow.billNo;
- this.codeDetailLoading = true;
- this.codeDetailList = [];
+ this.codeQuery.orderIdFk = this.currentRow.billNo
+ this.codeDetailLoading = true
+ this.codeDetailList = []
filterBizOrderList(this.codeQuery).then((res) => {
- this.codeDetailLoading = false;
+ this.codeDetailLoading = false
if (res.code === 20000) {
- this.codeDetailList = res.data.list || [];
- this.codeTotal = res.data.total || 0;
+ this.codeDetailList = res.data.list || []
+ this.codeTotal = res.data.total || 0
} else {
- this.$message.error(res.message);
- this.codeDetailList = [];
- this.codeTotal = 0;
+ this.$message.error(res.message)
+ this.codeDetailList = []
+ this.codeTotal = 0
}
}).catch((error) => {
- this.codeDetailLoading = true;
- this.$message.error(error.message);
- this.codeDetailList = [];
- this.codeTotal = 0;
+ this.codeDetailLoading = true
+ this.$message.error(error.message)
+ this.codeDetailList = []
+ this.codeTotal = 0
})
},
onBizReset() {
@@ -1059,19 +1072,19 @@ export default {
orderIdFk: null,
page: 1,
limit: 10
- };
- this.getBizDetailListInv();
+ }
+ this.getBizDetailListInv()
},
onBizSubmit() {
- this.bizQuery.page = 1;
- this.getBizDetailListInv();
+ this.bizQuery.page = 1
+ this.getBizDetailListInv()
},
getBizDetailListInv() {
if (isBlank(this.currentRow.billNo)) {
- this.$message.error("请先选择需要查询的单据!")
- return;
+ this.$message.error('请先选择需要查询的单据!')
+ return
}
- this.invoiceLoading = true;
+ this.invoiceLoading = true
//this.bizQuery.orderIdFk = this.currentRow.billNo;
// if (row != null) {
// this.bizQuery.orderIdFk = row.orderIdFk;
@@ -1080,36 +1093,35 @@ export default {
// //this.bizQuery.bizIdFk = row.id;
// }
filterListInvoice(this.bizQuery).then((res) => {
- this.invoiceLoading = false;
+ this.invoiceLoading = false
if (res.code === 20000) {
- this.bizDetailList = res.data.list || [];
- this.invTotal = res.data.total || 0;
+ this.bizDetailList = res.data.list || []
+ this.invTotal = res.data.total || 0
} else {
- this.$message.error(res.message);
- this.bizDetailList = [];
- this.invTotal = 0;
+ this.$message.error(res.message)
+ this.bizDetailList = []
+ this.invTotal = 0
}
}).catch((error) => {
- this.invoiceLoading = false;
- this.$message.error(error.message);
- this.bizDetailList = [];
- this.invTotal = 0;
+ this.invoiceLoading = false
+ this.$message.error(error.message)
+ this.bizDetailList = []
+ this.invTotal = 0
})
},
-
BizDetail(row) {
- this.regId = row.id;
- this.bizQuery.page = 1;
- this.subRow = row;
- this.bizQuery.orderIdFk = row.orderIdFk;
- this.bizQuery.batchNo = row.batchNo;
- this.bizQuery.relId = row.bindRlFk;
- this.getBizDetailListInv();
+ this.regId = row.id
+ this.bizQuery.page = 1
+ this.subRow = row
+ this.bizQuery.orderIdFk = row.orderIdFk
+ this.bizQuery.batchNo = row.batchNo
+ this.bizQuery.relId = row.bindRlFk
+ this.getBizDetailListInv()
},
determine(row) {
- this.determineData = row;
- this.determineVisible = true;
+ this.determineData = row
+ this.determineVisible = true
},
//单据撤回
@@ -1119,85 +1131,85 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- let param = {billNo: row.billNo};
+ let param = { billNo: row.billNo }
rollUnReceivebackOrder(param).then((res) => {
if (res.code === 20000) {
- this.$message.success("撤回成功");
- this.getList();
+ this.$message.success('撤回成功')
+ this.getList()
} else {
- this.$message.error(res.message);
+ this.$message.error(res.message)
}
})
}).catch(() => {
// this.$message.info('回退失败');
- });
+ })
},
closeAcceptDialog() {
- this.Upinvoice = false;
- this.getBizDetailListInv();
- this.getOrderDetails();
+ this.Upinvoice = false
+ this.getBizDetailListInv()
+ this.getOrderDetails()
},
closeInvoice(row) {
- this.InvoiceRegisterv = false;
- this.getBizDetailListInv(row);
+ this.InvoiceRegisterv = false
+ this.getBizDetailListInv(row)
},
//验收结束
closeDetermineDialog() {
- this.determineVisible = false;
- this.getList();
+ this.determineVisible = false
+ this.getList()
},
//开始验收
reviewOrder(row) {
- this.acceptQuery = row;
- this.acceptOrderVisible = true;
+ this.acceptQuery = row
+ this.acceptOrderVisible = true
},
- parentByFn: function (childValue) {
- this.getList();
+ parentByFn: function(childValue) {
+ this.getList()
},
statusFilterType(status) {
const statusMap = {
- 5: "warning",
- 1: "warning",
- 6: "danger",
- 7: "success",
- };
- return statusMap[status];
- },
+ 5: 'warning',
+ 1: 'warning',
+ 6: 'danger',
+ 7: 'success'
+ }
+ return statusMap[status]
+ }
}
,
mounted() {
- document.body.ondrop = function (event) {
- event.preventDefault();
- event.stopPropagation();
- };
+ document.body.ondrop = function(event) {
+ event.preventDefault()
+ event.stopPropagation()
+ }
}
,
created() {
- let supId = this.$store.getters.customerId;
- if (supId == "110") {
- this.showSup = true;
+ let supId = this.$store.getters.customerId
+ if (supId == '110') {
+ this.showSup = true
}
- this.getInvList();
- this.getDeptList();
- this.getBusType();
- selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => {
+ this.getInvList()
+ this.getDeptList()
+ this.getBusType()
+ selectSysParamByKey({ paramKey: 'muti_inv_mode' }).then((res) => {
if (res.code === 20000) {
- if (res.data.paramValue === "0") {
- this.enableDept = true;
+ if (res.data.paramValue === '0') {
+ this.enableDept = true
}
}
- });
- this.getList();
+ })
+ this.getList()
}
- ,
+
}
-;
+