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AcM,EAA0B,OAAO,SAAa9S,GAC1D,IAAIoF,EAAS4L,UAAU5L,OACnB8N,EAAS9N,EAAS,OAAI+D,EAAY6H,UAAU,GAChD,GAAI5L,QAAqB+D,IAAX+J,EAAsB,OAAOY,EAAKX,KAAMnT,GACtD,IAAIsM,EAASuH,EAAOV,KAAMnT,GAC1B2S,EAAwBvN,EAAQ,GAChC,IAAI7H,EAAQmV,EAASQ,GACjB1P,EAAQ,EACZ,MAAOA,EAAQ8I,EAAOlH,OACpB,GAAIkH,EAAO9I,OAAajG,EAAO,OAAO,EACtC,OAAO,CACX,GAAG,CAAEoW,YAAY,EAAMC,QAAQ,G,uBCzBjC,IAAII,EAAc,EAAQ,MACtBvB,EAAc,EAAQ,MACtBwB,EAAwB,EAAQ,MAEhCnB,EAA2BD,gBAAgBE,UAC3CxT,EAAUkT,EAAYK,EAAyBvT,SAI/CyU,KAAiB,SAAUlB,IAC7BmB,EAAsBnB,EAA0B,OAAQ,CACtDnB,IAAK,WACH,IAAIuC,EAAQ,EAEZ,OADA3U,EAAQ4T,MAAM,WAAce,GAAS,IAC9BA,CACT,EACAC,cAAc,EACdR,YAAY,G","sources":["webpack://baozhidao-putoutstorage/./src/plugins/selectData.ts","webpack://baozhidao-putoutstorage/./src/utils/download.ts","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/Editinventory.vue?47ae","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/Editinventory.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/Editinventory.vue?e5fe","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/goorsnote.vue?a1cb","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/goorsnote.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/goorsnote.vue?42c5","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/scrapNote.vue?80d3","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/scrapNote.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/scrapNote.vue?d4e2","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/inputSearch.vue?6db4","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/inputSearch.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/inputSearch.vue?a74b","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/scanCode.vue?6841","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/scanCode.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/scanCode.vue?650f","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/Labour.vue?f382","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/Labour.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/Labour.vue?2adb","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/downing.vue?143a","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/downing.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/downing.vue?4898","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/index.vue?58c4","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/index.vue","webpack://baozhidao-putoutstorage/./src/views/stockcontrol/ReturnGoodsScrap/index.vue?9246","webpack://baozhidao-putoutstorage/./node_modules/core-js/internals/classof.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/internals/define-built-in-accessor.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/internals/to-string-tag-support.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/internals/to-string.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/internals/validate-arguments-length.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/modules/web.url-search-params.delete.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/modules/web.url-search-params.has.js","webpack://baozhidao-putoutstorage/./node_modules/core-js/modules/web.url-search-params.size.js"],"sourcesContent":["import {\r\n inventoryList,\r\n productList,//血液制品名称\r\n enterpriseList,//生产企业\r\n stockunit,//收发货单位 2收货,3发货\r\n specList,//规格\r\n batchnumber,//批号\r\n} from \"@/api\";\r\n\r\n\r\n/**\r\n * 批号\r\n * @param params \r\n */\r\nexport async function LotNumber() {\r\n const reslut:any =await batchnumber({})\r\n return reslut.data\r\n}\r\n\r\n/**\r\n * 收货单位\r\n * @param params \r\n */\r\nexport async function shoubat() {\r\n const reslut:any =await stockunit({type:2})\r\n return reslut.data.list || []\r\n}\r\n\r\n/**\r\n * 规格\r\n */\r\nexport async function specification(){\r\n const reslut:any =await specList({ page: 1, pageSize: 999 })\r\n return reslut.data?.list\r\n}\r\n/**\r\n * 品名(血液制品名称)\r\n */\r\nexport async function gradeName(){\r\n const reslut:any =await productList({ page: 1, pageSize: 999 })\r\n return reslut.data?.list\r\n}\r\n\r\n/**\r\n * 单位\r\n */\r\nexport function unitFun(){\r\n\r\n}\r\n/**\r\n * 生产企业\r\n */\r\nexport async function enterpriseFun(){\r\n const reslut:any =await enterpriseList({ page: 1, pageSize: 999 })\r\n return reslut.data?.list\r\n}\r\n/**\r\n * 收发货单位 2收货,3发货\r\n */\r\nexport async function stockunitFun(type:any){\r\n const reslut:any =await stockunit({ type: type })\r\n return reslut.data?.list\r\n}","/**\r\n * @author yxm \r\n * @description 导出文件流\r\n * @param { String } content 文件流\r\n * @param { String } paraName 文件名+后缀名\r\n*/\r\n\r\n \r\n\r\n\r\nimport $http from '@/utils/index'\r\n\r\n// 公司列表树\r\nexport const getContentExportApi = (params: any) => $http.post('/stock/inquiry/excel', params, { responseType: \"blob\", })\r\n\r\n\r\n/**\r\n * \r\n * @param res 文件流\r\n * @param name 下载的文件名\r\n * @param format 下载的文件格式 xlsx\r\n */\r\nexport function downloadExcelFun(res: any) {\r\n const fileName = decodeURIComponent(res.headers[\"content-disposition\"])\r\n let blob = new Blob([res.data], { type:'application/x-rar-compressed'});\r\n\r\n let url = window.URL.createObjectURL(blob); // 创建 url 并指向 blob\r\n let a = document.createElement(\"a\");\r\n a.href = url;\r\n a.download = fileName.split(\";\")[2].split(\"''\")[1];\r\n a.click();\r\n window.URL.revokeObjectURL(url); // 释放该 url\r\n}\r\n\r\n\r\n//下载pdf\r\nexport function downPDF(result: any) {\r\n let fileAddress = URL.createObjectURL(new Blob([result.data], { type: \"application/pdf;charset=utf-8\" }))\r\n let innHtml = window.open(fileAddress, '_blank');\r\n innHtml?.print();\r\n}","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 stockoutedit,//编辑\r\n stockoutdel,//删除\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 \"receiving_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\n\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 stockouteditApi()\r\n } else {\r\n ElMessage.error('请完善必填项')\r\n }\r\n })\r\n}\r\n//提交编辑\r\nconst stockouteditApi = async ()=>{\r\n let param = {...initParam}\r\n param.unit_price = Number(param.unit_price)\r\n const reslut:any = await stockoutedit(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 stockoutdel({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).receiving_unit,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(initParam).receiving_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.receiving_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 stockoutedit,//编辑\r\n stockoutdel,//删除\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 \"receiving_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\n\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 stockouteditApi()\r\n } else {\r\n ElMessage.error('请完善必填项')\r\n }\r\n })\r\n}\r\n//提交编辑\r\nconst stockouteditApi = async ()=>{\r\n let param = {...initParam}\r\n param.unit_price = Number(param.unit_price)\r\n const reslut:any = await stockoutedit(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 stockoutdel({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=090cdbb6&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, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { stockTemprefOutexport } from \"@/api\";\r\nimport { reactive} from 'vue'\r\nimport { ElMessageBox } from 'element-plus'\r\nimport { goddsnoteRuleForm } from \"./js/interface\";\r\nimport { downPDF } from \"@/utils/download\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'goorsnote',\n props: {\r\n multipleTables:{\r\n type:Array,\r\n default:()=>[]\r\n }\r\n},\n setup(__props) {\n\r\nconst props = __props\r\nconst initParam = reactive<goddsnoteRuleForm>({//请求参数\r\n \"reason\": null,\r\n \"stockOutIds\": []\r\n})\r\n//函数\r\nconst showdialogdialog = async () => {\r\n ElMessageBox.prompt('请输入你的退货原因', '退货单', {\r\n confirmButtonText: '提交',\r\n cancelButtonText: '取消',\r\n }).then(async ({ value }) => {\r\n initParam.reason = value\r\n initParam.stockOutIds = await filterfun()\r\n const reslut = await stockTemprefOutexport(initParam)\r\n downPDF(reslut)\r\n }).catch(() => {})\r\n}\r\nconst filterfun = ()=>{\r\n return new Promise(resolve=>{\r\n let Array = [...props.multipleTables]\r\n const reslut = Array.map((item:any)=>item.id)\r\n console.log('筛选',reslut)\r\n resolve(reslut)\r\n })\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n\n return (_openBlock(), _createBlock(_component_el_button, {\n title: \"请勾选\",\n disabled: props.multipleTables.length == 0?true:false,\n type: \"primary\",\n icon: \"Download\",\n onClick: showdialogdialog\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"退货单\")\n ]),\n _: 1\n }, 8, [\"disabled\"]))\n}\n}\n\n})","<template>\r\n <el-button \r\n title='请勾选'\r\n :disabled=\"props.multipleTables.length == 0?true:false\" \r\n type=\"primary\" icon=\"Download\" @click=\"showdialogdialog\">退货单</el-button>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { stockTemprefOutexport } from \"@/api\";\r\nimport { reactive} from 'vue'\r\nimport { ElMessageBox } from 'element-plus'\r\nimport { goddsnoteRuleForm } from \"./js/interface\";\r\nimport { downPDF } from \"@/utils/download\";\r\n\r\nconst props = defineProps({\r\n multipleTables:{\r\n type:Array,\r\n default:()=>[]\r\n }\r\n})\r\nconst initParam = reactive<goddsnoteRuleForm>({//请求参数\r\n \"reason\": null,\r\n \"stockOutIds\": []\r\n})\r\n//函数\r\nconst showdialogdialog = async () => {\r\n ElMessageBox.prompt('请输入你的退货原因', '退货单', {\r\n confirmButtonText: '提交',\r\n cancelButtonText: '取消',\r\n }).then(async ({ value }) => {\r\n initParam.reason = value\r\n initParam.stockOutIds = await filterfun()\r\n const reslut = await stockTemprefOutexport(initParam)\r\n downPDF(reslut)\r\n }).catch(() => {})\r\n}\r\nconst filterfun = ()=>{\r\n return new Promise(resolve=>{\r\n let Array = [...props.multipleTables]\r\n const reslut = Array.map((item:any)=>item.id)\r\n console.log('筛选',reslut)\r\n resolve(reslut)\r\n })\r\n}\r\n</script>","import script from \"./goorsnote.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./goorsnote.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { stockscrapoutexport } from \"@/api\";\r\nimport { reactive} from 'vue'\r\nimport { ElMessageBox } from 'element-plus'\r\nimport { goddsnoteRuleForm } from \"./js/interface\";\r\nimport { downPDF } from \"@/utils/download\";\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'scrapNote',\n props: {\r\n multipleTables:{\r\n type:Array,\r\n default:()=>[]\r\n }\r\n},\n setup(__props) {\n\r\nconst props = __props\r\n\r\nconst initParam = reactive<goddsnoteRuleForm>({//请求参数\r\n \"reason\": null,\r\n \"stockOutIds\": []\r\n})\r\n//函数\r\nconst showdialogdialog = async () => {\r\n ElMessageBox.prompt('请输入你的报废出库原因', '报废出库', {\r\n confirmButtonText: '提交',\r\n cancelButtonText: '取消',\r\n }).then(async ({ value }) => {\r\n initParam.reason = value\r\n initParam.stockOutIds = await filterfun()\r\n const reslut = await stockscrapoutexport(initParam)\r\n downPDF(reslut)\r\n }).catch(() => {})\r\n}\r\n\r\n\r\n//函数\r\nconst filterfun = async ()=>{\r\n return new Promise(resolve=>{\r\n let Array = [...props.multipleTables]\r\n const reslut = Array.map((item:any)=>item.id)\r\n console.log('筛选',reslut)\r\n resolve(reslut)\r\n })\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n\n return (_openBlock(), _createBlock(_component_el_button, {\n title: \"请勾选\",\n disabled: props.multipleTables.length == 0?true:false,\n type: \"primary\",\n icon: \"Download\",\n onClick: showdialogdialog\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"报废出库单\")\n ]),\n _: 1\n }, 8, [\"disabled\"]))\n}\n}\n\n})","<template>\r\n <el-button\r\n title='请勾选'\r\n :disabled=\"props.multipleTables.length == 0?true:false\" type=\"primary\" icon=\"Download\" @click=\"showdialogdialog\">报废出库单</el-button>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { stockscrapoutexport } from \"@/api\";\r\nimport { reactive} from 'vue'\r\nimport { ElMessageBox } from 'element-plus'\r\nimport { goddsnoteRuleForm } from \"./js/interface\";\r\nimport { downPDF } from \"@/utils/download\";\r\n\r\nconst props = defineProps({\r\n multipleTables:{\r\n type:Array,\r\n default:()=>[]\r\n }\r\n})\r\n\r\nconst initParam = reactive<goddsnoteRuleForm>({//请求参数\r\n \"reason\": null,\r\n \"stockOutIds\": []\r\n})\r\n//函数\r\nconst showdialogdialog = async () => {\r\n ElMessageBox.prompt('请输入你的报废出库原因', '报废出库', {\r\n confirmButtonText: '提交',\r\n cancelButtonText: '取消',\r\n }).then(async ({ value }) => {\r\n initParam.reason = value\r\n initParam.stockOutIds = await filterfun()\r\n const reslut = await stockscrapoutexport(initParam)\r\n downPDF(reslut)\r\n }).catch(() => {})\r\n}\r\n\r\n\r\n//函数\r\nconst filterfun = async ()=>{\r\n return new Promise(resolve=>{\r\n let Array = [...props.multipleTables]\r\n const reslut = Array.map((item:any)=>item.id)\r\n console.log('筛选',reslut)\r\n resolve(reslut)\r\n })\r\n}\r\n</script>","import script from \"./scrapNote.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./scrapNote.vue?vue&type=script&setup=true&lang=ts\"\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\" }\n\nimport { ref, reactive } from \"vue\";\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'inputSearch',\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 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\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: \"请扫描追溯码\"\n }, null, 512), [\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=\"请扫描追溯码\" >\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, ElMessageBox } from 'element-plus'\r\nconst myInput = ref()\r\nconst data: any = reactive({\r\n value: '',\r\n num:0\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\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=70401cf3&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\" }\nconst _hoisted_4 = { style: {\"display\":\"flex\",\"justify-content\":\"center\"} }\nconst _hoisted_5 = { class: \"dialog-footer\" }\n\nimport { reactive, ref,nextTick,watch, onMounted} from 'vue'\r\nimport inputSearch from \"./inputSearch.vue\";\r\nimport { scanCodeTableOut } from \"@/plugins/rulesData\";\r\nimport { \r\n stockunit,//收发货单位\r\n RetGoodsRefcodeout\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\nimport { timesFn } from \"@/plugins/settime\";\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\nconst centerDialogVisible = ref(false)\r\n\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 \"receivingUnit\": \"\",\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('inputSearchRef111',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('表格', 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\n\r\n\r\nconst showcenterDialogVisible = ()=>{\r\n const ab = data.tableData.every((item:any) => item.quantity != '' && item.operator != '' && item.date != '')\r\n if(!ab){\r\n ElMessage.error('缺少数据提示:【数量】、【经办人】、【出库日期】是必填项哦!');return;\r\n }else{\r\n centerDialogVisible.value = true\r\n }\r\n}\r\n\r\nlet initParams:any = reactive({//请求参数\r\n state: 2,\r\n stockOutList: []\r\n})\r\nconst subStock = async ()=>{\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 initParams.stockOutList = arr\r\n const reslut:any = await RetGoodsRefcodeout(initParams)\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 * @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 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 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: 2 })\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_radio = _resolveComponent(\"el-radio\")!\n const _component_el_radio_group = _resolveComponent(\"el-radio-group\")!\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[4] || (_cache[4] = ($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 disabled: _unref(data).tableData.length==0?true:false,\n type: \"primary\",\n onClick: showcenterDialogVisible\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(scanCodeTableOut), (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 == 'receivingUnit')\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 _createVNode(_component_el_dialog, {\n \"destroy-on-close\": true,\n modelValue: centerDialogVisible.value,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((centerDialogVisible).value = $event)),\n title: \"出库类型\",\n width: \"500\",\n center: \"\"\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_el_button, {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (centerDialogVisible.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Cancel\")\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 _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_el_radio_group, {\n modelValue: _unref(initParams).state,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(initParams).state) = $event))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_radio, {\n label: 2,\n size: \"large\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"退货出库\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_radio, {\n label: 3,\n size: \"large\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"报废出库\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ])\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=\"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 scanCodeTableOut\" :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 == 'receivingUnit'\" 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 :disabled=\"data.tableData.length==0?true:false\" type=\"primary\" @click=\"showcenterDialogVisible\">立即出库</el-button>\r\n </span>\r\n </template>\r\n\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"centerDialogVisible\" title=\"出库类型\" width=\"500\" center>\r\n <div style=\"display: flex;justify-content: center\">\r\n <el-radio-group v-model=\"initParams.state\">\r\n <el-radio :label=\"2\" size=\"large\">退货出库</el-radio>\r\n <el-radio :label=\"3\" size=\"large\">报废出库</el-radio>\r\n </el-radio-group>\r\n </div>\r\n <template #footer>\r\n <div class=\"dialog-footer\">\r\n <el-button @click=\"centerDialogVisible = false\">Cancel</el-button>\r\n <el-button type=\"primary\" @click=\"subStock\"> 提交 </el-button>\r\n </div>\r\n </template>\r\n </el-dialog>\r\n\r\n\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 { scanCodeTableOut } from \"@/plugins/rulesData\";\r\nconst dialogFormVisible = ref(false)\r\nconst centerDialogVisible = ref(false)\r\n\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 RetGoodsRefcodeout\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\nimport { timesFn } from \"@/plugins/settime\";\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 \"receivingUnit\": \"\",\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('inputSearchRef111',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('表格', 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\n\r\n\r\nconst showcenterDialogVisible = ()=>{\r\n const ab = data.tableData.every((item:any) => item.quantity != '' && item.operator != '' && item.date != '')\r\n if(!ab){\r\n ElMessage.error('缺少数据提示:【数量】、【经办人】、【出库日期】是必填项哦!');return;\r\n }else{\r\n centerDialogVisible.value = true\r\n }\r\n}\r\n\r\nlet initParams:any = reactive({//请求参数\r\n state: 2,\r\n stockOutList: []\r\n})\r\nconst subStock = async ()=>{\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 initParams.stockOutList = arr\r\n const reslut:any = await RetGoodsRefcodeout(initParams)\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 * @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 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 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: 2 })\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=4afb4507&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, toDisplayString as _toDisplayString } from \"vue\"\n\nconst _hoisted_1 = { class: \"\" }\nconst _hoisted_2 = { class: \"dialog-footer\" }\nconst _hoisted_3 = { class: \"dialog-footer\" }\nconst _hoisted_4 = { style: {\"display\":\"flex\",\"justify-content\":\"center\"} }\nconst _hoisted_5 = { class: \"dialog-footer\" }\n\nimport { reactive, ref } 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 { \r\n medicListStockOut,\r\n stockunit,//发货单位\r\n operatorList,//经办人\r\n stockTemplateIn,//单个出库\r\n RetGoodsRefout,//批量出库\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\n\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 centerDialogVisible = ref(false)\r\n\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\": null,\r\n \"unitPrice\":null\r\n})\r\nlet data:any = reactive({\r\n tableData:[],\r\n showDiaData:[],\r\n itemPir:[],\r\n itemOpen:[],\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\nlet initParams = reactive({//请求参数\r\n state: 2,\r\n stockOutList: []\r\n})\r\n//立即出库\r\nconst subStock = async ()=>{\r\n initParams.stockOutList = data.tableData\r\n const reslut:any = await RetGoodsRefout(initParams)\r\n \r\n if(reslut.code==200){\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n centerDialogVisible.value = false\r\n innerVisible.value = false\r\n emit('scanCode', '')\r\n data.tableData = []\r\n }\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\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 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.itemPir = []\r\n data.itemOpen = []\r\n data.rules1 = []\r\n data.columns = []\r\n data.selectType = []\r\n data.editStrot = false\r\n resetFun()//复原表单\r\n\r\n medicListStockFun()//获取出库表单\r\n itemPirFun()//发货单位\r\n operatorListApi()//经办人\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 = null\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 medicListStockOut({})\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 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_radio = _resolveComponent(\"el-radio\")!\n const _component_el_radio_group = _resolveComponent(\"el-radio-group\")!\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[12] || (_cache[12] = ($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[4] || (_cache[4] = ($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[5] || (_cache[5] = ($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 (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[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 prop: \"date\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_date_picker, {\n modelValue: _unref(initParam).date,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($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[2] || (_cache[2] = ($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[3] || (_cache[3] = ($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 \"destroy-on-close\": true,\n modelValue: innerVisible.value,\n \"onUpdate:modelValue\": _cache[11] || (_cache[11] = ($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[6] || (_cache[6] = ($event: any) => (innerVisible.value = false))\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: _cache[7] || (_cache[7] = ($event: any) => (centerDialogVisible.value = true))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"立即出库\")\n ]),\n _: 1\n }, 8, [\"disabled\"])\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 _createVNode(_component_el_dialog, {\n \"destroy-on-close\": true,\n modelValue: centerDialogVisible.value,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => ((centerDialogVisible).value = $event)),\n title: \"出库类型\",\n width: \"500\",\n center: \"\"\n }, {\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_el_button, {\n onClick: _cache[9] || (_cache[9] = ($event: any) => (centerDialogVisible.value = false))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Cancel\")\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 _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_el_radio_group, {\n modelValue: _unref(initParams).state,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((_unref(initParams).state) = $event))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_radio, {\n label: 2,\n size: \"large\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"退货出库\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_radio, {\n label: 3,\n size: \"large\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"报废出库\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\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 :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\" :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.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\" 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-select v-model=\"initParam.operator\" placeholder=\"请选择经办人\" class=\"inputWidth\">\r\n <el-option :label=\"it\" :value=\"it\" v-for=\"(it,j) in data.itemOpen\" :key=\"j+Math.random()\" />\r\n </el-select> -->\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 :destroy-on-close=\"true\" v-model=\"innerVisible\" title=\"出库数据\" width=\"95%\" append-to-body draggable :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\r\n <el-table :data=\"data.tableData\" style=\"width: 100%\" border max-height=\"450\" :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\" 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\" :disabled=\"data.tableData.length==0?true:false\" @click=\"centerDialogVisible = true\">立即出库</el-button>\r\n </span>\r\n </template>\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"centerDialogVisible\" title=\"出库类型\" width=\"500\" center>\r\n <div style=\"display: flex;justify-content: center\">\r\n <el-radio-group v-model=\"initParams.state\">\r\n <el-radio :label=\"2\" size=\"large\">退货出库</el-radio>\r\n <el-radio :label=\"3\" size=\"large\">报废出库</el-radio>\r\n </el-radio-group>\r\n </div>\r\n <template #footer>\r\n <div class=\"dialog-footer\">\r\n <el-button @click=\"centerDialogVisible = false\">Cancel</el-button>\r\n <el-button type=\"primary\" @click=\"subStock\"> 提交 </el-button>\r\n </div>\r\n </template>\r\n </el-dialog>\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 } from 'vue'\r\nimport type { FormInstance, FormRules} from 'element-plus'\r\nimport { ElNotification} from 'element-plus'\r\nimport { syrulesData,columnsTable } from \"@/plugins/rulesData\";\r\nconst dialogFormVisible = ref(false)\r\nconst centerDialogVisible = ref(false)\r\n\r\nconst ruleFormRef = ref<FormInstance>()\r\n\r\nlet rules:any = reactive({})\r\n\r\nimport { \r\n medicListStockOut,\r\n stockunit,//发货单位\r\n operatorList,//经办人\r\n stockTemplateIn,//单个出库\r\n RetGoodsRefout,//批量出库\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\n\r\nlet initParam:any = reactive({\r\n \"date\": \"\",\r\n \"forwardingUnit\": \"\",\r\n \"medicineInfo\": {},\r\n \"operator\":'',\r\n \"quantity\": null,\r\n \"unitPrice\":null\r\n})\r\nlet data:any = reactive({\r\n tableData:[],\r\n showDiaData:[],\r\n itemPir:[],\r\n itemOpen:[],\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\nlet initParams = reactive({//请求参数\r\n state: 2,\r\n stockOutList: []\r\n})\r\n//立即出库\r\nconst subStock = async ()=>{\r\n initParams.stockOutList = data.tableData\r\n const reslut:any = await RetGoodsRefout(initParams)\r\n \r\n if(reslut.code==200){\r\n ElMessage.success(reslut.msg)\r\n dialogFormVisible.value = false\r\n centerDialogVisible.value = false\r\n innerVisible.value = false\r\n emit('scanCode', '')\r\n data.tableData = []\r\n }\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\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 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.itemPir = []\r\n data.itemOpen = []\r\n data.rules1 = []\r\n data.columns = []\r\n data.selectType = []\r\n data.editStrot = false\r\n resetFun()//复原表单\r\n\r\n medicListStockFun()//获取出库表单\r\n itemPirFun()//发货单位\r\n operatorListApi()//经办人\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 = null\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 medicListStockOut({})\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 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\">\r\n.inputWidth {\r\n width: 200px;\r\n}\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=30e21f3a&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, createElementVNode as _createElementVNode, unref as _unref, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { style: {\"display\":\"flex\",\"justify-content\":\"space-between\",\"align-items\":\"center\",\"flex-wrap\":\"wrap\"} }\nconst _hoisted_2 = { style: {\"max-width\":\"200px\",\"margin-bottom\":\"18px\"} }\n\nimport {RetGoodsReftransportout, transportRecordLists } from \"@/api\";\r\nimport { gradeName, enterpriseFun, stockunitFun, specification, LotNumber, shoubat } from \"@/plugins/selectData\";\r\nimport { reactive, ref, onMounted } from 'vue'\r\nimport { downPDF, downloadExcelFun } from \"@/utils/download\";\r\nimport type { FormInstance, ElTable } from 'element-plus'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { tableinterface,RuleForm,RuleForm1,ListItem,RestaurantItem,RuleFormdown} from \"./js/interface\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'downing',\n setup(__props) {\n\r\nconst dialogFormVisible = ref(false)\r\nconst ruleFormRef = ref<FormInstance>()\r\n\r\nconst multipleSelection:any = ref([])\r\nconst handleSelectionChange = (val: any) => {\r\n multipleSelection.value = val\r\n let arrMap = [...val]\r\n expinitParam.stockOutIds = arrMap.map(item=> item.stock_out_id )\r\n}\r\n\r\nlet tableData = ref([])\r\nconst initParam = reactive<RuleForm1>({//请求参数\r\n \"date\": null,\r\n \"receivingUnit\": ''\r\n})\r\n//函数\r\nconst searchFn = async ()=>{\r\n const reslut:any = await transportRecordLists(initParam)\r\n if(reslut.code==200){\r\n tableData.value = reslut.data.list || []\r\n }\r\n console.log('搜索',reslut)\r\n}\r\n\r\n\r\n\r\nonMounted(async () => {\r\n const result1: any = await gradeName()//疫苗名称\r\n const result2: any = await enterpriseFun()//生产企业\r\n const result3: any = await specification()//规格\r\n const result4: any = await stockunitFun(2)//收发货单位\r\n\r\n list1.value = findMap(result1 || [], 'obj')\r\n list2.value = findMap(result2 || [], 'obj')\r\n list3.value = findMap(result3 || [], 'obj')\r\n list4.value = findMap(result4 || [], 'map')\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\nconst list1 = ref<ListItem[]>([])//疫苗名称\r\nconst list2 = ref<ListItem[]>([])//生产企业\r\nconst list3 = ref<ListItem[]>([])//收发货单位\r\nconst list4 = ref<ListItem[]>([])//收发货单位\r\n\r\n\r\n\r\n\r\n\r\n\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\n\r\n\r\n//显示运输登记\r\nconst showdialogdialog = async () => {\r\n dialogFormVisible.value = true\r\n const reslut: any = await shoubat()\r\n console.log('数据1', reslut)\r\n const arrMap = reslut\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\nconst restaurants = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (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\n\r\nlet expinitParam:any = reactive<RuleFormdown>({\r\n \"stockOutIds\": [],\r\n \"type\": ''\r\n})\r\nconst submitForm = async ( ty: any) => {\r\n const b = Object.values(initParam).some(item => item==null || item=='')\r\n console.log('b',b)\r\n if(b){\r\n ElMessage.error('请选择出库日期跟收货单位')\r\n return\r\n }else{\r\n expinitParam.type = ty\r\n expinitParam = {...expinitParam,...initParam}\r\n const result: any = await RetGoodsReftransportout(expinitParam)\r\n console.log('result', result, ty)\r\n ty == 'word' ? downloadExcelFun(result) : downPDF(result)\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_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(_Fragment, null, [\n _createVNode(_component_el_button, {\n \"el-button\": \"\",\n type: \"primary\",\n icon: \"Download\",\n onClick: showdialogdialog\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[3] || (_cache[3] = ($event: any) => ((dialogFormVisible).value = $event)),\n title: \"退货出库运输记录表\",\n \"append-to-body\": true,\n draggable: \"\",\n width: \"80%\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_el_form, {\n model: initParam,\n ref_key: \"ruleFormRef\",\n ref: ruleFormRef,\n inline: true\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_form_item, {\n label: \"出库日期\",\n prop: \"date\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_date_picker, {\n modelValue: initParam.date,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((initParam.date) = $event)),\n clearable: false,\n class: \"inputWidth\",\n type: \"date\",\n \"value-format\": \"YYYY-MM-DD\",\n style: {\"width\":\"100%\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, {\n label: \"收货单位\",\n prop: \"receivingUnit\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_autocomplete, {\n modelValue: initParam.receivingUnit,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((initParam.receivingUnit) = $event)),\n \"fetch-suggestions\": querySearch1,\n class: \"inputWidth\",\n placeholder: \"收货单位\",\n style: {\"width\":\"100%\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_el_button, {\n type: \"primary\",\n icon: \"Search\",\n onClick: searchFn\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"搜索\")\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"model\"])\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (submitForm('pdf')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"打印\")\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(_component_el_table, {\n data: _unref(tableData),\n border: \"\",\n style: {\"margin-top\":\"40px\",\"width\":\"100%\"},\n onSelectionChange: handleSelectionChange\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_table_column, {\n type: \"selection\",\n width: \"40\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"qrcode\",\n label: \"条码\",\n \"min-width\": \"120\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"product_name\",\n label: \"品种\",\n width: \"120\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"enterprise_name\",\n label: \"生产企业\",\n width: \"120\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"approval_number\",\n label: \"批准文号\",\n \"min-width\": \"120\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"qualification_number\",\n label: \"批签发合格编号\",\n \"min-width\": \"150\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"spec_name\",\n label: \"规格(剂/支或粒)\",\n width: \"150\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"produced_date\",\n label: \"生产日期\",\n width: \"120\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"batch_number\",\n label: \"批号\",\n width: \"100\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"expiry_date\",\n label: \"失效日期\",\n width: \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"quantity\",\n label: \"数量\",\n width: \"70\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"unit_name\",\n label: \"单位\",\n width: \"70\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"date\",\n label: \"出库日期\",\n width: \"110\",\n \"show-overflow-tooltip\": \"\"\n }),\n _createVNode(_component_el_table_column, {\n property: \"receiving_unit\",\n label: \"收货单位\",\n width: \"90\",\n \"show-overflow-tooltip\": \"\"\n })\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ], 64))\n}\n}\n\n})","<template>\r\n <el-button el-button type=\"primary\" icon=\"Download\" @click=\"showdialogdialog\">退货出库运输记录表</el-button>\r\n <el-dialog :destroy-on-close=\"true\" v-model=\"dialogFormVisible\" title=\"退货出库运输记录表\" :append-to-body=\"true\" draggable width=\"80%\">\r\n <div style=\"display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap\">\r\n <div>\r\n <el-form :model=\"initParam\" ref=\"ruleFormRef\" :inline=\"true\">\r\n <el-form-item label=\"出库日期\" prop=\"date\">\r\n <el-date-picker v-model=\"initParam.date\" :clearable='false' class=\"inputWidth\" type=\"date\" value-format=\"YYYY-MM-DD\"\r\n style=\"width: 100%;\" />\r\n </el-form-item>\r\n <el-form-item label=\"收货单位\" prop=\"receivingUnit\">\r\n <el-autocomplete v-model=\"initParam.receivingUnit\" :fetch-suggestions=\"querySearch1\"\r\n class=\"inputWidth\" placeholder=\"收货单位\" style=\"width: 100%;\" />\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" icon=\"Search\" @click=\"searchFn\">搜索</el-button>\r\n </el-form-item>\r\n <!-- <el-form-item label=\"品名\" :label-width=\"formLabelWidth\">\r\n <el-select v-model.number=\"initParam.productId\" filterable remote reserve-keyword placeholder=\"品名\"\r\n :remote-method=\"remoteMethod1\" :loading=\"loading\" clearable style=\"width: 100%;\"\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>\r\n </div>\r\n <div style=\"max-width: 200px;margin-bottom: 18px;\">\r\n <!-- <el-button type=\"primary\" @click=\"submitForm('word')\">导出</el-button> -->\r\n <el-button type=\"primary\" @click=\"submitForm('pdf')\">打印</el-button>\r\n </div>\r\n </div>\r\n <el-table :data=\"tableData\" border style=\"margin-top: 40px;width: 100%\"\r\n @selection-change=\"handleSelectionChange\">\r\n <el-table-column type=\"selection\" width=\"40\" />\r\n <el-table-column property=\"qrcode\" label=\"条码\" min-width=\"120\" show-overflow-tooltip></el-table-column>\r\n <el-table-column property=\"product_name\" label=\"品种\" width=\"120\" show-overflow-tooltip />\r\n <el-table-column property=\"enterprise_name\" label=\"生产企业\" width=\"120\" show-overflow-tooltip></el-table-column>\r\n <el-table-column property=\"approval_number\" label=\"批准文号\" min-width=\"120\" show-overflow-tooltip />\r\n <el-table-column property=\"qualification_number\" label=\"批签发合格编号\" min-width=\"150\" show-overflow-tooltip></el-table-column>\r\n <el-table-column property=\"spec_name\" label=\"规格(剂/支或粒)\" width=\"150\" show-overflow-tooltip />\r\n <el-table-column property=\"produced_date\" label=\"生产日期\" width=\"120\" show-overflow-tooltip></el-table-column>\r\n <el-table-column property=\"batch_number\" label=\"批号\" width=\"100\" show-overflow-tooltip />\r\n <el-table-column property=\"expiry_date\" label=\"失效日期\" width=\"110\" show-overflow-tooltip></el-table-column>\r\n <el-table-column property=\"quantity\" label=\"数量\" width=\"70\" show-overflow-tooltip />\r\n <el-table-column property=\"unit_name\" label=\"单位\" width=\"70\" show-overflow-tooltip/>\r\n <el-table-column property=\"date\" label=\"出库日期\" width=\"110\" show-overflow-tooltip />\r\n <el-table-column property=\"receiving_unit\" label=\"收货单位\" width=\"90\" show-overflow-tooltip/>\r\n </el-table>\r\n </el-dialog>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport {RetGoodsReftransportout, transportRecordLists } from \"@/api\";\r\nimport { gradeName, enterpriseFun, stockunitFun, specification, LotNumber, shoubat } from \"@/plugins/selectData\";\r\nimport { reactive, ref, onMounted } from 'vue'\r\nimport { downPDF, downloadExcelFun } from \"@/utils/download\";\r\nimport type { FormInstance, ElTable } from 'element-plus'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { tableinterface,RuleForm,RuleForm1,ListItem,RestaurantItem,RuleFormdown} from \"./js/interface\";\r\nconst dialogFormVisible = ref(false)\r\nconst ruleFormRef = ref<FormInstance>()\r\n\r\nconst multipleSelection:any = ref([])\r\nconst handleSelectionChange = (val: any) => {\r\n multipleSelection.value = val\r\n let arrMap = [...val]\r\n expinitParam.stockOutIds = arrMap.map(item=> item.stock_out_id )\r\n}\r\n\r\nlet tableData = ref([])\r\nconst initParam = reactive<RuleForm1>({//请求参数\r\n \"date\": null,\r\n \"receivingUnit\": ''\r\n})\r\n//函数\r\nconst searchFn = async ()=>{\r\n const reslut:any = await transportRecordLists(initParam)\r\n if(reslut.code==200){\r\n tableData.value = reslut.data.list || []\r\n }\r\n console.log('搜索',reslut)\r\n}\r\n\r\n\r\n\r\nonMounted(async () => {\r\n const result1: any = await gradeName()//疫苗名称\r\n const result2: any = await enterpriseFun()//生产企业\r\n const result3: any = await specification()//规格\r\n const result4: any = await stockunitFun(2)//收发货单位\r\n\r\n list1.value = findMap(result1 || [], 'obj')\r\n list2.value = findMap(result2 || [], 'obj')\r\n list3.value = findMap(result3 || [], 'obj')\r\n list4.value = findMap(result4 || [], 'map')\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\nconst list1 = ref<ListItem[]>([])//疫苗名称\r\nconst list2 = ref<ListItem[]>([])//生产企业\r\nconst list3 = ref<ListItem[]>([])//收发货单位\r\nconst list4 = ref<ListItem[]>([])//收发货单位\r\n\r\n\r\n\r\n\r\n\r\n\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\n\r\n\r\n//显示运输登记\r\nconst showdialogdialog = async () => {\r\n dialogFormVisible.value = true\r\n const reslut: any = await shoubat()\r\n console.log('数据1', reslut)\r\n const arrMap = reslut\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\nconst restaurants = ref<RestaurantItem[]>([])\r\nconst querySearch1 = (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\n\r\nlet expinitParam:any = reactive<RuleFormdown>({\r\n \"stockOutIds\": [],\r\n \"type\": ''\r\n})\r\nconst submitForm = async ( ty: any) => {\r\n const b = Object.values(initParam).some(item => item==null || item=='')\r\n console.log('b',b)\r\n if(b){\r\n ElMessage.error('请选择出库日期跟收货单位')\r\n return\r\n }else{\r\n expinitParam.type = ty\r\n expinitParam = {...expinitParam,...initParam}\r\n const result: any = await RetGoodsReftransportout(expinitParam)\r\n console.log('result', result, ty)\r\n ty == 'word' ? downloadExcelFun(result) : downPDF(result)\r\n }\r\n \r\n}\r\n</script>\r\n<style lang=\"scss\">\r\n/* @import url(); 引入css类 */\r\n.inputWidth {\r\n width: 200px;\r\n}\r\n</style>","import script from \"./downing.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./downing.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./downing.vue?vue&type=style&index=0&id=2aaa3cde&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, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"storagePut\" }\nconst _hoisted_2 = { style: {\"display\":\"flex\",\"gap\":\"10px\",\"flex-wrap\":\"wrap\"} }\n\nimport {\r\n stockrefsoutList,\r\n productList,//血液制品名称\r\n enterpriseList,//生产企业\r\n stockunit,//收发货单位\r\n medicineColumns,//表头\r\n} from \"@/api\";\r\nimport Editinventory from './Editinventory.vue'\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 goorsnote from './goorsnote.vue'\r\nimport scrapNote from './scrapNote.vue'\r\n\r\nimport scanCode from './scanCode.vue'\r\nimport Labour from './Labour.vue'\r\nimport downing from './downing.vue'\r\n\r\nimport { columnsTableOut } from \"@/plugins/rulesData\";\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 multipleTableData = ref([])\r\nconst selectionChangeFun = async (data:any)=>{\r\n multipleTableData.value = data\r\n}\r\n\r\nconst TableRef = ref()\r\nconst scanCodeFun = async () => {\r\n console.log('添加完成')\r\n TableRef.value?.getTableList()\r\n}\r\n//函数\r\nconst editinventFun = async () => {\r\n TableRef.value?.getTableList()\r\n}\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\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 \"receivingUnit\": \"\",\r\n \"qrcode\": '',\r\n 'state':0\r\n})\r\n\r\n\r\nconst data: any = reactive({\r\n datepick: []\r\n})\r\n/**\r\n * \r\n * @param val 子传值\r\n */\r\nconst 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\nonMounted(async () => {\r\n let r: any = await medicineColumns({})\r\n if (r.code == 200) {\r\n let obj = [...r.data?.list]\r\n let menus = {label: \"状态\", prop: \"state\", width: 0, name: 'state' }\r\n TableRef.value.tableColumns = [{ type: 'selection',align:'left'},...obj,{...menus},...columnsTableOut]\r\n }\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: 2 })//收发货单位\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 const _component_el_tag = _resolveComponent(\"el-tag\")!\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.receivingUnit,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((initParam.receivingUnit) = $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 _createVNode(_component_el_form_item, { label: \"状态\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_select, {\n modelValue: initParam.state,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((initParam.state) = $event)),\n placeholder: \"请选择状态\",\n style: {\"width\":\"200px\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_option, {\n label: \"全部\",\n value: 0\n }),\n _createVNode(_component_el_option, {\n label: \"退货出库\",\n value: 2\n }),\n _createVNode(_component_el_option, {\n label: \"报废出库\",\n value: 3\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(bg, { istitle: \"基本信息\" }, {\n btn: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(goorsnote, { multipleTables: multipleTableData.value }, null, 8, [\"multipleTables\"]),\n _createVNode(scrapNote, { multipleTables: multipleTableData.value }, null, 8, [\"multipleTables\"]),\n _createVNode(Labour, { onScanCode: scanCodeFun }),\n _createVNode(scanCode, { onScanCode: scanCodeFun }),\n _createVNode(downing)\n ])\n ]),\n bg: _withCtx(() => [\n _createVNode(tables, {\n ref_key: \"TableRef\",\n ref: TableRef,\n selectionChange: selectionChangeFun,\n getRowKey: \"id\",\n requestApi: _unref(stockrefsoutList),\n columns: columns,\n initParam: initParam\n }, {\n state: _withCtx(({ row }) => [\n _createVNode(_component_el_tag, {\n type: row.state==2?'primary':'success'\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(row.state==2?'退货出库':'报废出库'), 1)\n ]),\n _: 2\n }, 1032, [\"type\"])\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\r\n placeholder=\"血液制品名称\" :remote-method=\"remoteMethod1\" :loading=\"loading\" clearable\r\n style=\"width: 200px;\" @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\r\n placeholder=\"生产企业\" :remote-method=\"remoteMethod2\" :loading=\"loading\" clearable\r\n @clear=\"initParam.enterpriseId = null\" @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.receivingUnit\" filterable remote reserve-keyword placeholder=\"收货单位\"\r\n :remote-method=\"remoteMethod3\" :loading=\"loading\" clearable @click=\"click3\"\r\n 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 <el-form-item label=\"状态\">\r\n <el-select v-model=\"initParam.state\" placeholder=\"请选择状态\" style=\"width: 200px\">\r\n <el-option label=\"全部\" :value=\"0\" />\r\n <el-option label=\"退货出库\" :value=\"2\" />\r\n <el-option label=\"报废出库\" :value=\"3\" />\r\n </el-select>\r\n </el-form-item>\r\n </template>\r\n </searchAdd>\r\n <bg istitle=\"基本信息\">\r\n <template #btn>\r\n <div style=\"display: flex;gap: 10px;flex-wrap: wrap;\">\r\n <goorsnote :multipleTables=\"multipleTableData\"></goorsnote>\r\n <scrapNote :multipleTables=\"multipleTableData\"></scrapNote>\r\n <Labour @scanCode=\"scanCodeFun\"></Labour>\r\n <scanCode @scanCode=\"scanCodeFun\"></scanCode>\r\n <downing></downing>\r\n </div>\r\n </template>\r\n <template #bg>\r\n <tables ref=\"TableRef\" :selectionChange=\"selectionChangeFun\"\r\n getRowKey=\"id\" :requestApi=\"stockrefsoutList\" :columns=\"columns\" :initParam=\"initParam\">\r\n <template #state=\"{ row }\">\r\n <el-tag :type=\"row.state==2?'primary':'success'\">\r\n {{ row.state==2?'退货出库':'报废出库' }}\r\n </el-tag>\r\n </template>\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 stockrefsoutList,\r\n productList,//血液制品名称\r\n enterpriseList,//生产企业\r\n stockunit,//收发货单位\r\n medicineColumns,//表头\r\n} from \"@/api\";\r\nimport Editinventory from './Editinventory.vue'\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 goorsnote from './goorsnote.vue'\r\nimport scrapNote from './scrapNote.vue'\r\n\r\nimport scanCode from './scanCode.vue'\r\nimport Labour from './Labour.vue'\r\nimport downing from './downing.vue'\r\n\r\nconst multipleTableData = ref([])\r\nconst selectionChangeFun = async (data:any)=>{\r\n multipleTableData.value = data\r\n}\r\n\r\nconst TableRef = ref()\r\nimport { columnsTableOut } from \"@/plugins/rulesData\";\r\n//函数\r\nconst scanCodeFun = async () => {\r\n console.log('添加完成')\r\n TableRef.value?.getTableList()\r\n}\r\n//函数\r\nconst editinventFun = async () => {\r\n TableRef.value?.getTableList()\r\n}\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\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 \"receivingUnit\": \"\",\r\n \"qrcode\": '',\r\n 'state':0\r\n})\r\n\r\n\r\nconst data: any = reactive({\r\n datepick: []\r\n})\r\n/**\r\n * \r\n * @param val 子传值\r\n */\r\nconst 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\nonMounted(async () => {\r\n let r: any = await medicineColumns({})\r\n if (r.code == 200) {\r\n let obj = [...r.data?.list]\r\n let menus = {label: \"状态\", prop: \"state\", width: 0, name: 'state' }\r\n TableRef.value.tableColumns = [{ type: 'selection',align:'left'},...obj,{...menus},...columnsTableOut]\r\n }\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: 2 })//收发货单位\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\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=e79acad6&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar append = uncurryThis(URLSearchParamsPrototype.append);\nvar $delete = uncurryThis(URLSearchParamsPrototype['delete']);\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\nvar push = uncurryThis([].push);\nvar params = new $URLSearchParams('a=1&a=2&b=3');\n\nparams['delete']('a', 1);\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nparams['delete']('b', undefined);\n\nif (params + '' !== 'a=2') {\n defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $delete(this, name);\n var entries = [];\n forEach(this, function (v, k) { // also validates `this`\n push(entries, { key: k, value: v });\n });\n validateArgumentsLength(length, 1);\n var key = toString(name);\n var value = toString($value);\n var index = 0;\n var dindex = 0;\n var found = false;\n var entriesLength = entries.length;\n var entry;\n while (index < entriesLength) {\n entry = entries[index++];\n if (found || entry.key === key) {\n found = true;\n $delete(this, entry.key);\n } else dindex++;\n }\n while (dindex < entriesLength) {\n entry = entries[dindex++];\n if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);\n }\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar getAll = uncurryThis(URLSearchParamsPrototype.getAll);\nvar $has = uncurryThis(URLSearchParamsPrototype.has);\nvar params = new $URLSearchParams('a=1');\n\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nif (params.has('a', 2) || !params.has('a', undefined)) {\n defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $has(this, name);\n var values = getAll(this, name); // also validates `this`\n validateArgumentsLength(length, 1);\n var value = toString($value);\n var index = 0;\n while (index < values.length) {\n if (values[index++] === value) return true;\n } return false;\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\nvar URLSearchParamsPrototype = URLSearchParams.prototype;\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {\n defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n get: function size() {\n var count = 0;\n forEach(this, function () { count++; });\n return count;\n },\n configurable: true,\n enumerable: true\n });\n}\n"],"names":["async","LotNumber","reslut","batchnumber","data","shoubat","stockunit","type","list","specification","specList","page","pageSize","gradeName","productList","enterpriseFun","enterpriseList","stockunitFun","getContentExportApi","params","$http","post","responseType","downloadExcelFun","res","fileName","decodeURIComponent","headers","blob","Blob","url","window","URL","createObjectURL","a","document","createElement","href","download","split","click","revokeObjectURL","downPDF","result","fileAddress","innHtml","open","print","_hoisted_1","class","_hoisted_2","formLabelWidth","_defineComponent","__name","props","row","Object","default","emits","setup","__props","emit","__emit","dialogFormVisible","ref","ruleFormRef","rules","reactive","initParam","Number","tableData","showDiaData","rules1","columns","selectType","editStrot","editIndex","editFun","console","log","value","medicListStockFun","itemPirFun","operatorListApi","restaurants","querySearch","queryString","cb","results","filter","createFilter","restaurant","toLowerCase","indexOf","restaurants1","querySearch1","submitForm","formEl","validate","valid","fields","stockouteditApi","ElMessage","error","param","unit_price","stockoutedit","code","msg","success","arrMap","arr","forEach","item","push","link","operatorList","medicListStock","prop","field_name","label","name","medicineInfo","includes","required","message","trigger","pattern","assign","syrulesData","obj","keys","key","delClick","ElMessageBox","confirm","confirmButtonText","cancelButtonText","center","then","stockoutdel","id","catch","info","_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_dialog","_openBlock","_createElementBlock","_createVNode","onClick","$event","_withCtx","_createTextVNode","_","modelValue","title","draggable","width","footer","_createElementVNode","ref_key","_unref","model","inline","_Fragment","_renderList","index","_createBlock","placeholder","itemIt","i","_createCommentVNode","autocomplete","clearable","style","quantity","modelModifiers","number","date","receiving_unit","operator","__exports__","multipleTables","Array","showdialogdialog","prompt","reason","stockOutIds","filterfun","stockTemprefOutexport","Promise","resolve","map","disabled","length","icon","stockscrapoutexport","src","_imports_0","_hoisted_3","expose","__expose","myInput","num","inputFocus","setTimeout","focus","CloseFn","ClearFn","addEventListener","event","target","onSubmit","_component_CircleClose","_component_el_icon","_withDirectives","_vModelText","size","_hoisted_4","_hoisted_5","centerDialogVisible","watch","dy","resetForm","inputSearchRef","itemPir","qr","dbclicklable","tableRowClassName","rowIndex","findIndex","Qrcode","showDia","updating","nextTick","alert","callback","reject","findFun","b","find","medicListScanCode","showcenterDialogVisible","ab","every","initParams","state","stockOutList","subStock","unitPrice","RetGoodsRefcodeout","inputSearchfn","e","j","SearchFind","medicMsfx","initParamObj","undefined","timesFn","deltable","splice","_component_el_table_column","_component_el_table","_component_el_radio","_component_el_radio_group","inputSearch","onInputSearchData","border","height","scope","_toDisplayString","scanCodeTableOut","fixed","header","onDblclick","Delete","$index","innerVisible","itemOpen","RetGoodsRefout","resetFields","ElNotification","forwardingUnit","closeFun","showinnerVisible","resetFun","medicListStockOut","handleClick","datas","Edit","circle","multipleSelection","handleSelectionChange","val","expinitParam","stock_out_id","searchFn","transportRecordLists","onMounted","result1","result2","result3","result4","list1","findMap","list2","list3","list4","values","some","ty","RetGoodsReftransportout","receivingUnit","onSelectionChange","property","multipleTableData","selectionChangeFun","TableRef","scanCodeFun","getTableList","editinventFun","onBeforeMount","datepick","eventFun","loading","click1","options1","click2","options2","click3","options3","r","medicineColumns","menus","tableColumns","align","columnsTableOut","age","changFun","startDate","endDate","remoteMethod1","query","remoteMethod2","remoteMethod3","_component_el_tag","searchAdd","isButtom","onEvent","searchConter","productId","filterable","remote","onClear","enterpriseId","batchNumber","onChange","qrcode","bg","istitle","btn","goorsnote","scrapNote","Labour","onScanCode","scanCode","downing","tables","selectionChange","getRowKey","requestApi","stockrefsoutList","right","Editinventory","onEditinvent","TO_STRING_TAG_SUPPORT","isCallable","classofRaw","wellKnownSymbol","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","arguments","tryGet","it","module","exports","O","tag","callee","makeBuiltIn","defineProperty","descriptor","get","getter","set","setter","f","test","String","classof","$String","argument","TypeError","$TypeError","passed","defineBuiltIn","uncurryThis","toString","validateArgumentsLength","$URLSearchParams","URLSearchParams","URLSearchParamsPrototype","prototype","append","$delete","$value","this","entries","v","k","entry","dindex","found","entriesLength","enumerable","unsafe","getAll","$has","has","DESCRIPTORS","defineBuiltInAccessor","count","configurable"],"sourceRoot":""}
|