Comparer les révisions
2 Révisions
34d7b8682d
...
194b2f0e0d
Auteur | SHA1 | Date | |
---|---|---|---|
194b2f0e0d | |||
948cc07a9c |
1
dist/css/2407.1f6aa78f.css
externe
Fichier normal
1
dist/css/2407.1f6aa78f.css
externe
Fichier normal
@ -0,0 +1 @@
|
|||||||
|
@media screen and (max-width:2104px){.searchStyle[data-v-018c1e50]{width:1000px}}@media screen and (min-width:2105px){.searchStyle[data-v-018c1e50]{width:100%}}
|
1
dist/css/2581.fa424ad2.css
externe
Fichier normal
1
dist/css/2581.fa424ad2.css
externe
Fichier normal
@ -0,0 +1 @@
|
|||||||
|
.tableInner .el-input__inner{border:none;padding:0;height:33px}.samplingAdd .form-box[data-v-2adb9530]{height:100%;padding:0 32px;position:relative}.samplingAdd .form-box .first-line[data-v-2adb9530]{border-bottom:1px solid #e9e9e9;margin-bottom:23px}.samplingAdd .bottom[data-v-2adb9530]{position:absolute;bottom:0;right:32px}.standardSetting .form-box[data-v-fbc9d82a]{height:100%;padding:0 32px;position:relative}.standardSetting .bottom[data-v-fbc9d82a]{position:absolute;bottom:0;right:32px}
|
1
dist/css/299.450cca55.css
externe
Fichier normal
1
dist/css/299.450cca55.css
externe
Fichier normal
@ -0,0 +1 @@
|
|||||||
|
.box[data-v-6ad9120b]{padding:0 32px}
|
1
dist/css/4941.cb8dd88e.css
externe
1
dist/css/4941.cb8dd88e.css
externe
@ -1 +0,0 @@
|
|||||||
.finalInspectionData[data-v-1932e535]{width:100%}.finalInspectionData .box-top[data-v-1932e535]{width:100%;padding:8px 16px 0}.finalInspectionData .box-top .search-box[data-v-1932e535]{height:62px;padding:10px 16px;box-sizing:border-box;border-radius:8px;background-color:#fff}.finalInspectionData .box[data-v-1932e535]{width:100%;padding:8px 8px 0 16px}.finalInspectionData .box .left-box[data-v-1932e535],.finalInspectionData .box .right-box[data-v-1932e535]{height:calc(100vh - 220px);padding:16px;border-radius:8px;background-color:#fff}.finalInspectionData .box .left-box .table-box[data-v-1932e535],.finalInspectionData .box .right-box .table-box[data-v-1932e535]{margin-top:16px;height:calc(100vh - 290px);overflow:auto}.finalInspectionData .box .left-box .table-button[data-v-1932e535]{display:inline-block;height:30px;width:100%;text-align:center;padding-top:4px;margin-bottom:16px;font-size:14px;color:#0b58ff;border-radius:4px;border:1px dotted #0b58ff;cursor:pointer}.finalInspectionData .box .right-box .title[data-v-1932e535]:before{content:"";display:inline-block;width:4px;height:16px;background:#0b58ff;border-radius:1px;margin-right:8px;vertical-align:middle}
|
|
@ -1 +1 @@
|
|||||||
.device-add .device-uploader{width:178px;height:178px;display:block}.device-add .device-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.device-add .device-uploader .el-upload:hover{border-color:#409eff}.device-add .device-uploader .avatar-uploader-icon{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.img-box[data-v-170526ff]{border:1px dashed #d9d9d9}.img-box .avatar[data-v-170526ff]{width:100%;cursor:pointer}.img-box .avatar-close-icon[data-v-170526ff]{font-size:24px;position:absolute;right:-10px;top:-10px;cursor:pointer}.main-box[data-v-50aec75c]{width:100%;padding:0 6px 0 16px}.main-box .left-box[data-v-50aec75c],.main-box .right-box[data-v-50aec75c]{border-radius:8px;background-color:#fff;overflow-y:auto;height:calc(100vh - 147px);margin-top:8px}.main-box .left-box[data-v-50aec75c]{padding:16px 0 0}.main-box .right-box[data-v-50aec75c]{padding:16px 10px 0}
|
.device-add .device-uploader{width:178px;height:178px;display:block}.device-add .device-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.device-add .device-uploader .el-upload:hover{border-color:#409eff}.device-add .device-uploader .avatar-uploader-icon{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.img-box[data-v-0a02c89e]{border:1px dashed #d9d9d9}.img-box .avatar[data-v-0a02c89e]{width:100%;cursor:pointer}.img-box .avatar-close-icon[data-v-0a02c89e]{font-size:24px;position:absolute;right:-10px;top:-10px;cursor:pointer}.main-box[data-v-50aec75c]{width:100%;padding:0 6px 0 16px}.main-box .left-box[data-v-50aec75c],.main-box .right-box[data-v-50aec75c]{border-radius:8px;background-color:#fff;overflow-y:auto;height:calc(100vh - 147px);margin-top:8px}.main-box .left-box[data-v-50aec75c]{padding:16px 0 0}.main-box .right-box[data-v-50aec75c]{padding:16px 10px 0}
|
1
dist/css/6234.3ff852d9.css
externe
Fichier normal
1
dist/css/6234.3ff852d9.css
externe
Fichier normal
@ -0,0 +1 @@
|
|||||||
|
.finalInspectionData[data-v-6863655e]{width:100%}.finalInspectionData .box-top[data-v-6863655e]{width:100%;padding:8px 16px 0}.finalInspectionData .box-top .search-box[data-v-6863655e]{height:62px;padding:10px 16px;box-sizing:border-box;border-radius:8px;background-color:#fff}.finalInspectionData .box[data-v-6863655e]{width:100%;padding:8px 8px 0 16px}.finalInspectionData .box .left-box[data-v-6863655e],.finalInspectionData .box .right-box[data-v-6863655e]{height:calc(100vh - 220px);padding:16px;border-radius:8px;background-color:#fff}.finalInspectionData .box .left-box .table-box[data-v-6863655e],.finalInspectionData .box .right-box .table-box[data-v-6863655e]{margin-top:16px;height:calc(100vh - 290px);overflow:auto}.finalInspectionData .box .left-box .table-button[data-v-6863655e]{display:inline-block;height:30px;width:100%;text-align:center;padding-top:4px;margin-bottom:16px;font-size:14px;color:#0b58ff;border-radius:4px;border:1px dotted #0b58ff;cursor:pointer}.finalInspectionData .box .right-box .title[data-v-6863655e]:before{content:"";display:inline-block;width:4px;height:16px;background:#0b58ff;border-radius:1px;margin-right:8px;vertical-align:middle}
|
1
dist/css/640.056a6a05.css
externe
1
dist/css/640.056a6a05.css
externe
@ -1 +0,0 @@
|
|||||||
.tableInner .el-input__inner{border:none;padding:0;height:33px}.samplingAdd .form-box[data-v-7b3115e1]{height:100%;padding:0 32px;position:relative}.samplingAdd .form-box .first-line[data-v-7b3115e1]{border-bottom:1px solid #e9e9e9;margin-bottom:23px}.samplingAdd .bottom[data-v-7b3115e1]{position:absolute;bottom:0;right:32px}.standardSetting .form-box[data-v-fbc9d82a]{height:100%;padding:0 32px;position:relative}.standardSetting .bottom[data-v-fbc9d82a]{position:absolute;bottom:0;right:32px}
|
|
1
dist/css/6781.770b0df0.css
externe
1
dist/css/6781.770b0df0.css
externe
@ -1 +0,0 @@
|
|||||||
@media screen and (max-width:2104px){.searchStyle[data-v-09b450c4]{width:1000px}}@media screen and (min-width:2105px){.searchStyle[data-v-09b450c4]{width:100%}}
|
|
1
dist/css/7802.25e37ece.css
externe
1
dist/css/7802.25e37ece.css
externe
@ -1 +0,0 @@
|
|||||||
.box[data-v-0592f1fa]{padding:0 32px}
|
|
2
dist/index.html
externe
2
dist/index.html
externe
@ -1 +1 @@
|
|||||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>tft-mes</title><script defer="defer" src="/js/chunk-vendors.a42f8636.js"></script><script defer="defer" src="/js/app.8c6c63a4.js"></script><link href="/css/app.68cbc19b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but tft-mes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>tft-mes</title><script defer="defer" src="/js/chunk-vendors.a42f8636.js"></script><script defer="defer" src="/js/app.8ddc6159.js"></script><link href="/css/app.68cbc19b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but tft-mes doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/2033.71d18a4b.js
externe
Fichier normal
1
dist/js/2033.71d18a4b.js
externe
Fichier normal
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/2033.e713058b.js
externe
1
dist/js/2033.e713058b.js
externe
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/2581.2315967d.js
externe
Fichier normal
1
dist/js/2581.2315967d.js
externe
Fichier normal
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/2948.3c5a6a87.js
externe
1
dist/js/2948.3c5a6a87.js
externe
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/2949.2b4c9508.js
externe
1
dist/js/2949.2b4c9508.js
externe
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/2949.d593e2e8.js
externe
Fichier normal
1
dist/js/2949.d593e2e8.js
externe
Fichier normal
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/299.4bb8fb60.js
externe
Fichier normal
1
dist/js/299.4bb8fb60.js
externe
Fichier normal
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/5886.6413af75.js
externe
Fichier normal
1
dist/js/5886.6413af75.js
externe
Fichier normal
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/640.fef43f27.js
externe
1
dist/js/640.fef43f27.js
externe
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/7802.1470f15e.js
externe
1
dist/js/7802.1470f15e.js
externe
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/8311.80ae8f55.js
externe
Fichier normal
1
dist/js/8311.80ae8f55.js
externe
Fichier normal
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
1
dist/js/8311.a2fa96fb.js
externe
1
dist/js/8311.a2fa96fb.js
externe
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
Diff de fichier supprimé car une ou plusieurs lignes sont trop longues
@ -114,7 +114,15 @@ export function consumableUpdate(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 获取耗材名称列表
|
||||||
|
export function getMaterialArr(data) {
|
||||||
|
return request({
|
||||||
|
url: '/basic/consumableConfiguration/getMaterialList',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 获取耗材名称ID规格和单位
|
||||||
export function materialList(data) {
|
export function materialList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/basic/consumableConfiguration/materialAndUnit',
|
url: '/basic/consumableConfiguration/materialAndUnit',
|
||||||
|
@ -196,3 +196,20 @@ export function claGlassData(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 产品追溯-获取分页产品追溯
|
||||||
|
export function productTrace(data) {
|
||||||
|
return request({
|
||||||
|
url: '/quality/productTrace/page',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 产品追溯-获取分页工艺流程(只用传玻璃ID)
|
||||||
|
export function pageProcess(data) {
|
||||||
|
return request({
|
||||||
|
url: '/quality/productTrace/pageProcess',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -329,6 +329,7 @@ export default {
|
|||||||
this.$refs.form.resetFields()
|
this.$refs.form.resetFields()
|
||||||
this.deviceImg = ''
|
this.deviceImg = ''
|
||||||
this.srcList = []
|
this.srcList = []
|
||||||
|
this.unitModuleList = []
|
||||||
},
|
},
|
||||||
handleAvatarSuccess(res) {
|
handleAvatarSuccess(res) {
|
||||||
this.form.imgId = res.data[0].id
|
this.form.imgId = res.data[0].id
|
||||||
|
@ -178,7 +178,7 @@ import {
|
|||||||
materialManageInsert,
|
materialManageInsert,
|
||||||
materialManageDelete
|
materialManageDelete
|
||||||
} from '@/api/consumablesManagement'
|
} from '@/api/consumablesManagement'
|
||||||
import { sideLibraryList, materialList, getSpecList } from '@/api/basicConfig'
|
import { sideLibraryList, getMaterialArr, getSpecList } from '@/api/basicConfig'
|
||||||
export default {
|
export default {
|
||||||
name: 'inAndOutManagementAdd',
|
name: 'inAndOutManagementAdd',
|
||||||
data() {
|
data() {
|
||||||
@ -273,7 +273,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMaterialList() {
|
getMaterialList() {
|
||||||
materialList().then((res) => {
|
getMaterialArr().then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.consumablesNameList = res.data
|
this.consumablesNameList = res.data
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,8 @@ export default {
|
|||||||
this.tagType = 'info'
|
this.tagType = 'info'
|
||||||
} else if (this.injectData.status === '未完成') {
|
} else if (this.injectData.status === '未完成') {
|
||||||
this.tagType = 'warning'
|
this.tagType = 'warning'
|
||||||
|
} else if (this.injectData.status === '已超时') {
|
||||||
|
this.tagType = 'danger'
|
||||||
} else {
|
} else {
|
||||||
this.tagType = 'success'
|
this.tagType = 'success'
|
||||||
}
|
}
|
||||||
|
@ -198,6 +198,9 @@ export default {
|
|||||||
this.form.remark = res.data.remark
|
this.form.remark = res.data.remark
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.form.recipient = this.$store.getters.username
|
||||||
|
? this.$store.getters.username
|
||||||
|
: ''
|
||||||
},
|
},
|
||||||
getBatchList(id) {
|
getBatchList(id) {
|
||||||
getBatchList({ id }).then((res) => {
|
getBatchList({ id }).then((res) => {
|
||||||
|
@ -238,9 +238,9 @@ const tableBtn = [
|
|||||||
type: '&',
|
type: '&',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
type: 'less',
|
type: 'equal',
|
||||||
name: 'status',
|
name: 'status',
|
||||||
value: 1
|
value: 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -52,14 +52,16 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { tableHeight } from '@/utils/index'
|
import { tableHeight } from '@/utils/index'
|
||||||
|
import { pageProcess } from '@/api/qualityManagement'
|
||||||
|
import { timeFormatter } from '@/utils'
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'processName',
|
prop: 'unitName',
|
||||||
label: '工序名称',
|
label: '工序名称',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'deviceName',
|
prop: 'eqName',
|
||||||
label: '设备名称',
|
label: '设备名称',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
@ -69,17 +71,19 @@ const tableProps = [
|
|||||||
minWidth: 150
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'deviceLaunchTime',
|
prop: 'inEquipmentTime',
|
||||||
label: '设备上片时间',
|
label: '设备上片时间',
|
||||||
|
filter: timeFormatter,
|
||||||
minWidth: 160
|
minWidth: 160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'deviceUnloadingTime',
|
prop: 'outEquipmentTime',
|
||||||
label: '设备下片时间',
|
label: '设备下片时间',
|
||||||
|
filter: timeFormatter,
|
||||||
minWidth: 160
|
minWidth: 160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'grindingTrayId',
|
prop: 'palletId',
|
||||||
label: '面磨托盘ID',
|
label: '面磨托盘ID',
|
||||||
minWidth: 150
|
minWidth: 150
|
||||||
}
|
}
|
||||||
@ -160,21 +164,22 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init(id) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.tableH = tableHeight(115)
|
this.tableH = tableHeight(115)
|
||||||
})
|
})
|
||||||
for (let i = 0; i < 30; i++) {
|
pageProcess({
|
||||||
let obj = {}
|
current: 1,
|
||||||
obj.processName = '1'
|
glassId: id,
|
||||||
obj.deviceName = '设备名称' + i
|
size: 500
|
||||||
obj.glassId = '玻璃ID' + i
|
}).then((res) => {
|
||||||
obj.deviceLaunchTime = '2022-08-22 08:12:15'
|
if (res.code === 0) {
|
||||||
obj.deviceUnloadingTime = '2022-08-22 08:12:15'
|
this.tableData = res.data.records
|
||||||
obj.grindingTrayId = '面磨托盘ID' + i
|
} else {
|
||||||
this.tableData.push(obj)
|
this.tableData = []
|
||||||
}
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleClick(val) {
|
handleClick(val) {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
|
@ -168,7 +168,8 @@ export default {
|
|||||||
this.tableH = tableHeight(250)
|
this.tableH = tableHeight(250)
|
||||||
})
|
})
|
||||||
this.form.model = 'G8.5'
|
this.form.model = 'G8.5'
|
||||||
this.form.detectTime = moment().format('yyyy-MM-DDTHH:mm:ss')
|
// this.form.detectTime = moment().format('yyyy-MM-DD HH:mm:ss')
|
||||||
|
this.form.detectTime = moment().format('yyyy-MM-DD HH:mm:ss')
|
||||||
},
|
},
|
||||||
selectItem() {
|
selectItem() {
|
||||||
this.getStandard()
|
this.getStandard()
|
||||||
@ -216,7 +217,9 @@ export default {
|
|||||||
for (let i of this.tableData) {
|
for (let i of this.tableData) {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
obj.detectStandardId = i.id
|
obj.detectStandardId = i.id
|
||||||
obj.detectTime = this.form.detectTime
|
obj.detectTime = moment(this.form.detectTime).format(
|
||||||
|
'yyyy-MM-DDTHH:mm:ss'
|
||||||
|
)
|
||||||
obj.detector = this.form.detector
|
obj.detector = this.form.detector
|
||||||
obj.glassId = this.form.glassId
|
obj.glassId = this.form.glassId
|
||||||
obj.remark = i.remark ? i.remark : ''
|
obj.remark = i.remark ? i.remark : ''
|
||||||
|
@ -143,8 +143,8 @@ export default {
|
|||||||
tableHL: tableHeight(300),
|
tableHL: tableHeight(300),
|
||||||
reportTitle: '',
|
reportTitle: '',
|
||||||
listQuery: {
|
listQuery: {
|
||||||
startTime: '2020-07-06T16:59:23',
|
startTime: '',
|
||||||
endTime: '2023-07-06T16:59:23',
|
endTime: '',
|
||||||
glassFrame: '',
|
glassFrame: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 500
|
size: 500
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
import { tableHeight, timeFormatter } from '@/utils/index'
|
import { tableHeight, timeFormatter } from '@/utils/index'
|
||||||
import SamplingAdd from './components/samplingAdd'
|
import SamplingAdd from './components/samplingAdd'
|
||||||
import StandarSetting from './components/standardSetting'
|
import StandarSetting from './components/standardSetting'
|
||||||
|
import moment from 'moment'
|
||||||
import {
|
import {
|
||||||
getProcessDetectPage,
|
getProcessDetectPage,
|
||||||
processDetectExport
|
processDetectExport
|
||||||
@ -137,6 +138,7 @@ export default {
|
|||||||
startPlaceholder: '开始时间',
|
startPlaceholder: '开始时间',
|
||||||
endPlaceholder: '结束时间',
|
endPlaceholder: '结束时间',
|
||||||
param: 'timeVal',
|
param: 'timeVal',
|
||||||
|
defaultSelect: [],
|
||||||
width: 350
|
width: 350
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -145,11 +147,6 @@ export default {
|
|||||||
name: 'search',
|
name: 'search',
|
||||||
color: 'primary'
|
color: 'primary'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: 'button',
|
|
||||||
btnName: '重置',
|
|
||||||
name: 'reset'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: 'separate'
|
type: 'separate'
|
||||||
},
|
},
|
||||||
@ -198,6 +195,12 @@ export default {
|
|||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.tableH = tableHeight(270)
|
this.tableH = tableHeight(270)
|
||||||
})
|
})
|
||||||
|
this.formConfig[4].defaultSelect = [
|
||||||
|
moment().format('yyyy-MM-DD') + 'T00:00:00',
|
||||||
|
moment().format('yyyy-MM-DD') + 'T23:59:59'
|
||||||
|
]
|
||||||
|
this.listQuery.startTime = moment().format('yyyy-MM-DD') + 'T00:00:00'
|
||||||
|
this.listQuery.endTime = moment().format('yyyy-MM-DD') + 'T23:59:59'
|
||||||
this.formConfig[0].defaultSelect = 1
|
this.formConfig[0].defaultSelect = 1
|
||||||
this.formConfig[1].type = 'input'
|
this.formConfig[1].type = 'input'
|
||||||
this.formConfig[1].label = '玻璃ID'
|
this.formConfig[1].label = '玻璃ID'
|
||||||
@ -223,17 +226,6 @@ export default {
|
|||||||
this.listQuery.endTime = val.timeVal ? val.timeVal[1] : ''
|
this.listQuery.endTime = val.timeVal ? val.timeVal[1] : ''
|
||||||
this.getList()
|
this.getList()
|
||||||
break
|
break
|
||||||
case 'reset':
|
|
||||||
this.$refs.searchBarForm.resetForm()
|
|
||||||
this.listQuery.glassId = ''
|
|
||||||
this.listQuery.detector = ''
|
|
||||||
this.listQuery.detectItem = ''
|
|
||||||
this.listQuery.startTime = ''
|
|
||||||
this.listQuery.endTime = ''
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
break
|
|
||||||
case 'add':
|
case 'add':
|
||||||
this.addOrEditTitle = '抽检录入'
|
this.addOrEditTitle = '抽检录入'
|
||||||
this.centervisible = true
|
this.centervisible = true
|
||||||
@ -299,6 +291,8 @@ export default {
|
|||||||
this.formConfig[3].type = 'select'
|
this.formConfig[3].type = 'select'
|
||||||
this.formConfig[3].label = '检验项目'
|
this.formConfig[3].label = '检验项目'
|
||||||
}
|
}
|
||||||
|
this.formConfig[4].defaultSelect =
|
||||||
|
this.$refs.searchBarForm.formInline.timeVal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,12 @@
|
|||||||
@clickBtn="handleClick"
|
@clickBtn="handleClick"
|
||||||
/>
|
/>
|
||||||
</base-table>
|
</base-table>
|
||||||
<pagination :limit="listQuery.size" :total="total" />
|
<pagination
|
||||||
|
:page.sync="listQuery.current"
|
||||||
|
:limit.sync="listQuery.size"
|
||||||
|
:total="total"
|
||||||
|
@pagination="getList()"
|
||||||
|
/>
|
||||||
<!-- 抽屉 -->
|
<!-- 抽屉 -->
|
||||||
<process-flow-detail v-if="processFlowVisible" ref="processFlowDetail" />
|
<process-flow-detail v-if="processFlowVisible" ref="processFlowDetail" />
|
||||||
</div>
|
</div>
|
||||||
@ -30,15 +35,17 @@
|
|||||||
<script>
|
<script>
|
||||||
import ProcessFlowDetail from './components/processFlowDetail'
|
import ProcessFlowDetail from './components/processFlowDetail'
|
||||||
import { tableHeight } from '@/utils/index'
|
import { tableHeight } from '@/utils/index'
|
||||||
import defaultSettings from '@/settings'
|
import moment from 'moment'
|
||||||
|
import { productTrace } from '@/api/qualityManagement'
|
||||||
|
import { timeFormatter } from '@/utils'
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'productionLine',
|
prop: 'proLineName',
|
||||||
label: '产线',
|
label: '产线',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'orderCode',
|
prop: 'workOrderNo',
|
||||||
label: '工单编号',
|
label: '工单编号',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
@ -48,32 +55,34 @@ const tableProps = [
|
|||||||
minWidth: 150
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'finishedRackId',
|
prop: 'rackId',
|
||||||
label: '成品架ID',
|
label: '成品架ID',
|
||||||
minWidth: 150
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'productLaunchTime',
|
prop: 'loadTime',
|
||||||
label: '产品上片时间',
|
label: '产品上片时间',
|
||||||
|
filter: timeFormatter,
|
||||||
minWidth: 160
|
minWidth: 160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'productUnloadingTime',
|
prop: 'unloadTime',
|
||||||
label: '产品下片时间',
|
label: '产品下片时间',
|
||||||
|
filter: timeFormatter,
|
||||||
minWidth: 160
|
minWidth: 160
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'glassGrade',
|
prop: 'grade',
|
||||||
label: '玻璃等级',
|
label: '玻璃等级',
|
||||||
minWidth: 100
|
minWidth: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'grindingTrayId',
|
prop: 'palletId',
|
||||||
label: '面磨托盘ID',
|
label: '面磨托盘ID',
|
||||||
minWidth: 150
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'supplier',
|
prop: 'glassLength',
|
||||||
label: '玻璃长度',
|
label: '玻璃长度',
|
||||||
minWidth: 100
|
minWidth: 100
|
||||||
},
|
},
|
||||||
@ -83,14 +92,14 @@ const tableProps = [
|
|||||||
minWidth: 100
|
minWidth: 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'glassThickness',
|
prop: 'glassHeight',
|
||||||
label: '玻璃厚度',
|
label: '玻璃厚度',
|
||||||
minWidth: 100
|
minWidth: 100
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
type: 'edit',
|
type: 'view',
|
||||||
btnName: '点击查看'
|
btnName: '点击查看'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -103,30 +112,35 @@ export default {
|
|||||||
{
|
{
|
||||||
type: 'datePicker',
|
type: 'datePicker',
|
||||||
label: '产品上片时间',
|
label: '产品上片时间',
|
||||||
dateType: 'datetime',
|
dateType: 'datetimerange',
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
valueFormat: 'yyyy-MM-ddTHH:mm:ss',
|
||||||
placeholder: '产品上片时间',
|
rangeSeparator: '-',
|
||||||
param: 'testTime',
|
startPlaceholder: '开始时间',
|
||||||
defaultSelect: '2022-08-17 08:20:10',
|
endPlaceholder: '结束时间',
|
||||||
width: 200
|
param: 'timeVal',
|
||||||
|
defaultSelect: [],
|
||||||
|
width: 350
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: '产线',
|
label: '产线',
|
||||||
selectOptions: defaultSettings.productionLineList,
|
selectOptions: JSON.parse(localStorage.getItem('publicList'))
|
||||||
param: 'productionLine',
|
.proLineVoList,
|
||||||
|
param: 'lineName',
|
||||||
|
labelField: 'dataName',
|
||||||
|
valueField: 'dataName',
|
||||||
defaultSelect: '',
|
defaultSelect: '',
|
||||||
width: 100
|
onchange: true,
|
||||||
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: '查询方式',
|
label: '查询方式',
|
||||||
selectOptions: [
|
selectOptions: [
|
||||||
{ id: 1, name: '成品架ID' },
|
{ id: 'rackId', name: '成品架ID' },
|
||||||
{ id: 2, name: '时间查询' },
|
{ id: 'glassId', name: '玻璃ID' },
|
||||||
{ id: 3, name: '玻璃ID' },
|
{ id: 'palletId', name: '托盘ID' }
|
||||||
{ id: 4, name: '托盘ID' }
|
|
||||||
],
|
],
|
||||||
param: 'inquiryMode',
|
param: 'inquiryMode',
|
||||||
defaultSelect: '',
|
defaultSelect: '',
|
||||||
@ -156,6 +170,8 @@ export default {
|
|||||||
tableH: tableHeight(270),
|
tableH: tableHeight(270),
|
||||||
total: 0,
|
total: 0,
|
||||||
listQuery: {
|
listQuery: {
|
||||||
|
startTime: '',
|
||||||
|
endTime: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 20
|
size: 20
|
||||||
},
|
},
|
||||||
@ -166,45 +182,50 @@ export default {
|
|||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.tableH = tableHeight(270)
|
this.tableH = tableHeight(270)
|
||||||
})
|
})
|
||||||
for (let i = 0; i < 30; i++) {
|
this.formConfig[0].defaultSelect = [
|
||||||
let obj = {}
|
moment().format('yyyy-MM-DD') + 'T00:00:00',
|
||||||
obj.productionLine = '产线1'
|
moment().format('yyyy-MM-DD') + 'T23:59:59'
|
||||||
obj.orderCode = '工单编号' + i
|
]
|
||||||
obj.glassId = '玻璃ID' + i
|
this.listQuery.startTime = moment().format('yyyy-MM-DD') + 'T00:00:00'
|
||||||
obj.finishedRackId = '成品架ID' + i
|
this.listQuery.endTime = moment().format('yyyy-MM-DD') + 'T23:59:59'
|
||||||
obj.productLaunchTime = '2022-08-22 08:12:15'
|
this.getList()
|
||||||
obj.productUnloadingTime = '2022-08-22 08:12:15'
|
|
||||||
obj.glassGrade = i
|
|
||||||
obj.grindingTrayId = '面磨托盘ID' + i
|
|
||||||
obj.supplier = 2600
|
|
||||||
obj.glassWidth = 2250
|
|
||||||
obj.glassThickness = 5
|
|
||||||
obj.remark = '备注' + i
|
|
||||||
this.tableData.push(obj)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {},
|
getList() {
|
||||||
|
productTrace({ ...this.listQuery }).then((res) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.tableData = res.data.records
|
||||||
|
this.total = res.data.total
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
console.log(val)
|
|
||||||
if (val.btnName === 'search') {
|
if (val.btnName === 'search') {
|
||||||
|
this.listQuery.startTime = val.timeVal ? val.timeVal[0] : ''
|
||||||
|
this.listQuery.endTime = val.timeVal ? val.timeVal[1] : ''
|
||||||
|
this.listQuery.proLineName = val.lineName
|
||||||
|
this.listQuery.rackId =
|
||||||
|
val.inquiryMode === 'rackId' ? val.queryContent : ''
|
||||||
|
this.listQuery.glassId =
|
||||||
|
val.inquiryMode === 'glassId' ? val.queryContent : ''
|
||||||
|
this.listQuery.palletId =
|
||||||
|
val.inquiryMode === 'palletId' ? val.queryContent : ''
|
||||||
this.getList()
|
this.getList()
|
||||||
} else if (val.btnName === 'reset') {
|
} else if (val.btnName === 'reset') {
|
||||||
this.$refs.searchBarForm.resetForm()
|
this.$refs.searchBarForm.resetForm()
|
||||||
|
this.listQuery.startTime = moment().format('yyyy-MM-DD') + 'T00:00:00'
|
||||||
|
this.listQuery.endTime = moment().format('yyyy-MM-DD') + 'T23:59:59'
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleClick() {
|
handleClick(val) {
|
||||||
this.processFlowVisible = true
|
this.processFlowVisible = true
|
||||||
let id = 1
|
let id = val.data.glassId
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.processFlowDetail.init(id)
|
this.$refs.processFlowDetail.init(id)
|
||||||
})
|
})
|
||||||
},
|
|
||||||
handleClose() {
|
|
||||||
console.log('========')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user