代码更新

This commit is contained in:
GaoHao
2025-03-12 14:13:29 +08:00
parent 2f1523d4e9
commit c2135c6119
105 changed files with 2026 additions and 278 deletions

View File

@@ -5,42 +5,23 @@
<view class="addConsumables">
<view>
<view>
<view>
单位
</view>
<view>
<input type="text" placeholder="请输入单位" v-model="datas.form.conUnit" name="" id="">
</view>
<view> 单位 </view>
<view> <input type="text" placeholder="请输入单位" v-model="datas.form.conUnit" name="" id=""> </view>
</view>
<view>
<view>
耗材名称
</view>
<view>
<input type="text" placeholder="请输入耗材名称" v-model="datas.form.conName" name="" id="">
</view>
<view> 耗材名称 </view>
<view> <input type="text" placeholder="请输入耗材名称" v-model="datas.form.conName" name="" id=""> </view>
</view>
<view>
<view>
耗材价格
</view>
<view>
<input class="uni-input" placeholder="请输入耗材价格" type="number" v-model="datas.form.price" >
<!-- <up-input placeholder="请输入耗材价格" v-model="datas.form.price" type="digit"></up-input> -->
</view>
<view> 耗材价格 </view>
<view> <input class="uni-input" placeholder="请输入耗材价格" type="digit" v-model="datas.form.price" > </view>
</view>
<view>
<view>
预警值
</view>
<view>
<input type="text" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id="">
</view>
<view> 预警值 </view>
<view> <input type="number" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id=""> </view>
</view>
<view style="justify-content: space-between;">
<view>
耗材类型
</view>
<view> 耗材类型 </view>
<view style="width: 54%;" @tap="datas.showStatus = !datas.showStatus">
{{datas.typelist[datas.nowStatusIndex]}}
</view>
@@ -77,7 +58,7 @@
} from '@/http/yskApi/requestAll.js';
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
import { getConsGrpupList,addCons } from '@/api/cons.js';
import { getConsGrpupList,addCons } from '@/http/api/cons.js';
let datas = reactive({
form: {

View File

@@ -52,7 +52,7 @@
<script setup>
import { onMounted, reactive } from 'vue';
import { getConsGrpupPage,addConsGrpup,editConsGrpup,consGrpupEnable,consGrpupDisable } from '@/api/cons.js';
import { getConsGrpupPage,addConsGrpup,editConsGrpup,consGrpupEnable,consGrpupDisable } from '@/http/api/cons.js';
let datas = reactive({
list: [],
@@ -88,6 +88,10 @@
datas.activeData = d
}
let switchChange = (d) => {
datas.status = d
}
/**
* 启用/禁用
*/

View File

@@ -54,7 +54,7 @@
<script setup>
import { ref, reactive, getCurrentInstance } from 'vue';
import { addVendor } from '@/api/vendor.js';
import { addVendor } from '@/http/api/vendor.js';
let datas = reactive({

View File

@@ -48,8 +48,8 @@
<script setup>
import { ref, reactive, onMounted, watch } from 'vue';
import { uploadFile } from '@/api/index.js'
import { stockReportDamage } from '@/api/cons.js';
import { uploadFile } from '@/http/api/index.js'
import { stockReportDamage } from '@/http/api/cons.js';
const props = defineProps({
show: {

View File

@@ -30,7 +30,7 @@
<script setup>
import { reactive, computed, onMounted } from 'vue';
import { editCons } from '@/api/cons.js';
import { editCons } from '@/http/api/cons.js';
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';

View File

@@ -53,7 +53,7 @@
<script setup>
import { ref, reactive, } from 'vue';
import { onLoad, } from '@dcloudio/uni-app';
import { editVendor } from '@/api/vendor.js';
import { editVendor } from '@/http/api/vendor.js';
let datas = reactive({
form: {},
})

View File

@@ -36,9 +36,9 @@
</view>
</view>
<view>
<view style="background-color: #fff;" @tap="show=true;showData = filtersSproductId(item.product)">
<view style="background-color: #fff;" @tap="show=true;showData = filtersSproductId(item.productList)">
所属商品:
{{ filtersSproductId(item.product).length>7?filtersSproductId(item.product).substring(0,6)+'...':filtersSproductId(item.product)}}
{{ filtersSproductId(item.productList).length>7?filtersSproductId(item.productList).substring(0,6)+'...':filtersSproductId(item.productList)}}
</view>
<view class="">
<up-button shape="circle" type="primary" size="mini" color="#999"
@@ -56,12 +56,8 @@
<view style="font-size: 28rpx;color: #999;">暂无数据</view>
</view>
<view class="ConsumablesBottom">
<view @tap="toUrl('PAGES_ADD_CONSUMABLES')">
新增耗材
</view>
<view @tap="toUrl('PAGES_SUPPLIER')">
供应商管理
</view>
<view @tap="toUrl('PAGES_ADD_CONSUMABLES')"> 新增耗材 </view>
<view @tap="toUrl('PAGES_SUPPLIER')"> 供应商管理 </view>
</view>
<my-action-sheet @itemClick="sheetClick" ref="refMoreSheet" :list="actionSheet.list"></my-action-sheet>
<my-reportDamage ref="reportDamage" title="耗材报损" :item="report.data" @affirm="affirm"></my-reportDamage>
@@ -88,7 +84,7 @@
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
import { hasPermission } from '@/commons/utils/hasPermission.js';
import { getConsPage,getConsGrpupList } from '@/api/cons.js';
import { getConsPage,getConsGrpupList } from '@/http/api/cons.js';
let reportDamage = ref(null)
let refMoreSheet = ref(null)
@@ -138,7 +134,7 @@
conName: datas.conName,
conTypeId: d,
size: 100,
page: 0
page: 1
}).then(res => {
datas.list = res.records
})
@@ -150,7 +146,7 @@
let gettbConsTypeList = () => {
datas.typeLists = ['全部']
getConsGrpupList({
page: 0,
page: 1,
size: 30,
shopId: uni.getStorageSync("shopId"),
}).then(res => {

View File

@@ -41,7 +41,7 @@
import {
tbConsInfotbConCheck
} from '@/http/yskApi/requestAll.js';
import { stockCheck } from '@/api/cons.js';
import { stockCheck } from '@/http/api/cons.js';
const props = defineProps({
item: {

View File

@@ -70,8 +70,8 @@
import go from '@/commons/utils/go.js';
import dayjs from 'dayjs';
import { getVendorPage } from '@/api/vendor.js';
import { stockOut } from '@/api/cons.js';
import { getVendorPage } from '@/http/api/vendor.js';
import { stockOut } from '@/http/api/cons.js';
let showStatus = ref(false)
const refs = getCurrentInstance()

View File

@@ -73,7 +73,7 @@
import { onShow } from '@dcloudio/uni-app';
import dayjs from 'dayjs' //时间格式库
import go from '@/commons/utils/go.js';
import { getVendorPage,delVendor } from '@/api/vendor.js';
import { getVendorPage,delVendor } from '@/http/api/vendor.js';
let datas = reactive({
list: []

View File

@@ -69,8 +69,8 @@
import color from '@/commons/color.js';
import go from '@/commons/utils/go.js';
import dayjs from 'dayjs';
import { getVendorPage } from '@/api/vendor.js';
import { consStockIn } from '@/api/cons.js';
import { getVendorPage } from '@/http/api/vendor.js';
import { consStockIn } from '@/http/api/cons.js';
let showStatus = ref(false)
let datas = reactive({