|
@@ -16,7 +16,7 @@
|
|
|
<template slot-scope="{ row, $index }">
|
|
<template slot-scope="{ row, $index }">
|
|
|
<el-form-item :prop="'timeList.' + $index + '.purchaseQuantity'"
|
|
<el-form-item :prop="'timeList.' + $index + '.purchaseQuantity'"
|
|
|
:rules="tableFormRules.purchaseQuantity">
|
|
:rules="tableFormRules.purchaseQuantity">
|
|
|
- <el-input placeholder="请输入" clearable v-model="row.purchaseQuantity"></el-input>
|
|
|
|
|
|
|
+ <el-input placeholder="请输入" :disabled="isDetails" clearable v-model="row.purchaseQuantity"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -28,7 +28,7 @@
|
|
|
<template slot-scope="{ row, $index }">
|
|
<template slot-scope="{ row, $index }">
|
|
|
<el-form-item :prop="'timeList.' + $index + '.requireDeliveryTime'"
|
|
<el-form-item :prop="'timeList.' + $index + '.requireDeliveryTime'"
|
|
|
:rules="tableFormRules.requireDeliveryTime">
|
|
:rules="tableFormRules.requireDeliveryTime">
|
|
|
- <el-date-picker clearable v-model="row.requireDeliveryTime" value-format="timestamp"
|
|
|
|
|
|
|
+ <el-date-picker :disabled="isDetails" clearable v-model="row.requireDeliveryTime" value-format="timestamp"
|
|
|
placeholder="请选择日期">
|
|
placeholder="请选择日期">
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- open(row, type) {
|
|
|
|
|
|
|
+ open(row, type, timeList) {
|
|
|
|
|
|
|
|
this.totalCount = row.totalCount
|
|
this.totalCount = row.totalCount
|
|
|
this.form.timeList = []
|
|
this.form.timeList = []
|
|
@@ -124,6 +124,11 @@ export default {
|
|
|
this.isDetails = true
|
|
this.isDetails = true
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if(type == 'release') {
|
|
|
|
|
+ this.form.timeList = timeList || []
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|