Browse Source

Merge branch 'dev' into pre-production

pre-production
pref_mail@163.com 5 months ago
parent
commit
468a13958f
  1. 13
      src/option/distribution/addVehicleStowage.js
  2. 2
      src/option/finance/WaybillAudit.js
  3. 6
      src/views/distribution/artery/AddVehicleStowage.vue
  4. 17
      src/views/distribution/artery/VehicleStowageDetails.vue
  5. 20
      src/views/distribution/inventory/BookingNote.vue
  6. 1
      src/views/distribution/inventory/CreateOrder.vue
  7. 4
      src/views/waybill/WaybillOrderList.vue

13
src/option/distribution/addVehicleStowage.js

@ -781,6 +781,18 @@ export const detailsColumnList = [
isshowSummary: true, isshowSummary: true,
sortable: true, sortable: true,
}, },
{
prop: 'goodsName',
label: '货物名称',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
isColumnMerge: true,
isshowSummary: false,
sortable: true,
},
{ {
prop: 'orderNum', prop: 'orderNum',
label: '件数', label: '件数',
@ -866,7 +878,6 @@ export const detailsColumnList = [
width: '130', width: '130',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
isshowSummary: true,
sortable: true, sortable: true,
}, },
// { // {

2
src/option/finance/WaybillAudit.js

@ -131,7 +131,7 @@ export const columnList = [
head: false, head: false,
}, },
{ {
prop: 'createTime', prop: 'openTime',
label: '开单时间', label: '开单时间',
type: 1, type: 1,
values: '', values: '',

6
src/views/distribution/artery/AddVehicleStowage.vue

@ -1332,9 +1332,11 @@ const onLoad = async () => {
const _item = this.selectQuery[key]; const _item = this.selectQuery[key];
// //
if (getObjType(_item) === 'string') { if (getObjType(_item) === 'string' && _item) {
console.log('222 :>> ', 222);
if (_item !== value[key]) _flag = false; if (_item !== value[key]) _flag = false;
} else if (getObjType(_item) === 'array') { } else if (getObjType(_item) === 'array' && _item.length > 0) {
console.log('123 :>> ', 123);
if (!_item.includes(value[key])) _flag = false; if (!_item.includes(value[key])) _flag = false;
} }

17
src/views/distribution/artery/VehicleStowageDetails.vue

@ -196,7 +196,7 @@
class="w100" class="w100"
ref="oldColumnListNode" ref="oldColumnListNode"
:columnList="details.detailsColumnList" :columnList="details.detailsColumnList"
:tableData="details.renderData" :tableData="detailsRenderData"
:loading="loadingObj.oldListLoading" :loading="loadingObj.oldListLoading"
@inputTxt="inputsc" @inputTxt="inputsc"
@timeCheck="timesc" @timeCheck="timesc"
@ -230,7 +230,7 @@
class="w100" class="w100"
ref="oldColumnListNode" ref="oldColumnListNode"
:columnList="details.detailsColumnList" :columnList="details.detailsColumnList"
:tableData="details.renderData" :tableData="detailsRenderData"
:loading="loadingObj.oldListLoading" :loading="loadingObj.oldListLoading"
@inputTxt="inputsc" @inputTxt="inputsc"
@timeCheck="timesc" @timeCheck="timesc"
@ -445,7 +445,7 @@
<el-dialog v-model="tcTableexport" title="导出" width="40%"> <el-dialog v-model="tcTableexport" title="导出" width="40%">
<Tableexportcomponent <Tableexportcomponent
:menuData="details.detailsColumnList" :menuData="details.detailsColumnList"
:data="details.renderData" :data="detailsRenderData"
></Tableexportcomponent> ></Tableexportcomponent>
</el-dialog> </el-dialog>
@ -468,6 +468,7 @@ import {
nextTick, nextTick,
watch, watch,
defineAsyncComponent, defineAsyncComponent,
shallowRef,
} from 'vue'; } from 'vue';
import functions from '@/utils/functions'; import functions from '@/utils/functions';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@ -662,6 +663,8 @@ const details = reactive<any>({
abnormalSelectionList: [], abnormalSelectionList: [],
}); });
const detailsRenderData = shallowRef([]);
const { search, query, shortcuts, data, loadingObj, selectionList, drawerShow, popUpShow, form } = const { search, query, shortcuts, data, loadingObj, selectionList, drawerShow, popUpShow, form } =
toRefs(details); toRefs(details);
@ -915,7 +918,7 @@ const handleData = async () => {
console.log('_data :>> ', _data); console.log('_data :>> ', _data);
if (_data.length === 0) return (details.renderData = []); if (_data.length === 0) return (detailsRenderData.value = []);
// //
let mergeStartIndex = 0; let mergeStartIndex = 0;
@ -944,9 +947,9 @@ const handleData = async () => {
console.log('_data :>> ', _data); console.log('_data :>> ', _data);
details.renderData = _data; detailsRenderData.value = _data;
handleTranslationDataSeclect(details.renderData, details.detailsColumnList); handleTranslationDataSeclect(detailsRenderData.value, details.detailsColumnList);
console.log('details.renderData :>> ', details.renderData); console.log('detailsRenderData.value :>> ', detailsRenderData.value);
}; };
/** 表格表头输入框搜索 */ /** 表格表头输入框搜索 */

