|
@@ -1619,6 +1619,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 表单参数
|
|
// 表单参数
|
|
|
form: {
|
|
form: {
|
|
|
|
|
+ header: [], // 确保有这个字段
|
|
|
ingredient: null,
|
|
ingredient: null,
|
|
|
cateId: null,
|
|
cateId: null,
|
|
|
businessExpire: null,
|
|
businessExpire: null,
|
|
@@ -2272,6 +2273,9 @@ export default {
|
|
|
this.isFormInitialized = false; // 重置初始化标志
|
|
this.isFormInitialized = false; // 重置初始化标志
|
|
|
this.ingredientError = '';
|
|
this.ingredientError = '';
|
|
|
this.form = {
|
|
this.form = {
|
|
|
|
|
+ header: [], // 初始化为空数组
|
|
|
|
|
+ items: [],
|
|
|
|
|
+ values: [],
|
|
|
ingredient: null,
|
|
ingredient: null,
|
|
|
productId: null,
|
|
productId: null,
|
|
|
image: null,
|
|
image: null,
|
|
@@ -2338,22 +2342,23 @@ export default {
|
|
|
// 重置药品展示图
|
|
// 重置药品展示图
|
|
|
this.drugImageArr = [];
|
|
this.drugImageArr = [];
|
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
|
- this.oneFormValidate = [
|
|
|
|
|
- {
|
|
|
|
|
- image: '',
|
|
|
|
|
- price: 0,
|
|
|
|
|
- agentPrice: 0,
|
|
|
|
|
- cost: 0,
|
|
|
|
|
- otPrice: 0,
|
|
|
|
|
- stock: 0,
|
|
|
|
|
- barCode: '',
|
|
|
|
|
- weight: 0,
|
|
|
|
|
- volume: 0,
|
|
|
|
|
- integral: 0,
|
|
|
|
|
- brokerage: 0,
|
|
|
|
|
- brokerageTwo: 0
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ // 单规格表格数据也要初始化
|
|
|
|
|
+ this.oneFormValidate = [{
|
|
|
|
|
+ image: '',
|
|
|
|
|
+ price: '',
|
|
|
|
|
+ agentPrice: '',
|
|
|
|
|
+ cost: '',
|
|
|
|
|
+ otPrice: '',
|
|
|
|
|
+ stock: '',
|
|
|
|
|
+ barCode: '',
|
|
|
|
|
+ groupBarCode: '',
|
|
|
|
|
+ weight: '',
|
|
|
|
|
+ volume: '',
|
|
|
|
|
+ integral: '',
|
|
|
|
|
+ brokerage: '',
|
|
|
|
|
+ brokerageTwo: '',
|
|
|
|
|
+ brokerageThree: ''
|
|
|
|
|
+ }];
|
|
|
this.attrs = [];
|
|
this.attrs = [];
|
|
|
this.photoArr = [];
|
|
this.photoArr = [];
|
|
|
this.imageArr = [];
|
|
this.imageArr = [];
|
|
@@ -2417,7 +2422,6 @@ export default {
|
|
|
this.$refs.myeditor.setText("");
|
|
this.$refs.myeditor.setText("");
|
|
|
this.$refs.instructionManualRef.setText("");
|
|
this.$refs.instructionManualRef.setText("");
|
|
|
}, 500);
|
|
}, 500);
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|