完善入库跳转以及出库创建页面
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
<view class="remarkLine">
|
||||
<text>物料列表</text>
|
||||
<uv-button type="primary" v-if="isEdit == 1" :plain="true" size="small" text="添加物料"
|
||||
@click="toMaterial"></uv-button>
|
||||
<uv-button type="primary" v-if="isAddMaterial" :plain="true"
|
||||
size="small" text="添加物料" @click="toMaterial"></uv-button>
|
||||
<view v-if="isEdit == 5" class="flex align-center justify-between">
|
||||
<span class="f-12 mr-16 grey" style="font-size: 12px;" v-if="num > 0">
|
||||
剩余<span style="color: red;">
|
||||
@@ -99,7 +99,7 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { computed, onMounted, ref, toRefs } from 'vue';
|
||||
import { assign, findIndex } from 'lodash';
|
||||
import { assign, findIndex ,includes} from 'lodash';
|
||||
import { getStockQuantity, objectToQuery } from '../until';
|
||||
import { getTypeParentNames } from '../warehousing/uniqueCode/until';
|
||||
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||
@@ -113,15 +113,14 @@ const props = defineProps({
|
||||
})
|
||||
|
||||
const { formData, isEdit, backStr, pathParams, extendData } = toRefs(props)
|
||||
console.log(extendData, 'extendData==>');
|
||||
|
||||
//是否为编辑状态
|
||||
const edit = computed(() => {
|
||||
if (`${isEdit.value}` === '1') return '1';
|
||||
else if (`${isEdit.value}` === '4') return '4';
|
||||
else return false;
|
||||
})
|
||||
|
||||
// 显示添加物料按钮 isEdit编辑、
|
||||
const isAddMaterial = computed(() => isEdit == 1 && pathParams.back != 'issueUniqueCode_inbound' && !includes(backStr.value,'stockOut'))
|
||||
// 删除:数据
|
||||
const delItem = ref(null)
|
||||
// 删除:开关
|
||||
|
||||
Reference in New Issue
Block a user