20
src/views/distribution/inventory/BookingNote.vue

@ -326,7 +326,7 @@
<el-form-item label="运费:"> <el-form-item label="运费:">
<el-input <el-input
controls-position="right" controls-position="right"
v-model="details.totalObj.totalFreight" v-model="details.query.totalFreight"
disabled disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -545,13 +545,8 @@
<div> <div>
<el-form label-width="fit-content"> <el-form label-width="fit-content">
<el-row> <el-row>
<el-form-item label="运费:"> <el-form-item label="运费12414:">
<el-input <el-input readonly v-model="query.totalFreight" disabled></el-input>
readonly
controls-position="right"
v-model="details.totalObj.totalFreight"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="送货费:"> <el-form-item label="送货费:">
@ -916,7 +911,7 @@
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
v-if="BookingNote_edit && !query.checkUserId" v-if="BookingNote_edit && Number(query.checkStatus) === 0"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleEdit" @click="handleEdit"
> >
@ -1320,13 +1315,6 @@ const details = reactive<any>({
return curr; return curr;
}, 0); }, 0);
}), }),
/** 总运费 */
totalFreight: computed(() => {
return details.goodsList.reduce((curr, item) => {
if (item.subtotalFreight) return computeNumber(curr, '+', item.subtotalFreight).result;
return curr;
}, 0);
}),
}, },
/** 是否开启搜索 */ /** 是否开启搜索 */
search: true, search: true,

1
src/views/distribution/inventory/CreateOrder.vue

@ -4010,6 +4010,7 @@ const handleAssignmentItemPriceTrunkline = (value, trunkLine, template, chargeTy
/** 金牌 -- 干线特殊处理 */ /** 金牌 -- 干线特殊处理 */
const handleSpecialBrandPrice = (value, trunkLine, template) => { const handleSpecialBrandPrice = (value, trunkLine, template) => {
if (!isDisabled.value) return; if (!isDisabled.value) return;
console.log('isDisabled.value :>> ', isDisabled.value);
// 15 && 0.8 && / 0.11 , // 15 && 0.8 && / 0.11 ,
const { totalCount, totalVolume } = details.totalObj; const { totalCount, totalVolume } = details.totalObj;

4
src/views/waybill/WaybillOrderList.vue

@ -67,7 +67,7 @@
<el-button <el-button
type="primary" type="primary"
icon="Delete" icon="Delete"
v-if="permissionObj.WaybillOrderList_edit" v-if="permissionObj.WaybillOrderList_batchCancellation"
@click="handleBatchDelete" @click="handleBatchDelete"
>批量作废</el-button >批量作废</el-button
> >
@ -691,7 +691,7 @@ const editOrder = () => {
const _item = details.selectionList[0]; const _item = details.selectionList[0];
if (_item.checkUserName) return ElMessage.warning('该运单已审核,无法进行改单操作'); if (Number(_item.checkStatus) === 1) return ElMessage.warning('该运单已审核,无法进行改单操作');
if (Number(_item.waybillType) === 1 || _item.orderNo) { if (Number(_item.waybillType) === 1 || _item.orderNo) {
$store.commit('DEL_ONCE_TAG', '/distribution/inventory/CreateOrder'); $store.commit('DEL_ONCE_TAG', '/distribution/inventory/CreateOrder');

Loading…
Cancel
Save