diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue
index 2c2e39b..b6b1a81 100644
--- a/src/views/purchase/purchasingrequisition/add.vue
+++ b/src/views/purchase/purchasingrequisition/add.vue
@@ -26,120 +26,113 @@
基础信息
-
- 暂存时,基础信息必填
-
+ 暂存时,基础信息必填
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 元
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 有
- 无
-
-
-
-
-
-
-
-
- 品目编码层级:{{ categoryCodeHierarchy }}
-
-
- 当前选择品目为服务商城品目
-
-
-
-
+
元
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 有
+ 无
+
+
+
+
+
+
+
+
+ 品目编码层级:{{ categoryCodeHierarchy }}
+
+
+ 当前选择品目为服务商城品目
+
+
+
+
@@ -203,7 +196,13 @@
:disabled="isPurchaseTypeDisabled"
style="width: 100%"
>
-
+
@@ -399,16 +398,16 @@
-
+
-
+
@@ -987,7 +986,6 @@ const dataForm = reactive({
isSpecial: '',
hasAssets: '0',
purchaseMode: '',
- implementChannel: '', // 实施采购途径:框架协议、网上商城
purchaseType: '',
purchaseTypeUnion: '',
purchaseChannel: '',
@@ -1058,8 +1056,10 @@ const isSpecialList = ref([]);
const purchaseTypeDeptList = ref([]);
/** 部门采购方式字典(委托采购中心采购时使用) */
const purchaseTypeDeptDelegationList = ref([]);
-/** 实施采购途径选项:框架协议、网上商城 */
-const implementChannelList = ref([
+/** 实施采购途径选项:1:自行组织采购 2:委托代理采购 5:框架协议 8:网上商城 */
+const implementTypeList = ref([
+ { value: '1', label: '自行组织采购' },
+ { value: '2', label: '委托代理采购' },
{ value: '5', label: '框架协议' },
{ value: '8', label: '网上商城' },
]);
@@ -1229,7 +1229,7 @@ const isPurchaseTypeUnionRequired = computed(() => {
});
// 学校统一采购 - 实施采购途径是否必填
-const isImplementChannelRequired = computed(() => {
+const isImplementTypeRequired = computed(() => {
// 审核阶段:采购中心必填
if (isFlowEmbed.value && isPurchaseCenter.value) {
return true;
@@ -1407,19 +1407,24 @@ const calcEntrustCenterType = (): 'service_online' | 'other' | '' => {
return 'other';
};
-// 实施采购途径变化时,自动设置采购方式
-// 框架协议 → 采购方式自动选择"框架协议"
-// 网上商城 → 采购方式自动选择"网上商城"
-const handleImplementChannelChange = (value: string) => {
+// 实施采购途径变化时,根据选择自动设置采购方式
+// 5:框架协议 → 采购方式自动选择"框架协议"
+// 8:网上商城 → 采购方式自动选择"网上商城"
+// 1:自行组织采购、2:委托代理采购 → 清空采购方式,由用户手动选择
+const handleImplementTypeChange = (value: string) => {
if (!value) {
// 清空实施采购途径时,清空采购方式
dataForm.purchaseType = '';
return;
}
- // 根据实施采购途径自动设置采购方式
- // value 与 PurchaseTypeEnum 编码一致:5=框架协议,8=网上商城
- dataForm.purchaseType = value;
+ // 仅当选择框架协议(5)或网上商城(8)时,自动设置采购方式
+ if (value === '5' || value === '8') {
+ dataForm.purchaseType = value;
+ } else {
+ // 其他选项清空采购方式,由用户手动选择
+ dataForm.purchaseType = '';
+ }
};
// 监听采购途径变化,清理所有与采购方式相关的材料字段,同时如果已选择品目则重新计算entrustCenterType
@@ -1769,7 +1774,7 @@ const dataRules = reactive({
},
],
// 学校统一采购 + 采购中心审核:实施采购途径必填
- implementChannel: [
+ implementType: [
{
validator: (_rule: any, value: string, callback: (e?: Error) => void) => {
if (!isDeptPurchase.value && isFlowEmbed.value && isPurchaseCenter.value) {
@@ -1900,8 +1905,7 @@ async function loadDetail(applyId: string | number) {
budget: detail.budget != null ? Number(detail.budget) : null,
isCentralized: detail.isCentralized != null ? String(detail.isCentralized) : '',
isSpecial: detail.isSpecial != null ? String(detail.isSpecial) : '',
-purchaseMode: detail.purchaseMode != null ? String(detail.purchaseMode) : '',
- implementChannel: detail.implementChannel != null ? String(detail.implementChannel) : '',
+ purchaseMode: detail.purchaseMode != null ? String(detail.purchaseMode) : '',
purchaseType:
detail.purchaseType === DEPT_PURCHASE_TYPE.ENTRUST_CENTER
? ''