...
|
...
|
@@ -110,6 +110,7 @@ export default { |
|
|
data() {
|
|
|
return {
|
|
|
readonly: false,
|
|
|
allreadonly: false,
|
|
|
visiable: false,
|
|
|
loading: false,
|
|
|
posting: true,
|
...
|
...
|
@@ -255,9 +256,7 @@ export default { |
|
|
this.formData = initData;
|
|
|
},
|
|
|
onOk() {
|
|
|
console.log('ok');
|
|
|
this.$refs.formCoupon.validate(valid => {
|
|
|
console.log(valid);
|
|
|
if (!valid) {
|
|
|
this.posting = false;
|
|
|
this.$nextTick(() => {
|
...
|
...
|
@@ -277,7 +276,7 @@ export default { |
|
|
this.formData.skupForbidType = arr.join(',');
|
|
|
},
|
|
|
async saveData(params) {
|
|
|
if (this.readonly) {
|
|
|
if (this.allreadonly) {
|
|
|
this.visiable = false;
|
|
|
return;
|
|
|
}
|
...
|
...
|
|