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AG,CAAC,kBAEfpB,EAAG,OAGPA,EAAG,KAELN,EAAAA,EAAAA,IAAauK,EAAAA,EAAI,CAAEC,QAAS,QAAU,CACpCC,KAAKrK,EAAAA,EAAAA,KAAS,IAAM,EAClBJ,EAAAA,EAAAA,IAAa0K,EAAQ,CACnBC,WAAYtD,EACZ3F,MAAO,CAAC,eAAe,WAEzB1B,EAAAA,EAAAA,IAAa4K,EAAU,CACrBD,WAAYtD,EACZ3F,MAAO,CAAC,eAAe,WAEzB1B,EAAAA,EAAAA,IAAa6K,EAAmB,CAAEF,WAAYtD,OAEhDkD,IAAInK,EAAAA,EAAAA,KAAS,IAAM,EACjBJ,EAAAA,EAAAA,IAAa8K,EAAAA,EAAQ,CACnBlK,QAAS,WACTrI,IAAK6O,EACL2D,YAAYlK,EAAAA,EAAAA,IAAOmK,EAAAA,IACnBjR,QAASA,EACTnB,UAAWA,GACV,CACDqS,OAAO7K,EAAAA,EAAAA,KAAS,EAAG4B,SAAU,EAC3BhC,EAAAA,EAAAA,IAAakL,EAAe,CAC1BlJ,IAAKA,EACLmJ,aAAc9C,GACb,KAAM,EAAG,CAAC,WAEf/H,EAAG,GACF,EAAG,CAAC,aAAc,iBAEvBA,EAAG,KAEL,CAEJ,IE1VA,MAAM,EAAc,EAEpB,O","sources":["webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/Labour.vue?8ca7","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/Labour.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/Labour.vue?b234","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/inputSearch.vue?e0f1","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/inputSearch.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/inputSearch.vue?6212","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/scanCode.vue?4b03","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/scanCode.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/scanCode.vue?b8e5","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/transportScanCode.vue?f07d","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/transportScanCode.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/transportScanCode.vue?b7ba","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/Editinventory.vue?6b2b","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/Editinventory.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/Editinventory.vue?e0a4","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/index.vue?054a","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/index.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsIncome/index.vue?f0cf"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = { class: \"dialog-footer\" }\nconst _hoisted_3 = { class: \"dialog-footer\" }\n\nimport { reactive, ref ,onMounted} from 'vue'\r\nimport type { FormInstance, FormRules } from 'element-plus'\r\nimport { ElNotification } from 'element-plus'\r\nimport { syrulesData, columnsTable } from \"@/plugins/rulesData\";\r\nimport {timesFn} from \"@/plugins/settime\";\r\n\r\nimport {\r\n medicListStock,\r\n stockunit,//发货单位\r\n operatorList,//经办人\r\n stockTemplateIn,//单个入库\r\n stockTemplateRefBatchIn,//批量入库\r\n} from \"@/api\";\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { Delete, Edit, } from '@element-plus/icons-vue'\r\nconst formLabelWidth = '110px'\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Labour',\n emits: ['scanCode'],\n setup(__props, { emit: __emit }) {\n\r\nconst dialogFormVisible = ref(false)\r\nconst ruleFormRef = ref<FormInstance>()\r\n\r\nlet rules: any = reactive({})\r\n\r\nconst innerVisible = ref(false)\r\nlet initParam: any = reactive({\r\n \"date\":\"\",\r\n \"forwardingUnit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\": '',\r\n \"quantity\": '',\r\n \"unitPrice\":null\r\n})\r\n\r\nconst restaurants = ref<RestaurantItem[]>([])\r\nconst querySearch = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants.value.filter(createFilter(queryString))\r\n : restaurants.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\n\r\nlet data: any = reactive({\r\n tableData: [],\r\n showDiaData: [],\r\n itemPir: [],\r\n rules1: {},\r\n columns: [],// 渲染表格\r\n selectType: [],//表格的下拉对应\r\n editStrot: false,\r\n editIndex: null\r\n})\r\nconst emit: any = __emit\r\n//立即入库\r\nconst subStock = async () => {\r\n let arr = [...data.tableData]\r\n arr.forEach(item=>{\r\n item.unitPrice = Number(item.unitPrice)\r\n })\r\n const reslut: any = await stockTemplateRefBatchIn({ \"stockInList\":arr })\r\n console.log('返回', reslut)\r\n if (reslut.code == 200 && reslut.msg == '入库成功') {\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n innerVisible.value = false\r\n emit('scanCode', '')\r\n data.tableData = []\r\n }\r\n}\r\n\r\n//函数\r\nconst findFun = (data: any, list: any) => {\r\n if (list) {\r\n const b = list.find((item: any) => item.id == data)\r\n if (b) return b.name\r\n else return ''\r\n } else {\r\n return data\r\n }\r\n}\r\nconst resetForm = (formEl: FormInstance | undefined) => {\r\n if (!formEl) return\r\n formEl.resetFields()\r\n}\r\n//加入暂存区\r\nconst submitForm = async (formEl: FormInstance | undefined) => {\r\n if (!formEl) return\r\n await formEl.validate((valid, fields) => {\r\n if (valid) {\r\n ElNotification({\r\n title: '暂存成功',\r\n message: 'ok,加入暂存成功,右下角按钮查看/提交暂存',\r\n type: 'success',\r\n })\r\n console.log('提交', data.editStrot)\r\n if (data.editStrot) {//编辑状态\r\n let { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo } = initParam\r\n data.tableData.splice(data.editIndex, 1, { date, forwardingUnit, operator, quantity, unitPrice: unitPrice, medicineInfo: { ...medicineInfo } })\r\n console.log('编辑状态', data.tableData)\r\n } else {//正常添加\r\n let { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo } = initParam\r\n data.tableData.push({ date, forwardingUnit, operator, quantity, unitPrice: unitPrice, medicineInfo: { ...medicineInfo } })\r\n console.log('正常添加', data.tableData)\r\n }\r\n } else {\r\n ElMessage.error('请完善必填项')\r\n }\r\n })\r\n}\r\n\r\n//函数\r\nconst closeFun = async () => {\r\n if (data.tableData.length == 0) {\r\n dialogFormVisible.value = false\r\n data.tableData = []\r\n } else {\r\n ElMessageBox.confirm('请检查录入数据是否已经提交,该操作将放弃录入信息,是否放弃?', '提示', {\r\n confirmButtonText: '立即去入库',\r\n cancelButtonText: '放弃数据',\r\n type: 'warning',\r\n draggable: true,\r\n center: true,\r\n }).then(() => {\r\n innerVisible.value = true\r\n }).catch(() => {\r\n dialogFormVisible.value = false\r\n ElMessage.success('已放弃入库数据')\r\n })\r\n }\r\n}\r\n//收发货单位\r\nconst itemPirFun = async () => {\r\n const reslut: any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\n//经办人Api\r\nconst operatorListApi = async () => {\r\n const reslut: any = await operatorList({})\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants.value = arr\r\n}\r\n\r\n\r\n//函数\r\nconst showinnerVisible = async () => {\r\n innerVisible.value = true\r\n data.editStrot = false\r\n console.log(data.tableData)\r\n}\r\n\r\nconst showDia = async () => {\r\n data.tableData = []\r\n data.showDiaData = []\r\n data.rules1 = []\r\n data.columns = []\r\n data.selectType = []\r\n data.editStrot = false\r\n resetFun()//复原表单\r\n medicListStockFun()//获取入库表单\r\n itemPirFun()//发货单位\r\n operatorListApi()//经办人\r\n initParam.date = timesFn()\r\n\r\n}\r\n//复原表单\r\nconst resetFun = async () => {\r\n initParam.date = ''\r\n initParam.forwardingUnit = ''\r\n initParam.medicineInfo = {}\r\n initParam.operator = ''\r\n initParam.quantity = ''\r\n initParam.unitPrice = null\r\n resetForm(ruleFormRef.value)\r\n}\r\n//获取入库表单Api\r\nconst medicListStockFun = async () => {\r\n data.columns = []\r\n const reslut: any = await medicListStock({})\r\n if (reslut.code == 200 && reslut.msg == '查询成功') {\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n data.selectType = []\r\n reslut.data?.list.forEach((value: any) => { //value设置成key\r\n data.selectType.push({ type: value.type, list: value.list })\r\n data.columns.push({ prop: value.field_name, label: value.name, list: value.list })\r\n initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n if (['product_id', 'enterprise_id', 'spec_id', 'batch_number', 'expiry_date'].includes(value.field_name)) {\r\n // if (value.type == 6) {\r\n // data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change' }, { pattern: /^([1-9]\\d*|0)(\\.\\d{1,2})?$/, message: '请输入>=0,(最多两位小数)', trigger: \"blur\" },]\r\n // } else if (value.type == 7) {\r\n // data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change' }, { pattern: /^(?:[1-9]\\d*)$/, message: '请输入正整数', trigger: \"blur\" },]\r\n // } else {\r\n // data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change', }]\r\n // }\r\n data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change', }]\r\n }else{\r\n if (value.type == 8) {\r\n data.rules1['medicineInfo.' + value.field_name] = [{ required: false, message: '必填项', trigger: 'change' }, { pattern: /^([1-9]\\d*|0)(\\.\\d{1,2})?$/, message: '请输入>=0,(最多两位小数)', trigger: \"blur\" },]\r\n } else if (value.type == 7) {\r\n data.rules1['medicineInfo.' + value.field_name] = [{ required: false, message: '必填项', trigger: 'change' }, { pattern: /^(?:[1-9]\\d*)$/, message: '请输入正整数', trigger: \"blur\" },]\r\n }\r\n }\r\n });\r\n Object.assign(rules, { ...data.rules1, ...syrulesData })\r\n // console.log('表格', data.selectType)\r\n dialogFormVisible.value = true\r\n }\r\n}\r\n\r\nconst handleClick = (datas: any, index: any) => {\r\n data.editStrot = true\r\n data.editIndex = index\r\n let { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo } = datas\r\n Object.assign(initParam, { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo: { ...medicineInfo } })\r\n innerVisible.value = false\r\n}\r\nconst delClick = (index: any) => {\r\n ElMessageBox.confirm('删除一条信息,是否继续?', '删除', {\r\n confirmButtonText: '确认删除',\r\n cancelButtonText: 'Cancel',\r\n type: 'warning',\r\n center: true,\r\n }).then(() => {\r\n data.tableData.splice(index, 1);\r\n ElMessage.success('已删除')\r\n })\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_divider = _resolveComponent(\"el-divider\")!\n const _component_el_option = _resolveComponent(\"el-option\")!\n const _component_el_select = _resolveComponent(\"el-select\")!\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n const _component_el_form_item = _resolveComponent(\"el-form-item\")!\n const _component_el_autocomplete = _resolveComponent(\"el-autocomplete\")!\n const _component_el_form = _resolveComponent(\"el-form\")!\n const _component_el_table_column = _resolveComponent(\"el-table-column\")!\n const _component_el_table = _resolveComponent(\"el-table\")!\n const _component_el_dialog = _resolveComponent(\"el-dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_button, {\n \"el-button\": \"\",\n type: \"primary\",\n icon: \"Pointer\",\n onClick: showDia\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"手动退货入库\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_dialog, {\n \"destroy-on-close\": true,\n modelValue: dialogFormVisible.value,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((dialogFormVisible).value = $event)),\n title: \"手动入库\",\n \"append-to-body\": true,\n \"before-close\": closeFun,\n draggable: \"\",\n \"close-on-click-modal\": false,\n \"close-on-press-escape\": false,\n width: \"60%\"\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (submitForm(ruleFormRef.value)))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"加入暂存\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, { onClick: showinnerVisible }, {\n default: _withCtx(() => [\n _createTextVNode(\"查看暂存\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"danger\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (resetForm(ruleFormRef.value)))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"重置数据\")\n ]),\n _: 1\n })\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_el_form, {\n ref_key: \"ruleFormRef\",\n ref: ruleFormRef,\n rules: _unref(rules),\n model: _unref(initParam),\n inline: true\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_divider, { \"content-position\": \"center\" }, {\n default: _withCtx(() => [\n _createTextVNode(\"药品信息\")\n ]),\n _: 1\n }),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).showDiaData, (item, index) => {\n return (_openBlock(), _createBlock(_component_el_form_item, {\n label: item.name,\n \"label-width\": formLabelWidth,\n key: index,\n prop: 'medicineInfo.' + item.field_name\n }, {\n default: _withCtx(() => [\n ([1, 2, 3, 4, 5].includes(item.type))\n ? (_openBlock(), _createBlock(_component_el_select, {\n key: 0,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n placeholder: '请选择' + item.name,\n class: \"inputWidth\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.list, (itemIt, i) => {\n return (_openBlock(), _createBlock(_component_el_option, {\n label: itemIt.name,\n value: itemIt.id,\n key: i\n }, null, 8, [\"label\", \"value\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n ([6,7,8].includes(item.type))\n ? (_openBlock(), _createBlock(_component_el_input, {\n key: 1,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n autocomplete: \"off\",\n placeholder: '请输入' + item.name,\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type == 9)\n ? (_openBlock(), _createBlock(_component_el_date_picker, {\n key: 2,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n type: \"date\",\n \"value-format\": \"YYYY-MM-DD\",\n placeholder: '请输入' + item.name,\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type == 10)\n ? (_openBlock(), _createBlock(_component_el_date_picker, {\n key: 3,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n type: \"datetime\",\n \"value-format\": \"YYYY-MM-DD HH:mm:ss\",\n placeholder: '请输入' + item.name,\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1032, [\"label\", \"prop\"]))\n }), 128)),\n _createVNode(_component_el_divider, { \"content-position\": \"center\" }, {\n default: _withCtx(() => [\n _createTextVNode(\"入库信息\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"数量\",\n \"label-width\": formLabelWidth,\n prop: \"quantity\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: _unref(initParam).quantity,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(initParam).quantity) = $event)),\n modelModifiers: { number: true },\n autocomplete: \"off\",\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"单价\",\n \"label-width\": formLabelWidth\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: _unref(initParam).unitPrice,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(initParam).unitPrice) = $event)),\n autocomplete: \"off\",\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"入库日期\",\n \"label-width\": formLabelWidth,\n prop: \"date\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_date_picker, {\n modelValue: _unref(initParam).date,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(initParam).date) = $event)),\n type: \"date\",\n placeholder: \"入库日期\",\n \"value-format\": \"YYYY-MM-DD\",\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"发货单位\",\n \"label-width\": formLabelWidth\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_autocomplete, {\n modelValue: _unref(initParam).forwardingUnit,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(initParam).forwardingUnit) = $event)),\n \"fetch-suggestions\": querySearch1,\n clearable: \"\",\n class: \"inputWidth\",\n placeholder: \"发货单位\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n label: \"经办人\",\n \"label-width\": formLabelWidth,\n prop: \"operator\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_autocomplete, {\n modelValue: _unref(initParam).operator,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(initParam).operator) = $event)),\n \"fetch-suggestions\": querySearch,\n clearable: \"\",\n class: \"inputWidth\",\n placeholder: \"经办人\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"rules\", \"model\"]),\n _createVNode(_component_el_dialog, {\n modelValue: innerVisible.value,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((innerVisible).value = $event)),\n title: \"入库数据\",\n width: \"95%\",\n \"append-to-body\": \"\",\n draggable: \"\",\n \"close-on-click-modal\": false,\n \"close-on-press-escape\": false\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_3, [\n _createVNode(_component_el_button, {\n onClick: _cache[7] || (_cache[7] = ($event: any) => (innerVisible.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"关闭\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: subStock\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"立即入库\")\n ]),\n _: 1\n })\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_el_table, {\n data: _unref(data).tableData,\n style: {\"width\":\"100%\"},\n border: \"\",\n \"max-height\": \"450\",\n \"header-cell-style\": { 'background-color': '#ccc', 'color': 'white' }\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).columns, (item, i) => {\n return (_openBlock(), _createBlock(_component_el_table_column, {\n label: item.label,\n key: i,\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }, {\n default: _withCtx((scope) => [\n _createTextVNode(_toDisplayString(findFun(scope.row.medicineInfo[item.prop], item.list)), 1)\n ]),\n _: 2\n }, 1032, [\"label\"]))\n }), 128)),\n _createVNode(_component_el_table_column, {\n prop: \"quantity\",\n label: \"数量\",\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"unitPrice\",\n label: \"购进单价\",\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"forwardingUnit\",\n label: \"发货单位\",\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"date\",\n label: \"入库日期\",\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"operator\",\n label: \"经办人\",\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n fixed: \"right\",\n label: \"操作\",\n \"min-width\": \"110\"\n }, {\n default: _withCtx((scope) => [\n _createVNode(_component_el_button, {\n type: \"primary\",\n icon: _unref(Edit),\n onClick: ($event: any) => (handleClick(scope.row, scope.$index)),\n circle: \"\"\n }, null, 8, [\"icon\", \"onClick\"]),\n _createVNode(_component_el_button, {\n type: \"danger\",\n icon: _unref(Delete),\n onClick: ($event: any) => (delClick(scope.$index)),\n circle: \"\"\n }, null, 8, [\"icon\", \"onClick\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n}\n}\n\n})","<!-- 手动 -->\r\n<template>\r\n <div class=\"\">\r\n <el-button el-button type=\"primary\" icon=\"Pointer\" @click=\"showDia\">手动退货入库</el-button>\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"dialogFormVisible\" title=\"手动入库\" :append-to-body=\"true\" :before-close=\"closeFun\" draggable\r\n :close-on-click-modal=\"false\" :close-on-press-escape=\"false\" width=\"60%\">\r\n <el-form ref=\"ruleFormRef\" :rules=\"rules\" :model=\"initParam\" :inline=\"true\">\r\n <el-divider content-position=\"center\">药品信息</el-divider>\r\n <el-form-item :label=\"item.name\" :label-width=\"formLabelWidth\" v-for=\"(item, index) in data.showDiaData\"\r\n :key=\"index\" :prop=\"'medicineInfo.' + item.field_name\">\r\n <el-select v-model=\"initParam.medicineInfo[item.field_name]\" :placeholder=\"'请选择' + item.name\"\r\n class=\"inputWidth\" v-if=\"[1, 2, 3, 4, 5].includes(item.type)\">\r\n <el-option :label=\"itemIt.name\" :value=\"itemIt.id\" v-for=\"itemIt, i in item.list\" :key=\"i\" />\r\n </el-select>\r\n \r\n\r\n <el-input v-model=\"initParam.medicineInfo[item.field_name]\" autocomplete=\"off\"\r\n :placeholder=\"'请输入' + item.name\" class=\"inputWidth\" v-if=\"[6,7,8].includes(item.type)\" />\r\n\r\n\r\n <el-date-picker v-model=\"initParam.medicineInfo[item.field_name]\" type=\"date\" value-format=\"YYYY-MM-DD\"\r\n :placeholder=\"'请输入' + item.name\" clearable style=\"width: 200px;\" v-if=\"item.type == 9\" />\r\n <el-date-picker v-model=\"initParam.medicineInfo[item.field_name]\" type=\"datetime\"\r\n value-format=\"YYYY-MM-DD HH:mm:ss\" :placeholder=\"'请输入' + item.name\" clearable style=\"width: 200px;\"\r\n v-if=\"item.type == 10\" />\r\n </el-form-item>\r\n <el-divider content-position=\"center\">入库信息</el-divider>\r\n <el-form-item class=\"el-form-item-main\" label=\"数量\" :label-width=\"formLabelWidth\" prop=\"quantity\">\r\n <el-input v-model.number=\"initParam.quantity\" autocomplete=\"off\" class=\"inputWidth\" />\r\n </el-form-item>\r\n <el-form-item class=\"el-form-item-main\" label=\"单价\" :label-width=\"formLabelWidth\">\r\n <el-input v-model=\"initParam.unitPrice\" autocomplete=\"off\" class=\"inputWidth\" />\r\n </el-form-item>\r\n <el-form-item class=\"el-form-item-main\" label=\"入库日期\" :label-width=\"formLabelWidth\" prop=\"date\">\r\n <el-date-picker v-model=\"initParam.date\" type=\"date\" placeholder=\"入库日期\" value-format=\"YYYY-MM-DD\"\r\n clearable style=\"width: 200px;\" />\r\n </el-form-item>\r\n <el-form-item class=\"el-form-item-main\" label=\"发货单位\" :label-width=\"formLabelWidth\">\r\n <el-autocomplete v-model=\"initParam.forwardingUnit\" :fetch-suggestions=\"querySearch1\" clearable class=\"inputWidth\"\r\n placeholder=\"发货单位\" />\r\n </el-form-item>\r\n <el-form-item label=\"经办人\" :label-width=\"formLabelWidth\" prop=\"operator\">\r\n <el-autocomplete v-model=\"initParam.operator\" :fetch-suggestions=\"querySearch\" clearable class=\"inputWidth\"\r\n placeholder=\"经办人\" />\r\n </el-form-item>\r\n </el-form>\r\n <template #footer>\r\n <span class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"submitForm(ruleFormRef)\">加入暂存</el-button>\r\n <el-button @click=\"showinnerVisible\">查看暂存</el-button>\r\n <el-button type=\"danger\" @click=\"resetForm(ruleFormRef)\">重置数据</el-button>\r\n </span>\r\n </template>\r\n <el-dialog v-model=\"innerVisible\" title=\"入库数据\" width=\"95%\" append-to-body draggable\r\n :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\r\n <el-table :data=\"data.tableData\" style=\"width: 100%\" border max-height=\"450\"\r\n :header-cell-style=\"{ 'background-color': '#ccc', 'color': 'white' }\">\r\n <el-table-column :label=\"item.label\" v-for=\"item, i in data.columns\" :key=\"i\" min-width=\"110\"\r\n show-overflow-tooltip>\r\n <template #default=\"scope\"><!--scope.row.medicineInfo[item.prop] -->\r\n {{ findFun(scope.row.medicineInfo[item.prop], item.list) }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column prop=\"quantity\" label=\"数量\" min-width=\"110\" show-overflow-tooltip />\r\n <el-table-column prop=\"unitPrice\" label=\"购进单价\" min-width=\"110\" show-overflow-tooltip />\r\n <el-table-column prop=\"forwardingUnit\" label=\"发货单位\" min-width=\"110\" show-overflow-tooltip />\r\n <el-table-column prop=\"date\" label=\"入库日期\" min-width=\"110\" show-overflow-tooltip />\r\n <el-table-column prop=\"operator\" label=\"经办人\" min-width=\"110\" show-overflow-tooltip />\r\n\r\n <el-table-column fixed=\"right\" label=\"操作\" min-width=\"110\">\r\n <template #default=\"scope\">\r\n <el-button type=\"primary\" :icon=\"Edit\" @click=\"handleClick(scope.row, scope.$index)\" circle />\r\n <el-button type=\"danger\" :icon=\"Delete\" @click=\"delClick(scope.$index)\" circle />\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <template #footer>\r\n <span class=\"dialog-footer\">\r\n <el-button @click=\"innerVisible = false\">关闭</el-button>\r\n <el-button type=\"primary\" @click=\"subStock\">立即入库</el-button>\r\n </span>\r\n </template>\r\n </el-dialog>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { reactive, ref ,onMounted} from 'vue'\r\nimport type { FormInstance, FormRules } from 'element-plus'\r\nimport { ElNotification } from 'element-plus'\r\nimport { syrulesData, columnsTable } from \"@/plugins/rulesData\";\r\nimport {timesFn} from \"@/plugins/settime\";\r\n\r\nconst dialogFormVisible = ref(false)\r\nconst ruleFormRef = ref<FormInstance>()\r\n\r\nlet rules: any = reactive({})\r\n\r\nimport {\r\n medicListStock,\r\n stockunit,//发货单位\r\n operatorList,//经办人\r\n stockTemplateIn,//单个入库\r\n stockTemplateRefBatchIn,//批量入库\r\n} from \"@/api\";\r\nconst innerVisible = ref(false)\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { Delete, Edit, } from '@element-plus/icons-vue'\r\nconst formLabelWidth = '110px'\r\nlet initParam: any = reactive({\r\n \"date\":\"\",\r\n \"forwardingUnit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\": '',\r\n \"quantity\": '',\r\n \"unitPrice\":null\r\n})\r\n\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\nconst restaurants = ref<RestaurantItem[]>([])\r\nconst querySearch = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants.value.filter(createFilter(queryString))\r\n : restaurants.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\n\r\nlet data: any = reactive({\r\n tableData: [],\r\n showDiaData: [],\r\n itemPir: [],\r\n rules1: {},\r\n columns: [],// 渲染表格\r\n selectType: [],//表格的下拉对应\r\n editStrot: false,\r\n editIndex: null\r\n})\r\nconst emit: any = defineEmits(['scanCode'])\r\n//立即入库\r\nconst subStock = async () => {\r\n let arr = [...data.tableData]\r\n arr.forEach(item=>{\r\n item.unitPrice = Number(item.unitPrice)\r\n })\r\n const reslut: any = await stockTemplateRefBatchIn({ \"stockInList\":arr })\r\n console.log('返回', reslut)\r\n if (reslut.code == 200 && reslut.msg == '入库成功') {\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n innerVisible.value = false\r\n emit('scanCode', '')\r\n data.tableData = []\r\n }\r\n}\r\n\r\n//函数\r\nconst findFun = (data: any, list: any) => {\r\n if (list) {\r\n const b = list.find((item: any) => item.id == data)\r\n if (b) return b.name\r\n else return ''\r\n } else {\r\n return data\r\n }\r\n}\r\nconst resetForm = (formEl: FormInstance | undefined) => {\r\n if (!formEl) return\r\n formEl.resetFields()\r\n}\r\n//加入暂存区\r\nconst submitForm = async (formEl: FormInstance | undefined) => {\r\n if (!formEl) return\r\n await formEl.validate((valid, fields) => {\r\n if (valid) {\r\n ElNotification({\r\n title: '暂存成功',\r\n message: 'ok,加入暂存成功,右下角按钮查看/提交暂存',\r\n type: 'success',\r\n })\r\n console.log('提交', data.editStrot)\r\n if (data.editStrot) {//编辑状态\r\n let { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo } = initParam\r\n data.tableData.splice(data.editIndex, 1, { date, forwardingUnit, operator, quantity, unitPrice: unitPrice, medicineInfo: { ...medicineInfo } })\r\n console.log('编辑状态', data.tableData)\r\n } else {//正常添加\r\n let { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo } = initParam\r\n data.tableData.push({ date, forwardingUnit, operator, quantity, unitPrice: unitPrice, medicineInfo: { ...medicineInfo } })\r\n console.log('正常添加', data.tableData)\r\n }\r\n } else {\r\n ElMessage.error('请完善必填项')\r\n }\r\n })\r\n}\r\n\r\n//函数\r\nconst closeFun = async () => {\r\n if (data.tableData.length == 0) {\r\n dialogFormVisible.value = false\r\n data.tableData = []\r\n } else {\r\n ElMessageBox.confirm('请检查录入数据是否已经提交,该操作将放弃录入信息,是否放弃?', '提示', {\r\n confirmButtonText: '立即去入库',\r\n cancelButtonText: '放弃数据',\r\n type: 'warning',\r\n draggable: true,\r\n center: true,\r\n }).then(() => {\r\n innerVisible.value = true\r\n }).catch(() => {\r\n dialogFormVisible.value = false\r\n ElMessage.success('已放弃入库数据')\r\n })\r\n }\r\n}\r\n//收发货单位\r\nconst itemPirFun = async () => {\r\n const reslut: any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\n//经办人Api\r\nconst operatorListApi = async () => {\r\n const reslut: any = await operatorList({})\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants.value = arr\r\n}\r\n\r\n\r\n//函数\r\nconst showinnerVisible = async () => {\r\n innerVisible.value = true\r\n data.editStrot = false\r\n console.log(data.tableData)\r\n}\r\n\r\nconst showDia = async () => {\r\n data.tableData = []\r\n data.showDiaData = []\r\n data.rules1 = []\r\n data.columns = []\r\n data.selectType = []\r\n data.editStrot = false\r\n resetFun()//复原表单\r\n medicListStockFun()//获取入库表单\r\n itemPirFun()//发货单位\r\n operatorListApi()//经办人\r\n initParam.date = timesFn()\r\n\r\n}\r\n//复原表单\r\nconst resetFun = async () => {\r\n initParam.date = ''\r\n initParam.forwardingUnit = ''\r\n initParam.medicineInfo = {}\r\n initParam.operator = ''\r\n initParam.quantity = ''\r\n initParam.unitPrice = null\r\n resetForm(ruleFormRef.value)\r\n}\r\n//获取入库表单Api\r\nconst medicListStockFun = async () => {\r\n data.columns = []\r\n const reslut: any = await medicListStock({})\r\n if (reslut.code == 200 && reslut.msg == '查询成功') {\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n data.selectType = []\r\n reslut.data?.list.forEach((value: any) => { //value设置成key\r\n data.selectType.push({ type: value.type, list: value.list })\r\n data.columns.push({ prop: value.field_name, label: value.name, list: value.list })\r\n initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n if (['product_id', 'enterprise_id', 'spec_id', 'batch_number', 'expiry_date'].includes(value.field_name)) {\r\n // if (value.type == 6) {\r\n // data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change' }, { pattern: /^([1-9]\\d*|0)(\\.\\d{1,2})?$/, message: '请输入>=0,(最多两位小数)', trigger: \"blur\" },]\r\n // } else if (value.type == 7) {\r\n // data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change' }, { pattern: /^(?:[1-9]\\d*)$/, message: '请输入正整数', trigger: \"blur\" },]\r\n // } else {\r\n // data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change', }]\r\n // }\r\n data.rules1['medicineInfo.' + value.field_name] = [{ required: true, message: '必填项', trigger: 'change', }]\r\n }else{\r\n if (value.type == 8) {\r\n data.rules1['medicineInfo.' + value.field_name] = [{ required: false, message: '必填项', trigger: 'change' }, { pattern: /^([1-9]\\d*|0)(\\.\\d{1,2})?$/, message: '请输入>=0,(最多两位小数)', trigger: \"blur\" },]\r\n } else if (value.type == 7) {\r\n data.rules1['medicineInfo.' + value.field_name] = [{ required: false, message: '必填项', trigger: 'change' }, { pattern: /^(?:[1-9]\\d*)$/, message: '请输入正整数', trigger: \"blur\" },]\r\n }\r\n }\r\n });\r\n Object.assign(rules, { ...data.rules1, ...syrulesData })\r\n // console.log('表格', data.selectType)\r\n dialogFormVisible.value = true\r\n }\r\n}\r\n\r\nconst handleClick = (datas: any, index: any) => {\r\n data.editStrot = true\r\n data.editIndex = index\r\n let { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo } = datas\r\n Object.assign(initParam, { date, forwardingUnit, operator, quantity, unitPrice, medicineInfo: { ...medicineInfo } })\r\n innerVisible.value = false\r\n}\r\nconst delClick = (index: any) => {\r\n ElMessageBox.confirm('删除一条信息,是否继续?', '删除', {\r\n confirmButtonText: '确认删除',\r\n cancelButtonText: 'Cancel',\r\n type: 'warning',\r\n center: true,\r\n }).then(() => {\r\n data.tableData.splice(index, 1);\r\n ElMessage.success('已删除')\r\n })\r\n}\r\n\r\n</script>\r\n<style lang=\"scss\">.inputWidth {\r\n width: 200px;\r\n}</style>\r\n","import script from \"./Labour.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Labour.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Labour.vue?vue&type=style&index=0&id=79827a92&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, vModelText as _vModelText, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/BarCodeQR.svg'\n\n\nconst _hoisted_1 = { class: \"Qr\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"Qr-img\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n style: {\"width\":\"80%\",\"height\":\"80%\"}\n })\n], -1)\nconst _hoisted_3 = { class: \"Qr-input\" }\nconst _hoisted_4 = [\"placeholder\"]\n\nimport { ref, reactive} from \"vue\";\r\nimport { ElMessage } from 'element-plus'\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'inputSearch',\n props: {\r\n placeholderData:({\r\n type:String,\r\n default: () =>'请扫描追溯码'\r\n })\r\n},\n emits: ['inputSearchData',],\n setup(__props, { expose: __expose, emit: __emit }) {\n\r\nconst myInput = ref()\r\nconst data: any = reactive({\r\n value: '',\r\n num:0\r\n})\r\nconst props = __props\r\nconst emit: any = __emit\r\n//函数\r\nconst inputFocus = async () => {\r\n console.log('获取焦点',myInput.value)\r\n setTimeout(() => {\r\n myInput.value!=null?myInput.value.focus():''\r\n }, 1000)\r\n}\r\n//函数\r\nconst CloseFn = async () => {\r\n ClearFn()\r\n setTimeout(() => {\r\n myInput.value.focus()\r\n }, 1000)\r\n}\r\n/**\r\n * 清空\r\n */\r\nconst ClearFn = async ()=>{\r\n data.value = '';\r\n}\r\n\r\ndocument.addEventListener('keydown',(event:any)=>{\r\n // console.log('扫码枪',event)\r\n data.num += 1\r\n if(data.num == 1){data.value = ''}\r\n if (event.code === 'Enter') { // 判断是否按下了回车键\r\n data.value = event.target.value; // 获取扫描枪输入框的值 \r\n onSubmit()\r\n }\r\n})\r\nconst onSubmit = async () => {\r\n if(data.value){\r\n emit('inputSearchData', data.value);data.num = 0 \r\n }else{\r\n ElMessage.error('点击输入框在使用扫码枪扫码')\r\n }\r\n}\r\n__expose({\r\n inputFocus, data,ClearFn\r\n})\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_CircleClose = _resolveComponent(\"CircleClose\")!\n const _component_el_icon = _resolveComponent(\"el-icon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"Qr-input-type\",\n ref_key: \"myInput\",\n ref: myInput,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((data.value) = $event)),\n type: \"text\",\n placeholder: props.placeholderData\n }, null, 8, _hoisted_4), [\n [_vModelText, data.value]\n ]),\n _createVNode(_component_el_icon, {\n size: 18,\n style: {\"cursor\":\"pointer\"},\n onClick: CloseFn\n }, {\n default: _withCtx(() => [\n _createVNode(_component_CircleClose)\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"button\", {\n class: \"Qr-isButton\",\n onClick: onSubmit\n }, \"确认搜索\")\n ]))\n}\n}\n\n})","<template>\r\n <div class=\"Qr\">\r\n <div class=\"Qr-img\">\r\n <img src=\"@/assets/img/BarCodeQR.svg\" style=\"width: 80%;height: 80%;\">\r\n </div>\r\n <div class=\"Qr-input\">\r\n <input class=\"Qr-input-type\" ref=\"myInput\" v-model=\"data.value\" type=\"text\" :placeholder=\"props.placeholderData\">\r\n <el-icon :size=\"18\" style=\"cursor: pointer;\" @click=\"CloseFn\">\r\n <CircleClose />\r\n </el-icon>\r\n </div>\r\n <button class=\"Qr-isButton\" @click=\"onSubmit\">确认搜索</button>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ref, reactive} from \"vue\";\r\nimport { ElMessage } from 'element-plus'\r\nconst myInput = ref()\r\nconst data: any = reactive({\r\n value: '',\r\n num:0\r\n})\r\nconst props = defineProps({\r\n placeholderData:({\r\n type:String,\r\n default: () =>'请扫描追溯码'\r\n })\r\n})\r\nconst emit: any = defineEmits(['inputSearchData',])\r\n//函数\r\nconst inputFocus = async () => {\r\n console.log('获取焦点',myInput.value)\r\n setTimeout(() => {\r\n myInput.value!=null?myInput.value.focus():''\r\n }, 1000)\r\n}\r\n//函数\r\nconst CloseFn = async () => {\r\n ClearFn()\r\n setTimeout(() => {\r\n myInput.value.focus()\r\n }, 1000)\r\n}\r\n/**\r\n * 清空\r\n */\r\nconst ClearFn = async ()=>{\r\n data.value = '';\r\n}\r\n\r\ndocument.addEventListener('keydown',(event:any)=>{\r\n // console.log('扫码枪',event)\r\n data.num += 1\r\n if(data.num == 1){data.value = ''}\r\n if (event.code === 'Enter') { // 判断是否按下了回车键\r\n data.value = event.target.value; // 获取扫描枪输入框的值 \r\n onSubmit()\r\n }\r\n})\r\nconst onSubmit = async () => {\r\n if(data.value){\r\n emit('inputSearchData', data.value);data.num = 0 \r\n }else{\r\n ElMessage.error('点击输入框在使用扫码枪扫码')\r\n }\r\n}\r\ndefineExpose({\r\n inputFocus, data,ClearFn\r\n})\r\n</script>\r\n<style lang=\"scss\">\r\n/* @import url(); 引入css类 */\r\n.Qr {\r\n display: flex;\r\n margin-bottom: 20px;\r\n border: 1px solid #409eff;\r\n box-sizing: border-box;\r\n min-width: 450px;\r\n width: 50%;\r\n border-radius: 6px;\r\n overflow: hidden;\r\n\r\n &-img {\r\n width: 30px;\r\n height: 30px;\r\n margin-top: 10px;\r\n margin-bottom: 10px;\r\n padding: 0 20px;\r\n flex-shrink: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-right: .5px solid #409eff;\r\n user-select: none;\r\n }\r\n\r\n &-input {\r\n flex: 1;\r\n padding: 0 20px;\r\n display: flex;\r\n align-items: center;\r\n\r\n &-type {\r\n outline: none;\r\n border: none;\r\n flex: 1;\r\n font-weight: bold;\r\n font-size: 18px;\r\n }\r\n }\r\n\r\n &-isButton {\r\n background: #409eff;\r\n outline: none;\r\n border: none;\r\n color: #fff;\r\n min-width: 100px;\r\n flex-shrink: 0;\r\n cursor: pointer;\r\n user-select: none;\r\n }\r\n\r\n &-isButton:hover {\r\n background: #a0cfff;\r\n }\r\n\r\n &-isButton:active {\r\n background-color: #337ecc;\r\n }\r\n}</style>","import script from \"./inputSearch.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./inputSearch.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./inputSearch.vue?vue&type=style&index=0&id=7b14f355&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createBlock as _createBlock, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = [\"onDblclick\"]\nconst _hoisted_3 = { class: \"dialog-footer\" }\n\nimport { reactive, ref,nextTick,watch, onMounted} from 'vue'\r\nimport inputSearch from \"./inputSearch.vue\";\r\nimport { scanCodeTable } from \"@/plugins/rulesData\";\r\nimport { timesFn } from \"@/plugins/settime\";\r\n\r\n\r\nimport { \r\n stockunit,//收发货单位\r\n stockRefCodein\r\n} from \"@/api\";\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { Delete} from '@element-plus/icons-vue'\r\nimport { syrulesData } from \"@/plugins/rulesData\";\r\n\r\nimport {\r\n medicListScanCode,\r\n medicMsfx\r\n} from \"@/api\";\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'scanCode',\n emits: ['scanCode'],\n setup(__props, { emit: __emit }) {\n\r\nconst dialogFormVisible = ref(false)\r\nwatch(() => dialogFormVisible.value, (dy: any) => {\r\n if(!dy)resetForm()\r\n})\r\nconst inputSearchRef = ref<InstanceType<typeof inputSearch> | null>(null)\r\nlet data: any = reactive({\r\n tableData: [],\r\n showDiaData: [],\r\n itemPir: [],\r\n rules1: {},\r\n columns: [],// 渲染表格\r\n selectType: [],//表格的下拉对应\r\n editStrot: false,\r\n editIndex: null,\r\n qr:''\r\n})\r\nlet initParam: any = reactive({\r\n \"date\": \"\",\r\n \"forwardingUnit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\": '',\r\n \"quantity\": '',\r\n \"unitPrice\": null\r\n})\r\n\r\nconst dbclicklable = (item:any)=>{\r\n if(['发货单位','经办人'].includes(item.label)){\r\n if(data.tableData.length!=0){\r\n if(data.tableData[0][item.prop]==''){\r\n ElMessage.error('请填写第一项,在双击全部填充')\r\n return\r\n }\r\n data.tableData.forEach((obj:any)=>{\r\n obj[item.prop] = data.tableData[0][item.prop]\r\n })\r\n }else{\r\n ElMessage.error('请先扫描在进行批量填充')\r\n return\r\n }\r\n }\r\n}\r\n/**\r\n * 当前搜索到的样式\r\n * @param param0 \r\n */\r\nconst tableRowClassName = ({rowIndex}: {\r\n rowIndex: number\r\n}) => {\r\n if(data.qr){\r\n const i = data.tableData.findIndex((item:any) => item.Qrcode==data.qr)\r\n if (rowIndex==i) { return 'success-row' }else{return ''}\r\n }else{\r\n return ''\r\n }\r\n}\r\n\r\nlet rules: any = reactive({})\r\nconst showDia = async () => {\r\n await updating()\r\n dialogFormVisible.value = true\r\n medicListStockFun()//获取入库表单\r\n itemPirFun()\r\n nextTick(()=>{\r\n console.log('inputSearchRef',inputSearchRef.value)\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\nconst updating = ()=>{\r\n ElMessageBox.alert('扫码退货入库功能更新中,请先使用手动退货入库', '提示', {\r\n confirmButtonText: '我知道了',\r\n type: 'warning',\r\n draggable: true,\r\n callback: () => {\r\n },\r\n })\r\n return new Promise<void>((resolve, reject) => {}) \r\n}\r\n//函数\r\nconst findFun = (data: any, list: any) => {\r\n if (list) {\r\n const b = list.find((item: any) => item.id == data)\r\n if (b) return b.name\r\n else return ''\r\n } else {\r\n return data\r\n }\r\n}\r\n\r\n//获取入库表单Api\r\nconst medicListStockFun = async () => {\r\n data.columns = []\r\n const reslut: any = await medicListScanCode({})\r\n console.log('表格1234', reslut)\r\n if (reslut.code == 200 && reslut.msg == '查询成功') {\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n reslut.data?.list.forEach((value: any) => { //value设置成key\r\n data.columns.push({ prop: value.field_name, label: value.name, list: value.list })\r\n initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n });\r\n Object.assign(rules, { ...data.rules1, ...syrulesData })\r\n dialogFormVisible.value = true\r\n }\r\n}\r\nconst emit: any = __emit\r\nconst subStock = async ()=>{\r\n const ab = data.tableData.every((item:any) => item.quantity != '' && item.operator != '' && item.date != '')\r\n if(!ab){ElMessage.error('缺少数据提示:【数量】、【经办人】、【入库日期】是必填项哦!');return;}\r\n else{\r\n const arr = [...data.tableData]\r\n arr.forEach((item:any)=>{\r\n item.quantity = Number(item.quantity)\r\n item.unitPrice = Number(item.unitPrice)\r\n\r\n })\r\n const reslut:any = await stockRefCodein({stockInList:arr})\r\n console.log('添加成功')\r\n if(reslut.code==200){\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n emit('scanCode', '')\r\n }\r\n }\r\n}\r\n/**\r\n * 搜索\r\n * @param e 追溯码\r\n */\r\nconst inputSearchfn = async (e:any)=>{\r\n data.qr = e\r\n const j = await SearchFind(e)\r\n if (j) {ElMessage.error('提示:重复扫描添加数据了哦');return}\r\n const reslut:any = await medicMsfx({code:e})\r\n let initParamObj = {...initParam}\r\n initParamObj.Qrcode = e\r\n console.log('扫描出',reslut)\r\n if (reslut.code==200 && reslut.msg=='查询成功') {\r\n initParamObj.medicineInfo = reslut.data[0] || {}\r\n if(reslut.data[0].quantity!=undefined){\r\n initParamObj.quantity = reslut.data[0].quantity\r\n }\r\n initParamObj.date = timesFn()\r\n console.log('initParamObj',initParamObj)\r\n data.tableData.push(initParamObj)\r\n inputSearchRef.value?.inputFocus()\r\n }\r\n}\r\n/**\r\n * 筛选是否已经扫描过\r\n * @param j 追溯码 \r\n */\r\nconst SearchFind = (j:any)=>{\r\n return new Promise(resolve=>{\r\n const ab = data.tableData.find((item:any) => item.Qrcode==j)\r\n ab==undefined?resolve(false):resolve(true)\r\n })\r\n}\r\n\r\n/**\r\n * 删除\r\n * @param index \r\n */\r\nconst deltable = async (index:any)=>{\r\n data.tableData.splice(index,1)\r\n nextTick(()=>{\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\n\r\n//收发货单位\r\nconst itemPirFun = async () => {\r\n const reslut: any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n/**\r\n * 重置\r\n */\r\nconst resetForm = async ()=>{\r\n data.tableData = []\r\n inputSearchRef?.value?.ClearFn()\r\n inputSearchRef.value?.inputFocus()\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_table_column = _resolveComponent(\"el-table-column\")!\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n const _component_el_autocomplete = _resolveComponent(\"el-autocomplete\")!\n const _component_el_table = _resolveComponent(\"el-table\")!\n const _component_el_dialog = _resolveComponent(\"el-dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_button, {\n \"el-button\": \"\",\n type: \"primary\",\n icon: \"Camera\",\n onClick: showDia\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"扫码退货入库\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_dialog, {\n \"destroy-on-close\": true,\n modelValue: dialogFormVisible.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((dialogFormVisible).value = $event)),\n title: \"扫码入库\",\n \"append-to-body\": true,\n draggable: \"\",\n \"close-on-click-modal\": false,\n \"close-on-press-escape\": false,\n width: \"95%\"\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_3, [\n _createVNode(_component_el_button, {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (dialogFormVisible.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"关闭\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"danger\",\n onClick: resetForm\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"重置数据\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"primary\",\n disabled: _unref(data).tableData.length==0?true:false,\n onClick: subStock\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"立即入库\")\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(inputSearch, {\n ref_key: \"inputSearchRef\",\n ref: inputSearchRef,\n style: {\"margin\":\"0 auto 40px auto\"},\n onInputSearchData: inputSearchfn\n }, null, 512),\n _createVNode(_component_el_table, {\n data: _unref(data).tableData,\n style: {\"width\":\"100%\"},\n border: \"\",\n height: \"450\",\n \"row-class-name\": tableRowClassName\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).columns, (item, i) => {\n return (_openBlock(), _createBlock(_component_el_table_column, {\n label: item.label,\n key: i,\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }, {\n default: _withCtx((scope) => [\n _createTextVNode(_toDisplayString(findFun(scope.row.medicineInfo[item.prop], item.list)), 1)\n ]),\n _: 2\n }, 1032, [\"label\"]))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(scanCodeTable), (item, index) => {\n return (_openBlock(), _createBlock(_component_el_table_column, {\n \"min-width\": \"150\",\n key: index,\n fixed: item.prop == 'operation'&&'right'\n }, {\n header: _withCtx((scope) => [\n _createElementVNode(\"div\", {\n onDblclick: ($event: any) => (dbclicklable(item))\n }, _toDisplayString(item.label), 41, _hoisted_2)\n ]),\n default: _withCtx((scope) => [\n (['quantity','unitPrice','operator'].includes(item.prop))\n ? (_openBlock(), _createBlock(_component_el_input, {\n key: 0,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n style: {\"width\":\"100px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'date')\n ? (_openBlock(), _createBlock(_component_el_date_picker, {\n key: 1,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n type: \"date\",\n \"value-format\": \"YYYY-MM-DD\",\n style: {\"width\":\"120px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'forwardingUnit')\n ? (_openBlock(), _createBlock(_component_el_autocomplete, {\n key: 2,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n \"fetch-suggestions\": querySearch1,\n clearable: \"\",\n style: {\"width\":\"120px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'operation')\n ? (_openBlock(), _createBlock(_component_el_button, {\n key: 3,\n type: \"danger\",\n icon: _unref(Delete),\n onClick: ($event: any) => (deltable(scope.$index))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"删除\")\n ]),\n _: 2\n }, 1032, [\"icon\", \"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1032, [\"fixed\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n}\n}\n\n})","<!-- 扫码 -->\r\n<template>\r\n <div class=\"\">\r\n <el-button el-button type=\"primary\" icon=\"Camera\" @click=\"showDia\">扫码退货入库</el-button>\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"dialogFormVisible\" title=\"扫码入库\" :append-to-body=\"true\" draggable :close-on-click-modal=\"false\"\r\n :close-on-press-escape=\"false\" width=\"95%\">\r\n <inputSearch ref=\"inputSearchRef\" style=\"margin:0 auto 40px auto;\" @inputSearchData=\"inputSearchfn\"></inputSearch>\r\n <el-table :data=\"data.tableData\" style=\"width: 100%\" border height=\"450\" :row-class-name=\"tableRowClassName\">\r\n <el-table-column :label=\"item.label\" v-for=\"item, i in data.columns\" :key=\"i\" min-width=\"110\" show-overflow-tooltip>\r\n <template #default=\"scope\"><!--scope.row.medicineInfo[item.prop] -->\r\n {{ findFun(scope.row.medicineInfo[item.prop], item.list) }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column min-width=\"150\" v-for=\"item,index in scanCodeTable\" :key=\"index\"\r\n :fixed=\"item.prop == 'operation'&&'right'\">\r\n <template v-slot:header=\"scope\"> \r\n <div @dblclick=\"dbclicklable(item)\"> \r\n {{item.label}} \r\n </div> \r\n </template> \r\n <template #default=\"scope\">\r\n <el-input v-if=\"['quantity','unitPrice','operator'].includes(item.prop)\" v-model=\"scope.row[item.prop]\" style=\"width: 100px;\"/>\r\n <el-date-picker v-if=\"item.prop == 'date'\" v-model=\"scope.row[item.prop]\" type=\"date\" value-format=\"YYYY-MM-DD\" style=\"width: 120px;\"/>\r\n <el-autocomplete v-if=\"item.prop == 'forwardingUnit'\" v-model=\"scope.row[item.prop]\"\r\n :fetch-suggestions=\"querySearch1\" clearable style=\"width: 120px;\" />\r\n <el-button v-if=\"item.prop == 'operation'\" type=\"danger\" :icon=\"Delete\" @click=\"deltable(scope.$index)\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <template #footer>\r\n <span class=\"dialog-footer\">\r\n <el-button @click=\"dialogFormVisible = false\">关闭</el-button>\r\n <el-button type=\"danger\" @click=\"resetForm\">重置数据</el-button>\r\n <el-button type=\"primary\" :disabled=\"data.tableData.length==0?true:false\" @click=\"subStock\">立即入库</el-button>\r\n </span>\r\n </template>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { reactive, ref,nextTick,watch, onMounted} from 'vue'\r\nimport inputSearch from \"./inputSearch.vue\";\r\nimport { scanCodeTable } from \"@/plugins/rulesData\";\r\nimport { timesFn } from \"@/plugins/settime\";\r\n\r\n\r\nconst dialogFormVisible = ref(false)\r\nwatch(() => dialogFormVisible.value, (dy: any) => {\r\n if(!dy)resetForm()\r\n})\r\nconst inputSearchRef = ref<InstanceType<typeof inputSearch> | null>(null)\r\nimport { \r\n stockunit,//收发货单位\r\n stockRefCodein\r\n} from \"@/api\";\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { Delete} from '@element-plus/icons-vue'\r\nimport { syrulesData } from \"@/plugins/rulesData\";\r\n\r\nimport {\r\n medicListScanCode,\r\n medicMsfx\r\n} from \"@/api\";\r\nlet data: any = reactive({\r\n tableData: [],\r\n showDiaData: [],\r\n itemPir: [],\r\n rules1: {},\r\n columns: [],// 渲染表格\r\n selectType: [],//表格的下拉对应\r\n editStrot: false,\r\n editIndex: null,\r\n qr:''\r\n})\r\nlet initParam: any = reactive({\r\n \"date\": \"\",\r\n \"forwardingUnit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\": '',\r\n \"quantity\": '',\r\n \"unitPrice\": null\r\n})\r\n\r\nconst dbclicklable = (item:any)=>{\r\n if(['发货单位','经办人'].includes(item.label)){\r\n if(data.tableData.length!=0){\r\n if(data.tableData[0][item.prop]==''){\r\n ElMessage.error('请填写第一项,在双击全部填充')\r\n return\r\n }\r\n data.tableData.forEach((obj:any)=>{\r\n obj[item.prop] = data.tableData[0][item.prop]\r\n })\r\n }else{\r\n ElMessage.error('请先扫描在进行批量填充')\r\n return\r\n }\r\n }\r\n}\r\n/**\r\n * 当前搜索到的样式\r\n * @param param0 \r\n */\r\nconst tableRowClassName = ({rowIndex}: {\r\n rowIndex: number\r\n}) => {\r\n if(data.qr){\r\n const i = data.tableData.findIndex((item:any) => item.Qrcode==data.qr)\r\n if (rowIndex==i) { return 'success-row' }else{return ''}\r\n }else{\r\n return ''\r\n }\r\n}\r\n\r\nlet rules: any = reactive({})\r\nconst showDia = async () => {\r\n await updating()\r\n dialogFormVisible.value = true\r\n medicListStockFun()//获取入库表单\r\n itemPirFun()\r\n nextTick(()=>{\r\n console.log('inputSearchRef',inputSearchRef.value)\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\nconst updating = ()=>{\r\n ElMessageBox.alert('扫码退货入库功能更新中,请先使用手动退货入库', '提示', {\r\n confirmButtonText: '我知道了',\r\n type: 'warning',\r\n draggable: true,\r\n callback: () => {\r\n },\r\n })\r\n return new Promise<void>((resolve, reject) => {}) \r\n}\r\n//函数\r\nconst findFun = (data: any, list: any) => {\r\n if (list) {\r\n const b = list.find((item: any) => item.id == data)\r\n if (b) return b.name\r\n else return ''\r\n } else {\r\n return data\r\n }\r\n}\r\n\r\n//获取入库表单Api\r\nconst medicListStockFun = async () => {\r\n data.columns = []\r\n const reslut: any = await medicListScanCode({})\r\n console.log('表格1234', reslut)\r\n if (reslut.code == 200 && reslut.msg == '查询成功') {\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n reslut.data?.list.forEach((value: any) => { //value设置成key\r\n data.columns.push({ prop: value.field_name, label: value.name, list: value.list })\r\n initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n });\r\n Object.assign(rules, { ...data.rules1, ...syrulesData })\r\n dialogFormVisible.value = true\r\n }\r\n}\r\nconst emit: any = defineEmits(['scanCode'])\r\nconst subStock = async ()=>{\r\n const ab = data.tableData.every((item:any) => item.quantity != '' && item.operator != '' && item.date != '')\r\n if(!ab){ElMessage.error('缺少数据提示:【数量】、【经办人】、【入库日期】是必填项哦!');return;}\r\n else{\r\n const arr = [...data.tableData]\r\n arr.forEach((item:any)=>{\r\n item.quantity = Number(item.quantity)\r\n item.unitPrice = Number(item.unitPrice)\r\n\r\n })\r\n const reslut:any = await stockRefCodein({stockInList:arr})\r\n console.log('添加成功')\r\n if(reslut.code==200){\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n emit('scanCode', '')\r\n }\r\n }\r\n}\r\n/**\r\n * 搜索\r\n * @param e 追溯码\r\n */\r\nconst inputSearchfn = async (e:any)=>{\r\n data.qr = e\r\n const j = await SearchFind(e)\r\n if (j) {ElMessage.error('提示:重复扫描添加数据了哦');return}\r\n const reslut:any = await medicMsfx({code:e})\r\n let initParamObj = {...initParam}\r\n initParamObj.Qrcode = e\r\n console.log('扫描出',reslut)\r\n if (reslut.code==200 && reslut.msg=='查询成功') {\r\n initParamObj.medicineInfo = reslut.data[0] || {}\r\n if(reslut.data[0].quantity!=undefined){\r\n initParamObj.quantity = reslut.data[0].quantity\r\n }\r\n initParamObj.date = timesFn()\r\n console.log('initParamObj',initParamObj)\r\n data.tableData.push(initParamObj)\r\n inputSearchRef.value?.inputFocus()\r\n }\r\n}\r\n/**\r\n * 筛选是否已经扫描过\r\n * @param j 追溯码 \r\n */\r\nconst SearchFind = (j:any)=>{\r\n return new Promise(resolve=>{\r\n const ab = data.tableData.find((item:any) => item.Qrcode==j)\r\n ab==undefined?resolve(false):resolve(true)\r\n })\r\n}\r\n\r\n/**\r\n * 删除\r\n * @param index \r\n */\r\nconst deltable = async (index:any)=>{\r\n data.tableData.splice(index,1)\r\n nextTick(()=>{\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\n\r\n//收发货单位\r\nconst itemPirFun = async () => {\r\n const reslut: any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n/**\r\n * 重置\r\n */\r\nconst resetForm = async ()=>{\r\n data.tableData = []\r\n inputSearchRef?.value?.ClearFn()\r\n inputSearchRef.value?.inputFocus()\r\n}\r\n</script>\r\n<style lang=\"scss\">\r\n.inputWidth {\r\n width: 200px;\r\n}\r\n.el-table .warning-row {\r\n --el-table-tr-bg-color: var(--el-color-warning-light-9);\r\n}\r\n.el-table .success-row {\r\n --el-table-tr-bg-color: var(--el-color-success-light-9);\r\n}\r\n</style>\r\n","import script from \"./scanCode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./scanCode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./scanCode.vue?vue&type=style&index=0&id=eb0940f6&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createBlock as _createBlock, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = [\"onDblclick\"]\nconst _hoisted_3 = { class: \"dialog-footer\" }\n\nimport { reactive, ref,nextTick,watch} from 'vue'\r\nimport inputSearch from \"./inputSearch.vue\";\r\nimport {TranscanCodeTable,syrulesData } from \"@/plugins/rulesData\";\r\nimport { timesFn } from \"@/plugins/settime\";\r\n\r\n\r\nimport { ElMessage } from 'element-plus'\r\nimport { Delete} from '@element-plus/icons-vue'\r\n\r\nimport {\r\n stockunit,//收发货单位\r\n stockRefCodein,\r\n medicListScanCode,\r\n medicRefTransport,\r\n operatorList\r\n} from \"@/api\";\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'transportScanCode',\n emits: ['scanCode'],\n setup(__props, { emit: __emit }) {\n\r\nconst dialogFormVisible = ref(false)\r\nwatch(() => dialogFormVisible.value, (dy: any) => {\r\n if(!dy)resetForm()\r\n})\r\nconst inputSearchRef = ref<InstanceType<typeof inputSearch> | null>(null)\r\nlet data: any = reactive({\r\n tableData: [],\r\n showDiaData: [],\r\n itemPir: [],\r\n rules1: {},\r\n columns: [],// 渲染表格\r\n selectType: [],//表格的下拉对应\r\n editStrot: false,\r\n editIndex: null,\r\n qr:''\r\n})\r\n\r\n\r\nlet rules: any = reactive({})\r\nconst showDia = async () => {\r\n dialogFormVisible.value = true\r\n medicListStockFun()//获取入库表单\r\n itemPirFun()\r\n itemPirFun2()\r\n nextTick(()=>{\r\n console.log('inputSearchRef',inputSearchRef.value)\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\nconst dbclicklable = (item:any)=>{\r\n if(['发货单位','经办人'].includes(item.label)){\r\n if(data.tableData.length!=0){\r\n if(data.tableData[0][item.prop]==''){\r\n ElMessage.error('请填写第一项,在双击全部填充')\r\n return\r\n }\r\n data.tableData.forEach((obj:any)=>{\r\n obj[item.prop] = data.tableData[0][item.prop]\r\n })\r\n }else{\r\n ElMessage.error('请先扫描在进行批量填充')\r\n return\r\n }\r\n }\r\n}\r\n//获取入库表单Api\r\nconst medicListStockFun = async () => {\r\n data.columns = []\r\n const reslut: any = await medicListScanCode({})\r\n console.log('表格888', reslut)\r\n if (reslut.code == 200 && reslut.msg == '查询成功') {\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n reslut.data?.list.forEach((value: any) => { //value设置成key\r\n data.columns.push({ prop: value.field_name, label: value.name, list: value.list })\r\n // initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n });\r\n Object.assign(rules, { ...data.rules1, ...syrulesData })\r\n dialogFormVisible.value = true\r\n }\r\n}\r\nconst emit: any = __emit\r\nconst subStock = async ()=>{\r\n const ab = data.tableData.every((item:any) => item.quantity != '' && item.operator != '' && item.date != '')\r\n if(!ab){ElMessage.error('缺少数据提示:【数量】、【经办人】、【入库日期】是必填项哦!');return;}\r\n else{\r\n const arr = [...data.tableData]\r\n let arrData:any = []\r\n arr.forEach((item:any)=>{\r\n item.quantity = Number(item.quantity)\r\n item.unit_price = Number(item.unit_price)\r\n arrData.push({\r\n date:item.date,\r\n forwardingUnit:item.forwardingUnit,\r\n medicineInfo:item,\r\n operator:item.operator,\r\n quantity:item.quantity,\r\n unitPrice:item.unit_price\r\n })\r\n })\r\n const reslut:any = await stockRefCodein({stockInList:arrData})\r\n if(reslut.code==200){\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n emit('scanCode', '')\r\n }\r\n }\r\n}\r\n/**\r\n * 搜索\r\n * @param e 追溯码\r\n */\r\nconst inputSearchfn = async (e:any)=>{\r\n data.qr = e\r\n const reslut:any = await medicRefTransport({code:e})\r\n if (reslut.code==200 && reslut.msg=='查询成功') {\r\n console.log('reslut.data',reslut.data)\r\n let arr = reslut.data || []\r\n arr.forEach((item:any)=>{ item.date = timesFn()})\r\n data.tableData = [...arr]\r\n }\r\n}\r\n\r\n/**\r\n * 删除\r\n * @param index \r\n */\r\nconst deltable = async (index:any)=>{\r\n data.tableData.splice(index,1)\r\n nextTick(()=>{\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\n\r\n//经半人\r\nconst itemPirFun2 = async () => {\r\n const reslut: any = await operatorList({})\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants2.value = arr\r\n}\r\nconst restaurants2 = ref<RestaurantItem[]>([])\r\nconst querySearch2 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants2.value.filter(createFilter(queryString))\r\n : restaurants2.value\r\n cb(results)\r\n}\r\n\r\n\r\n\r\n//收发货单位\r\nconst itemPirFun = async () => {\r\n const reslut: any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n/**\r\n * 重置\r\n */\r\nconst resetForm = async ()=>{\r\n data.tableData = []\r\n inputSearchRef?.value?.ClearFn()\r\n inputSearchRef.value?.inputFocus()\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_table_column = _resolveComponent(\"el-table-column\")!\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_autocomplete = _resolveComponent(\"el-autocomplete\")!\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n const _component_el_table = _resolveComponent(\"el-table\")!\n const _component_el_dialog = _resolveComponent(\"el-dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_button, {\n \"el-button\": \"\",\n type: \"primary\",\n icon: \"Camera\",\n onClick: showDia\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"退货单条码入库\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_dialog, {\n \"destroy-on-close\": true,\n modelValue: dialogFormVisible.value,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((dialogFormVisible).value = $event)),\n title: \"扫描运输条码入库\",\n \"append-to-body\": true,\n draggable: \"\",\n \"close-on-click-modal\": false,\n \"close-on-press-escape\": false,\n width: \"95%\"\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_3, [\n _createVNode(_component_el_button, {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (dialogFormVisible.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"关闭\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"danger\",\n onClick: resetForm\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"重置数据\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"primary\",\n disabled: _unref(data).tableData.length==0?true:false,\n onClick: subStock\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"立即入库\")\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(inputSearch, {\n ref_key: \"inputSearchRef\",\n ref: inputSearchRef,\n placeholderData: \"请扫描运输条码\",\n style: {\"margin\":\"0 auto 40px auto\"},\n onInputSearchData: inputSearchfn\n }, null, 512),\n _createVNode(_component_el_table, {\n data: _unref(data).tableData,\n style: {\"width\":\"100%\"},\n border: \"\",\n height: \"450\",\n \"row-class-name\": \"success-row\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).columns, (item, i) => {\n return (_openBlock(), _createBlock(_component_el_table_column, {\n label: item.label,\n key: i,\n \"min-width\": \"110\",\n \"show-overflow-tooltip\": \"\"\n }, {\n default: _withCtx((scope) => [\n _createTextVNode(_toDisplayString(scope.row[item.prop]), 1)\n ]),\n _: 2\n }, 1032, [\"label\"]))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(TranscanCodeTable), (item, index) => {\n return (_openBlock(), _createBlock(_component_el_table_column, {\n label: item.label,\n \"min-width\": \"150\",\n key: index,\n fixed: item.prop == 'operation'&&'right'\n }, {\n header: _withCtx((scope) => [\n _createElementVNode(\"div\", {\n onDblclick: ($event: any) => (dbclicklable(item))\n }, _toDisplayString(item.label), 41, _hoisted_2)\n ]),\n default: _withCtx((scope) => [\n (['quantity','unit_price'].includes(item.prop))\n ? (_openBlock(), _createBlock(_component_el_input, {\n key: 0,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n style: {\"width\":\"100px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'operator')\n ? (_openBlock(), _createBlock(_component_el_autocomplete, {\n key: 1,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n \"fetch-suggestions\": querySearch2,\n clearable: \"\",\n style: {\"width\":\"120px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'date')\n ? (_openBlock(), _createBlock(_component_el_date_picker, {\n key: 2,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n type: \"date\",\n \"value-format\": \"YYYY-MM-DD\",\n style: {\"width\":\"120px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'forwardingUnit')\n ? (_openBlock(), _createBlock(_component_el_autocomplete, {\n key: 3,\n modelValue: scope.row[item.prop],\n \"onUpdate:modelValue\": ($event: any) => ((scope.row[item.prop]) = $event),\n \"fetch-suggestions\": querySearch1,\n clearable: \"\",\n style: {\"width\":\"120px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n : _createCommentVNode(\"\", true),\n (item.prop == 'operation')\n ? (_openBlock(), _createBlock(_component_el_button, {\n key: 4,\n type: \"danger\",\n icon: _unref(Delete),\n onClick: ($event: any) => (deltable(scope.$index))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"删除\")\n ]),\n _: 2\n }, 1032, [\"icon\", \"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1032, [\"label\", \"fixed\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n}\n}\n\n})","<!-- 运输扫码 -->\r\n<template>\r\n <div class=\"\">\r\n <el-button el-button type=\"primary\" icon=\"Camera\" @click=\"showDia\">退货单条码入库</el-button>\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"dialogFormVisible\" title=\"扫描运输条码入库\" :append-to-body=\"true\" draggable :close-on-click-modal=\"false\"\r\n :close-on-press-escape=\"false\" width=\"95%\">\r\n <inputSearch ref=\"inputSearchRef\" placeholderData=\"请扫描运输条码\" style=\"margin:0 auto 40px auto;\" @inputSearchData=\"inputSearchfn\"></inputSearch>\r\n <el-table :data=\"data.tableData\" style=\"width: 100%\" border height=\"450\" row-class-name=\"success-row\">\r\n <el-table-column :label=\"item.label\" v-for=\"item, i in data.columns\" :key=\"i\" min-width=\"110\" show-overflow-tooltip>\r\n <template #default=\"scope\">\r\n {{ scope.row[item.prop] }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column :label=\"item.label\" min-width=\"150\" v-for=\"item,index in TranscanCodeTable\" :key=\"index\"\r\n :fixed=\"item.prop == 'operation'&&'right'\">\r\n <template v-slot:header=\"scope\"> \r\n <div @dblclick=\"dbclicklable(item)\"> \r\n {{item.label}} \r\n </div> \r\n </template> \r\n <template #default=\"scope\">\r\n <el-input v-if=\"['quantity','unit_price'].includes(item.prop)\" v-model=\"scope.row[item.prop]\" style=\"width: 100px;\"/>\r\n <el-autocomplete v-if=\"item.prop == 'operator'\" v-model=\"scope.row[item.prop]\"\r\n :fetch-suggestions=\"querySearch2\" clearable style=\"width: 120px;\" />\r\n <el-date-picker v-if=\"item.prop == 'date'\" v-model=\"scope.row[item.prop]\" type=\"date\" value-format=\"YYYY-MM-DD\" style=\"width: 120px;\"/>\r\n <el-autocomplete v-if=\"item.prop == 'forwardingUnit'\" v-model=\"scope.row[item.prop]\"\r\n :fetch-suggestions=\"querySearch1\" clearable style=\"width: 120px;\" />\r\n <el-button v-if=\"item.prop == 'operation'\" type=\"danger\" :icon=\"Delete\" @click=\"deltable(scope.$index)\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <template #footer>\r\n <span class=\"dialog-footer\">\r\n <el-button @click=\"dialogFormVisible = false\">关闭</el-button>\r\n <el-button type=\"danger\" @click=\"resetForm\">重置数据</el-button>\r\n <el-button type=\"primary\" :disabled=\"data.tableData.length==0?true:false\" @click=\"subStock\">立即入库</el-button>\r\n </span>\r\n </template>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { reactive, ref,nextTick,watch} from 'vue'\r\nimport inputSearch from \"./inputSearch.vue\";\r\nimport {TranscanCodeTable,syrulesData } from \"@/plugins/rulesData\";\r\nimport { timesFn } from \"@/plugins/settime\";\r\n\r\n\r\nconst dialogFormVisible = ref(false)\r\nwatch(() => dialogFormVisible.value, (dy: any) => {\r\n if(!dy)resetForm()\r\n})\r\nconst inputSearchRef = ref<InstanceType<typeof inputSearch> | null>(null)\r\nimport { ElMessage } from 'element-plus'\r\nimport { Delete} from '@element-plus/icons-vue'\r\n\r\nimport {\r\n stockunit,//收发货单位\r\n stockRefCodein,\r\n medicListScanCode,\r\n medicRefTransport,\r\n operatorList\r\n} from \"@/api\";\r\nlet data: any = reactive({\r\n tableData: [],\r\n showDiaData: [],\r\n itemPir: [],\r\n rules1: {},\r\n columns: [],// 渲染表格\r\n selectType: [],//表格的下拉对应\r\n editStrot: false,\r\n editIndex: null,\r\n qr:''\r\n})\r\n\r\n\r\nlet rules: any = reactive({})\r\nconst showDia = async () => {\r\n dialogFormVisible.value = true\r\n medicListStockFun()//获取入库表单\r\n itemPirFun()\r\n itemPirFun2()\r\n nextTick(()=>{\r\n console.log('inputSearchRef',inputSearchRef.value)\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\nconst dbclicklable = (item:any)=>{\r\n if(['发货单位','经办人'].includes(item.label)){\r\n if(data.tableData.length!=0){\r\n if(data.tableData[0][item.prop]==''){\r\n ElMessage.error('请填写第一项,在双击全部填充')\r\n return\r\n }\r\n data.tableData.forEach((obj:any)=>{\r\n obj[item.prop] = data.tableData[0][item.prop]\r\n })\r\n }else{\r\n ElMessage.error('请先扫描在进行批量填充')\r\n return\r\n }\r\n }\r\n}\r\n//获取入库表单Api\r\nconst medicListStockFun = async () => {\r\n data.columns = []\r\n const reslut: any = await medicListScanCode({})\r\n console.log('表格888', reslut)\r\n if (reslut.code == 200 && reslut.msg == '查询成功') {\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n reslut.data?.list.forEach((value: any) => { //value设置成key\r\n data.columns.push({ prop: value.field_name, label: value.name, list: value.list })\r\n // initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n });\r\n Object.assign(rules, { ...data.rules1, ...syrulesData })\r\n dialogFormVisible.value = true\r\n }\r\n}\r\nconst emit: any = defineEmits(['scanCode'])\r\nconst subStock = async ()=>{\r\n const ab = data.tableData.every((item:any) => item.quantity != '' && item.operator != '' && item.date != '')\r\n if(!ab){ElMessage.error('缺少数据提示:【数量】、【经办人】、【入库日期】是必填项哦!');return;}\r\n else{\r\n const arr = [...data.tableData]\r\n let arrData:any = []\r\n arr.forEach((item:any)=>{\r\n item.quantity = Number(item.quantity)\r\n item.unit_price = Number(item.unit_price)\r\n arrData.push({\r\n date:item.date,\r\n forwardingUnit:item.forwardingUnit,\r\n medicineInfo:item,\r\n operator:item.operator,\r\n quantity:item.quantity,\r\n unitPrice:item.unit_price\r\n })\r\n })\r\n const reslut:any = await stockRefCodein({stockInList:arrData})\r\n if(reslut.code==200){\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n emit('scanCode', '')\r\n }\r\n }\r\n}\r\n/**\r\n * 搜索\r\n * @param e 追溯码\r\n */\r\nconst inputSearchfn = async (e:any)=>{\r\n data.qr = e\r\n const reslut:any = await medicRefTransport({code:e})\r\n if (reslut.code==200 && reslut.msg=='查询成功') {\r\n console.log('reslut.data',reslut.data)\r\n let arr = reslut.data || []\r\n arr.forEach((item:any)=>{ item.date = timesFn()})\r\n data.tableData = [...arr]\r\n }\r\n}\r\n\r\n/**\r\n * 删除\r\n * @param index \r\n */\r\nconst deltable = async (index:any)=>{\r\n data.tableData.splice(index,1)\r\n nextTick(()=>{\r\n inputSearchRef.value?.inputFocus()\r\n })\r\n}\r\n\r\n//经半人\r\nconst itemPirFun2 = async () => {\r\n const reslut: any = await operatorList({})\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants2.value = arr\r\n}\r\nconst restaurants2 = ref<RestaurantItem[]>([])\r\nconst querySearch2 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants2.value.filter(createFilter(queryString))\r\n : restaurants2.value\r\n cb(results)\r\n}\r\n\r\n\r\n\r\n//收发货单位\r\nconst itemPirFun = async () => {\r\n const reslut: any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n/**\r\n * 重置\r\n */\r\nconst resetForm = async ()=>{\r\n data.tableData = []\r\n inputSearchRef?.value?.ClearFn()\r\n inputSearchRef.value?.inputFocus()\r\n}\r\n</script>\r\n<style lang=\"scss\">\r\n.inputWidth {\r\n width: 200px;\r\n}\r\n.el-table .warning-row {\r\n --el-table-tr-bg-color: var(--el-color-warning-light-9);\r\n}\r\n.el-table .success-row {\r\n --el-table-tr-bg-color: var(--el-color-success-light-9);\r\n}\r\n</style>\r\n","import script from \"./transportScanCode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./transportScanCode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./transportScanCode.vue?vue&type=style&index=0&id=27b780ea&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = { class: \"dialog-footer\" }\n\nimport { reactive, ref } from 'vue'\r\nimport type { FormInstance} from 'element-plus'\r\nimport { syrulesData } from \"@/plugins/rulesData\";\r\nimport { \r\n medicListStock,\r\n stockunit,//发货单位\r\n operatorList,//经办人\r\n stockedit,//编辑\r\n stockdel,//删除\r\n} from \"@/api\";\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nconst formLabelWidth = '110px'\r\n\r\n//提交参数\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Editinventory',\n props: {\r\n row: {\r\n type: Object,\r\n default: () => { },\r\n },\r\n},\n emits: ['scanCode','editinvent'],\n setup(__props, { emit: __emit }) {\n\r\nconst dialogFormVisible = ref(false)\r\nconst ruleFormRef = ref<FormInstance>()\r\nlet rules:any = reactive({})\r\n\r\n\r\nconst props = __props\r\n\r\nlet initParam:any = reactive({\r\n \"id\":\"\",\r\n \"date\": \"\",\r\n \"forwarding_unit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\":'',\r\n \"quantity\": null,\r\n \"unit_price\":Number(null)\r\n})\r\nlet data:any = reactive({\r\n tableData:[],\r\n showDiaData:[],\r\n rules1:{},\r\n columns:[],// 渲染表格\r\n selectType:[],//表格的下拉对应\r\n editStrot:false,\r\n editIndex:null\r\n}) \r\n\r\n//显示编辑\r\nconst editFun = async (row:any)=>{\r\n console.log('编辑',row)\r\n dialogFormVisible.value = true\r\n await medicListStockFun()//获取入库表单\r\n await itemPirFun()//发货单位\r\n await operatorListApi()//经办人\r\n\r\n}\r\n\r\nconst restaurants = ref<RestaurantItem[]>([])\r\nconst querySearch = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants.value.filter(createFilter(queryString))\r\n : restaurants.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\n\r\nconst emit:any = __emit\r\n\r\n//重置\r\nconst resetForm = (formEl: FormInstance | undefined) => {\r\n if (!formEl) return\r\n formEl.resetFields()\r\n}\r\n\r\n//提交\r\nconst submitForm = async (formEl: FormInstance | undefined) => {\r\n console.log('tijiao',initParam)\r\n if (!formEl) return\r\n await formEl.validate((valid, fields) => {\r\n if (valid) {\r\n stockeditApi()\r\n } else {\r\n ElMessage.error('请完善必填项')\r\n }\r\n })\r\n}\r\n//提交编辑\r\nconst stockeditApi = async ()=>{\r\n let param = {...initParam}\r\n param.unit_price = Number(param.unit_price)\r\n const reslut:any = await stockedit(param)\r\n if(reslut.code==200 && reslut.msg=='修改入库信息成功'){\r\n emit('editinvent', '');\r\n dialogFormVisible.value = false;\r\n ElMessage.success(reslut.msg)\r\n }\r\n}\r\n//收发货单位Api\r\nconst itemPirFun = async()=>{\r\n const reslut:any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\n//经办人Api\r\nconst operatorListApi = async()=>{\r\n const reslut:any = await operatorList({})\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants.value = arr\r\n}\r\n\r\n//获取入库表单Api\r\nconst medicListStockFun = async ()=>{\r\n data.columns = []\r\n const reslut:any = await medicListStock({})\r\n if(reslut.code==200 && reslut.msg=='查询成功'){\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n data.selectType = []\r\n reslut.data?.list.forEach((value:any) => { //value设置成key\r\n data.selectType.push({type:value.type,list:value.list})\r\n data.columns.push({ prop: value.field_name, label: value.name, list:value.list})\r\n initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n if(['product_id','enterprise_id','spec_id','batch_number','expiry_date','approval_number'].includes(value.field_name)){\r\n if(value.type==6){\r\n data.rules1['medicineInfo.'+value.field_name] = [{required: true,message: '必填项',trigger: 'change'}]\r\n }else if(value.type==7){\r\n data.rules1['medicineInfo.'+value.field_name] = [{required: true,message: '必填项',trigger: 'change'},{ pattern: /^(?:[1-9]\\d*)$/, message: '请输入正整数', trigger: \"blur\" },]\r\n }else{\r\n data.rules1['medicineInfo.'+value.field_name] = [{required: true,message: '必填项',trigger: 'change',}]\r\n }\r\n }\r\n });\r\n Object.assign(rules,{...data.rules1,...syrulesData})\r\n let obj = {...props.row}\r\n Object.keys(initParam).forEach(key => {\r\n if(key!='medicineInfo'){\r\n initParam[key] = obj[key]\r\n }else{\r\n Object.keys(initParam.medicineInfo).forEach(key => {\r\n initParam.medicineInfo[key] = obj[key]\r\n })\r\n }\r\n })\r\n console.log('rules',initParam,obj)\r\n dialogFormVisible.value = true\r\n }\r\n}\r\n\r\n/**\r\n * 删除\r\n * @param row \r\n */\r\nconst delClick = (row:any) => {\r\n ElMessageBox.confirm('删除一条信息,将导致数量变化,是否继续?','删除',{\r\n confirmButtonText: '确认删除',\r\n cancelButtonText: 'Cancel',\r\n type: 'error',\r\n center: true,\r\n }).then(async() => {\r\n const reslut:any = await stockdel({id:row.id})\r\n console.log('删除成功',reslut)\r\n if(reslut.code==200 && reslut.msg=='删除入库信息成功'){ emit('editinvent', '');ElMessage.success(reslut.msg)}\r\n }).catch(() => {\r\n ElMessage.info('已取消删除')\r\n })\r\n}\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_divider = _resolveComponent(\"el-divider\")!\n const _component_el_option = _resolveComponent(\"el-option\")!\n const _component_el_select = _resolveComponent(\"el-select\")!\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n const _component_el_form_item = _resolveComponent(\"el-form-item\")!\n const _component_el_autocomplete = _resolveComponent(\"el-autocomplete\")!\n const _component_el_form = _resolveComponent(\"el-form\")!\n const _component_el_dialog = _resolveComponent(\"el-dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (editFun(props.row)))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"编辑\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"danger\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (delClick(props.row)))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"删除\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_dialog, {\n \"destroy-on-close\": true,\n modelValue: dialogFormVisible.value,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => ((dialogFormVisible).value = $event)),\n title: \"编辑\",\n \"append-to-body\": true,\n draggable: \"\",\n width: \"60%\"\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createVNode(_component_el_button, {\n onClick: _cache[7] || (_cache[7] = ($event: any) => (dialogFormVisible.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"取消\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (submitForm(ruleFormRef.value)))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"提交\")\n ]),\n _: 1\n })\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_el_form, {\n ref_key: \"ruleFormRef\",\n ref: ruleFormRef,\n rules: _unref(rules),\n model: _unref(initParam),\n inline: true\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_divider, { \"content-position\": \"center\" }, {\n default: _withCtx(() => [\n _createTextVNode(\"药品信息\")\n ]),\n _: 1\n }),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(data).showDiaData, (item, index) => {\n return (_openBlock(), _createBlock(_component_el_form_item, {\n label: item.name,\n \"label-width\": formLabelWidth,\n key: index,\n prop: 'medicineInfo.'+item.field_name\n }, {\n default: _withCtx(() => [\n ([1,2,3,4,5].includes(item.type))\n ? (_openBlock(), _createBlock(_component_el_select, {\n key: 0,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n placeholder: '请选择'+item.name,\n class: \"inputWidth\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.list, (itemIt, i) => {\n return (_openBlock(), _createBlock(_component_el_option, {\n label: itemIt.name,\n value: itemIt.id,\n key: i\n }, null, 8, [\"label\", \"value\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type==6)\n ? (_openBlock(), _createBlock(_component_el_input, {\n key: 1,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n autocomplete: \"off\",\n placeholder: '请输入'+item.name,\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type==7)\n ? (_openBlock(), _createBlock(_component_el_input, {\n key: 2,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n autocomplete: \"off\",\n placeholder: '请输入'+item.name,\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type==8)\n ? (_openBlock(), _createBlock(_component_el_input, {\n key: 3,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n autocomplete: \"off\",\n placeholder: '请输入'+item.name,\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type==9)\n ? (_openBlock(), _createBlock(_component_el_date_picker, {\n key: 4,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n type: \"date\",\n \"value-format\": \"YYYY-MM-DD\",\n placeholder: '请输入'+item.name,\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true),\n (item.type==10)\n ? (_openBlock(), _createBlock(_component_el_date_picker, {\n key: 5,\n modelValue: _unref(initParam).medicineInfo[item.field_name],\n \"onUpdate:modelValue\": ($event: any) => ((_unref(initParam).medicineInfo[item.field_name]) = $event),\n type: \"datetime\",\n \"value-format\": \"YYYY-MM-DD HH:mm:ss\",\n placeholder: '请输入'+item.name,\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"placeholder\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1032, [\"label\", \"prop\"]))\n }), 128)),\n _createVNode(_component_el_divider, { \"content-position\": \"center\" }, {\n default: _withCtx(() => [\n _createTextVNode(\"入库信息\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"数量\",\n \"label-width\": formLabelWidth,\n prop: \"quantity\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: _unref(initParam).quantity,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(initParam).quantity) = $event)),\n modelModifiers: { number: true },\n autocomplete: \"off\",\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"购进单价\",\n \"label-width\": formLabelWidth\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: _unref(initParam).unit_price,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(initParam).unit_price) = $event)),\n autocomplete: \"off\",\n class: \"inputWidth\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"入库日期\",\n \"label-width\": formLabelWidth,\n prop: \"date\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_date_picker, {\n modelValue: _unref(initParam).date,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(initParam).date) = $event)),\n type: \"date\",\n placeholder: \"血液制品效期\",\n \"value-format\": \"YYYY-MM-DD\",\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n class: \"el-form-item-main\",\n label: \"发货单位\",\n \"label-width\": formLabelWidth\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_autocomplete, {\n modelValue: _unref(initParam).forwarding_unit,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(initParam).forwarding_unit) = $event)),\n \"fetch-suggestions\": querySearch1,\n clearable: \"\",\n class: \"inputWidth\",\n placeholder: \"发货单位\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n label: \"经办人\",\n \"label-width\": formLabelWidth,\n prop: \"operator\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_autocomplete, {\n modelValue: _unref(initParam).operator,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_unref(initParam).operator) = $event)),\n \"fetch-suggestions\": querySearch,\n clearable: \"\",\n class: \"inputWidth\",\n placeholder: \"经办人\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"rules\", \"model\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n}\n}\n\n})","<!-- 扫码 -->\r\n<template>\r\n <div class=\"\">\r\n <el-button type=\"primary\" @click=\"editFun(props.row)\">编辑</el-button>\r\n <el-button type=\"danger\" @click=\"delClick(props.row)\">删除</el-button>\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"dialogFormVisible\" title=\"编辑\" :append-to-body=\"true\" draggable width=\"60%\">\r\n <el-form ref=\"ruleFormRef\" :rules=\"rules\" :model=\"initParam\" :inline=\"true\">\r\n <el-divider content-position=\"center\">药品信息</el-divider>\r\n <el-form-item :label=\"item.name\" :label-width=\"formLabelWidth\" v-for=\"(item,index) in data.showDiaData\" :key=\"index\" :prop=\"'medicineInfo.'+item.field_name\">\r\n <el-select v-model=\"initParam.medicineInfo[item.field_name]\" :placeholder=\"'请选择'+item.name\" class=\"inputWidth\" v-if=\"[1,2,3,4,5].includes(item.type)\">\r\n <el-option :label=\"itemIt.name\" :value=\"itemIt.id\" v-for=\"itemIt,i in item.list\" :key=\"i\"/>\r\n </el-select>\r\n <el-input v-model=\"initParam.medicineInfo[item.field_name]\" autocomplete=\"off\" :placeholder=\"'请输入'+item.name\" class=\"inputWidth\" v-if=\"item.type==6\"/>\r\n <el-input v-model=\"initParam.medicineInfo[item.field_name]\" autocomplete=\"off\" :placeholder=\"'请输入'+item.name\" class=\"inputWidth\" v-if=\"item.type==7\"/>\r\n <el-input v-model=\"initParam.medicineInfo[item.field_name]\" autocomplete=\"off\" :placeholder=\"'请输入'+item.name\" class=\"inputWidth\" v-if=\"item.type==8\"/>\r\n <el-date-picker v-model=\"initParam.medicineInfo[item.field_name]\" type=\"date\" value-format=\"YYYY-MM-DD\" :placeholder=\"'请输入'+item.name\" clearable style=\"width: 200px;\" v-if=\"item.type==9\"/>\r\n <el-date-picker v-model=\"initParam.medicineInfo[item.field_name]\" type=\"datetime\" value-format=\"YYYY-MM-DD HH:mm:ss\" :placeholder=\"'请输入'+item.name\" clearable style=\"width: 200px;\" v-if=\"item.type==10\"/>\r\n </el-form-item>\r\n <el-divider content-position=\"center\">入库信息</el-divider>\r\n <el-form-item class=\"el-form-item-main\" label=\"数量\" :label-width=\"formLabelWidth\" prop=\"quantity\">\r\n <el-input v-model.number=\"initParam.quantity\" autocomplete=\"off\" class=\"inputWidth\" />\r\n </el-form-item>\r\n <el-form-item class=\"el-form-item-main\" label=\"购进单价\" :label-width=\"formLabelWidth\">\r\n <el-input v-model=\"initParam.unit_price\" autocomplete=\"off\" class=\"inputWidth\"/>\r\n </el-form-item>\r\n <el-form-item class=\"el-form-item-main\" label=\"入库日期\" :label-width=\"formLabelWidth\" prop=\"date\">\r\n <el-date-picker v-model=\"initParam.date\" type=\"date\" placeholder=\"血液制品效期\" value-format=\"YYYY-MM-DD\" clearable style=\"width: 200px;\" />\r\n </el-form-item>\r\n <el-form-item class=\"el-form-item-main\" label=\"发货单位\" :label-width=\"formLabelWidth\">\r\n <el-autocomplete v-model=\"initParam.forwarding_unit\" :fetch-suggestions=\"querySearch1\" clearable class=\"inputWidth\"\r\n placeholder=\"发货单位\" />\r\n </el-form-item>\r\n <el-form-item label=\"经办人\" :label-width=\"formLabelWidth\" prop=\"operator\">\r\n <el-autocomplete v-model=\"initParam.operator\" :fetch-suggestions=\"querySearch\" clearable class=\"inputWidth\"\r\n placeholder=\"经办人\" />\r\n </el-form-item>\r\n </el-form>\r\n <template #footer>\r\n <span class=\"dialog-footer\">\r\n <el-button @click=\"dialogFormVisible = false\">取消</el-button>\r\n <el-button type=\"primary\" @click=\"submitForm(ruleFormRef)\">提交</el-button>\r\n </span>\r\n </template>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { reactive, ref } from 'vue'\r\nimport type { FormInstance} from 'element-plus'\r\nimport { syrulesData } from \"@/plugins/rulesData\";\r\nconst dialogFormVisible = ref(false)\r\nconst ruleFormRef = ref<FormInstance>()\r\nlet rules:any = reactive({})\r\n\r\n\r\nconst props = defineProps({\r\n row: {\r\n type: Object,\r\n default: () => { },\r\n },\r\n})\r\n\r\nimport { \r\n medicListStock,\r\n stockunit,//发货单位\r\n operatorList,//经办人\r\n stockedit,//编辑\r\n stockdel,//删除\r\n} from \"@/api\";\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nconst formLabelWidth = '110px'\r\n\r\n//提交参数\r\nlet initParam:any = reactive({\r\n \"id\":\"\",\r\n \"date\": \"\",\r\n \"forwarding_unit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\":'',\r\n \"quantity\": null,\r\n \"unit_price\":Number(null)\r\n})\r\nlet data:any = reactive({\r\n tableData:[],\r\n showDiaData:[],\r\n rules1:{},\r\n columns:[],// 渲染表格\r\n selectType:[],//表格的下拉对应\r\n editStrot:false,\r\n editIndex:null\r\n}) \r\n\r\n//显示编辑\r\nconst editFun = async (row:any)=>{\r\n console.log('编辑',row)\r\n dialogFormVisible.value = true\r\n await medicListStockFun()//获取入库表单\r\n await itemPirFun()//发货单位\r\n await operatorListApi()//经办人\r\n\r\n}\r\n\r\ninterface RestaurantItem {\r\n value: string\r\n link: string\r\n}\r\nconst restaurants = ref<RestaurantItem[]>([])\r\nconst querySearch = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants.value.filter(createFilter(queryString))\r\n : restaurants.value\r\n cb(results)\r\n}\r\nconst createFilter = (queryString: string) => {\r\n return (restaurant: RestaurantItem) => {\r\n return (\r\n restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0\r\n )\r\n }\r\n}\r\n\r\nconst restaurants1 = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (queryString: string, cb: any) => {\r\n const results = queryString\r\n ? restaurants1.value.filter(createFilter(queryString))\r\n : restaurants1.value\r\n cb(results)\r\n}\r\n\r\nconst emit:any = defineEmits(['scanCode','editinvent'])\r\n\r\n//重置\r\nconst resetForm = (formEl: FormInstance | undefined) => {\r\n if (!formEl) return\r\n formEl.resetFields()\r\n}\r\n\r\n//提交\r\nconst submitForm = async (formEl: FormInstance | undefined) => {\r\n console.log('tijiao',initParam)\r\n if (!formEl) return\r\n await formEl.validate((valid, fields) => {\r\n if (valid) {\r\n stockeditApi()\r\n } else {\r\n ElMessage.error('请完善必填项')\r\n }\r\n })\r\n}\r\n//提交编辑\r\nconst stockeditApi = async ()=>{\r\n let param = {...initParam}\r\n param.unit_price = Number(param.unit_price)\r\n const reslut:any = await stockedit(param)\r\n if(reslut.code==200 && reslut.msg=='修改入库信息成功'){\r\n emit('editinvent', '');\r\n dialogFormVisible.value = false;\r\n ElMessage.success(reslut.msg)\r\n }\r\n}\r\n//收发货单位Api\r\nconst itemPirFun = async()=>{\r\n const reslut:any = await stockunit({ type: 3 })\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants1.value = arr\r\n}\r\n//经办人Api\r\nconst operatorListApi = async()=>{\r\n const reslut:any = await operatorList({})\r\n const arrMap = reslut.data?.list\r\n const arr:any = []\r\n arrMap.forEach((item:any)=>{\r\n arr.push({ value: item, link: item}) \r\n })\r\n restaurants.value = arr\r\n}\r\n\r\n//获取入库表单Api\r\nconst medicListStockFun = async ()=>{\r\n data.columns = []\r\n const reslut:any = await medicListStock({})\r\n if(reslut.code==200 && reslut.msg=='查询成功'){\r\n data.showDiaData = reslut.data?.list\r\n data.rules1 = {}\r\n data.columns = []\r\n data.selectType = []\r\n reslut.data?.list.forEach((value:any) => { //value设置成key\r\n data.selectType.push({type:value.type,list:value.list})\r\n data.columns.push({ prop: value.field_name, label: value.name, list:value.list})\r\n initParam.medicineInfo[value.field_name] = ''; // 这里可以根据需要设置其他值作为键的内容\r\n if(['product_id','enterprise_id','spec_id','batch_number','expiry_date','approval_number'].includes(value.field_name)){\r\n if(value.type==6){\r\n data.rules1['medicineInfo.'+value.field_name] = [{required: true,message: '必填项',trigger: 'change'}]\r\n }else if(value.type==7){\r\n data.rules1['medicineInfo.'+value.field_name] = [{required: true,message: '必填项',trigger: 'change'},{ pattern: /^(?:[1-9]\\d*)$/, message: '请输入正整数', trigger: \"blur\" },]\r\n }else{\r\n data.rules1['medicineInfo.'+value.field_name] = [{required: true,message: '必填项',trigger: 'change',}]\r\n }\r\n }\r\n });\r\n Object.assign(rules,{...data.rules1,...syrulesData})\r\n let obj = {...props.row}\r\n Object.keys(initParam).forEach(key => {\r\n if(key!='medicineInfo'){\r\n initParam[key] = obj[key]\r\n }else{\r\n Object.keys(initParam.medicineInfo).forEach(key => {\r\n initParam.medicineInfo[key] = obj[key]\r\n })\r\n }\r\n })\r\n console.log('rules',initParam,obj)\r\n dialogFormVisible.value = true\r\n }\r\n}\r\n\r\n/**\r\n * 删除\r\n * @param row \r\n */\r\nconst delClick = (row:any) => {\r\n ElMessageBox.confirm('删除一条信息,将导致数量变化,是否继续?','删除',{\r\n confirmButtonText: '确认删除',\r\n cancelButtonText: 'Cancel',\r\n type: 'error',\r\n center: true,\r\n }).then(async() => {\r\n const reslut:any = await stockdel({id:row.id})\r\n console.log('删除成功',reslut)\r\n if(reslut.code==200 && reslut.msg=='删除入库信息成功'){ emit('editinvent', '');ElMessage.success(reslut.msg)}\r\n }).catch(() => {\r\n ElMessage.info('已取消删除')\r\n })\r\n}\r\n\r\n</script>\r\n<style lang=\"scss\">\r\n.inputWidth {\r\n width: 200px;\r\n}\r\n</style>\r\n","import script from \"./Editinventory.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Editinventory.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Editinventory.vue?vue&type=style&index=0&id=19d99347&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock, withCtx as _withCtx, createVNode as _createVNode, unref as _unref } from \"vue\"\n\nconst _hoisted_1 = { class: \"storagePut\" }\n\nimport { \r\n stockrefundInList,\r\n productList,//血液制品名称\r\n enterpriseList,//生产企业\r\n stockunit,//收发货单位\r\n medicineColumns,//表头\r\n} from \"@/api\";\r\nimport { reactive, ref,onMounted,onBeforeMount } from \"vue\";\r\nimport tables from \"@/components/table.vue\";\r\nimport searchAdd from \"@/components/searchAdd.vue\";\r\nimport bg from '@/components/bg.vue'\r\nimport Labour from './Labour.vue'\r\nimport scanCode from './scanCode.vue'\r\nimport transportScanCode from './transportScanCode.vue'\r\n\r\n\r\n\r\nimport Editinventory from './Editinventory.vue'\r\n\r\nimport {columnsTable } from \"@/plugins/rulesData\";\r\n\r\n\r\ninterface ListItem {\r\n value: string\r\n label: string\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n setup(__props) {\n\r\nconst TableRef = ref()\r\nconst scanCodeFun = async ()=>{\r\n console.log('添加完成')\r\n TableRef.value?.getTableList()\r\n}\r\n//函数\r\nconst datepickFn = ()=>{\r\n const today = new Date()\r\n const year = today.getFullYear();\r\n const month = (today.getMonth() + 1).toString().padStart(2,'0'); // 注意月份从0开始,所以要加1\r\n const date = (today.getDate()).toString().padStart(2,'0');\r\n const j = year +'-' + month + '-'+date\r\n data.datepick = [j,j]\r\n initParam.startDate = j; initParam.endDate = j\r\n}\r\nonBeforeMount(()=>{\r\n // datepickFn()\r\n})\r\nconst columns:any = []\r\n//提交参数\r\nconst initParam = reactive({\r\n \"batchNumber\": \"\",\r\n \"enterpriseId\": null,\r\n \"endDate\": \"\",\r\n \"startDate\": \"\",\r\n \"productId\": null,\r\n \"forwardingUnit\": \"\",\r\n 'qrcode':''\r\n})\r\nconst data:any = reactive({\r\n datepick:[]\r\n})\r\n\r\n/**\r\n * \r\n * @param val 子传值\r\n */\r\n const eventFun = (val: any) => {\r\n TableRef.value?.getTableList()\r\n}\r\nconst loading = ref(false)\r\nconst list1 = ref<ListItem[]>([])//血液制品名称\r\nconst list2 = ref<ListItem[]>([])//生产企业\r\nconst list3 = ref<ListItem[]>([])//收发货单位\r\n//函数\r\nconst click1 = async () => { options1.value = list1.value }\r\nconst click2 = async () => { options2.value = list2.value }\r\nconst click3 = async ()=>{options3.value = list3.value}\r\n\r\n//函数\r\nconst editinventFun = async ()=>{\r\n TableRef.value?.getTableList()\r\n}\r\n// 渲染表格\r\nonMounted(async () => {\r\n const r:any = await medicineColumns({})\r\n console.log('rrr',r)\r\n if(r.code==200){\r\n let obj = [...r.data?.list]\r\n TableRef.value.tableColumns = [...obj,...columnsTable]\r\n }\r\n\r\n const result1: any = await productList({ age: 1, pageSize: 999 })//血液制品名称\r\n const result2: any = await enterpriseList({ age: 1, pageSize: 999 })//生产企业\r\n const result3: any = await stockunit({ type: 1 })//收发货单位\r\n\r\n\r\n list1.value = findMap(result1.data?.list || [], 'obj')\r\n list2.value = findMap(result2.data?.list || [], 'obj')\r\n list3.value = findMap(result3.data?.list || [],'map')\r\n\r\n})\r\n//函数\r\nconst changFun = async (e: any) => {\r\n if (e) { initParam.startDate = e[0]; initParam.endDate = e[1] }\r\n else { initParam.startDate = \"\"; initParam.endDate = \"\" }\r\n}\r\nconst options1 = ref<ListItem[]>([])\r\nconst options2 = ref<ListItem[]>([])\r\nconst options3 = ref<ListItem[]>([])\r\n\r\nconst remoteMethod1 = async (query: string) => {\r\n if (query) {\r\n loading.value = true\r\n setTimeout(() => {\r\n loading.value = false\r\n options1.value = list1.value.filter((item: any) => {\r\n return item.label.toLowerCase().includes(query.toLowerCase())\r\n })\r\n }, 200)\r\n } else {\r\n options1.value = []\r\n }\r\n}\r\n\r\nconst remoteMethod2 = async (query: string) => {\r\n if (query) {\r\n loading.value = true\r\n setTimeout(() => {\r\n loading.value = false\r\n options2.value = list2.value.filter((item: any) => {\r\n console.log('第一个', query, item)\r\n return item.label.toLowerCase().includes(query.toLowerCase())\r\n })\r\n }, 200)\r\n } else {\r\n options2.value = []\r\n }\r\n}\r\nconst remoteMethod3 = async (query: string) => {\r\n if (query) {\r\n loading.value = true\r\n setTimeout(() => {\r\n loading.value = false\r\n options3.value = list3.value.filter((item: any) => {\r\n return item.label.toLowerCase().includes(query.toLowerCase())\r\n })\r\n }, 200)\r\n } else {\r\n options3.value = []\r\n }\r\n}\r\n//函数\r\nconst findMap = (arr: any, obj: any) => {\r\n return arr.map((item: any) => {\r\n return { value: obj == 'obj' ? item.id : item, label: obj == 'obj' ? item.name : item }\r\n })\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_option = _resolveComponent(\"el-option\")!\n const _component_el_select = _resolveComponent(\"el-select\")!\n const _component_el_form_item = _resolveComponent(\"el-form-item\")!\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(searchAdd, {\n isButtom: \"查询\",\n onEvent: eventFun\n }, {\n searchConter: _withCtx(() => [\n _createVNode(_component_el_form_item, { label: \"血液制品名称\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_select, {\n modelValue: initParam.productId,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((initParam.productId) = $event)),\n modelModifiers: { number: true },\n filterable: \"\",\n remote: \"\",\n \"reserve-keyword\": \"\",\n placeholder: \"血液制品名称\",\n \"remote-method\": remoteMethod1,\n loading: loading.value,\n clearable: \"\",\n style: {\"width\":\"200px\"},\n onClear: _cache[1] || (_cache[1] = ($event: any) => (initParam.productId = null)),\n onClick: click1\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(options1.value, (item) => {\n return (_openBlock(), _createBlock(_component_el_option, {\n key: item.value,\n label: item.label,\n value: item.value\n }, null, 8, [\"label\", \"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"modelValue\", \"loading\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, { label: \"生产企业\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_select, {\n modelValue: initParam.enterpriseId,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((initParam.enterpriseId) = $event)),\n modelModifiers: { number: true },\n filterable: \"\",\n remote: \"\",\n \"reserve-keyword\": \"\",\n placeholder: \"生产企业\",\n \"remote-method\": remoteMethod2,\n loading: loading.value,\n clearable: \"\",\n onClear: _cache[3] || (_cache[3] = ($event: any) => (initParam.enterpriseId = null)),\n onClick: click2,\n style: {\"width\":\"200px\"}\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(options2.value, (item) => {\n return (_openBlock(), _createBlock(_component_el_option, {\n key: item.value,\n label: item.label,\n value: item.value\n }, null, 8, [\"label\", \"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"modelValue\", \"loading\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, { label: \"血液制品批号\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: initParam.batchNumber,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((initParam.batchNumber) = $event)),\n placeholder: \"血液制品批号\",\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, { label: \"退货入库日期\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_date_picker, {\n modelValue: data.datepick,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((data.datepick) = $event)),\n type: \"daterange\",\n placeholder: \"出/入库日期\",\n clearable: \"\",\n \"start-placeholder\": \"开始\",\n \"end-placeholder\": \"结束\",\n \"value-format\": \"YYYY-MM-DD\",\n style: {\"width\":\"200px\"},\n onChange: changFun\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, { label: \"发货单位\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_select, {\n modelValue: initParam.forwardingUnit,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((initParam.forwardingUnit) = $event)),\n filterable: \"\",\n remote: \"\",\n \"reserve-keyword\": \"\",\n placeholder: \"发货单位\",\n \"remote-method\": remoteMethod3,\n loading: loading.value,\n clearable: \"\",\n onClick: click3,\n style: {\"width\":\"200px\"}\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(options3.value, (item) => {\n return (_openBlock(), _createBlock(_component_el_option, {\n key: item.value,\n label: item.label,\n value: item.value\n }, null, 8, [\"label\", \"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"modelValue\", \"loading\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, { label: \"条码\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: initParam.qrcode,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((initParam.qrcode) = $event)),\n placeholder: \"请输入条码\",\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(bg, { istitle: \"基本信息\" }, {\n btn: _withCtx(() => [\n _createVNode(Labour, {\n onScanCode: scanCodeFun,\n style: {\"margin-right\":\"20px\"}\n }),\n _createVNode(scanCode, {\n onScanCode: scanCodeFun,\n style: {\"margin-right\":\"20px\"}\n }),\n _createVNode(transportScanCode, { onScanCode: scanCodeFun })\n ]),\n bg: _withCtx(() => [\n _createVNode(tables, {\n ref_key: \"TableRef\",\n ref: TableRef,\n requestApi: _unref(stockrefundInList),\n columns: columns,\n initParam: initParam\n }, {\n right: _withCtx(({ row }) => [\n _createVNode(Editinventory, {\n row: row,\n onEditinvent: editinventFun\n }, null, 8, [\"row\"])\n ]),\n _: 1\n }, 8, [\"requestApi\", \"initParam\"])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","<!-- 退货入库 -->\r\n<template>\r\n <div class=\"storagePut\">\r\n <searchAdd isButtom=\"查询\" @event=\"eventFun\">\r\n <template #searchConter>\r\n <el-form-item label=\"血液制品名称\">\r\n <el-select v-model.number=\"initParam.productId\" filterable remote reserve-keyword placeholder=\"血液制品名称\"\r\n :remote-method=\"remoteMethod1\" :loading=\"loading\" clearable style=\"width: 200px;\"\r\n @clear=\"initParam.productId = null\" @click=\"click1\">\r\n <el-option v-for=\"item in options1\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\" />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"生产企业\">\r\n <el-select v-model.number=\"initParam.enterpriseId\" filterable remote reserve-keyword placeholder=\"生产企业\"\r\n :remote-method=\"remoteMethod2\" :loading=\"loading\" clearable @clear=\"initParam.enterpriseId = null\"\r\n @click=\"click2\" style=\"width: 200px;\">\r\n <el-option v-for=\"item in options2\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\" />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"血液制品批号\">\r\n <el-input v-model=\"initParam.batchNumber\" placeholder=\"血液制品批号\" clearable style=\"width: 200px;\" />\r\n </el-form-item>\r\n <el-form-item label=\"退货入库日期\">\r\n <el-date-picker v-model=\"data.datepick\" type=\"daterange\" placeholder=\"出/入库日期\" clearable\r\n start-placeholder=\"开始\" end-placeholder=\"结束\" value-format=\"YYYY-MM-DD\" style=\"width: 200px;\"\r\n @change=\"changFun\" />\r\n </el-form-item>\r\n <el-form-item label=\"发货单位\">\r\n <el-select v-model=\"initParam.forwardingUnit\" filterable remote reserve-keyword placeholder=\"发货单位\"\r\n :remote-method=\"remoteMethod3\" :loading=\"loading\" clearable @click=\"click3\" style=\"width: 200px;\">\r\n <el-option v-for=\"item in options3\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\" />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"条码\">\r\n <el-input v-model=\"initParam.qrcode\" placeholder=\"请输入条码\" clearable style=\"width: 200px;\" />\r\n </el-form-item>\r\n </template>\r\n </searchAdd>\r\n <bg istitle=\"基本信息\">\r\n <template #btn>\r\n <Labour @scanCode=\"scanCodeFun\" style=\"margin-right: 20px;\"></Labour>\r\n <scanCode @scanCode=\"scanCodeFun\" style=\"margin-right: 20px;\"></scanCode>\r\n <transportScanCode @scanCode=\"scanCodeFun\"></transportScanCode>\r\n </template>\r\n <template #bg>\r\n <tables ref=\"TableRef\" :requestApi=\"stockrefundInList\" :columns=\"columns\" :initParam=\"initParam\">\r\n <template #right=\"{ row }\">\r\n <Editinventory :row=\"row\" @editinvent=\"editinventFun\"></Editinventory>\r\n </template>\r\n </tables>\r\n </template>\r\n </bg>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { \r\n stockrefundInList,\r\n productList,//血液制品名称\r\n enterpriseList,//生产企业\r\n stockunit,//收发货单位\r\n medicineColumns,//表头\r\n} from \"@/api\";\r\nimport { reactive, ref,onMounted,onBeforeMount } from \"vue\";\r\nimport tables from \"@/components/table.vue\";\r\nimport searchAdd from \"@/components/searchAdd.vue\";\r\nimport bg from '@/components/bg.vue'\r\nimport Labour from './Labour.vue'\r\nimport scanCode from './scanCode.vue'\r\nimport transportScanCode from './transportScanCode.vue'\r\n\r\n\r\n\r\nimport Editinventory from './Editinventory.vue'\r\n\r\nconst TableRef = ref()\r\nimport {columnsTable } from \"@/plugins/rulesData\";\r\n\r\n\r\nconst scanCodeFun = async ()=>{\r\n console.log('添加完成')\r\n TableRef.value?.getTableList()\r\n}\r\n//函数\r\nconst datepickFn = ()=>{\r\n const today = new Date()\r\n const year = today.getFullYear();\r\n const month = (today.getMonth() + 1).toString().padStart(2,'0'); // 注意月份从0开始,所以要加1\r\n const date = (today.getDate()).toString().padStart(2,'0');\r\n const j = year +'-' + month + '-'+date\r\n data.datepick = [j,j]\r\n initParam.startDate = j; initParam.endDate = j\r\n}\r\nonBeforeMount(()=>{\r\n // datepickFn()\r\n})\r\nconst columns:any = []\r\n//提交参数\r\nconst initParam = reactive({\r\n \"batchNumber\": \"\",\r\n \"enterpriseId\": null,\r\n \"endDate\": \"\",\r\n \"startDate\": \"\",\r\n \"productId\": null,\r\n \"forwardingUnit\": \"\",\r\n 'qrcode':''\r\n})\r\nconst data:any = reactive({\r\n datepick:[]\r\n})\r\n\r\n/**\r\n * \r\n * @param val 子传值\r\n */\r\n const eventFun = (val: any) => {\r\n TableRef.value?.getTableList()\r\n}\r\nconst loading = ref(false)\r\nconst list1 = ref<ListItem[]>([])//血液制品名称\r\nconst list2 = ref<ListItem[]>([])//生产企业\r\nconst list3 = ref<ListItem[]>([])//收发货单位\r\n//函数\r\nconst click1 = async () => { options1.value = list1.value }\r\nconst click2 = async () => { options2.value = list2.value }\r\nconst click3 = async ()=>{options3.value = list3.value}\r\n\r\n//函数\r\nconst editinventFun = async ()=>{\r\n TableRef.value?.getTableList()\r\n}\r\n// 渲染表格\r\nonMounted(async () => {\r\n const r:any = await medicineColumns({})\r\n console.log('rrr',r)\r\n if(r.code==200){\r\n let obj = [...r.data?.list]\r\n TableRef.value.tableColumns = [...obj,...columnsTable]\r\n }\r\n\r\n const result1: any = await productList({ age: 1, pageSize: 999 })//血液制品名称\r\n const result2: any = await enterpriseList({ age: 1, pageSize: 999 })//生产企业\r\n const result3: any = await stockunit({ type: 1 })//收发货单位\r\n\r\n\r\n list1.value = findMap(result1.data?.list || [], 'obj')\r\n list2.value = findMap(result2.data?.list || [], 'obj')\r\n list3.value = findMap(result3.data?.list || [],'map')\r\n\r\n})\r\n//函数\r\nconst changFun = async (e: any) => {\r\n if (e) { initParam.startDate = e[0]; initParam.endDate = e[1] }\r\n else { initParam.startDate = \"\"; initParam.endDate = \"\" }\r\n}\r\ninterface ListItem {\r\n value: string\r\n label: string\r\n}\r\nconst options1 = ref<ListItem[]>([])\r\nconst options2 = ref<ListItem[]>([])\r\nconst options3 = ref<ListItem[]>([])\r\n\r\nconst remoteMethod1 = async (query: string) => {\r\n if (query) {\r\n loading.value = true\r\n setTimeout(() => {\r\n loading.value = false\r\n options1.value = list1.value.filter((item: any) => {\r\n return item.label.toLowerCase().includes(query.toLowerCase())\r\n })\r\n }, 200)\r\n } else {\r\n options1.value = []\r\n }\r\n}\r\n\r\nconst remoteMethod2 = async (query: string) => {\r\n if (query) {\r\n loading.value = true\r\n setTimeout(() => {\r\n loading.value = false\r\n options2.value = list2.value.filter((item: any) => {\r\n console.log('第一个', query, item)\r\n return item.label.toLowerCase().includes(query.toLowerCase())\r\n })\r\n }, 200)\r\n } else {\r\n options2.value = []\r\n }\r\n}\r\nconst remoteMethod3 = async (query: string) => {\r\n if (query) {\r\n loading.value = true\r\n setTimeout(() => {\r\n loading.value = false\r\n options3.value = list3.value.filter((item: any) => {\r\n return item.label.toLowerCase().includes(query.toLowerCase())\r\n })\r\n }, 200)\r\n } else {\r\n options3.value = []\r\n }\r\n}\r\n//函数\r\nconst findMap = (arr: any, obj: any) => {\r\n return arr.map((item: any) => {\r\n return { value: obj == 'obj' ? item.id : item, label: obj == 'obj' ? item.name : item }\r\n })\r\n}\r\n\r\n\r\n\r\n\r\n\r\n</script>\r\n<style lang=\"scss\">\r\n.storagePut {\r\n user-select: none;\r\n}\r\n.el-form-item {\r\n // margin-bottom: 0;\r\n}\r\n</style>","import script from \"./index.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=fb04a69e&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","formLabelWidth","_defineComponent","__name","emits","setup","__props","emit","__emit","dialogFormVisible","ref","ruleFormRef","rules","reactive","innerVisible","initParam","restaurants","querySearch","queryString","cb","results","value","filter","createFilter","restaurant","toLowerCase","indexOf","restaurants1","querySearch1","data","tableData","showDiaData","itemPir","rules1","columns","selectType","editStrot","editIndex","subStock","async","arr","forEach","item","unitPrice","Number","reslut","stockTemplateRefBatchIn","console","log","code","msg","ElMessage","success","findFun","list","b","find","id","name","resetForm","formEl","resetFields","submitForm","validate","valid","fields","ElNotification","title","message","type","date","forwardingUnit","operator","quantity","medicineInfo","splice","push","error","closeFun","length","ElMessageBox","confirm","confirmButtonText","cancelButtonText","draggable","center","then","catch","itemPirFun","stockunit","arrMap","link","operatorListApi","operatorList","showinnerVisible","showDia","resetFun","medicListStockFun","timesFn","medicListStock","prop","field_name","label","includes","required","trigger","pattern","Object","assign","syrulesData","handleClick","datas","index","delClick","_ctx","_cache","_component_el_button","_resolveComponent","_component_el_divider","_component_el_option","_component_el_select","_component_el_input","_component_el_date_picker","_component_el_form_item","_component_el_autocomplete","_component_el_form","_component_el_table_column","_component_el_table","_component_el_dialog","_openBlock","_createElementBlock","_createVNode","icon","onClick","default","_withCtx","_createTextVNode","_","modelValue","$event","width","footer","_createElementVNode","ref_key","_unref","model","inline","_Fragment","_renderList","_createBlock","key","placeholder","itemIt","i","_createCommentVNode","autocomplete","clearable","style","modelModifiers","number","border","scope","_toDisplayString","row","fixed","Edit","$index","circle","Delete","__exports__","src","_imports_0","_hoisted_4","props","placeholderData","String","expose","__expose","myInput","num","inputFocus","setTimeout","focus","CloseFn","ClearFn","document","addEventListener","event","target","onSubmit","_component_CircleClose","_component_el_icon","_withDirectives","_vModelText","size","watch","dy","inputSearchRef","qr","dbclicklable","obj","tableRowClassName","rowIndex","findIndex","Qrcode","updating","nextTick","alert","callback","Promise","resolve","reject","medicListScanCode","ab","every","stockRefCodein","stockInList","inputSearchfn","e","j","SearchFind","medicMsfx","initParamObj","undefined","deltable","disabled","inputSearch","onInputSearchData","height","scanCodeTable","header","onDblclick","itemPirFun2","arrData","unit_price","medicRefTransport","restaurants2","querySearch2","TranscanCodeTable","editFun","stockeditApi","param","stockedit","keys","stockdel","info","forwarding_unit","TableRef","scanCodeFun","getTableList","onBeforeMount","datepick","eventFun","val","loading","list1","list2","list3","click1","options1","click2","options2","click3","options3","editinventFun","onMounted","r","medicineColumns","tableColumns","columnsTable","result1","productList","age","pageSize","result2","enterpriseList","result3","findMap","changFun","startDate","endDate","remoteMethod1","query","remoteMethod2","remoteMethod3","map","searchAdd","isButtom","onEvent","searchConter","productId","filterable","remote","onClear","enterpriseId","batchNumber","onChange","qrcode","bg","istitle","btn","Labour","onScanCode","scanCode","transportScanCode","tables","requestApi","stockrefundInList","right","Editinventory","onEditinvent"],"sourceRoot":""}