This commit is contained in:
zds
2022-09-21 16:02:05 +08:00
parent 1dd8ba896e
commit a222eb695d
3 changed files with 40 additions and 7 deletions

View File

@@ -34,7 +34,6 @@
<!--左侧插槽-->
<slot name="left" />
<el-button slot="left" type="info" @click="dialogVisible = false">关闭</el-button>
<el-button slot="left" type="primary" @click="submit">保存</el-button>
</span>
</el-col>
</el-row>
@@ -99,7 +98,7 @@ export default {
cxjList: [],
XLList: [],
fullscreenLoading: false,
queryrow: { device_id: '', status: '01' },
queryrow: { device_id: '', status: '01', nowstart_date: '', checked: '' },
sortable: null,
rows: []
}
@@ -127,8 +126,10 @@ export default {
* 接受父组件传值
* @param msg
*/
getMsg(msg) {
getMsg(msg, msg2, msg3) {
this.queryrow.device_id = msg
this.queryrow.nowstart_date = msg2
this.queryrow.checked = msg3
this.queryrow.status = '01'
},
queryStruct() {
@@ -172,6 +173,9 @@ export default {
}
},
close() {
this.queryrow.device_id = ''
this.queryrow.nowstart_date = ''
this.queryrow.checked = ''
this.tableDtl = []
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed', this.rows)

View File

@@ -99,6 +99,16 @@
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="初始日期">
<label slot="label">初始日期:</label>
<el-date-picker
v-model="query.nowstart_date"
type="date"
style="width: 200px"
placeholder="选择日期">
</el-date-picker>
<el-checkbox v-model="query.checked">启用</el-checkbox>
<rrOperation />
</el-form-item>
</el-form>
@@ -200,6 +210,7 @@ import workorder from '@/api/wms/pdm/workorder'
import crudseriesProcessRoute from '@/api/wms/pdm/seriesProcessRoute'
import { download } from '@/api/data'
import { downloadFile } from '@/utils'
import Date from '@/utils/datetime'
export default {
name: 'dailyplan',
@@ -212,7 +223,7 @@ export default {
url: 'api/dailyplan',
idField: 'dailyplan_id',
sort: '',
query: { device_id: '' },
query: { nowstart_date: new Date(),device_id: '' },
crudMethod: { ...dailyplan },
optShow: {
add: true,
@@ -315,7 +326,7 @@ export default {
return false
}
this.form.device_id = this.crud.query.device_id
this.$refs.child.getMsg(this.crud.query.device_id)
this.$refs.child.getMsg(this.crud.query.device_id, this.crud.query.nowstart_date, this.crud.query.checked)
this.structshow = true
},
downdtl() {