|
|
@@ -273,9 +273,11 @@
|
|
|
:isNotNeedProcess="false"
|
|
|
:isCloseRefresh="false"
|
|
|
:processSubmitDialogFlag.sync="processSubmitDialogFlag"
|
|
|
+ :isSpecialeSubmit="isSpecialeSubmit"
|
|
|
v-if="processSubmitDialogFlag"
|
|
|
ref="processSubmitDialogRef"
|
|
|
@reload="reload"
|
|
|
+ @specialesubmit="specialesubmit"
|
|
|
></process-submit-dialog>
|
|
|
<addInvoiceConfirm
|
|
|
ref="addInvoiceConfirmRef"
|
|
|
@@ -307,7 +309,8 @@
|
|
|
import {
|
|
|
deleteSendInformation,
|
|
|
getSendTableList,
|
|
|
- submit
|
|
|
+ submit,
|
|
|
+ specialSubmit
|
|
|
} from '@/api/saleManage/saleordersendrecord';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
@@ -544,7 +547,8 @@
|
|
|
}
|
|
|
],
|
|
|
cacheKeyUrl: 'eos-bfe3d5ea-saleManage-invoice',
|
|
|
- isReview: false
|
|
|
+ isReview: false,
|
|
|
+ isSpecialeSubmit: false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -692,6 +696,11 @@
|
|
|
storemanIds = warehouseList.map((item) => item.ownerId);
|
|
|
}
|
|
|
|
|
|
+ // 当ids数组去重去空后有不同的值时,设置isSpecialeSubmit为true
|
|
|
+ const filteredIds = ids.filter(id => id !== undefined && id !== null && id !== '');
|
|
|
+ const uniqueIds = [...new Set(filteredIds)];
|
|
|
+ this.isSpecialeSubmit = uniqueIds.length > 1;
|
|
|
+
|
|
|
this.processSubmitDialogFlag = true;
|
|
|
this.$nextTick(() => {
|
|
|
let params = {
|
|
|
@@ -720,6 +729,13 @@
|
|
|
this.$refs.processSubmitDialogRef.init(params);
|
|
|
});
|
|
|
},
|
|
|
+ async specialesubmit(params) {
|
|
|
+ console.log('params~~~~~~', params);
|
|
|
+ await specialSubmit(params.businessId, params);
|
|
|
+ this.$message('提交审核成功');
|
|
|
+ this.processSubmitDialogFlag = false;
|
|
|
+ this.reload();
|
|
|
+ },
|
|
|
//查看详情
|
|
|
openorderDetail(row, type, index) {
|
|
|
if (type === 'docNo') {
|