rev:质检模块
This commit is contained in:
@@ -326,7 +326,7 @@
|
||||
<script>
|
||||
import CRUD, { crud } from '@crud/crud'
|
||||
import MaterDtl from '@/views/wms/pub/MaterDialog'
|
||||
import crudPhysicalMst from '@/api/wms/ql/physicalMst'
|
||||
import crudPhysicalMst from '@/views/wms/ql_manage/physicalMst'
|
||||
|
||||
export default {
|
||||
name: 'Dialog1',
|
||||
|
||||
@@ -137,12 +137,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudPhysicalMst from '@/api/wms/ql/physicalMst'
|
||||
import crudPhysicalMst from '@/views/wms/ql_manage/physicalMst/physicalMst'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
|
||||
import DateRangePicker from '@/components/DateRangePicker'
|
||||
|
||||
const defaultForm = {
|
||||
@@ -201,7 +200,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
crudInspectionsheetmst.getStatus().then(res => {
|
||||
crudPhysicalMst.getStatus().then(res => {
|
||||
this.statusList = res
|
||||
})
|
||||
},
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudPhysicalMst from '@/api/wms/ql/physicalMst'
|
||||
import crudPhysicalMst from '@/views/wms/ql_manage/physicalMst/physicalMst'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
@@ -233,9 +233,8 @@ import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import MaterDtl from '@/views/wms/pub/MaterDialog'
|
||||
import Dialog1 from './Dialog1'
|
||||
import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
|
||||
import DateRangePicker from '@/components/DateRangePicker'
|
||||
import RelevancyDialog from '@/views/wms/ql/physicalMst/RelevancyDialog'
|
||||
import RelevancyDialog from '@/views/wms/ql_manage/physicalMst/RelevancyDialog'
|
||||
|
||||
const defaultForm = {
|
||||
inspection_id: null,
|
||||
@@ -294,10 +293,10 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
crudInspectionsheetmst.getStatus().then(res => {
|
||||
crudPhysicalMst.getStatus().then(res => {
|
||||
this.statusList = res
|
||||
})
|
||||
crudInspectionsheetmst.getMaterialType().then(res => {
|
||||
crudPhysicalMst.getMaterialType().then(res => {
|
||||
this.materialType = res
|
||||
})
|
||||
},
|
||||
|
||||
99
mes/qd/src/views/wms/ql_manage/physicalMst/physicalMst.js
Normal file
99
mes/qd/src/views/wms/ql_manage/physicalMst/physicalMst.js
Normal file
@@ -0,0 +1,99 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/physicalMst/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getResult(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/getResult',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function saveResult(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/saveResult',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function confirm(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/confirm',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function setValid(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/setValid',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function copyAdd(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/copyAdd',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function isMaterType(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/isMaterType',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function hpySync(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/hpySync',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getMaterialType(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/hpySync',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatus(data) {
|
||||
return request({
|
||||
url: 'api/physicalMst/hpySync',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, getResult, saveResult, confirm, setValid, copyAdd, isMaterType, getStatus, getMaterialType }
|
||||
Reference in New Issue
Block a user