Browse Source

待签收查看新增上搜索

dev
qb 10 months ago
parent
commit
395c333ee6
  1. 22
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue
  2. 82
      src/views/distribution/signfor/distributionSignforedt.vue

22
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -1583,17 +1583,6 @@ export default {
sortable: true,
head: false,
},
{
prop: 'loadingTime',
label: '装车时间',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'quantity',
label: '包件数量',
@ -1668,6 +1657,17 @@ export default {
sortable: true,
head: false,
},
{
prop: 'loadingTime',
label: '装车时间',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'signingTime',
label: '签收扫描时间',

82
src/views/distribution/signfor/distributionSignforedt.vue

@ -380,8 +380,9 @@
<tablecmt
class="goodsTable"
:columnList="item.columnList"
:tableData="data"
:tableData="item.data"
:loading="false"
@inputTxt="(value, row) => inputsc(value, row, item.type)"
>
</tablecmt>
@ -1081,7 +1082,7 @@ const menuData2 = ref([
{
prop: 'waybillNumber',
label: '运单号',
type: 1,
type: 2,
values: '',
width: '150',
checkarr: [],
@ -1092,7 +1093,7 @@ const menuData2 = ref([
{
prop: 'serviceNumber',
label: '服务号',
type: 1,
type: 2,
values: '',
width: '250',
checkarr: [],
@ -1103,7 +1104,7 @@ const menuData2 = ref([
{
prop: 'orderCode',
label: '订单自编号',
type: 1,
type: 2,
values: '',
width: '280',
checkarr: [],
@ -1114,7 +1115,7 @@ const menuData2 = ref([
{
prop: 'orderPackageCode',
label: '包条码',
type: 1,
type: 2,
values: '',
width: '200',
checkarr: [],
@ -1125,7 +1126,7 @@ const menuData2 = ref([
{
prop: 'warehouse',
label: '仓库',
type: 1,
type: 2,
values: '',
width: '150',
checkarr: [],
@ -1136,7 +1137,7 @@ const menuData2 = ref([
{
prop: 'sendWarehouseName',
label: '发站仓',
type: 1,
type: 2,
values: '',
width: '150',
checkarr: [],
@ -1147,7 +1148,7 @@ const menuData2 = ref([
{
prop: 'acceptWarehouseName',
label: '目的地',
type: 1,
type: 2,
values: '',
width: '150',
checkarr: [],
@ -1156,17 +1157,17 @@ const menuData2 = ref([
head: false,
},
{
prop: 'waybillNumber',
label: '发货时间',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
// {
// prop: 'waybillNumber',
// label: '',
// type: 1,
// values: '',
// width: '150',
// checkarr: [],
// fixed: false,
// sortable: true,
// head: false,
// },
{
prop: 'warehouseEntryTimeEnd',
label: '入库时间',
@ -1666,16 +1667,25 @@ const Tabs = ref([
label: '订单列表',
name: '0',
columnList: menuData1.value,
type: 'order',
query: {},
data: [],
},
{
label: '包件列表',
name: '1',
columnList: menuData2.value,
type: 'package',
query: {},
data: [],
},
{
label: '库存品列表',
name: '2',
columnList: menuData3.value,
type: 'inventory',
query: {},
data: [],
},
]);
//
@ -2081,8 +2091,11 @@ function PackageList() {
editLoading.value = true; //
data.value = [];
signforPackageList(RouterId.value).then(res => {
const { code } = res.data;
if (code !== 200) return;
console.log(res.data.data, '包件列表');
data.value = res.data.data || [];
Tabs.value[1].data = res.data.data;
editLoading.value = false; //
});
}
@ -2093,6 +2106,7 @@ function InventoryList() {
signforInventoryList(RouterId.value).then(res => {
console.log(res, '库存品列表');
data.value = res.data.data || [];
Tabs.value[2].data = data;
editLoading.value = false; //
});
}
@ -2271,6 +2285,36 @@ const ImgSuccessE = (response, uploadFile) => {
SignForPhotos.value[SignForPhotos.value.length - 1].url = response.data.link;
}
};
/** 输入框筛选 */
const inputsc = (value, row, type) => {
console.log('value :>> ', value);
console.log('row :>> ', row);
console.log('type :>> ', type);
const _item = Tabs.value.find(val => val.type === type);
const reg = new RegExp(value, 'i');
_item.query[row.prop] = reg;
if (value === '') delete _item.query[row.prop];
console.log('reg :>> ', reg);
if (Object.keys(_item.query).length === 0) return (_item.data = data.value);
const _data = data.value.filter(value => {
let _flag = true;
for (let key in _item.query) {
console.log('_item.query[key].test(value[key]) :>> ', _item.query[key].test(value[key]));
if (!_item.query[key].test(value[key])) _flag = false;
if (!_flag) break;
}
return _flag;
});
console.log('_data :>> ', _data);
_item.data = _data;
};
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save