修改
This commit is contained in:
@@ -179,6 +179,7 @@
|
||||
<pagination />
|
||||
</div>
|
||||
<AddDialog @AddChanged="querytable" />
|
||||
<StructIvt4 :dialog-show.sync="structshow" :rowmst="crud.query" @StructIvtClosed="querytable" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -186,6 +187,7 @@
|
||||
import producetask from '@/api/wms/pdm/producetask'
|
||||
import dailyplan from '@/api/wms/pdm/dailyplan'
|
||||
import AddDialog from '@/views/wms/pdm/produce/dailyplan/AddDialog'
|
||||
import StructIvt4 from '@/views/wms/pdm/produce/dailyplan/StructIvt4'
|
||||
import CRUD, { presenter, header, crud } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
@@ -197,12 +199,11 @@ import workorder from '@/api/wms/pdm/workorder'
|
||||
import crudseriesProcessRoute from '@/api/wms/pdm/seriesProcessRoute'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
import crudProducetask from '@/api/wms/pdm/producetask'
|
||||
|
||||
export default {
|
||||
name: 'dailyplan',
|
||||
dicts: ['product_mode', 'workorder_type2', 'planstatus'],
|
||||
components: { crudOperation, rrOperation, udOperation, AddDialog, pagination },
|
||||
components: { crudOperation, rrOperation, udOperation, AddDialog, pagination, StructIvt4 },
|
||||
mixins: [presenter(), header(), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
@@ -229,6 +230,7 @@ export default {
|
||||
del: ['admin', 'workorder:del']
|
||||
},
|
||||
dialogVisible: false,
|
||||
structshow: false,
|
||||
save_flag: true,
|
||||
sub_flag: true,
|
||||
Depts: [],
|
||||
@@ -299,21 +301,15 @@ export default {
|
||||
}
|
||||
},
|
||||
save() {
|
||||
this.checkrows = this.$refs.table.data
|
||||
if (this.checkrows.length === 0) {
|
||||
this.crud.notify('重排记录数不能为0!')
|
||||
return false
|
||||
}
|
||||
if(this.crud.query.device_id === '' || this.crud.query.device_id === undefined ){
|
||||
if (this.crud.query.device_id === '' || this.crud.query.device_id === undefined) {
|
||||
this.crud.notify('请先选择关键设备!')
|
||||
return false
|
||||
}
|
||||
/* dailyplan.submit2({ query: this.crud.query, rows: this.checkrows} ).then(res => {
|
||||
this.crud.notify('操作成功!')
|
||||
this.querytable()
|
||||
})*/
|
||||
this.crud.notify('操作成功!')
|
||||
this.querytable()
|
||||
if (this.crud.query.status !== '01' || this.crud.query.status === undefined) {
|
||||
this.crud.notify('重排只能选择生成状态记录!')
|
||||
return false
|
||||
}
|
||||
this.structshow = true
|
||||
},
|
||||
downdtl() {
|
||||
crud.downloadLoading = true
|
||||
|
||||
Reference in New Issue
Block a user