|
|
|
|
@ -16,7 +16,20 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="领料人" prop="responserId">
|
|
|
|
|
<el-input v-model="formData.responserId" placeholder="请选择领料人" />
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="formData.responserId"
|
|
|
|
|
clearable
|
|
|
|
|
filterable
|
|
|
|
|
placeholder="请选择领料工人"
|
|
|
|
|
class="!w-240px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in userList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.nickname"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
@ -41,11 +54,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="8">-->
|
|
|
|
|
<!-- <el-form-item label="附件" prop="fileUrl">-->
|
|
|
|
|
<!-- <UploadFile :is-show-tip="false" v-model="formData.fileUrl" :limit="1" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<!-- 子表的表单 -->
|
|
|
|
|
@ -68,6 +77,8 @@
|
|
|
|
|
import { StockOutApi, StockOutVO } from '@/api/erp/stock/out'
|
|
|
|
|
import StockOutItemForm from './components/StockOutItemForm.vue'
|
|
|
|
|
import { CustomerApi, CustomerVO } from '@/api/erp/sale/customer'
|
|
|
|
|
import * as UserApi from "@/api/system/user";
|
|
|
|
|
import {WorkTeamApi} from "@/api/mes/workteam";
|
|
|
|
|
|
|
|
|
|
/** ERP 其它出库单表单 */
|
|
|
|
|
defineOptions({ name: 'StockOutForm' })
|
|
|
|
|
@ -89,11 +100,12 @@ const formData = ref({
|
|
|
|
|
items: []
|
|
|
|
|
})
|
|
|
|
|
const formRules = reactive({
|
|
|
|
|
outTime: [{ required: true, message: '出库时间不能为空', trigger: 'blur' }]
|
|
|
|
|
outTime: [{ required: true, message: '出库时间不能为空', trigger: 'blur' }],
|
|
|
|
|
responserId: [{ required: true, message: '领料人不能为空', trigger: 'blur' }]
|
|
|
|
|
})
|
|
|
|
|
const disabled = computed(() => formType.value === 'detail')
|
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
|
|
|
|
|
|
const userList = ref<UserApi.UserVO[]>([]) // 用户列表
|
|
|
|
|
/** 子表的表单 */
|
|
|
|
|
const subTabsName = ref('item')
|
|
|
|
|
const itemFormRef = ref()
|
|
|
|
|
@ -113,8 +125,9 @@ const open = async (type: string, id?: number) => {
|
|
|
|
|
formLoading.value = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 加载客户列表
|
|
|
|
|
customerList.value = await CustomerApi.getCustomerSimpleList()
|
|
|
|
|
|
|
|
|
|
// 获得制浆工人列表
|
|
|
|
|
userList.value = await WorkTeamApi.getUserList("zhijiang", '')
|
|
|
|
|
}
|
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
|
|
|
|
|
|