Browse Source

修复已知bug

dev-xx
马远东 5 months ago
parent
commit
928ce30364
  1. 2
      src/api/aftersales/aftersalesWorkOrder.js
  2. 11
      src/components/MultiConditionSearch/MultiConditionSearch.vue
  3. 224
      src/views/aftersales/aftersalesWorkOrder.vue
  4. 2
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  5. 35
      src/views/aftersales/aftersalesWorkOrderend.vue
  6. 17
      src/views/basicdata/warehouse/tray/basicdataTrayedt.vue
  7. 20
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  8. 15
      src/views/waybill/WaybillOrderList.vue

2
src/api/aftersales/aftersalesWorkOrder.js

@ -389,7 +389,7 @@ export const $_updateWorkOrderStatus = (data) => {
data
})
}
// 处理结果完结结果确定
// 完结审核
export const $_updateManagerConfirmed = (data) => {
return request({
url: '/api/logpm-aftersales/aftersalesWorkOrder/updateManagerConfirmed',

11
src/components/MultiConditionSearch/MultiConditionSearch.vue

@ -100,6 +100,8 @@ const maximize = () => {
const close = () => {
emit('update:modelValue', false);
minimizeState.value = false;
emit('update:inputValue', localInputValue.value);
};
const expandWindow = () => {
@ -114,7 +116,14 @@ const destroyWindow = () => {
};
const dialogSearchSubmit = () => {
emit('dialogSearchSubmit', localInputValue.value);
const lines = localInputValue.value
.split('\n') //
.map(line => line.trim()) //
.filter(line => line !== ''); //
const joinedLines = lines.join(','); // 使
emit('dialogSearchSubmit', joinedLines);
emit('update:inputValue', localInputValue.value);
};
</script>

224
src/views/aftersales/aftersalesWorkOrder.vue

@ -115,16 +115,24 @@
<el-button type="primary" icon="User" v-if="ButtonPermissions.applyArbitration"
>客服介入</el-button
>
<el-button type="primary" icon="EditPen" v-if="ButtonPermissions.DingTalkNumber"
<el-button
type="primary"
icon="EditPen"
v-if="ButtonPermissions.DingTalkNumber"
@click="DingTalk"
>钉钉号填写</el-button
>
<el-button type="primary" icon="Stamp" v-if="ButtonPermissions.batchFinish"
<!-- <el-button type="primary" icon="Stamp" v-if="ButtonPermissions.batchFinish"
>批量完结</el-button
>
> -->
<el-button type="primary" icon="Stamp" v-if="ButtonPermissions.ArbitrationDetermination"
>批量完结审核</el-button
>
<el-button type="primary" icon="Coin" v-if="ButtonPermissions.Financial_accounting"
<el-button
type="primary"
icon="Coin"
v-if="ButtonPermissions.Financial_accounting"
@click="Financialfillingbtn"
>财务入账</el-button
>
</div>
@ -440,6 +448,76 @@
<el-button type="primary" @click="LocalExport"> 本地导出 </el-button>
</el-tooltip>
</el-dialog>
<!-- 钉钉号填写 -->
<el-dialog v-model="DingTalkfilling.dialogDingTalk" title="钉钉号填写" width="30%">
<div
class="el_DingTalk"
v-loading="DingTalkfilling.loading"
element-loading-text="Loading..."
>
<el-form :model="DingTalkfilling" label-width="120px">
<el-form-item label="钉钉流程号">
<el-input v-model="DingTalkfilling.processNumber" placeholder="请填写钉钉号" />
</el-form-item>
<el-form-item label="审核人">
<el-input v-model="DingTalkfilling.reviewedBy" placeholder="请填写审核人" />
</el-form-item>
<el-form-item label="审核时间">
<el-date-picker
v-model="DingTalkfilling.auditTime"
type="datetime"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD HH:mm:ss"
placeholder="请选择审核时间"
/>
</el-form-item>
</el-form>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="DingTalkfilling.dialogDingTalk = false">关闭</el-button>
<el-button type="primary" @click="DingTalkSubmit" :disabled="DingTalkfilling.loading">
确认
</el-button>
</span>
</template>
</el-dialog>
<!-- 财务入账弹窗 -->
<el-dialog v-model="FinancialFrom.loadingFinancial" title="财务入账" width="30%">
<div
class="el_DingTalk"
v-loading="FinancialFrom.loading"
element-loading-text="正在处理中..."
>
<el-form :model="FinancialFrom" label-width="120px">
<el-form-item label="操作人">
<el-input v-model="FinancialFrom.operator" placeholder="请填写操作人" />
</el-form-item>
<el-form-item label="财务入账时间">
<el-date-picker
v-model="FinancialFrom.entryTime"
type="datetime"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD HH:mm:ss"
placeholder="请选择财务入账时间"
/>
</el-form-item>
</el-form>
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="FinancialFrom.loadingFinancial = false">取消</el-button>
<el-button
type="primary"
@click="FinancialfillingSubmit"
:disabled="FinancialFrom.loading"
>
确认
</el-button>
</span>
</template>
</el-dialog>
</basic-container>
<!-- 列表配置显示 -->
<template v-for="columnList in columnListNames" :key="columnList">
@ -582,6 +660,16 @@ const ExportObjects = ref({
tcTableexport: false, //
ExportSelection: false, //
});
//
const DingTalkfilling = ref({
dialogDingTalk: false,
loading: false,
});
//
const FinancialFrom = ref({
loadingFinancial: false,
loading: false,
});
//
const Searchboxpop = ref({
SearchboxpopUpwindowtitle: '', //
@ -787,7 +875,9 @@ const ButtonPermissions = computed(() => {
return {
add: false, //
batchReject: false, //
assignment: UserPermissions.value != Useridentity.Warehouse_customer_service, //
assignment:
UserPermissions.value == Useridentity.Headquarters_Manager ||
UserPermissions.value == Useridentity.Headquarters_customer_service, //
applyArbitration: UserPermissions.value == Useridentity.Warehouse_customer_service, //
DingTalkNumber: false, //
batchFinish: false, //
@ -804,7 +894,9 @@ const ButtonPermissions = computed(() => {
return {
add: false, //
batchReject: UserPermissions.value == Useridentity.Headquarters_customer_service, //
assignment: UserPermissions.value != Useridentity.Warehouse_customer_service, //
assignment:
UserPermissions.value == Useridentity.Headquarters_Manager ||
UserPermissions.value == Useridentity.Headquarters_customer_service, //
applyArbitration: false, //
DingTalkNumber: false, //
batchFinish: false, //
@ -861,7 +953,9 @@ const ButtonPermissions = computed(() => {
DingTalkNumber: false, //
Batchdetermination: false, //
ManagerConfirmed: false, //
ArbitrationDetermination: UserPermissions.value != Useridentity.Warehouse_customer_service, //
ArbitrationDetermination:
UserPermissions.value == Useridentity.Headquarters_Manager ||
UserPermissions.value == Useridentity.Headquarters_customer_service, //
Financial_accounting: false, //
Result_review: false, //
defaultassignments: false, //
@ -875,11 +969,15 @@ const ButtonPermissions = computed(() => {
assignment: false, //
applyArbitration: false, //
batchFinish: false, //
DingTalkNumber: UserPermissions.value != Useridentity.Warehouse_customer_service, //, //
DingTalkNumber:
UserPermissions.value == Useridentity.Headquarters_customer_service ||
UserPermissions.value == Useridentity.Headquarters_Manager, //, //
Batchdetermination: false, //
ManagerConfirmed: false, //
ArbitrationDetermination: false, //
Financial_accounting: UserPermissions.value != Useridentity.Warehouse_customer_service, //
Financial_accounting:
UserPermissions.value == Useridentity.Headquarters_Manager ||
UserPermissions.value == Useridentity.Headquarters_customer_service, //
defaultassignments: false, //
Result_review: false, //
export_Report: true, //
@ -1903,6 +2001,99 @@ const CancelWorkOrderAppeal = row => {
})
.catch(() => {});
};
/**
* @description: [钉钉号填写] - 选择数据后点击钉钉号填写按钮出现弹窗
* @return {void}
*/
const DingTalk = () => {
if (!details.selectionList.length) {
ElMessage({
message: '请勾选数据',
type: 'warning',
});
return;
}
//
DingTalkfilling.value.dialogDingTalk = true;
};
/**
* @description: [钉钉号填写确认]
* @return {void}
*/
const DingTalkSubmit = async () => {
const { processNumber, reviewedBy, auditTime } = DingTalkfilling.value;
try {
//
DingTalkfilling.value.loading = true;
//
const data = {
processNumber, //
reviewedBy, //
auditTime, //
assignList: details.selectionList.map(item => item.id), // ID
};
let res = await $_updateWorkList(data);
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
//
DingTalkfilling.value.dialogDingTalk = false;
//
updateMenuAndData();
}
} catch (error) {
console.log(error);
} finally {
DingTalkfilling.value.loading = false;
}
};
/**
* @description: [财务入账]
* @return {void}
*/
const Financialfillingbtn = () => {
if (!details.selectionList.length) {
ElMessage({
message: '请勾选数据',
type: 'warning',
});
return;
}
//
FinancialFrom.value.loadingFinancial = true;
};
/**
* @description: [财务入账确定]
* @return {void}
*/
const FinancialfillingSubmit = async () => {
const { operator, entryTime } = FinancialFrom.value;
try {
FinancialFrom.value.dialog = true; //
const data = {
operator,
entryTime,
ids: details.selectionList.map(item => item.id).join(','),
};
let res = await $_updateFinanceTime(data);
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
FinancialFrom.value.loadingFinancial = false;
//
updateMenuAndData();
}
} catch (error) {
} finally {
FinancialFrom.value.loading = false; //
}
};
/**
* @description: [全部]常工单号跳转到详情信息页面
* @param {Object} row - 当前行数据
@ -2823,4 +3014,19 @@ const ProcessedExported = async dataID => {
}
}
}
//
:deep(.el_DingTalk) {
.el-form-item {
flex-direction: column;
.el-form-item__label {
justify-content: flex-start;
}
.el-form-item__content {
.el-input {
width: 100%;
}
}
}
}
</style>

2
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -840,7 +840,7 @@ const ruleForm = reactive({
],
orderCode: [
{ required: true, message: '请输入订单自编号', trigger: ['blur', 'change'] },
{ max: 30, message: '订单自编号最多30位', trigger: 'change' },
{ max: 70, message: '订单自编号最多70位', trigger: 'change' },
],
first: [
{ required: false, message: '请输入一级品', trigger: ['blur', 'change'] },

35
src/views/aftersales/aftersalesWorkOrderend.vue

@ -1258,23 +1258,22 @@ async function updateDictionary(targetArray, dictionaryType) {
//
const Completedsubmission = () => {
if (UserPermissions.value == Useridentity.Warehouse_customer_service && endFrom.value.arbitrate) {
if (endFrom.value.arbitrate) {
//
return true;
}
if (
UserPermissions.value == Useridentity.Headquarters_customer_service ||
UserPermissions.value == Useridentity.Headquarters_Manager
) {
//
if (UserPermissions.value == Useridentity.Headquarters_customer_service || UserPermissions.value == Useridentity.Headquarters_Manager) {
return true;
}
return false;
};
const CompletedPresentation = () => {
if (
UserPermissions.value == Useridentity.Headquarters_customer_service ||
UserPermissions.value == Useridentity.Headquarters_Manager
) {
if ( UserPermissions.value == Useridentity.Headquarters_customer_service || UserPermissions.value == Useridentity.Headquarters_Manager) {
//
if (['70'].includes($route.query.workOrderStatus)) {
return false;
}
if (['30'].includes($route.query.workOrderStatus)) {
return false;
}
@ -1323,7 +1322,7 @@ const Processingresultmodification = () => {
//
const Arbitrationcompleted = () => {
return false
return false;
if (
UserPermissions.value == Useridentity.Headquarters_customer_service ||
UserPermissions.value == Useridentity.Headquarters_Manager
@ -1338,6 +1337,16 @@ const Arbitrationcompleted = () => {
//
const Processingresultdisabled = () => {
//
if (['70'].includes($route.query.workOrderStatus)) {
if (
UserPermissions.value == Useridentity.Headquarters_customer_service ||
UserPermissions.value == Useridentity.Headquarters_Manager
) {
return true;
}
}
if (
UserPermissions.value == Useridentity.Warehouse_customer_service ||
UserPermissions.value == Useridentity.Headquarters_customer_service ||
@ -1641,7 +1650,7 @@ const onLoad = async () => {
});
}
console.log(endFrom.value, '表单信息');
await getDeptWarehouse({}).then(res => {
await getDeptWarehouse({}).then(res => {
//
console.log(res, '处理方');
console.log(localStorage.getItem('WarehouseName'), '当前本地仓库');
@ -2702,7 +2711,7 @@ const BatchReturn = () => {
})
.catch(() => {});
};
//
//
const ResultConfirmation = async () => {
ElMessageBox.confirm('是否确认审核?请注意查验数据正确性!', '提示', {
confirmButtonText: '确认',

17
src/views/basicdata/warehouse/tray/basicdataTrayedt.vue

@ -640,7 +640,7 @@ export default {
label: '订单自编号',
type: 30,
values: '',
width: '300',
width: '180',
checkarr: [],
fixed: false,
sortable: true,
@ -657,10 +657,21 @@ export default {
sortable: true,
head: false,
},
{
prop: 'mallName',
label: '商场名称',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'isFleeingName',
label: '是否窜货',
type: 30,
type: 1,
values: '',
width: '80',
checkarr: [
@ -682,6 +693,8 @@ export default {
sortable: true,
head: false,
},
{
prop: 'firsts',
label: '一级品类',

20
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -1504,32 +1504,20 @@ export default {
}
},
async openDialog(title, input) {
openDialog(title, input) {
this.popupTitle = title;
console.log(input, '输入框值1');
if (input) {
const formattedInput = await input.split(',').join('\n');
console.log(formattedInput, '输入框值2');
this.searchInput = formattedInput; // inputAll
this.searchInput = input.split(',').join('\n');
} else {
this.searchInput = '';
}
console.log(this.searchInput, '输入框值3');
this.dialogVisible = true;
},
handleSearchSubmit(value) {
const lines = value
.split('\n') //
.map(line => line.trim()) //
.filter(line => line !== ''); //
const joinedLines = lines.join(','); // 使
if (this.popupTitle == '订单自编号搜索') {
this.query.orderCodeNum = joinedLines; //
this.query.orderCodeNum = value; //
} else if (this.popupTitle == '运单号搜索') {
this.query.waybillNum = joinedLines; //
this.query.waybillNum = value; //
}
this.dialogVisible = false;
},

15
src/views/waybill/WaybillOrderList.vue

@ -471,28 +471,20 @@ const permissionObj = reactive({
}),
});
const dialogVisible = ref(false);
const popupTitle = ref('搜索弹窗');
const popupTitle = ref('');
const searchInput = ref('');
const openDialog = (title, input) => {
popupTitle.value = title;
console.log(input, 'input');
if (input) {
const formattedInput = input.split(',').join('\n');
searchInput.value = formattedInput; // inputAll
searchInput.value = input.split(',').join('\n'); // inputAll
} else {
searchInput.value = '';
}
dialogVisible.value = true;
};
const handleSearchSubmit = value => {
const lines = value
.split('\n') //
.map(line => line.trim()) //
.filter(line => line !== ''); //
const joinedLines = lines.join(','); // 使
if (popupTitle.value == '运单号搜索') {
query.value.waybillNoList = joinedLines; //
query.value.waybillNoList = value; //
}
dialogVisible.value = false;
};
@ -1121,5 +1113,4 @@ getListName({ name: '' }).then(res => {
.imgDialogVisible .el-dialog__body {
padding: 0;
}
</style>

Loading…
Cancel
Save