|
|
@@ -23,7 +23,7 @@
|
|
23
|
23
|
:previewEnabled="true" :imageWidth="150" :imageHeight="150"></imgs-row-scroll>
|
|
24
|
24
|
<u-upload @afterRead="afterRead" name="3" multiple :maxCount="10"></u-upload>
|
|
25
|
25
|
</view>
|
|
26
|
|
- <u--input v-if="editOrAdd === 'edit'" class="price" placeholder="价格" border="bottom" v-model="info.price"
|
|
|
26
|
+ <u--input v-if="editOrAdd === 'edit'" type="number" class="price" placeholder="价格" border="bottom" v-model="info.price"
|
|
27
|
27
|
clearable></u--input>
|
|
28
|
28
|
<u--input v-if="editOrAdd === 'edit'" placeholder="备注" border="bottom" v-model="info.remark"
|
|
29
|
29
|
clearable></u--input>
|
|
|
@@ -166,6 +166,7 @@ export default {
|
|
166
|
166
|
initData() {
|
|
167
|
167
|
this.$nextTick(() => {
|
|
168
|
168
|
this.info = JSON.parse(JSON.stringify(this.editInfo))
|
|
|
169
|
+
|
|
169
|
170
|
if(this.isShowChart){
|
|
170
|
171
|
this.chartData = {
|
|
171
|
172
|
categories: this.info.priceChart.map((item, index) => item.userName),
|
|
|
@@ -265,6 +266,7 @@ export default {
|
|
265
|
266
|
})
|
|
266
|
267
|
},
|
|
267
|
268
|
showDialog() {
|
|
|
269
|
+
|
|
268
|
270
|
if (this.editOrAdd === 'edit' || this.editOrAdd === 'editForm' || this.editOrAdd === 'receptFormAdd') {
|
|
269
|
271
|
this.initData();
|
|
270
|
272
|
} else if (this.editOrAdd === 'add') {
|