缺陷修复

dev-scheduling
jinna 1 month ago
parent 6722345903
commit df16ca903f
  1. BIN
      src/assets/add.png
  2. BIN
      src/assets/pause.png
  3. BIN
      src/assets/play.png
  4. 22
      src/views/inboundOutboundManagement/glassCakeOutbound/index.vue
  5. 9
      src/views/inboundOutboundManagement/materialIssuing.vue
  6. 5
      src/views/loanManagement/loanHistory.vue
  7. 52
      src/views/orderManagement/components/exception/dataMissing.vue
  8. 52
      src/views/orderManagement/components/exception/deliveryDate.vue
  9. 160
      src/views/orderManagement/components/exception/processMissing.vue
  10. 52
      src/views/orderManagement/components/exception/resourceMissing.vue
  11. 15
      src/views/orderManagement/planYieIdOrder.vue
  12. 16
      src/views/orderManagement/sinTerYieIdOrder.vue
  13. 2
      src/views/productionTesting/InspectionTemplate.vue
  14. 102
      src/views/productionTesting/productionQuality.vue
  15. 8
      src/views/warehouseManagement/additionalPlan/components/additionalPlan.vue
  16. 7
      src/views/warehouseManagement/leveragingManagement.vue
  17. 5
      src/views/warehouseManagement/materialExpiration/expire.vue
  18. 5
      src/views/warehouseManagement/teamRequest/index.vue
  19. 8
      src/views/warehouseManagement/warehouseRequest/components/record.vue
  20. 5
      src/views/warehouseManagement/workwearPlan/index.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

