Browse Source

修复三方司机报错

dev
qb 1 month ago
parent
commit
a60a5db6e9
  1. 2
      src/api/distribution/addTripartiteTransfer.js
  2. 2
      src/views/distribution/artery/addTripartiteTransfer.vue
  3. 20
      src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue

2
src/api/distribution/addTripartiteTransfer.js

@ -67,7 +67,7 @@ export const postSaveNewTripartiteTransfer = data => {
};
/**
* 新增配载计划
* 编辑配载计划
*/
export const postUpdateTripartiteTransfer = data => {
return request({

2
src/views/distribution/artery/addTripartiteTransfer.vue

@ -1167,6 +1167,7 @@ const back = () => {
const addSubmit = async () => {
const submitData = {
...form.value,
driverMobile: '11',
addCarsLoadLineList: [
{
nodeType: '1',
@ -1211,6 +1212,7 @@ const addSubmit = async () => {
const editSubmit = async () => {
const submitData = {
...form.value,
driverMobile: '11',
addCarsLoadLineList: [
{
nodeType: '1',

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

@ -168,7 +168,7 @@
@size-change="sizeChange"
@current-change="currentChange"
:current-page="page.currentPage"
:page-sizes="[30, 50, 80, 120,200]"
:page-sizes="[30, 50, 80, 120, 200]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total"
@ -467,18 +467,19 @@ import {
getObjType,
handleClearTableQuery,
handleSelectQuery,
handleTranslationDataSeclect,
} from '@/utils/util';
import { columnList } from '@/option/distribution/distributionStockArticleSelf';
import { deepClone, hanleTextLineFeed } from '@/utils/util.js';
import { ElMessage, ElMessageBox } from 'element-plus';
const _newCol = deepClone(columnList);
for (let i = 0; i < _newCol.length; i++) {
const val = _newCol[i];
// for (let i = 0; i < _newCol.length; i++) {
// const val = _newCol[i];
if (val.label !== '超时状态') continue;
_newCol.splice(i, 1);
break;
}
// if (val.label !== '') continue;
// _newCol.splice(i, 1);
// break;
// }
export default {
data() {
return {
@ -1297,10 +1298,9 @@ export default {
item.transferQuantity = nuMap[item.transferQuantity] || item.transferQuantity;
item.availableQuantity = nuMap[item.availableQuantity] || item.availableQuantity;
item.notReceived = parseInt(item.totalNumber) - parseInt(item.incomingNum);
item.isZeroName = Number(item.isZero) === 0 ? '否' : '是';
item.completeSetName = Number(item.completeSet) === 2 ? '已齐套' : '未齐套';
}
handleTranslationDataSeclect(this.data, this.columnList);
this.selectionClear();
} catch (error) {
console.log('error :>> ', error);

Loading…
Cancel
Save