|
|
@@ -15,7 +15,7 @@
|
|
|
<select id="owner_id" name="owner_id" class="form-control col-4" :class="errors.owner_id ? 'is-invalid' : ''" v-model="owner_id" @change="selectOwner" required>
|
|
|
<option v-for="owner in owners" :value="owner.name">@{{owner.value}}</option>
|
|
|
</select>
|
|
|
- <input type="text" class="form-control-sm ml-2" placeholder="输入关键字定位项目" @input="owner_seek">
|
|
|
+ <input id="owner_name" type="text" class="form-control-sm ml-2" placeholder="输入关键字定位项目" @input="owner_seek($event)" autocomplete="off">
|
|
|
<span class="invalid-feedback" role="alert" v-if="errors.owner_id">
|
|
|
<strong>@{{ errors.owner_id[0] }}</strong>
|
|
|
</span>
|
|
|
@@ -24,7 +24,7 @@
|
|
|
<div class="form-group row">
|
|
|
<label for="customer_name" class="col-2 col-form-label text-right">客户名称</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control " name="customer_name" autocomplete="off" value="{{ old('customer_name') }}" v-model="customer_name" readonly>
|
|
|
+ <input id="customer_name" type="text" class="form-control " name="customer_name" autocomplete="off" value="{{ old('customer_name') }}" v-model="customer_name" readonly>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
@@ -41,65 +41,67 @@
|
|
|
<div class="form-group row">
|
|
|
<label for="name" class="col-2 col-form-label text-right">耗材名称</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control " name="material_name" autocomplete="off" value="{{ old('material_name') }}" v-model="material_name" readonly>
|
|
|
+ <input id="name" type="text" class="form-control " name="material_name" autocomplete="off" value="{{ old('material_name') }}" v-model="material_name" readonly>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
- <label for="name" class="col-2 col-form-label text-right">尺寸大小</label>
|
|
|
+ <label for="size" class="col-2 col-form-label text-right">尺寸大小</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control " name="size" autocomplete="off" value="{{ old('size') }}" v-model="size" readonly>
|
|
|
+ <input id="size" type="text" class="form-control " name="size" autocomplete="off" value="{{ old('size') }}" v-model="size" readonly>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
- <label for="name" class="col-2 col-form-label text-right">特殊要求</label>
|
|
|
+ <label for="special" class="col-2 col-form-label text-right">特殊要求</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control " name="special" autocomplete="off" value="{{ old('special') }}" v-model="special" readonly>
|
|
|
+ <input id="special" type="text" class="form-control " name="special" autocomplete="off" value="{{ old('special') }}" v-model="special" readonly>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
- <label for="name" class="col-2 col-form-label text-right">材质规格</label>
|
|
|
+ <label for="specification" class="col-2 col-form-label text-right">材质规格</label>
|
|
|
<div class="col-8">
|
|
|
- <textarea type="text" class="form-control" name="specification" autocomplete="off" value="{{ old('specification') }}" readonly>@{{ specification }}</textarea>
|
|
|
+ <textarea id="specification" type="text" class="form-control" name="specification" autocomplete="off" value="{{ old('specification') }}" readonly>@{{ specification }}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group row">
|
|
|
+ <div class="form-group row" v-if="is_procurement==='procurement'">
|
|
|
<label for="quantity" class="col-2 col-form-label text-right">采购数量</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control" v-model="quantity" :class="errors.quantity ? 'is-invalid' : ''" name="quantity" autocomplete="off" value="{{ old('quantity') }}" required>
|
|
|
+ <input id="quantity" type="text" class="form-control" v-model="quantity" :class="errors.quantity ? 'is-invalid' : ''" name="quantity" autocomplete="off" value="{{ old('quantity') }}" required>
|
|
|
<span class="invalid-feedback" role="alert" v-if="errors.quantity">
|
|
|
<strong>@{{ errors.quantity[0] }}</strong>
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group row">
|
|
|
+ <div class="form-group row" v-if="is_procurement==='procurement'">
|
|
|
<label for="amount" class="col-2 col-form-label text-right">销售数量</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control" name="amount" :class="errors.amount ? 'is-invalid' : ''" autocomplete="off" value="{{ old('amount') }}" @input="countTotalPrice" v-model="amount" required>
|
|
|
+ <input id="amount" type="text" class="form-control" name="amount" :class="errors.amount ? 'is-invalid' : ''" autocomplete="off" value="{{ old('amount') }}" @input="countTotalPrice" v-model="amount" required>
|
|
|
<span class="invalid-feedback" role="alert" v-if="errors.amount">
|
|
|
<strong>@{{ errors.amount[0] }}</strong>
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group row">
|
|
|
+ <div class="form-group row" v-if="is_procurement==='procurement'">
|
|
|
<label for="unit_price" class="col-2 col-form-label text-right">销售单价</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control" name="unit_price" :class="errors.unit_price ? 'is-invalid' : ''" autocomplete="off" value="{{ old('unit_price') }}" @input="countTotalPrice" v-model="unit_price" required>
|
|
|
+ <input id="unit_price" type="text" class="form-control" name="unit_price" :class="errors.unit_price ? 'is-invalid' : ''" autocomplete="off" value="{{ old('unit_price') }}" @input="countTotalPrice" v-model="unit_price" required>
|
|
|
<span class="invalid-feedback" role="alert" v-if="errors.unit_price">
|
|
|
<strong>@{{ errors.unit_price[0] }}</strong>
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group row">
|
|
|
+ <div class="form-group row" v-if="is_procurement==='procurement'">
|
|
|
<label for="total_price" class="col-2 col-form-label text-right">销售总价</label>
|
|
|
<div class="col-8">
|
|
|
- <input type="text" class="form-control" name="total_price" autocomplete="off" value="{{ old('total_price') }}" v-model="total_price" readonly>
|
|
|
+ <input id="total_price" type="text" class="form-control" name="total_price" autocomplete="off" value="{{ old('total_price') }}" v-model="total_price" readonly>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal" >关闭</button>
|
|
|
- <button type="button" class="btn btn-primary" @click="createProcurement">提交</button>
|
|
|
+ <button v-if="is_procurement==='procurement'" type="button" class="btn btn-primary" @click="createProcurement">提交</button>
|
|
|
+ <button v-if="is_procurement==='enquiry'" type="button" class="btn btn-primary" @click="createEnquiry">提交</button>
|
|
|
+ <button v-if="is_procurement==='proof'" type="button" class="btn btn-primary" @click="createProof">提交</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|