@ -298,7 +298,7 @@ export default {
}, },
{ {
label: "预计领料日期", label: "预计领料日期",
prop: "goodsCode", prop: "estUseTime",
search: true, search: true,
width: 120, width: 120,
searchLabelWidth: 100, searchLabelWidth: 100,
@ -308,12 +308,12 @@ export default {
startPlaceholder: "开始时间", startPlaceholder: "开始时间",
endPlaceholder: "结束时间", endPlaceholder: "结束时间",
}, },
{ // {
label: "预计使用时间", // label: "使",
prop: "estUseTime", // prop: "estUseTime",
search: false, // search: false,
width: 120, // width: 120,
}, // },
{ {
label: "创建时间", label: "创建时间",
prop: "createTime", prop: "createTime",
@ -515,10 +515,16 @@ export default {
}, },
onLoad() { onLoad() {
// this.loading = true // this.loading = true
let params = {
...this.query,
startEstUseTime: this.query && this.query.estUseTime && this.query.estUseTime.length != 0 && this.query.estUseTime[0],
endEstUseTime: this.query && this.query.estUseTime && this.query.estUseTime.length != 0 && this.query.estUseTime[1],
}
if(params.estUseTime) delete params.estUseTime
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...this.query ...params
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -517,10 +517,17 @@ export default {
}, },
onLoad() { onLoad() {
this.loading = true this.loading = true
console.log('query==============',this.query)
let params = {
...this.query,
startCrDate:this.query && this.query.crDate && this.query.crDate.length > 0 && this.query.crDate[0],
endCrDate:this.query && this.query.crDate && this.query.crDate.length > 0 && this.query.crDate[1],
}
if(params.crDate) delete params.crDate
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...this.query ...params
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -511,11 +511,12 @@ export default {
startLeDate:this.query.leDate && this.query.leDate.length != 0 && this.query.leDate[0], startLeDate:this.query.leDate && this.query.leDate.length != 0 && this.query.leDate[0],
endLeDate:this.query.leDate && this.query.leDate.length != 0 && this.query.leDate[1], endLeDate:this.query.leDate && this.query.leDate.length != 0 && this.query.leDate[1],
} }
const {leDate,...searchParam} = param // const {leDate,...searchParam} = param
if(param.leDate) delete param.leDate
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...searchParam ...param
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -264,6 +264,23 @@ export default {
}, },
], ],
}, },
{
label: '生产订单',
prop: 'yoCode',
search: false,
sortable: true,
width: 150,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入生产订单',
trigger: 'blur',
},
],
},
{ {
label: '零件号', label: '零件号',
prop: 'partCode1', prop: 'partCode1',
@ -346,12 +363,47 @@ export default {
}, },
], ],
}, },
{
label: '流程卡号',
prop: 'cardNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入流程卡号',
trigger: 'blur',
},
],
},
{
label: '批次号',
prop: 'batchNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入批次号',
trigger: 'blur',
},
],
},
{ {
label: '镀种', label: '镀种',
prop: 'plate', prop: 'plate',
search: false, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
width: 150,
span: 12, span: 12,
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',

@ -145,6 +145,23 @@ export default {
}, },
], ],
}, },
{
label: '生产订单',
prop: 'yoCode',
search: false,
sortable: true,
width: 150,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入生产订单',
trigger: 'blur',
},
],
},
{ {
label: '零件号', label: '零件号',
prop: 'partCode1', prop: 'partCode1',
@ -227,12 +244,47 @@ export default {
}, },
], ],
}, },
{
label: '流程卡号',
prop: 'cardNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入流程卡号',
trigger: 'blur',
},
],
},
{
label: '批次号',
prop: 'batchNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入批次号',
trigger: 'blur',
},
],
},
{ {
label: '镀种', label: '镀种',
prop: 'plate', prop: 'plate',
search: false, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
width: 150,
span: 12, span: 12,
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',

@ -28,6 +28,9 @@
<template #productIdent="{ row }"> <template #productIdent="{ row }">
<el-tag>{{ row.productIdent }}</el-tag> <el-tag>{{ row.productIdent }}</el-tag>
</template> </template>
<template #validationMomo="{row}">
<el-text type="danger">{{ row.validationMomo }}</el-text>
</template>
<template #curStatusText="{ row }"> <template #curStatusText="{ row }">
<el-tag v-if="row.curStatusText == '已派工'">{{ row.curStatusText }}</el-tag> <el-tag v-if="row.curStatusText == '已派工'">{{ row.curStatusText }}</el-tag>
<el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'"> <el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'">
@ -129,6 +132,23 @@ export default {
align: 'center', align: 'center',
column: [ column: [
{
label: '工艺异常原因',
prop: 'validationMomo',
search: false,
sortable: true,
width: 120,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入工艺异常原因',
trigger: 'blur',
},
],
},
{ {
label: '计划单号', label: '计划单号',
prop: 'ypCode', prop: 'ypCode',
@ -146,6 +166,23 @@ export default {
}, },
], ],
}, },
{
label: '生产订单',
prop: 'yoCode',
search: false,
sortable: true,
width: 150,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入生产订单',
trigger: 'blur',
},
],
},
{ {
label: '零件号', label: '零件号',
prop: 'partCode1', prop: 'partCode1',
@ -228,12 +265,47 @@ export default {
}, },
], ],
}, },
{
label: '流程卡号',
prop: 'cardNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入流程卡号',
trigger: 'blur',
},
],
},
{
label: '批次号',
prop: 'batchNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入批次号',
trigger: 'blur',
},
],
},
{ {
label: '镀种', label: '镀种',
prop: 'plate', prop: 'plate',
search: false, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
width: 150,
span: 12, span: 12,
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
@ -339,57 +411,40 @@ export default {
}, },
], ],
}, },
{ // {
label: '工艺异常原因', // label: '',
prop: 'ypQty', // prop: 'ypQty',
search: false, // search: false,
sortable: true, // sortable: true,
width: 120, // width: 120,
span: 12, // span: 12,
headerAlign: 'center', // headerAlign: 'center',
align: 'center', // align: 'center',
rules: [ // rules: [
{ // {
required: true, // required: true,
message: '请输入工艺异常原因', // message: '',
trigger: 'blur', // trigger: 'blur',
}, // },
], // ],
}, // },
{ // {
label: '工艺任务编号', // label: '',
prop: 'ypQty', // prop: 'ypQty',
search: false, // search: false,
sortable: true, // sortable: true,
width: 120, // width: 120,
span: 12, // span: 12,
headerAlign: 'center', // headerAlign: 'center',
align: 'center', // align: 'center',
rules: [ // rules: [
{ // {
required: true, // required: true,
message: '请输入工艺任务编号', // message: '',
trigger: 'blur', // trigger: 'blur',
}, // },
], // ],
}, // },
{
label: '工艺任务状态',
prop: 'ypQty',
search: false,
sortable: true,
width: 120,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入工艺任务状态',
trigger: 'blur',
},
],
},
{ {
label: '需求交期', label: '需求交期',
prop: 'demandDate', prop: 'demandDate',
@ -646,6 +701,9 @@ export default {
...this.query ...this.query
}); });
// if (res.code) { // if (res.code) {
// res.data.data.records.map(item =>{
// item.errorReason = "123123"
// })
this.data = res.data.data.records; this.data = res.data.data.records;
this.page.total = res.data.data.total; this.page.total = res.data.data.total;
this.selectionClear(); this.selectionClear();

