| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 2"> |
| | | <!-- <a-col :span="24 / 2"> |
| | | <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="库位号"> |
| | | <a-select |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-decorator="[ 'locationCodeId', validatorRules.locationCodeId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <!-- <a-col :span="24 / 2"> |
| | | <a-form-item label="申请原因" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入申请原因" :disabled="disableSubmit" v-decorator="['applicationReason', validatorRules.applicationReason]" /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="申请原因" :labelCol="{ span: 3 }" :wrapperCol="{ span: 21 }" > |
| | | <a-input placeholder="请输入申请原因" :disabled="disableSubmit" v-decorator="['applicationReason', validatorRules.applicationReason]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | @change="(e) => handleChange(e, record.key, col, index)" |
| | | :min="1" |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'goodsShelvesId'" |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :value="text" |
| | | show-search |
| | | :filter-option="filterOption" |
| | | style="width: 100%" |
| | | :options="locationCodeOptions" |
| | | @change="(e) => handleChange(e, record.key, col, index)" |
| | | /> |
| | | </div> |
| | | </template> |
| | | <span slot="action" slot-scope="text, record, index"> |
| | |
| | | align: 'center', |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | { |
| | | title: '库位号', |
| | | align: 'center', |
| | | dataIndex: 'goodsShelvesId', |
| | | scopedSlots: { customRender: 'goodsShelvesId' }, |
| | | }, |
| | | { |
| | | title: '入库数量', |
| | | align: 'center', |
| | |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | ], |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() {}, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | modalFormOk() { |
| | | }, |
| | | filterOption(input, option) { |
| | | return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| | | }, |
| | | getQueryParams() { |
| | | this.param.pageNo = this.ipagination.current |
| | |
| | | applicationType: data[i].applicationTypeName, |
| | | onlyCode:data[i].onlyCode, |
| | | quantity:data[i].quantity, |
| | | inStorageQuantity:data[i].storageQuantity || data[i].quantity, |
| | | inStorageQuantity:data[i].storageQuantity || data[i].quantity || 1, |
| | | accuracyClass:data[i].accuracyClass |
| | | }) |
| | | } |