|
@@ -311,6 +311,7 @@
|
|
|
import { getWarehouseListByIds } from '@/api/purchasingManage/returnGoods';
|
|
import { getWarehouseListByIds } from '@/api/purchasingManage/returnGoods';
|
|
|
import exportButton from '@/components/upload/exportButton.vue';
|
|
import exportButton from '@/components/upload/exportButton.vue';
|
|
|
import { downLoadTemplate } from '@/api/system/file/index.js';
|
|
import { downLoadTemplate } from '@/api/system/file/index.js';
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
mixins: [dictMixins, tabMixins],
|
|
@@ -507,11 +508,18 @@
|
|
|
fixed: 'right'
|
|
fixed: 'right'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- cacheKeyUrl: 'eos-bfe3d5ea-saleManage-invoice'
|
|
|
|
|
|
|
+ cacheKeyUrl: 'eos-bfe3d5ea-saleManage-invoice',
|
|
|
|
|
+ isReview: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {},
|
|
computed: {},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ //打印是否需要审核//0否 1是
|
|
|
|
|
+ parameterGetByCode({
|
|
|
|
|
+ code: 'eom_invoice_print_need_review'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.isReview = res.value;
|
|
|
|
|
+ });
|
|
|
enterprisePage({
|
|
enterprisePage({
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
size: 200
|
|
size: 200
|
|
@@ -527,7 +535,7 @@
|
|
|
watch: {
|
|
watch: {
|
|
|
saleOrderData: {
|
|
saleOrderData: {
|
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
|
- if (newVal.id) {
|
|
|
|
|
|
|
+ if (newVal.id) {
|
|
|
this.reload();
|
|
this.reload();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -601,12 +609,12 @@
|
|
|
[2].includes(item.reviewStatus)
|
|
[2].includes(item.reviewStatus)
|
|
|
);
|
|
);
|
|
|
console.log('flag', flag, approveList.includes(ref))
|
|
console.log('flag', flag, approveList.includes(ref))
|
|
|
- if (!flag && approveList.includes(ref))
|
|
|
|
|
|
|
+ if (!flag && (approveList.includes(ref) || this.isReview == 1))
|
|
|
return this.$message.warning('抱歉需要已审核的发货单才能打印,请检查');
|
|
return this.$message.warning('抱歉需要已审核的发货单才能打印,请检查');
|
|
|
if (ref != 'printTemplateByRef' && ref != 'printTemplateHtRef') {
|
|
if (ref != 'printTemplateByRef' && ref != 'printTemplateHtRef') {
|
|
|
this.$refs[ref].open(this.selection[0].id);
|
|
this.$refs[ref].open(this.selection[0].id);
|
|
|
return;
|
|
return;
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
this.$confirm('是否需要打印价格', '提示', {
|
|
this.$confirm('是否需要打印价格', '提示', {
|
|
|
type: 'warning',
|
|
type: 'warning',
|