| | |
| | | <a-row :gutter="24"> |
| | | <a-col :md="6" :sm="8"> |
| | | <a-form-item label="入库申请单编号"> |
| | | <a-input placeholder="请输入入库申请单编号" v-model="queryParam.inboundNum" /> |
| | | <j-input placeholder="请输入入库申请单编号" v-model="queryParam.inboundNum" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="6" :sm="8"> |
| | |
| | | title: '审核状态', |
| | | align: 'center', |
| | | dataIndex: 'orderStatus_dictText', |
| | | }, |
| | | { |
| | | title: '借用单号', |
| | | align: 'center', |
| | | dataIndex: 'borrowNum', |
| | | }, |
| | | { |
| | | title: '审批意见', |
| | |
| | | }else{ |
| | | this.dataSource = []; |
| | | this.clearPara() |
| | | this.loading = false; |
| | | return |
| | | } |
| | | getAction(httpUrl, params) |
| | | .then((res) => { |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入库位号'" v-model="model.positionCode" :disabled="disableSubmit"/> |
| | | <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="库位号"> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-item> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | <script> |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | add(nodeSelected) { |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入库位号'" v-model="model.positionCode" :disabled="disableSubmit"/> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | <script> |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'ParaCommonToolModal', |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | add(nodeSelected) { |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入库位号'" v-model="model.positionCode" :disabled="disableSubmit"/> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | <script> |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | add(nodeSelected) { |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入库位号'" v-model="model.positionCode" :disabled="disableSubmit"/> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | <script> |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | add(nodeSelected) { |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入库位号'" v-model="model.positionCode" :disabled="disableSubmit"/> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | <script> |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import JThirdAppDropdown from '../../../../components/jeecgbiz/thirdApp/JThirdAppDropdown.vue' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | add(nodeSelected) { |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入库位号'" v-model="model.positionCode" :disabled="disableSubmit"/> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | |
| | | <script> |
| | | import { getAction,postAction, httpAction } from '@/api/manage' |
| | | import { validateDuplicateValueInDelFlag } from '@/utils/util' |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | } |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | | if (res.success) { |
| | | this.locationCodeOptions = res.result |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | add(nodeSelected) { |
| | |
| | | return filterObj(this.param) |
| | | }, |
| | | add (nodeSelected) { |
| | | this.qrList = [] |
| | | this.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | | this.model.typeName = nodeSelected.entity.typeName |
| | |
| | | }, |
| | | handleOk() { |
| | | const that = this |
| | | if(this.dataSource.length == 0){ |
| | | that.$message.error("请先选择需要入库的工具!") |
| | | return |
| | | } |
| | | // 触发表单验证 |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let formData = Object.assign(this.model, values) |
| | | formData.detailData = this.dataSource |
| | | formData.classifyId = this.classifyId |
| | | postAction(this.url.addInStorage, formData) |
| | | this.model.detailData = this.dataSource |
| | | this.model.classifyId = this.classifyId |
| | | postAction(this.url.addInStorage, this.model) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | if(formData.inStorehouseType === '1'){ |
| | | if(this.model.inStorehouseType === '1'){ |
| | | this.qrList = res.result.map((content, i) => ({ |
| | | content:res.result[i].content, |
| | | base64: res.result[i].image |
| | |
| | | dataIndex: 'applicationType', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '库位号', |
| | | align: 'center', |
| | | dataIndex: 'locationCode', |
| | | }, |
| | | { |
| | | title: '入库数量', |
| | | dataIndex: 'inStorageQuantity', |
| | |
| | | /> |
| | | </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" |
| | |
| | | v-decorator="[ 'locationCodeId', validatorRules.locationCodeId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </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]" /> |
| | |
| | | @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', |
| | |
| | | methods: { |
| | | modalFormOk() { |
| | | }, |
| | | filterOption(input, option) { |
| | | return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| | | }, |
| | | getQueryParams() { |
| | | this.param.pageNo = this.ipagination.current |
| | | this.param.pageSize = this.ipagination.pageSize |
| | |
| | | }, |
| | | methods: { |
| | | add (nodeSelected) { |
| | | this.validatorRules.paraTypeFlag[0].required = false |
| | | this.modelDefault.parentId = nodeSelected.key |
| | | this.modelDefault.parentNum = nodeSelected.entity.classifyId |
| | | this.modelDefault.parentName = nodeSelected.entity.typeName |
| | |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | console.log("111",this.model.id) |
| | | // 触发表单验证 |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :md="7" :sm="7"> |
| | | <a-form-item label="工具编码"> |
| | | <a-input placeholder="请输入工具编码检索" v-model="queryParam.equipmentid"></a-input> |
| | | <a-input placeholder="请输入工具编码检索" v-model="queryParam.toolId"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="3" :sm="3"> |