fix: 新增混碾指定压机
This commit is contained in:
@@ -69,6 +69,12 @@ export function copyAdd(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
export function getYjDeviceList() {
|
||||
return request({
|
||||
url: 'api/device/getYjDeviceList',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function changeActive(data) {
|
||||
return request({
|
||||
@@ -78,4 +84,4 @@ export function changeActive(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, getWorkprocedure, getItemByDeviceId, copyAdd, changeActive, getAllRegions }
|
||||
export default { add, edit, del, getWorkprocedure, getItemByDeviceId, copyAdd, changeActive, getAllRegions, getYjDeviceList }
|
||||
|
||||
@@ -208,6 +208,25 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="关联压机" prop="is_urgent">
|
||||
<el-select
|
||||
v-model="form.associated_device"
|
||||
filterable
|
||||
placeholder="关联压机"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in yjDeviceList"
|
||||
:key="item.device_code"
|
||||
:label="item.name"
|
||||
:value="item.device_code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="info" @click="crud.cancelCU">取消</el-button>
|
||||
@@ -282,6 +301,7 @@ import pagination from '@crud/Pagination'
|
||||
import ViewDialog from '@/views/wms/pdm/workerorder/ViewDialog'
|
||||
import DeviceDialog from '@/views/wms/pub/DeviceDialog'
|
||||
import MaterDtl from '@/views/wms/pub/MaterDialog.vue'
|
||||
import crudDevice from '@/api/wms/pdm/device'
|
||||
|
||||
const defaultForm = {
|
||||
workorder_id: null,
|
||||
@@ -331,6 +351,7 @@ const defaultForm = {
|
||||
region_code: null,
|
||||
plan_date: null,
|
||||
plan_weight: null,
|
||||
associated_device: null,
|
||||
dz: null,
|
||||
gg: null,
|
||||
kh: null
|
||||
@@ -365,6 +386,7 @@ export default {
|
||||
deviceShow: false,
|
||||
bomShow: false,
|
||||
workprocedureList: [],
|
||||
yjDeviceList: [],
|
||||
order_status: ['-1'],
|
||||
permission: {},
|
||||
orderData: {},
|
||||
@@ -395,8 +417,14 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getYjDeviceList()
|
||||
},
|
||||
methods: {
|
||||
getYjDeviceList() {
|
||||
crudDevice.getYjDeviceList().then(res => {
|
||||
this.yjDeviceList = res
|
||||
})
|
||||
},
|
||||
// 工单状态多选搜索
|
||||
handTaskStatus(value) {
|
||||
this.$forceUpdate()
|
||||
|
||||
Reference in New Issue
Block a user