md
This commit is contained in:
parent
2ebcee74c0
commit
21ba9cde42
@ -25,6 +25,14 @@ export function getEmisTransPlanRule(id) {
|
||||
})
|
||||
}
|
||||
|
||||
export function batchEdit(data) {
|
||||
return request({
|
||||
url: '/emis/emisTransPlanRule/batchEdit',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 草稿下单
|
||||
export function draftSubmitRule(data) {
|
||||
return request({
|
||||
|
||||
@ -91,6 +91,17 @@
|
||||
v-hasPermi="['emis:emisTransPlanRule:edit']"
|
||||
>修改规则</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleBatchUpdate"
|
||||
v-hasPermi="['emis:emisTransPlanRule:edit']"
|
||||
>批量修改规则</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
@ -149,6 +160,10 @@
|
||||
<emisTransPlanRuleForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisTransPlanRuleForm>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :title="titleBatchForm" :visible.sync="openBatchUpdateForm" width="50%" :destroy-on-close="true" :close-on-click-modal="false" v-dialogDrag append-to-body>
|
||||
<BatchTransPlanRuleUpdateForm :ids="ids" @on-changed="handleBatchFormChanged" @on-cancel="cancelBatchForm"></BatchTransPlanRuleUpdateForm>
|
||||
</el-dialog>
|
||||
|
||||
</XdPageContainer>
|
||||
</template>
|
||||
|
||||
@ -169,6 +184,8 @@ import TransProductPicker from '@/views/emis/EmisBaseTools/TransProductPicker.vu
|
||||
|
||||
import EmpNamePicker from '@/views/emis/EmisBaseTools/EmpNamePicker.vue';
|
||||
|
||||
import BatchTransPlanRuleUpdateForm from '@/views/emis/emisTransPlanRule/BatchTransPlanRuleUpdateForm.vue';
|
||||
|
||||
|
||||
export default {
|
||||
name: "EmisTransPlanRule",
|
||||
@ -180,7 +197,9 @@ export default {
|
||||
EmisSiteSimplePicker2,
|
||||
TransLinePicker,
|
||||
TransProductPicker,
|
||||
EmpNamePicker
|
||||
EmpNamePicker,
|
||||
BatchTransPlanRuleUpdateForm
|
||||
|
||||
},
|
||||
dicts: [
|
||||
],
|
||||
@ -204,6 +223,9 @@ export default {
|
||||
emisTransPlanRuleList: [],
|
||||
selectList:null,
|
||||
|
||||
openBatchUpdateForm:false,
|
||||
titleBatchForm: "",
|
||||
|
||||
currentId:null,
|
||||
openForm: false,
|
||||
titleForm: "",
|
||||
@ -279,6 +301,19 @@ export default {
|
||||
},
|
||||
handleShowMoreInput(){
|
||||
this.moreInputVisible = !this.moreInputVisible;
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleBatchUpdate(row) {
|
||||
// this.currentId= row.id;
|
||||
this.openBatchUpdateForm = true;
|
||||
this.titleBatchForm = "批量修改";
|
||||
},
|
||||
handleBatchFormChanged(){
|
||||
this.openBatchUpdateForm = false;
|
||||
this.getList();
|
||||
},
|
||||
cancelBatchForm(){
|
||||
this.openBatchUpdateForm = false;
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user