Browse Source

修复已知bug

dev-xx
马远东 4 months ago
parent
commit
c20f430d11
  1. 12
      src/views/Pricesystem/Price/PriceWarehousing.vue
  2. 20
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 3
      src/views/distribution/signdetail/distributionSigndetail.vue

12
src/views/Pricesystem/Price/PriceWarehousing.vue

@ -336,9 +336,9 @@ const onLoad = async () => {
function handleFormUpdate(disableIndexAndCategory, unitLabel, tableTitle, perPiece = false) {
const unitMapping = {
按件计费: `${unitLabel}/件`,
'按重量计费(t)': `${unitLabel}/KG`,
'按吨计费(t)': `${unitLabel}/t`,
'按件计费': `${unitLabel}`,
'按重量计费(t)': `${unitLabel}`,
'按吨计费(t)': `${unitLabel}`,
};
const unit = unitMapping[tableTitle] || unitLabel;
@ -346,8 +346,10 @@ const onLoad = async () => {
updateLabelsWithUnit(unit, {
'30天内': '30天内',
'30天-60天': '30天-60天',
'60天外': '60天外',
上限: '上限',
'60天-90天': '60天-90天',
'60天-90天': '60天-90天',
'90天外': '90天外',
'上限': '上限',
});
tabform.value.title = tableTitle;

20
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -1104,22 +1104,18 @@ const handle = () => {
});
};
//
const Completionpermissions = computed(async () => {
if (await localStorage.getItem('my_data')) {
Mydata.value = await JSON.parse(localStorage.getItem('my_data')); //
const Completionpermissions = computed(() => {
const myDataStr = localStorage.getItem('my_data');
if (myDataStr) {
Mydata.value = JSON.parse(myDataStr);
}
if (CompensationParty.value.length) {
console.log(CompletedView.value, 'CompletedView.value');
if (CompensationParty.value && CompensationParty.value.length) {
if (CompletedView.value.includes(Mydata.value.id) || UserPermissions.value != '仓库客服') {
console.log(
CompletedView.value.includes(Mydata.id),
'CompletedView.value.includes(Mydata.id)'
);
return true;
} else {
return false;
}
}
}
return false;
});
const onLoad = async () => {
pageState.value = true; //

3
src/views/distribution/signdetail/distributionSigndetail.vue

@ -33,7 +33,7 @@
<script>
import { searchNode } from '@/api/distribution/distributionSignfor';
import { ElMessage } from 'element-plus'
import { ElMessage } from 'element-plus';
export default {
data() {
return {
@ -64,6 +64,7 @@ export default {
});
return;
}
this.activities = [];
this.loading = true;
await searchNode({
searchCode: this.query.searchCode,

Loading…
Cancel
Save