Commit d8f1a7d7 by 杨树贤

新增页面修改

parent 204f8e0b
...@@ -114,6 +114,12 @@ return [ ...@@ -114,6 +114,12 @@ return [
'SupplierType' => [ 'SupplierType' => [
1 => '正式', 1 => '正式',
2 => '临时', 2 => '临时',
3 => '待转正', ],
//TT(电汇)、支票、信用卡、其他
'SettlementType' => [
1 => 'TT(电汇)',
2 => '支票',
3 => '信用卡',
0 => '其他',
] ]
]; ];
\ No newline at end of file
<script> <script>
layui.use(['table', 'form', 'element', 'layer', 'Split', 'admin'], function () { layui.use(['table', 'form', 'element', 'layer', 'Split', 'admin','index'], function () {
let $ = layui.jquery; let $ = layui.jquery;
let Split = layui.Split; let Split = layui.Split;
// 水平分割,需要分割的元素(id)、默认大小(百分比)、最小值(单位px) // 水平分割,需要分割的元素(id)、默认大小(百分比)、最小值(单位px)
Split(['#s1', '#s2', '#s3', '#s4', '#s5', '#s6'], {sizes: [9, 12, 12, 12, 12, 43], minSize: 70}); Split(['#s1', '#s2', '#s3', '#s4', '#s5', '#s6'], {sizes: [9, 12, 12, 12, 12, 43], minSize: 70});
let table = layui.table; let table = layui.table;
let form = layui.form; let form = layui.form;
let index = layui.index;
let admin = layui.admin; let admin = layui.admin;
let initCondition = {source_type: 'all'}; let initCondition = {source_type: 'all'};
...@@ -228,15 +229,22 @@ ...@@ -228,15 +229,22 @@
//新增供应商弹窗 //新增供应商弹窗
$("#add_supplier").click(function () { $("#add_supplier").click(function () {
layer.open({ // layer.open({
type: 2, // type: 2,
content: '/supplier/AddSupplier?view=iframe', // content: '/supplier/AddSupplier?view=iframe',
area: ['1000px', '97%'], // area: ['1000px', '97%'],
// title: '新增供应商',
// offset: ['10px'],
// end: function () {
// table.reload('list');
// supplierStatistics();
// }
// });
index.openTab({
title: '新增供应商', title: '新增供应商',
offset: ['10px'], url: '/supplier/AddSupplier?view=iframe',
end: function () { end: function() {
table.reload('list'); // insTb.reload();
supplierStatistics();
} }
}); });
}) })
......
...@@ -18,16 +18,20 @@ ...@@ -18,16 +18,20 @@
<form class="layui-form" action=""> <form class="layui-form" action="">
@endif @endif
<?php <?php
$supplierType = config('field.SupplierType');
$option = ['required' => true]; $option = ['required' => true];
//正式供应商不允许修改供应商类型了 //正式供应商不允许修改供应商类型了或者是竞调供应商is_type=1也不允许修改供应商
if (!empty($supplier) && $supplier['supplier_type'] == \App\Model\SupplierChannelModel::SUPPLIER_TYPE_OFFICIAL) { if ((!empty($supplier) && $supplier['supplier_type'] == \App\Model\SupplierChannelModel::SUPPLIER_TYPE_OFFICIAL) || (!empty($supplier) && $supplier['is_type'] == 1)) {
$option['disable'] = true; $option['disable'] = true;
$supplierType[3] = '待转正';
} }
?> ?>
<div class="layui-form-item"> <div class="layui-form-item">
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter') @inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',config('field.SupplierType'),$option) !!} {!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',$supplierType,$option) !!}
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label"><span class="require">*</span>供应商名称 : </label> <label class="layui-form-label"><span class="require">*</span>供应商名称 : </label>
<div class="layui-input-block"> <div class="layui-input-block">
...@@ -350,8 +354,8 @@ ...@@ -350,8 +354,8 @@
</div> </div>
<div class="layui-col-md4" style="margin-top: 30px"> <div class="layui-col-md4" style="margin-top: 30px">
<div class="layui-row" style="text-align: right"> <div class="layui-row" style="text-align: right">
<button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button" lay-submit <button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button"
lay-filter="addAndApplySupplier">申请审核 lay-submit lay-filter="addAndApplySupplier">申请审核
</button> </button>
<button type="button" class="layui-btn layui-btn submit-loading" lay-submit <button type="button" class="layui-btn layui-btn submit-loading" lay-submit
lay-filter="addSupplier">确认 lay-filter="addSupplier">确认
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment