|
|
|
@ -3,19 +3,16 @@ |
|
|
|
|
<j-form-container :disabled="formDisabled"> |
|
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
|
|
|
|
<a-row> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="仓库" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="storehouseId"> |
|
|
|
|
<j-search-select-tag v-model="model.storehouseId" dict="starehouse,name,id" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="物品类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemType"> |
|
|
|
|
<j-dict-select-tag type="list" v-model="model.itemType" dictCode="goods_category" placeholder="请选择物品类型" /> |
|
|
|
|
<j-dict-select-tag type="list" :disabled ="model.state !=='1' ? false:true" v-model="model.itemType" dictCode="goods_category" placeholder="请选择物品类型" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24" v-if="this.model.itemType==1"> |
|
|
|
|
<a-form-model-item label="物品编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemCode"> |
|
|
|
|
<j-popup |
|
|
|
|
:disabled ="model.state !=='1' ? false:true" |
|
|
|
|
v-model="model.itemCode" |
|
|
|
|
field="itemCode" |
|
|
|
|
org-fields="fabric_number" |
|
|
|
@ -31,6 +28,7 @@ |
|
|
|
|
<a-col :span="24" v-if="this.model.itemType==2"> |
|
|
|
|
<a-form-model-item label="物品编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemCode"> |
|
|
|
|
<j-popup |
|
|
|
|
:disabled ="model.state !=='1' ? false:true" |
|
|
|
|
v-model="model.itemCode" |
|
|
|
|
field="itemCode" |
|
|
|
|
org-fields="nums" |
|
|
|
@ -47,6 +45,7 @@ |
|
|
|
|
<a-col :span="24" v-if="this.model.itemType==3"> |
|
|
|
|
<a-form-model-item label="物品编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemCode"> |
|
|
|
|
<j-popup |
|
|
|
|
:disabled ="model.state !=='1' ? false:true" |
|
|
|
|
v-model="model.itemCode" |
|
|
|
|
field="itemCode" |
|
|
|
|
org-fields="code" |
|
|
|
@ -62,6 +61,7 @@ |
|
|
|
|
<a-col :span="24" v-if="this.model.itemType==4"> |
|
|
|
|
<a-form-model-item label="物品编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemCode"> |
|
|
|
|
<j-popup |
|
|
|
|
:disabled ="model.state !=='1' ? false:true" |
|
|
|
|
v-model="model.itemCode" |
|
|
|
|
field="itemCode" |
|
|
|
|
org-fields="nums" |
|
|
|
@ -77,6 +77,7 @@ |
|
|
|
|
<a-col :span="24" v-if="this.model.itemType==5"> |
|
|
|
|
<a-form-model-item label="物品编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemCode"> |
|
|
|
|
<j-popup |
|
|
|
|
:disabled ="model.state !=='1' ? false:true" |
|
|
|
|
v-model="model.itemCode" |
|
|
|
|
field="itemCode" |
|
|
|
|
org-fields="goods_code" |
|
|
|
@ -89,42 +90,25 @@ |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="用量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="amount"> |
|
|
|
|
<a-input v-model="model.amount" placeholder="请输入用量" ></a-input> |
|
|
|
|
<a-input :disabled ="model.state !=='1' ? false:true" v-model="model.amount" placeholder="请输入用量" ></a-input> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit"> |
|
|
|
|
<a-input v-model="model.unit" placeholder="请输入单位" ></a-input> |
|
|
|
|
<a-input :disabled ="model.state !=='1' ? false:true" v-model="model.unit" placeholder="请输入单位" ></a-input> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="出库原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deliveryReason"> |
|
|
|
|
<j-dict-select-tag type="radio" v-model="model.deliveryReason" dictCode="scjc" placeholder="请选择出库原因" /> |
|
|
|
|
<j-dict-select-tag type="radio" :disabled ="model.state !=='1' ? false:true" v-model="model.deliveryReason" dictCode="scjc" placeholder="请选择出库原因" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="出库时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deliveryTime"> |
|
|
|
|
<j-date placeholder="请选择出库时间" v-model="model.deliveryTime" style="width: 100%" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="取货人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="carrierId"> |
|
|
|
|
<j-select-user-by-dep v-model="model.carrierId" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="24"> |
|
|
|
|
<a-form-model-item label="管理员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="adminName"> |
|
|
|
|
<j-popup |
|
|
|
|
v-model="model.adminName" |
|
|
|
|
field="adminName" |
|
|
|
|
org-fields="id,realname" |
|
|
|
|
dest-fields="adminId,adminName" |
|
|
|
|
code="findck" |
|
|
|
|
:multi="true" |
|
|
|
|
@input="popupCallback" |
|
|
|
|
/> |
|
|
|
|
<j-date placeholder="请选择出库时间" :disabled ="model.state !=='1' ? false:true" v-model="model.deliveryTime" style="width: 100%" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
</a-form-model> |
|
|
|
|
</j-form-container> |
|
|
|
@ -167,9 +151,7 @@ |
|
|
|
|
amount: [ |
|
|
|
|
{ required: true, message: '请输入用量!'}, |
|
|
|
|
], |
|
|
|
|
storehouseId: [ |
|
|
|
|
{ required: true, message: '请输入仓库!'}, |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
itemType: [ |
|
|
|
|
{ required: true, message: '请输入物品类型!'}, |
|
|
|
|
], |
|
|
|
@ -179,12 +161,8 @@ |
|
|
|
|
deliveryTime: [ |
|
|
|
|
{ required: true, message: '请输入出库时间!'}, |
|
|
|
|
], |
|
|
|
|
carrierId: [ |
|
|
|
|
{ required: true, message: '请输入取货人!'}, |
|
|
|
|
], |
|
|
|
|
adminName: [ |
|
|
|
|
{ required: true, message: '请输入管理员!'}, |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
url: { |
|
|
|
|
add: "/delivery/delivery/add", |
|
|
|
|