Browse Source

修改商品表单无用代码

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
4bdfbbac05
  1. 9
      console/migrations/m191112_014508_create_table_express_template.php
  2. 6
      console/migrations/m191203_030210_update_columns_province_city_area_in_table_ats_taking_site.php
  3. 2
      console/migrations/m191203_030911_update_column_address_in_table_ats_taking_site.php
  4. 6
      vendor/antgoods/goods/src/views/goods/create.php

9
console/migrations/m191112_014508_create_table_express_template.php

@ -19,14 +19,11 @@ class m191112_014508_create_table_express_template extends Migration
'province'=>$this->text()->comment('省份'), 'province'=>$this->text()->comment('省份'),
'city'=>$this->text()->comment('城市'), 'city'=>$this->text()->comment('城市'),
'area'=>$this->text()->comment('区域'), 'area'=>$this->text()->comment('区域'),
'billing_type'=>$this->tinyInteger(1)->defaultValue(0)->comment('账单类型'),
'extra_weight_type'=>$this->tinyInteger(2)->defaultValue(0)->comment('续重重量类型'),
'exemption_type'=>$this->tinyInteger(1)->defaultValue(0)->comment('包邮类型'),
'calculation'=>$this->tinyInteger(2)->defaultValue(0)->comment('计算方式'),
'basic_price'=>$this->integer(20)->defaultValue(null)->comment('基本运费'), 'basic_price'=>$this->integer(20)->defaultValue(null)->comment('基本运费'),
'basic_amount'=>$this->integer(20)->defaultValue(null)->comment('基本数量'),
'extra_price'=>$this->integer(20)->defaultValue(null)->comment('续重运费'), 'extra_price'=>$this->integer(20)->defaultValue(null)->comment('续重运费'),
'exemption_amount'=>$this->integer(20)->defaultValue(null)->comment('包邮金额'),
'support_taking'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否支持自提,1为不支持'),
'taking_site'=>$this->text()->comment('自提地点'),
'extra_amount'=>$this->integer(20)->defaultValue(null)->comment('续重运费'),
'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'),
'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'),
],$tableOptions); ],$tableOptions);

6
console/migrations/m191203_030210_update_columns_province_city_area_in_table_ats_taking_site.php

@ -10,11 +10,11 @@ class m191203_030210_update_columns_province_city_area_in_table_ats_taking_site
public function up() public function up()
{ {
$this->dropColumn('ats_taking_site', 'province'); $this->dropColumn('ats_taking_site', 'province');
$this->addColumn('ats_taking_site', 'province', $this->string(10)->notNull()->defaultValue(null)->comment('省份'));
$this->addColumn('ats_taking_site', 'province', $this->string(64)->defaultValue('')->notNull()->comment('省份'));
$this->dropColumn('ats_taking_site', 'city'); $this->dropColumn('ats_taking_site', 'city');
$this->addColumn('ats_taking_site', 'city', $this->string(10)->notNull()->defaultValue(null)->comment('城市'));
$this->addColumn('ats_taking_site', 'city', $this->string(64)->defaultValue('')->notNull()->comment('城市'));
$this->dropColumn('ats_taking_site', 'area'); $this->dropColumn('ats_taking_site', 'area');
$this->addColumn('ats_taking_site', 'area', $this->string(10)->notNull()->defaultValue(null)->comment('区域'));
$this->addColumn('ats_taking_site', 'area', $this->string(64)->defaultValue('')->notNull()->comment('区域'));
} }
public function down() public function down()

2
console/migrations/m191203_030911_update_column_address_in_table_ats_taking_site.php

@ -10,7 +10,7 @@ class m191203_030911_update_column_address_in_table_ats_taking_site extends Migr
public function up() public function up()
{ {
$this->dropColumn('ats_taking_site', 'address'); $this->dropColumn('ats_taking_site', 'address');
$this->addColumn('ats_taking_site', 'address', $this->text()->notNull()->comment('地址'));
$this->addColumn('ats_taking_site', 'address', $this->text()->defaultValue('')->notNull()->comment('地址'));
} }
public function down() public function down()

6
vendor/antgoods/goods/src/views/goods/create.php

@ -68,11 +68,5 @@ Yii::$app->params['bsVersion'] = '4.x';
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
<?php
// $this->render('_form', [
// 'model' => $model,
// ])
?>
</div> </div>
</div> </div>
Loading…
Cancel
Save