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) {
|
export function draftSubmitRule(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -91,6 +91,17 @@
|
|||||||
v-hasPermi="['emis:emisTransPlanRule:edit']"
|
v-hasPermi="['emis:emisTransPlanRule:edit']"
|
||||||
>修改规则</el-button>
|
>修改规则</el-button>
|
||||||
</el-col>
|
</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-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -149,6 +160,10 @@
|
|||||||
<emisTransPlanRuleForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisTransPlanRuleForm>
|
<emisTransPlanRuleForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisTransPlanRuleForm>
|
||||||
</el-dialog>
|
</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>
|
</XdPageContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -169,6 +184,8 @@ import TransProductPicker from '@/views/emis/EmisBaseTools/TransProductPicker.vu
|
|||||||
|
|
||||||
import EmpNamePicker from '@/views/emis/EmisBaseTools/EmpNamePicker.vue';
|
import EmpNamePicker from '@/views/emis/EmisBaseTools/EmpNamePicker.vue';
|
||||||
|
|
||||||
|
import BatchTransPlanRuleUpdateForm from '@/views/emis/emisTransPlanRule/BatchTransPlanRuleUpdateForm.vue';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "EmisTransPlanRule",
|
name: "EmisTransPlanRule",
|
||||||
@ -180,7 +197,9 @@ export default {
|
|||||||
EmisSiteSimplePicker2,
|
EmisSiteSimplePicker2,
|
||||||
TransLinePicker,
|
TransLinePicker,
|
||||||
TransProductPicker,
|
TransProductPicker,
|
||||||
EmpNamePicker
|
EmpNamePicker,
|
||||||
|
BatchTransPlanRuleUpdateForm
|
||||||
|
|
||||||
},
|
},
|
||||||
dicts: [
|
dicts: [
|
||||||
],
|
],
|
||||||
@ -204,6 +223,9 @@ export default {
|
|||||||
emisTransPlanRuleList: [],
|
emisTransPlanRuleList: [],
|
||||||
selectList:null,
|
selectList:null,
|
||||||
|
|
||||||
|
openBatchUpdateForm:false,
|
||||||
|
titleBatchForm: "",
|
||||||
|
|
||||||
currentId:null,
|
currentId:null,
|
||||||
openForm: false,
|
openForm: false,
|
||||||
titleForm: "",
|
titleForm: "",
|
||||||
@ -279,6 +301,19 @@ export default {
|
|||||||
},
|
},
|
||||||
handleShowMoreInput(){
|
handleShowMoreInput(){
|
||||||
this.moreInputVisible = !this.moreInputVisible;
|
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) {
|
handleUpdate(row) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user