|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-button type="primary" size="small" :disabled="tableData.length === 0" @click="onShow">{{$t(`明细变更`)}}</el-button>
|
|
|
+ <el-button type="primary" size="small" :disabled="tableData.length === 0" @click="onShow" @close="onClose">{{$t(`明细变更`)}}</el-button>
|
|
|
<el-dialog :title="$t(`明细变更`)" append-to-body :visible.sync="dialogVisible" width="900px">
|
|
|
<el-table
|
|
|
class="normal-margin"
|
|
|
@@ -66,8 +66,8 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- v-if="siteid === 'HY'"
|
|
|
prop="newdeliverydate"
|
|
|
+ v-if="siteid === 'HY'"
|
|
|
:label="$t(`变更交期`)"
|
|
|
width="175"
|
|
|
fixed="right">
|
|
|
@@ -86,12 +86,12 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="newvalue"
|
|
|
+ prop="newvalue"
|
|
|
:label="$t(`变更数量`)"
|
|
|
width="180"
|
|
|
fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input size="mini" @input="onInput(scope.row,scope.$index)" v-model="scope.row.newvalue" ></el-input>
|
|
|
+ <el-input size="mini" @input="onInput(scope.row,scope.$index)" v-model="scope.row.newvalue" ></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
qty:''
|
|
|
},
|
|
|
deliverydate:'',
|
|
|
- siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
+ siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid,
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -141,12 +141,8 @@ export default {
|
|
|
this.deliverydate = val
|
|
|
},
|
|
|
onShow () {
|
|
|
- this.listData = this.tableData.map(e=>{
|
|
|
- e.newvalue = this.siteid === 'HY'?'':0
|
|
|
- return e
|
|
|
- })
|
|
|
+ this.listData = this.tableData
|
|
|
this.dialogVisible = true
|
|
|
-
|
|
|
},
|
|
|
onClose(){
|
|
|
this.form.remarks = ''
|