|
|
@ -2,67 +2,67 @@
|
|
|
|
<div class="xyp-sale-order-form" v-if="refShow">
|
|
|
|
<div class="xyp-sale-order-form" v-if="refShow">
|
|
|
|
<vxe-form title-colon ref="refFormA" title-align="right" title-width="150" :data="formDataA" :rules="formRulesA"
|
|
|
|
<vxe-form title-colon ref="refFormA" title-align="right" title-width="150" :data="formDataA" :rules="formRulesA"
|
|
|
|
@submit="fnSubmitA" @reset="fnResetA" custom-layout>
|
|
|
|
@submit="fnSubmitA" @reset="fnResetA" custom-layout>
|
|
|
|
<vxe-modal v-model="refShow" width="960" height="770" show-zoom show-footer>
|
|
|
|
<vxe-modal v-model="refShow" width="960" height="300" show-zoom show-footer>
|
|
|
|
<template #title>
|
|
|
|
<template #title>
|
|
|
|
<span style="color:#ffffff">{{ modalTitle }}</span>
|
|
|
|
<span style="color:#ffffff">{{ modalTitle }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #default>
|
|
|
|
<template #default>
|
|
|
|
<vxe-form-item title="采购方总部编码" field="PurchaserHqCode" span="12">
|
|
|
|
<!-- <vxe-form-item title="采购方总部编码" field="PurchaserHqCode" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.PurchaserHqCode }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.PurchaserHqCode }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item> -->
|
|
|
|
<vxe-form-item title="销售订单号" field="SoNo" span="12">
|
|
|
|
<vxe-form-item title="销售订单号" field="SoNo" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.SoNo }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.SoNo }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="供应商编码" field="SupplierCode" span="12">
|
|
|
|
<!-- <vxe-form-item title="供应商编码" field="SupplierCode" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.SupplierCode }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.SupplierCode }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="采购方公司编码" field="BuyerCode" span="12">
|
|
|
|
<vxe-form-item title="采购方公司编码" field="BuyerCode" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.BuyerCode }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.BuyerCode }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item> -->
|
|
|
|
<vxe-form-item title="采购方公司名称" field="BuyerName" span="12">
|
|
|
|
<vxe-form-item title="采购方公司名称" field="BuyerName" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.BuyerName }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.BuyerName }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="采购方公司省份" field="BuyerProvince" span="12">
|
|
|
|
<!-- <vxe-form-item title="采购方公司省份" field="BuyerProvince" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.BuyerProvince }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.BuyerProvince }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="品类编码" field="CategoryCode" span="12">
|
|
|
|
<vxe-form-item title="品类编码" field="CategoryCode" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.CategoryCode }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.CategoryCode }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="种类编码" field="SubclassCode" span="12">
|
|
|
|
<vxe-form-item title="种类编码" field="SubclassCode" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.SubclassCode }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.SubclassCode }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="销售订单状态" field="SoStatus" span="12">
|
|
|
|
<vxe-form-item title="销售订单状态" field="SoStatus" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.SoStatus }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.SoStatus }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="销售订单行项目号" field="SoItemNo" span="12">
|
|
|
|
<vxe-form-item title="销售订单行项目号" field="SoItemNo" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.SoItemNo }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.SoItemNo }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="采购订单行项目ID" field="PoItemId" span="12">
|
|
|
|
<vxe-form-item title="采购订单行项目ID" field="PoItemId" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.PoItemId }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.PoItemId }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item> -->
|
|
|
|
<vxe-form-item title="物资编码" field="ProductCode" span="12">
|
|
|
|
<vxe-form-item title="物资编码" field="ProductCode" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<vxe-input v-model="params.data.ProductCode" placeholder="请输入物资编码" clearable
|
|
|
|
<vxe-input v-model="params.data.ProductCode" placeholder="请输入物资编码" clearable
|
|
|
@ -73,7 +73,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="物资名称" field="ProductName" span="12">
|
|
|
|
<vxe-form-item title="物资名称" field="ProductName" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<vxe-input v-model="params.data.ProductName" placeholder="请输入物资名称" clearable
|
|
|
|
<vxe-input v-model="params.data.ProductName" placeholder="请输入物资名称" clearable
|
|
|
@ -84,7 +84,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="物资单位" field="ProductUnit" span="12">
|
|
|
|
<vxe-form-item title="物资单位" field="ProductUnit" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<vxe-input v-model="params.data.ProductUnit" placeholder="请输入物资单位" clearable
|
|
|
|
<vxe-input v-model="params.data.ProductUnit" placeholder="请输入物资单位" clearable
|
|
|
@ -95,7 +95,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="物资数量" field="ProductAmount" span="12">
|
|
|
|
<vxe-form-item title="物资数量" field="ProductAmount" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<vxe-input v-model="params.data.ProductAmount" placeholder="请输入物资数量" clearable
|
|
|
|
<vxe-input v-model="params.data.ProductAmount" placeholder="请输入物资数量" clearable
|
|
|
@ -106,17 +106,17 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="数据拥有方" field="OwnerId" span="12">
|
|
|
|
<!-- <vxe-form-item title="数据拥有方" field="OwnerId" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.OwnerId }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.OwnerId }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="数据可见方" field="OpenId" span="12">
|
|
|
|
<vxe-form-item title="数据可见方" field="OpenId" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.OpenId }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.OpenId }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="数据来源" field="DataSource" span="12">
|
|
|
|
<vxe-form-item title="数据来源" field="DataSource" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">
|
|
|
|
<div style="width: 196px;">
|
|
|
|
<template v-if="params.data.DataSource == 0">
|
|
|
|
<template v-if="params.data.DataSource == 0">
|
|
|
@ -131,11 +131,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item>
|
|
|
|
<vxe-form-item title="来源数据创建时间" field="DataSourceCreatetime" span="12">
|
|
|
|
<vxe-form-item title="来源数据创建时间" field="DataSourceCreatetime" span="20">
|
|
|
|
<template #default="params">
|
|
|
|
<template #default="params">
|
|
|
|
<div style="width: 196px;">{{ params.data.DataSourceCreatetime }}</div>
|
|
|
|
<div style="width: 196px;">{{ params.data.DataSourceCreatetime }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-form-item>
|
|
|
|
</vxe-form-item> -->
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
|
<template v-if="formTypeA == 'edit'">
|
|
|
@ -144,6 +144,7 @@
|
|
|
|
<template v-else>
|
|
|
|
<template v-else>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<!-- <vxe-button type="reset" content="重置"></vxe-button> -->
|
|
|
|
<!-- <vxe-button type="reset" content="重置"></vxe-button> -->
|
|
|
|
|
|
|
|
<vxe-button type="reset" content="取消" @click="fnEventCancel"></vxe-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-modal>
|
|
|
|
</vxe-modal>
|
|
|
|
</vxe-form>
|
|
|
|
</vxe-form>
|
|
|
@ -156,6 +157,7 @@ import { VXETable } from 'vxe-table'
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
import { map as _map } from 'lodash'
|
|
|
|
import { map as _map } from 'lodash'
|
|
|
|
import * as SaleOrderApi from '@/api/gw/saleOrder'
|
|
|
|
import * as SaleOrderApi from '@/api/gw/saleOrder'
|
|
|
|
|
|
|
|
import * as BaseMaterialApi from '@/api/gw/baseMaterial'
|
|
|
|
// 定义事件[success]
|
|
|
|
// 定义事件[success]
|
|
|
|
const emit = defineEmits(['success'])
|
|
|
|
const emit = defineEmits(['success'])
|
|
|
|
// 是否显示
|
|
|
|
// 是否显示
|
|
|
@ -207,8 +209,10 @@ const formRulesA: any = ref({
|
|
|
|
{ required: true, message: '请输入物资数量' }
|
|
|
|
{ required: true, message: '请输入物资数量' }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
// 挂载
|
|
|
|
// 挂载
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// 打开弹窗
|
|
|
|
// 打开弹窗
|
|
|
|
const open = async (type: string, row?: any) => {
|
|
|
|
const open = async (type: string, row?: any) => {
|
|
|
@ -349,5 +353,9 @@ const fnResetA = () => {
|
|
|
|
"ProductAmount": "",
|
|
|
|
"ProductAmount": "",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 关闭窗体
|
|
|
|
|
|
|
|
const fnEventCancel = () => {
|
|
|
|
|
|
|
|
refShow.value = false
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style scoped></style>
|
|
|
|
<style scoped></style>
|