@ -155,6 +155,23 @@ export default {
}, },
], ],
}, },
{
label: '生产订单',
prop: 'yoCode',
search: false,
sortable: true,
width: 150,
span: 12,
headerAlign: 'center',
align: 'center',
rules: [
{
required: true,
message: '请输入生产订单',
trigger: 'blur',
},
],
},
{ {
label: '零件号', label: '零件号',
prop: 'partCode1', prop: 'partCode1',
@ -237,12 +254,47 @@ export default {
}, },
], ],
}, },
{
label: '流程卡号',
prop: 'cardNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入流程卡号',
trigger: 'blur',
},
],
},
{
label: '批次号',
prop: 'batchNo',
search: false,
sortable: true,
disabled: true,
span: 12,
width: 150,
headerAlign: 'center',
rules: [
{
required: false,
message: '请输入批次号',
trigger: 'blur',
},
],
},
{ {
label: '镀种', label: '镀种',
prop: 'plate', prop: 'plate',
search: false, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
width: 150,
span: 12, span: 12,
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',

@ -344,11 +344,16 @@ export default {
align: 'center', align: 'center',
type: 'select', type: 'select',
dicData: [ dicData: [
{ label:'1级',value:'15001' }, // { label:'1',value:'15001' },
{ label:'2级',value:'15002' }, // { label:'2',value:'15002' },
{ label:'3级',value:'15003' }, // { label:'3',value:'15003' },
{ label:'4级',value:'15004' }, // { label:'4',value:'15004' },
{ label:'5级',value:'15005' }, // { label:'5',value:'15005' },
{ label:'1级-极高紧急度',value:15001 },
{ label:'2级-高紧急度',value:15002 },
{ label:'3级-中紧急度',value:15003 },
{ label:'4级-低紧急度',value:15004 },
{ label:'5级-正常',value:15005 },
// { // {
// label: '', // label: '',
// value: '1', // value: '1',

@ -380,7 +380,7 @@ export default {
}, },
{ {
label: '订单优先级', label: '订单优先级',
prop: 'priorityApsName', prop: 'priorityAps',
// type: 'select', // type: 'select',
search: false, search: false,
sortable: true, sortable: true,
@ -395,13 +395,13 @@ export default {
trigger: 'blur', trigger: 'blur',
}, },
], ],
// dicData:[ dicData:[
// { label:'1-',value:15001 }, { label:'1级-极高紧急度',value:15001 },
// { label:'2-',value:15002 }, { label:'2级-高紧急度',value:15002 },
// { label:'3-',value:15003 }, { label:'3级-中紧急度',value:15003 },
// { label:'4-',value:15004 }, { label:'4级-低紧急度',value:15004 },
// { label:'5-',value:15005 }, { label:'5级-正常',value:15005 },
// ] ]
}, },
{ {
label: '订单类型', label: '订单类型',

@ -702,6 +702,8 @@ export default {
processNum:this.query.processNum, processNum:this.query.processNum,
category:this.query.category, category:this.query.category,
updateUserRealName:this.query.updateUserRealName, updateUserRealName:this.query.updateUserRealName,
updateTimeStart:this.query.updateTime && this.query.updateTime.length > 0 && this.query.updateTime[0],
updateTimeEnd:this.query.updateTime && this.query.updateTime.length > 0 && this.query.updateTime[1],
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -206,7 +206,43 @@
v-if="scope.row.item.specialType == 1" v-if="scope.row.item.specialType == 1"
style="margin: 12px" style="margin: 12px"
> >
<el-table-column label="程式编号" prop="gaugeValue7" align="center"></el-table-column> <el-table-column width="57px">
<template #header>
<div style="display: flex;align-items: center;">
<!-- <el-button
circle
type="primary"
icon="el-icon-plus"
@click="addSpecimen()"
/> -->
<!-- <div> -->
<img src="@/assets/add.png" style="cursor:pointer;" alt="" @click="addSpecimen()">
<!-- </div> -->
</div>
</template>
<template #default="subScope">
<el-button
circle
type="danger"
icon="el-icon-delete"
@click="removeSpecimen(subScope.$index, subScope.row)"
/>
</template>
</el-table-column>
<el-table-column label="程式编号" prop="gaugeValue7" align="center">
<template #header>
<div style="display: flex;align-items: center;">
<img style="margin-right: 15px;cursor:pointer;" v-if="!isStart" @click="searchThinkData" src="@/assets/pause.png" alt="">
<img style="margin-right: 15px;cursor:pointer;" v-if="isStart" @click="searchThinkData" src="@/assets/play.png" alt="">
<span>程式编号</span>
</div>
</template>
<template #default="subScope">
<el-input v-model="subScope.row.gaugeValue7" :disabled="scope.row.checkUserRealName != ''"></el-input>
</template>
</el-table-column>
<el-table-column label="名称1" prop="gaugeValue1" align="center"> <el-table-column label="名称1" prop="gaugeValue1" align="center">
<template #default="subScope"> <template #default="subScope">
<el-input v-model="subScope.row.gaugeValue1" :disabled="scope.row.checkUserRealName != ''"></el-input> <el-input v-model="subScope.row.gaugeValue1" :disabled="scope.row.checkUserRealName != ''"></el-input>
@ -288,9 +324,10 @@
> >
<template #default="scope"> <template #default="scope">
<div v-if="scope.row.item.specialType == '1'"> <div v-if="scope.row.item.specialType == '1'">
<el-button @click="testMeasurementData(scope.row, scope.$index)" link type="primary" <el-button @click="testMeasurementData(scope.row, scope.$index)" link type="primary">
>{{!isStart ? '测厚数据' : '结束查询'}}</el-button <!-- {{!isStart ? '测厚数据' : '结束查询'}} -->
> 测厚数据
</el-button>
</div> </div>
<div v-else-if="scope.row.item.specialType == '3'"> <div v-else-if="scope.row.item.specialType == '3'">
<el-button @click="testValue(scope.row, scope.$index)" link type="primary" <el-button @click="testValue(scope.row, scope.$index)" link type="primary"
@ -422,7 +459,7 @@ export default {
secondInderval:null, secondInderval:null,
form: {}, form: {},
getDChyData:[], getDChyData:[],
showDialog: false, showDialog: true,
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
@ -888,6 +925,15 @@ export default {
}, },
methods: { methods: {
addSpecimen(){
this.thicknessData.push({})
},
removeSpecimen(index,row){
this.thicknessData.splice(index,1)
let arr = this.getDChyData.filter(item => JSON.stringify(item) === JSON.stringify(row))
console.log('arr=============',arr)
this.getDChyData = arr
},
handleCreate(){ handleCreate(){
createInspection({}).then(res => { createInspection({}).then(res => {
if(res.data.code == 200){ if(res.data.code == 200){
@ -940,6 +986,16 @@ export default {
this.thicknessData = row.wpItemDetailList this.thicknessData = row.wpItemDetailList
return return
} }
},
searchThinkData(){
const itemDetail = {
// tools: row.trialItem,
// testType: '',
// ruleSize: row.trialStandard,
// prWorkPlanItem: { wpiId: row.wpiId },
gaugeValue7: null,
gaugeValue8: null
};
this.isStart = !this.isStart; this.isStart = !this.isStart;
if(this.isStart){ if(this.isStart){
this.thicknessData = this.thicknessData.length > 0 ? this.thicknessData : [] this.thicknessData = this.thicknessData.length > 0 ? this.thicknessData : []
@ -961,7 +1017,6 @@ export default {
clearInterval(this.firstInterval) clearInterval(this.firstInterval)
clearInterval(this.secondInderval) clearInterval(this.secondInderval)
} }
}, },
getValue(value) { getValue(value) {
if (value == '/') { if (value == '/') {
@ -999,23 +1054,24 @@ export default {
// endTime:endTime, // endTime:endTime,
allData, allData,
// count:val // count:val
}).then(res =>{ }).catch(res =>{
console.log('res111111111111',res) console.log('res111111111111',res)
if (res.data.data != null) { // if (res.data.data != null) {
const resultList = res.data.data; // const resultList = res.data.data;
// const resultList = [{ const resultList = [{
// IP:"10.15.3.26", IP:"10.15.3.26",
// devCode:"Ni/CuZn59", devCode:"Ni/CuZn59",
// devId:"LG020029", devId:"LG020029",
// fi1etime: "2025/11/21 16:38:32", fi1etime: "2025/11/21 16:38:32",
// measurings: [ measurings: [
// {unit: "um", name: "Ni", value: "8.92142"}, {unit: "um", name: "Ni", value: "8.92142"},
// {unit: "/", name: "Cu", value: "/"}, {unit: "/", name: "Cu", value: "/"},
// {unit: "/", name: "Cu", value: "/"} {unit: "/", name: "Cu", value: "/"}
// ] ]
// }] }]
console.log('resultList--------------',resultList) console.log('resultList--------------',resultList)
console.log('getDChyData--------------',this.getDChyData)
if (resultList.length > 0) { if (resultList.length > 0) {
resultList.forEach((item) => { resultList.forEach((item) => {
let isExist = false; let isExist = false;
@ -1083,7 +1139,7 @@ export default {
} }
this.getDChyData = [...map.values()]; this.getDChyData = [...map.values()];
console.log('this.getDChyData',this.getDChyData) console.log('this.getDChyData',this.getDChyData)
} // }
}) })
}, },
testValue(row, index) { testValue(row, index) {
@ -1279,6 +1335,10 @@ export default {
}) })
// },window.YINGDU_Trigger) // },window.YINGDU_Trigger)
} }
if(item.item.specialType == 1){
console.log('item------------------',item)
this.thicknessData = item.wpItemDetailList
}
}) })
} }

@ -447,12 +447,14 @@ export default {
startDeclareDate:this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[0], startDeclareDate:this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[0],
endDeclareDate:this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[1], endDeclareDate:this.query.declareDate && this.query.declareDate.length != 0 && this.query.declareDate[1],
} }
let {needDate,declareDate,...searchParams} = params // let {needDate,declareDate,...searchParams} = params
console.log('searchParams',searchParams) if(params.declareDate) delete params.declareDate
if(params.needDate) delete params.needDate
console.log('params',params)
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...searchParams ...params
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -880,12 +880,13 @@ export default {
startLeDate:this.query.leDate && this.query.leDate.length > 0 && this.query.leDate[0], startLeDate:this.query.leDate && this.query.leDate.length > 0 && this.query.leDate[0],
endLeDate:this.query.leDate && this.query.leDate.length > 0 && this.query.leDate[1], endLeDate:this.query.leDate && this.query.leDate.length > 0 && this.query.leDate[1],
} }
const {leDate,...searchParams} = params if(params.leDate) delete params.leDate
console.log('sezrch------------',searchParams) // const {leDate,...searchParams} = params
// console.log('sezrch------------',searchParams)
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...searchParams ...params
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -408,11 +408,12 @@ export default {
startDueDate:this.query.scrapCycle && this.query.scrapCycle.length != 0 && this.query.scrapCycle[0], startDueDate:this.query.scrapCycle && this.query.scrapCycle.length != 0 && this.query.scrapCycle[0],
endDueDate:this.query.scrapCycle && this.query.scrapCycle.length != 0 && this.query.scrapCycle[1], endDueDate:this.query.scrapCycle && this.query.scrapCycle.length != 0 && this.query.scrapCycle[1],
} }
const {scrapCycle,...invalideParams} = params // const {scrapCycle,...invalideParams} = params
if(params.scrapCycle) delete params.scrapCycle
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...invalideParams ...params
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -343,11 +343,12 @@ export default {
startCrDate:this.query.crDate && this.query.crDate.length != 0 && this.query.crDate[0], startCrDate:this.query.crDate && this.query.crDate.length != 0 && this.query.crDate[0],
endCrDate:this.query.crDate && this.query.crDate.length != 0 && this.query.crDate[1], endCrDate:this.query.crDate && this.query.crDate.length != 0 && this.query.crDate[1],
} }
const {crDate,...validParams} = params // const {crDate,...validParams} = params
if(params.crDate) delete params.crDate
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...validParams ...params
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -341,10 +341,16 @@ export default {
}, },
onLoad() { onLoad() {
this.loading = true this.loading = true
let param = {
...this.query,
startCreateTime:this.query && this.query.createTime && this.query.createTime.length != 0 && this.query.createTime[0],
endCreateTime:this.query && this.query.createTime && this.query.createTime.length != 0 && this.query.createTime[1],
}
if(param.createTime) delete param.createTime
getRecords({ getRecords({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
...this.query ...param
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total

@ -680,11 +680,12 @@ export default {
startNeedDate:this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[0], startNeedDate:this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[0],
endNeedDate:this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[1] endNeedDate:this.query.needDate && this.query.needDate.length != 0 && this.query.needDate[1]
} }
const {needDate,...searchParam} = params if(params.needDate) delete params.needDate
// const {needDate,...searchParam} = params
getList({ getList({
current: this.page.currentPage, current: this.page.currentPage,
size: this.page.pageSize, size: this.page.pageSize,
...searchParam ...params
}).then(res => { }).then(res => {
this.data = res.data.data.records; this.data = res.data.data.records;
this.page.total = res.data.data.total; this.page.total = res.data.data.total;

Loading…
Cancel
Save