|
@@ -100,8 +100,8 @@
|
|
|
<!-- table区域-end -->
|
|
|
|
|
|
<!-- 表单区域 -->
|
|
|
- <syCottonYarn-modal ref="modalForm" @ok="modalFormOk" @close="getList"/>
|
|
|
- <sy-cotton-yarn-detail-modal ref="syCottonYarnDetailModal" @close="getList"></sy-cotton-yarn-detail-modal>
|
|
|
+ <syCottonYarn-modal ref="modalForm" @ok="modalFormOk" @close="loadData"/>
|
|
|
+ <sy-cotton-yarn-detail-modal ref="syCottonYarnDetailModal" @close="loadData"></sy-cotton-yarn-detail-modal>
|
|
|
|
|
|
</a-card>
|
|
|
</template>
|
|
@@ -184,35 +184,27 @@
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
- getList(){
|
|
|
- getAction(this.url.list, this.queryParam).then((res) => {
|
|
|
- if(res.success){
|
|
|
- this.dataSource=res.result.records
|
|
|
- }else{
|
|
|
- this.$message.warning(res.message)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 计划员提交
|
|
|
plannerSubmit(record,state){
|
|
|
getAction('/oa/syCottonYarn/commitBatch', {ids:record.id,state:state}).then((res) => {
|
|
|
if(res.success){
|
|
|
- this.getList()
|
|
|
+ this.loadData()
|
|
|
}else{
|
|
|
this.$message.warning(res.message)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
searchQuery(){
|
|
|
- this.getList()
|
|
|
+ this.loadData()
|
|
|
},
|
|
|
searchReset(){
|
|
|
this.queryParam={}
|
|
|
- this.getList()
|
|
|
+ this.loadData()
|
|
|
},
|
|
|
handleEdit(record,data){
|
|
|
if(data == '0'){
|
|
|
this.$refs.modalForm.visible = true
|
|
|
+ this.$refs.modalForm.defultMethods = 'edit'
|
|
|
this.$refs.modalForm.getHeaderList(record.id)
|
|
|
}else{
|
|
|
this.$refs.syCottonYarnDetailModal.visible = true
|