Browse Source

Merge remote-tracking branch 'origin/dev' into dev

fix_bug_pro20231227
big-y 1 year ago
parent
commit
fc5beed17c
  1. 150
      src/views/aftersales/VueTemp.vue
  2. 396
      src/views/distribution/checkInventoryTask/createTask.vue
  3. 6
      vite.config.js

150
src/views/aftersales/VueTemp.vue

@ -100,38 +100,54 @@
<basic-container>
<div class="avue-crud">
<!-- 搜索模块 -->
<el-row v-if="!search">
<el-row v-if="search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" class="el-fr-d">
<el-form-item label="交期:" class="el-times">
<!-- <el-input v-model="query.stockupArea" placeholder="请输入备货区"></el-input>-->
<div class="el_tims_box">
<el-form-item label="上报日期" class="el-times">
<el-date-picker
v-model="stockupDate"
v-model="value1"
type="daterange"
unlink-panels
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
:shortcuts="shortcuts"
clearable
start-placeholder="开始日期"
end-placeholder="结束日期"
:size="size"
/>
</el-form-item>
<el-form-item label="创建时间:" class="el-times">
<!-- <el-input v-model="query.stockupArea" placeholder="请输入备货区"></el-input>-->
<el-form-item label="处理时间" class="el-times">
<el-date-picker
v-model="stockupDate"
v-model="value1"
type="daterange"
unlink-panels
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
:shortcuts="shortcuts"
clearable
start-placeholder="开始日期"
end-placeholder="结束日期"
:size="size"
/>
</el-form-item>
<el-form-item label="送货时间" class="el-times">
<el-date-picker
v-model="value1"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:size="size"
/>
</el-form-item>
<el-form-item label="运损发现" class="el-times">
<el-date-picker
v-model="value1"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:size="size"
/>
</el-form-item>
</div>
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button type="primary" icon="el-icon-search"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
</el-form-item>
</el-form>
@ -398,12 +414,21 @@
label="配送司机"
v-if="groundlineSet || groundlineType == 3 || groundlineType == 4"
>
<el-input
<el-select
v-model="Indexform.deliveryDriver"
:disabled="FromDisabled"
multiple
filterable
default-first-option
:reserve-keyword="false"
placeholder="请输入配送司机"
clearable
>
<el-option
v-for="item in DeliveryDriver"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<!-- 必填 -->
<el-form-item label="异常问题描述">
@ -530,7 +555,7 @@
</el-form-item>
<el-form-item label="运损发现节点">
<el-select v-model="endFrom.a" class="m-2" placeholder="Select">
<el-select v-model="endFrom.a" class="m-2" clearable placeholder="请选择运损发现节点">
<el-option
v-for="item in TransportLossNode"
:key="item.value"
@ -810,10 +835,24 @@ const eightyPercentHeight = ref(0); // 80% 高度
const list = ref([]);
const options = ref([]);
const ProcessingList = ref([]); //
const DeliveryDriver = ref([
{
value: '0',
label: '兰溪',
},
{
value: '1',
label: '李华',
},
{
value: '2',
label: '唐飞',
},
]); //
const CompensationParty = ref([{ name: '', state: 0, num: 0, reason: '', cld: 1 }]); //
const details = reactive({
/** 是否开启搜索 */
search: true,
search: false,
/** 表格搜索条件 */
query: {},
/** 时间快捷选择设置 */
@ -1303,7 +1342,7 @@ const IndexTable = val => {
} else if (item.workOrderType == 5) {
item.workOrderTypeName = columnList[2].checkarr[4].label; //
}
//
if (item.discoveryNode == 1) {
item.discoveryNodeName = columnList[3].checkarr[0].label; //
} else if (item.discoveryNode == 2) {
@ -1385,7 +1424,13 @@ const AddInfo = () => {
//
const ConfirmForm = () => {
console.log(Indexform.value.deliveryDriver, 'Indexform.value.deliveryDriver');
console.log(Indexform.value.processor, 'Indexform.value.processor');
//
Indexform.value.deliveryDriver = DeliveryDriver.value.find(
item => item.value == Indexform.value.deliveryDriver
).label;
console.log(Indexform.value.deliveryDriver); //
FromDisabled.value = false; //
let processorEntityList = [];
let ProcessingParty = {
@ -1404,23 +1449,28 @@ const ConfirmForm = () => {
typesOf: 1,
};
processorEntityList.push(ResponsibleParty);
Indexform.value.processorEntityList = processorEntityList;
DataSubmit.processorEntityList = processorEntityList;
let DataSubmit = { ...Indexform.value };
delete DataSubmit.duty, //
delete DataSubmit.processor; //
console.log(DataSubmit, '处理好的表单信息');
Indexdialog.value = false; //
$_submit(DataSubmit).then(res => {
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
IndexTable();
}
});
// $_submit(DataSubmit).then(res => {
// if (res.data.code == 200) {
// ElMessage({
// message: res.data.msg,
// type: 'success',
// });
Indexform.value = {}; //
// IndexTable();
// }
// });
};
//
const searchHide = () => {
console.log(details);
details.search = !details.search;
};
//
const view = val => {
console.log(val, '当前行数据');
@ -1564,8 +1614,6 @@ const btnsc = val => {
console.log(val);
};
// //
// const updateDetailQuery = (index, propName, obj) => {
// //
@ -1592,7 +1640,6 @@ const btnsc = val => {
// }
// };
/** 表格表头下拉框选择 */
const selectsc = (index, row) => {
console.log('index :>> ', index);
@ -1612,10 +1659,16 @@ const selectionChange = list => {
};
/** 页码改变执行的回调 */
const currentChange = () => {
console.log('');
const currentChange = (val) => {
page.value.currentPage=val
IndexTable();
};
//
const sizeChange=(val)=>{
console.log(val);
page.value.pageSize=val
IndexTable();
}
const changeProcessingResults = val => {
//
ProcessingList.value = ProcessingList.value.filter(item => val.includes(item.state - 1));
@ -1837,7 +1890,7 @@ const changeProcessingResults = val => {
}
.lptime {
margin-top: 30px;
padding-left: 50px;
padding-left: 60px;
display: flex;
flex-direction: column;
font-size: 14px;
@ -1899,4 +1952,17 @@ const changeProcessingResults = val => {
align-items: flex-end;
margin-bottom: 10px;
}
.el-times{
:deep(.el-input__wrapper){
height: 30px !important;
}
}
.el_tims_box{
display: flex;
}
.el-btn{
width: 100%;
}
</style>

396
src/views/distribution/checkInventoryTask/createTask.vue

@ -31,6 +31,8 @@
</el-icon>
创建盘点任务</el-button
>
<el-button type="primary" @click="discard"> 废弃</el-button>
<el-button type="primary" @click="DelayButton"> 延期</el-button>
</div>
<div>
<el-button icon="el-icon-refresh" @click="Refresh" circle></el-button>
@ -90,40 +92,17 @@
<template #default="props">
<img :src="props.row[item.prop]" class="el-Img" v-if="item.type === 2" />
<div :class="ElBtnClass" v-if="item.type == 3">
<el-button
@click="ViewEvent(props.row)"
>已盘点明细</el-button
>
<el-button
@click="DetailsNotCounted(props.row)"
>未盘点明细</el-button
>
<el-button
@click="Discard(props.row)"
>废弃</el-button
>
<el-button
@click="extension(props.row)"
>延期</el-button
>
<el-button
<div class="ElBtnClass" v-if="item.type == 3">
<el-button @click="ViewEvent(props.row)">已盘点明细</el-button>
@click="comparativeData(props.row)"
>对比数据</el-button
>
<el-button @click="DetailsNotCounted(props.row)">未盘点明细</el-button>
<!-- <el-button @click="Discard(props.row)">废弃</el-button>
<el-button @click="extension(props.row)">延期</el-button> -->
<el-button @click="comparativeData(props.row)">对比数据</el-button>
</div>
<div v-if="item.type == 5 && item.prop == 'questNum'">
{{
props.row[item.prop] ? props.row[item.prop] : '/'
}}
{{ props.row[item.prop] ? props.row[item.prop] : '/' }}
<span class="el-exDc" @click="ExportDC(props.row)">导出</span>
</div>
<span v-if="item.type == 7">{{
props.row[item.prop] == 1 ? '全部' : props.row[item.prop] == 2 ? '全仓' : '/'
@ -163,7 +142,13 @@
</div>
<!-- 弹窗详情 -->
<el-dialog v-model="PopupDetails" :title="!InventoryState?'盘点数据':'未盘点数据'" width="80%" :before-close="handleClose" :fullscreen="fullScreen">
<el-dialog
v-model="PopupDetails"
:title="!InventoryState ? '盘点数据' : '未盘点数据'"
width="80%"
:before-close="handleClose"
:fullscreen="fullScreen"
>
<div style="margin-bottom: 10px">
<div style="display: flex">
<!-- v-if="TcMInventoryStatus" -->
@ -182,7 +167,6 @@
<div class="fullScreen" @click="BtnfullScreen">
<el-icon><FullScreen /></el-icon>
</div>
</div>
</div>
<!-- 表格开始 -->
@ -250,6 +234,23 @@
:value="item.value"
/>
</el-select>
<!-- 日期搜索 -->
<el-date-picker
v-if="item.type == 8"
v-model="TcFrom[item.prop]"
type="datetimerange"
format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD HH:mm:ss"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
@change="TcChenge($event, item)"
/>
</template>
<template #default="props">
<span v-if="item.type == 6 && item.prop == 'questStatus'">
@ -289,7 +290,12 @@
<span v-if="item.type == 10 && item.prop == 'materialCode'">
<!-- 下拉搜索 -->
<el-select v-if="props.row.wLinputState" v-model="props.row.Input" filterable placeholder="请输入物料编码" >
<el-select
v-if="props.row.wLinputState"
v-model="props.row.Input"
filterable
placeholder="请输入物料编码"
>
<el-option
v-for="item in Wloptions"
:key="item.value"
@ -297,14 +303,14 @@
:value="item.value"
/>
</el-select>
<el-input v-else
@change='wLcheng(props.row,props.row)'
<el-input
v-else
@change="wLcheng(props.row, props.row)"
clearable
:disabled="props.row.Checkbox"
v-model="props.row.Input"
:placeholder="`请输入${item.label}`"
/>
</span>
<div :class="ElBtnClass" v-if="item.type == 3 && !NotCounted">
<el-button
@ -443,8 +449,6 @@
</el-checkbox-group>
</el-form-item>
<el-form-item label="新的货位">
<el-select-v2
v-model="WrapBarEditing.groundingPositionCode"
@ -519,19 +523,14 @@
</el-dialog>
</el-dialog>
<!-- 创建盘点弹窗 -->
<el-dialog
v-model="InventoryPopup"
title="创建盘点任务"
width="30%"
>
<el-dialog v-model="InventoryPopup" title="创建盘点任务" width="30%">
<el-form :model="formInventory" label-width="120px">
<el-form-item label="商场名称">
<el-select
multiple
v-model="formInventory.scname"
class="m-2"
filterable
placeholder="请选择商场"
size="large"
@change="formInventoryChange"
>
<el-option
@ -543,11 +542,12 @@
</el-select>
</el-form-item>
<el-form-item label="品牌">
<el-input v-model="formInventory.brandName" disabled placeholder="品牌名称" />
</el-form-item>
<el-form-item label="盘点时间">
<el-form-item label="盘点时间" class="pdsj">
<el-date-picker
v-model="formInventory.time"
type="datetimerange"
@ -674,7 +674,7 @@ import {
$_getList,
$_postBatchDelete,
} from '@/api/distribution/createTask';
import { ElMessageBox } from 'element-plus'
import { ElMessageBox } from 'element-plus';
import { ElMessage } from 'element-plus';
import { downloadXls } from '@/utils/util';
import { getDictionaryBiz } from '@/api/system/dict';
@ -708,6 +708,7 @@ const Tcrow = ref(); //弹窗当前行
const WrapBarEditing = ref({}); //
const PopupEditing = ref(false); //
const ElBtnClass = ref(null);
const DiskStatus=ref(true);//
const UncountedDetails = ref(); //
const contrastData = ref([]); //
const dialogcontrast = ref(false); //
@ -727,10 +728,12 @@ const TcReaJoin = ref([]); //零担库存品状态10,20,30...
const TcDataaddition = ref(false); //
const Fromnewlyadded = ref({}); //
const screenHeight = ref(0); //
const HomepageDelay = ref(null); //
const eightyPercentHeight = ref(0); // 80%
const Statusjudgment = ref(false); //
const DbEx = ref(null); //
const fullScreen = ref(false); //
const BatchAbandonment = ref([]); //
const radioList = ref([
{ label: 0, txt: '在库', input: 'stockNum', disabled: true },
{ label: 1, txt: '破损', input: 'wornNum', disabled: true },
@ -835,6 +838,17 @@ const menuData = ref([
search: false,
head: true,
},
{
prop: 'stockNum',
label: '数量',
type: 5,
values: '',
width: '260',
checkarr: [],
fixed: false,
search: true,
head: true,
},
{
prop: 'questType',
label: '类型',
@ -862,7 +876,7 @@ const menuData = ref([
label: '操作',
type: 3,
values: '',
width: '430',
width: '230',
checkarr: [],
fixed: 'right',
search: false,
@ -969,6 +983,17 @@ const InventoryDetails = ref([
search: true,
head: true,
},
{
prop: 'stockNum',
label: '数量',
type: 5,
values: '',
width: '260',
checkarr: [],
fixed: false,
search: true,
head: true,
},
{
prop: 'trayCode',
label: '托盘码',
@ -1005,9 +1030,9 @@ const InventoryDetails = ref([
{
prop: 'inventoryDate',
label: '盘点时间',
type: 5,
type: 8,
values: '',
width: '150',
width: '350',
checkarr: [],
fixed: false,
search: false,
@ -1240,9 +1265,9 @@ const contrast = ref([
{
prop: 'inventoryDate',
label: '盘点时间',
type: 4,
type: 8,
values: '',
width: '150',
width: '350',
checkarr: [],
fixed: false,
search: false,
@ -1337,11 +1362,11 @@ const ElButtonS = ref([
]);
//
const IndexPd=(val)=>{
const IndexPd = val => {
let Data = {
current: currentPage.value, //
size: pageSize.value, //
...val
...val,
};
getTaskQuestPage(Data).then(res => {
console.log(res, '获取盘点列表');
@ -1359,11 +1384,11 @@ const IndexPd=(val)=>{
ElData.value = res.data.data.records;
}
});
}
};
//
const BtnfullScreen = () => {
fullScreen.value = !fullScreen.value;
}
};
function onLoad() {
//
@ -1385,7 +1410,7 @@ function onLoad() {
});
loading.value = true; //
IndexPd()
IndexPd();
// let Data = {
// current: currentPage.value, //
// size: pageSize.value, //
@ -1411,21 +1436,19 @@ function onLoad() {
//
onLoad();
//
const InInputSo = (values, val) => {
console.log(values, val);
let data = {
[val.prop]:values
}
[val.prop]: values,
};
console.log(data);
IndexPd(data)
}
IndexPd(data);
};
//
const InputSo = val => {
TcPdloading.value=true
TcPdloading.value = true;
console.log(val, '搜索框接收的值');
let data = {};
console.log(row.value, 'row.value');
@ -1495,7 +1518,7 @@ const InputSo = val => {
res.data.data.records.forEach(item => {
item.Checkbox = true;
item.wLinputState = false;
item.Input=null
item.Input = null;
});
TcPdloading.value = false;
console.log(res, '明细返回值222');
@ -1508,27 +1531,26 @@ const TcAddData = () => {
TcDataaddition.value = true; //
};
//
const DbExTc=(data)=>{
const DbExTc = data => {
$_exportGetContrastInfo({
id: data.id,
questNum:data.questNum
questNum: data.questNum,
}).then(res => {
console.log(res, '导出');
downloadXls(res.data, `${data.questNum}对比明细.xlsx`)
})
}
downloadXls(res.data, `${data.questNum}对比明细.xlsx`);
});
};
//
const ExportDC = (val) => {
const ExportDC = val => {
//
console.log(val);
DbExTc(val)
DbExTc(val);
};
//
const MXexport = () => {
//
DbExTc(DbEx.value)
}
DbExTc(DbEx.value);
};
// ()
const TcDataadditionsubmit = () => {
@ -1565,10 +1587,11 @@ const TcDataadditionsubmit = () => {
Statusjudgment.value = false; //
};
//
const selectChange = (select, val) => {
console.log('触发了选择');
HomepageDelay.value = val; //
console.log('首页触发了选择');
BatchAbandonment.value = select; //
console.log(select, val);
PdRow.value = select;
};
@ -1607,13 +1630,19 @@ const extension = val => {
//
const BatchDelete = () => {};
//
const InventoryDate = () => {
if (!HomepageDelay.value) {
ElMessage({
message: '请选择需要延期的数据(单选操作)',
type: 'warning',
});
return;
}
console.log(TcData.value, '延期');
$_updateDate({
id: row.value.id,
startTime: row.value.startTime,
id: HomepageDelay.value.id,
startTime: HomepageDelay.value.startTime,
endTime: TcData.value,
}).then(res => {
dialogTabData.value = false;
@ -1651,7 +1680,7 @@ const InventoryModification = () => {
questId: item.questId,
questNum: row.value.questNum,
name: item.Input,
questStatus: 1
questStatus: 1,
});
});
console.log(data, '要提交的数据');
@ -1697,7 +1726,7 @@ const TcViewEvent = (val,Inso) => {
current: TccurrentPage.value, //
size: TcpageSize.value, //
questStatus: 1,
...Inso
...Inso,
};
console.log(data, '要提交的数据');
@ -1706,7 +1735,7 @@ const TcViewEvent = (val,Inso) => {
res.data.data.records.forEach(item => {
item.Checkbox = true;
item.wLinputState = false;
item.Input=null
item.Input = null;
});
TcPdloading.value = false;
console.log(res, '明细返回值');
@ -1715,9 +1744,10 @@ const TcViewEvent = (val,Inso) => {
};
//
const ViewEvent = val => {
DiskStatus.value=true;//
InventoryDetails.value.forEach(item => {
item.values=null
})
item.values = null;
});
InventoryState.value = false; //
TccurrentPage.value = 1; //
NotCounted.value = false; //
@ -1733,11 +1763,11 @@ const ViewEvent = val => {
TcViewEvent(row.value);
};
//
const Discard=(val)=>{
const Discard = val => {
console.log(val);
let data=[]
data.push(val.id)
let ids = data.join(',')
let data = [];
data.push(val.id);
let ids = data.join(',');
console.log(data);
ElMessageBox.confirm('是否废弃该盘点任务?')
.then(() => {
@ -1747,18 +1777,15 @@ const Discard=(val)=>{
ElMessage({
message: '删除成功.',
type: 'success',
})
});
}
IndexPd()
})
IndexPd();
});
})
.catch(() => {
// catch error
})
}
});
};
//
const NotCountedFn = (row, Inso, type = 0) => {
TcPdloading.value = true;
@ -1768,14 +1795,14 @@ const NotCountedFn = (row,Inso,type=0) => {
questId: row.id,
current: TccurrentPage.value, //
size: TcpageSize.value, //
...Inso
...Inso,
}).then(res => {
TcPdloading.value = false;
console.log(res, '未盘点明细返回值');
res.data.data.records.forEach(item => {
item.Checkbox = true;
item.wLinputState = false;
item.Input=null
item.Input = null;
});
TcPD.value = res.data.data.records;
Tctotal.value = res.data.data.total; //
@ -1784,9 +1811,10 @@ const NotCountedFn = (row,Inso,type=0) => {
//
const DetailsNotCounted = row => {
DiskStatus.value=false;//
InventoryDetails.value.forEach(item => {
item.values=null
})
item.values = null;
});
UncountedDetails.value = row;
InventoryState.value = true; //
TcFrom.value = {}; //
@ -1801,14 +1829,6 @@ const DetailsNotCounted = row => {
console.log(row.value, '未盘点明细存储值');
};
//
const NotInventoried = val => {
if (!Tcrow.value) {
@ -2051,18 +2071,17 @@ const StatusDetermination = () => {
}
};
const optionss = ref([])
const list = ref([])
const remoteMethod = (query) => {
const optionss = ref([]);
const list = ref([]);
const remoteMethod = query => {
if (query !== '') {
optionss.value = list.value.filter((item) => {
return item.label.toLowerCase().includes(query.toLowerCase())
})
optionss.value = list.value.filter(item => {
return item.label.toLowerCase().includes(query.toLowerCase());
});
} else {
optionss.value = []
}
optionss.value = [];
}
};
//
const Tclist = val => {
console.log(val);
@ -2080,34 +2099,34 @@ const Tclist = val => {
};
//
const Wllist = ref([])
const WLCode = (query) => {
const Wllist = ref([]);
const WLCode = query => {
if (query !== '') {
optionss.value = Wllist.value.filter((item) => {
return item.label.toLowerCase().includes(query.toLowerCase())
})
optionss.value = Wllist.value.filter(item => {
return item.label.toLowerCase().includes(query.toLowerCase());
});
} else {
optionss.value = []
}
optionss.value = [];
}
};
//
const Wloptions = ref([])
const Wloptions = ref([]);
//
const wLcheng = (val, info) => {
console.log(val.undefined);
console.log(info, '信息');
$_materialList({
name:val.undefined
name: val.undefined,
}).then(res => {
console.log(res, '物料查询');
if (!res.data.data.records.length) {
ElMessageBox.confirm('暂无数据是否新增?')
.then(() => {
TcDataaddition.value=true
TcDataaddition.value = true;
})
.catch(() => {
// catch error
})
});
} else {
// productCode
// wLinputState.value=true;//
@ -2115,17 +2134,14 @@ const wLcheng=(val,info)=>{
info.wLinputState = true;
// Wloptions.value
res.data.data.records.forEach(item => {
Wloptions.value.push(
{
Wloptions.value.push({
label: item.name,
value:item.name
}
)
})
}
})
value: item.name,
});
});
}
});
};
//
const InventoryEditing = val => {
@ -2137,13 +2153,12 @@ const InventoryEditing = val => {
console.log(res);
if (res.data.data.records) {
list.value= res.data.data.records.map((item) => {
return { value:`${item.id}`, label: `${item.qrCode}` }
})
list.value = res.data.data.records.map(item => {
return { value: `${item.id}`, label: `${item.qrCode}` };
});
console.log(list.value);
}
})
});
counting.value = {}; //
WrapBarEditing.value.radio = null;
@ -2199,7 +2214,7 @@ const InformationEditing = () => {
let val = list.value.find(obj => obj.value == WrapBarEditing.value.groundingPositionCode);
console.log(data, '货位处理好的数据');
data[0].groundingAllocationId = val.value;
data[0].groundingPositionCode=val.label
data[0].groundingPositionCode = val.label;
}
if (!TcStateSwitching.value) {
//
@ -2252,12 +2267,15 @@ const InformationEditing = () => {
//
const TcChenge = (event, val) => {
// startTime
// EndTime
event[0]
console.log(event, val);
TcPdloading.value = true;
console.log(row.value, '必须参数');
console.log(row.value.questNum, 'questNum');
let quest=row.value.questNum
let qstId=row.value.id
let quest = row.value.questNum;
let qstId = row.value.id;
let data = {
current: TccurrentPage.value, //
size: TcpageSize.value, //
@ -2265,15 +2283,22 @@ const TcChenge = (event, val) => {
questNum: quest,
questId: qstId,
};
data.startTime=event[0]
data.EndTime=event[1]
delete data.inventoryDate
if ( DiskStatus.value) {
data.questStatus = 1;
}else{
data.questStatus = 0;
}
console.log(data, '要提交的数据');
$_getDetailInfo(data).then(res => {
Tctotal.value = res.data.data.total;
res.data.data.records.forEach(item => {
item.Checkbox = true;
item.wLinputState = false;
item.Input=null
item.Input = null;
});
TcPdloading.value = false;
console.log(res, '明细返回值');
@ -2351,7 +2376,8 @@ const Refresh = () => {
//
const InventoryTask = () => {
formInventory.value={}
formInventory.value = {};
formInventory.value.scname = [];
let select = [];
InventoryPopup.value = true; //
getDictList().then(res => {
@ -2407,6 +2433,7 @@ const InventorySubmit = () => {
//
let SubData = {};
SubData.list = [];
console.log(formInventory.value.scname, 'formInventory.value.scname.length');
if (!formInventory.value.scname.length && !formInventory.value.brandName) {
//
SubData.list = [];
@ -2450,10 +2477,57 @@ const InventorySubmit = () => {
SubData.startTime = formInventory.value.time[0];
console.log(SubData, '处理好要提交的数据');
InventoryPopup.value = false; //
// postAddtaskQuest(SubData).then(res => {
// console.log(res, '');
// onLoad(); //
// });
postAddtaskQuest(SubData).then(res => {
console.log(res, '盘点计划提交成功');
onLoad(); //
});
};
//
const discard = () => {
if (!BatchAbandonment.value.length) {
ElMessage({
message: '请选择废弃盘点任务(可批量)',
type: 'warning',
});
return;
}
console.log('废弃按钮');
let ids = [];
BatchAbandonment.value.forEach(item => {
ids.push(item.id);
});
ids = ids.join(',');
ElMessageBox.confirm('是否废弃该盘点任务?')
.then(() => {
console.log(ids, '处理好的数据');
$_postBatchDelete({ ids }).then(res => {
console.log(res, '删除成功');
if (res.data.code == 200) {
ElMessage({
message: '删除成功.',
type: 'success',
});
}
IndexPd();
});
})
.catch(() => {
// catch error
});
};
//
const DelayButton = () => {
if (!HomepageDelay.value) {
ElMessage({
message: '请选择需要延期的数据(单选操作)',
type: 'warning',
});
return;
}
console.log('延期');
dialogTabData.value = true;
};
</script>
@ -2497,8 +2571,6 @@ const InventorySubmit = () => {
padding: 0 10px;
}
.demo-pagination-block {
flex: 1;
display: flex;
@ -2536,7 +2608,6 @@ const InventorySubmit = () => {
display: flex;
justify-content: flex-end;
margin-top: 80px;
}
.Tcstate {
@ -2614,9 +2685,20 @@ const InventorySubmit = () => {
}
:deep(.el-input__wrapper) {
height: 30px;
}
:deep(.el-input__inner) {
height: 100% !important;
}
.pdsj {
:deep(.el-input__wrapper) {
height: 30px !important;
}
}
.ElBtnClass {
.el-button {
padding: 0;
border: none;
background-color: transparent;
}
}
</style>

6
vite.config.js

@ -21,10 +21,12 @@ export default ({ mode, command }) => {
// 老zyc
// target: 'http://192.168.10.75:8777',
// 新zyc
target: 'http://192.168.6.141:8777',
// target: 'http://192.168.6.141:8777',
target: 'http://192.168.6.116:8777',
// tjj
// target: 'http://192.168.10.25:13000',
// cg
// target: 'http://192.168.10.200:13000',
// target: 'http://192.168.10.94:8888',
// target: 'http://test.api.huitongys.com',
// target: 'http://h5uapi.huitongys.com',

Loading…
Cancel
Save