Browse Source

文字修改

master
lemon 4 years ago
parent
commit
934a15ecd1
  1. 4
      MySQL_change.sql
  2. 2
      app/AdminAgent/Controllers/IndustryOrderController.php
  3. 4
      app/AdminSupplier/Controllers/DemandProductController.php
  4. 2
      resources/lang/zh_CN/product.php

4
MySQL_change.sql

@ -1,6 +1,6 @@
# 16:37 2021/9/16 # 16:37 2021/9/16
ALTER TABLE `products` ALTER TABLE `products`
ADD COLUMN `service_persons` INT NOT NULL DEFAULT '1' COMMENT '涉及用户数' AFTER `content`;
ADD COLUMN `service_persons` INT NOT NULL DEFAULT '1' COMMENT '单库存服务用户数' AFTER `content`;
# 17:49 2021/9/17 # 17:49 2021/9/17
ALTER TABLE `suppliers` ALTER TABLE `suppliers`
@ -54,7 +54,7 @@ CREATE TABLE `industry_products` (
`status` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '-2:下架,-1:审核拒绝,0:未审核,1:上架', `status` TINYINT(3) NOT NULL DEFAULT '0' COMMENT '-2:下架,-1:审核拒绝,0:未审核,1:上架',
`know` TEXT NULL DEFAULT NULL COMMENT '旅客须知' COLLATE 'utf8_general_ci', `know` TEXT NULL DEFAULT NULL COMMENT '旅客须知' COLLATE 'utf8_general_ci',
`content` MEDIUMTEXT NULL DEFAULT NULL COMMENT '产品详情' COLLATE 'utf8_general_ci', `content` MEDIUMTEXT NULL DEFAULT NULL COMMENT '产品详情' COLLATE 'utf8_general_ci',
`service_persons` INT(10) NOT NULL DEFAULT '1' COMMENT '涉及用户数',
`service_persons` INT(10) NOT NULL DEFAULT '1' COMMENT '单库存服务用户数',
`min_sale` INT(10) NOT NULL DEFAULT '0' COMMENT '起售数', `min_sale` INT(10) NOT NULL DEFAULT '0' COMMENT '起售数',
`verify_mobile` VARCHAR(15) NOT NULL DEFAULT '' COMMENT '核销人员手机号' COLLATE 'utf8mb4_unicode_ci', `verify_mobile` VARCHAR(15) NOT NULL DEFAULT '' COMMENT '核销人员手机号' COLLATE 'utf8mb4_unicode_ci',
`extends` JSON NULL DEFAULT NULL, `extends` JSON NULL DEFAULT NULL,

2
app/AdminAgent/Controllers/IndustryOrderController.php

@ -151,7 +151,7 @@ class IndustryOrderController extends AdminController
$form->text('', '购买产品')->default($industry->title)->disable(); $form->text('', '购买产品')->default($industry->title)->disable();
$form->text('', '单价')->default($industry->price)->disable(); $form->text('', '单价')->default($industry->price)->disable();
$form->text('', '库存')->default($industry->stock)->disable(); $form->text('', '库存')->default($industry->stock)->disable();
$form->text('', '涉及用户数')->default($industry->service_persons)->disable();
$form->text('', '单库存服务用户数')->default($industry->service_persons)->disable();
$form->text('', '起购数量')->default($industry->min_sale)->disable(); $form->text('', '起购数量')->default($industry->min_sale)->disable();
$form->image('picture', '产品图')->default($industry->pictures)->disable(); $form->image('picture', '产品图')->default($industry->pictures)->disable();
})->saving(function (Form $form) use ($industry) { })->saving(function (Form $form) use ($industry) {

4
app/AdminSupplier/Controllers/DemandProductController.php

@ -63,7 +63,7 @@ class DemandProductController extends AdminController
$show->field('category.name','分类'); $show->field('category.name','分类');
$show->field('title'); $show->field('title');
$show->field('pictures')->image('', 80, 80); $show->field('pictures')->image('', 80, 80);
$show->field('service_persons','涉及用户数');
$show->field('service_persons','单库存服务用户数');
$show->field('status')->using(ProductStatus::array()); $show->field('status')->using(ProductStatus::array());
$show->field('know')->unescape()->as(fn($v) => preg_replace('/<script.*?>.*?<\/script>/is', '', $v)); $show->field('know')->unescape()->as(fn($v) => preg_replace('/<script.*?>.*?<\/script>/is', '', $v));
$show->field('content')->unescape()->as(fn($v) => preg_replace('/<script.*?>.*?<\/script>/is', '', $v)); $show->field('content')->unescape()->as(fn($v) => preg_replace('/<script.*?>.*?<\/script>/is', '', $v));
@ -94,7 +94,7 @@ class DemandProductController extends AdminController
$form->text('title')->required(); $form->text('title')->required();
//$form->currency('price')->symbol('¥')->required(); //$form->currency('price')->symbol('¥')->required();
//$form->currency('original_price')->symbol('¥')->required(); //$form->currency('original_price')->symbol('¥')->required();
$form->number('service_persons','涉及用户数')->required();
$form->number('service_persons','单库存服务用户数')->required();
//$form->number('stock')->required(); //$form->number('stock')->required();
$form->multipleImage('pictures')->required()->removable(false)->retainable()->uniqueName(); $form->multipleImage('pictures')->required()->removable(false)->retainable()->uniqueName();
$form->editor('know'); $form->editor('know');

2
resources/lang/zh_CN/product.php

@ -13,7 +13,7 @@ return [
'picture' => '产品图片', 'picture' => '产品图片',
'price' => '售价', 'price' => '售价',
'sale' => '销量', 'sale' => '销量',
'service_persons' => '涉及用户数',
'service_persons' => '单库存服务用户数',
'status' => '状态', 'status' => '状态',
'stock' => '库存', 'stock' => '库存',
'supplier_id' => '供应商ID', 'supplier_id' => '供应商ID',

Loading…
Cancel
Save