({
+ ...item,
+ disabled: this.disabledFormat(item.dictValue)
+ }))
+ },
+ radioStyle() {
+ return 'display: flex; align-items: center; flex-wrap: wrap; gap: 8px;'
+ }
},
watch: {
dictType: {
diff --git a/klp-ui/src/views/crm/contract/components/ProductContent.vue b/klp-ui/src/views/crm/contract/components/ProductContent.vue
index a6949ca2..cd3b11fe 100644
--- a/klp-ui/src/views/crm/contract/components/ProductContent.vue
+++ b/klp-ui/src/views/crm/contract/components/ProductContent.vue
@@ -5,132 +5,76 @@
-
+
序号
规格(mm)
材质
数量(吨)
-
含税单价(元/吨)
-
不含税单价(元/吨)
+
含税单价(元/吨)
+
不含税单价(元/吨)
含税总额(元)
不含税总额(元)
备注
-
+
添加行
-
+
-
+
-
+
-
+
-
+
+
+
+
+
-
+
-
+
-
+
-
-
-
-
+
-
+
合计
@@ -141,7 +85,7 @@
{{ ((totalTaxTotal || 0) / 1.13).toFixed(2) }}
-
+
@@ -149,18 +93,13 @@
{{ totalAmountInWords }}
-
+
@@ -195,21 +134,27 @@ export default {
products: [],
remark: '',
productName: '',
+ productOptions: [
+ { label: '冷硬钢卷', value: '冷硬钢卷' },
+ { label: '镀锌钢卷', value: '镀锌钢卷' },
+ { label: '冷轧钢卷', value: '冷轧钢卷' },
+ { label: '镀铬钢卷', value: '镀铬钢卷' },
+ ]
}
},
computed: {
// 计算总数量
- totalQuantity() {
- return calculateTotalQuantity(this.products);
- },
- // 计算总含税总额
- totalTaxTotal() {
- return calculateTotalTaxTotal(this.products);
- },
- // 计算大写金额
- totalAmountInWords() {
- return convertToChinese(this.totalTaxTotal);
- },
+ totalQuantity() {
+ return calculateTotalQuantity(this.products);
+ },
+ // 计算总含税总额
+ totalTaxTotal() {
+ return calculateTotalTaxTotal(this.products);
+ },
+ // 计算大写金额
+ totalAmountInWords() {
+ return convertToChinese(this.totalTaxTotal);
+ },
// 生成JSON字符串
jsonContent() {
// 只存储非空行
@@ -251,24 +196,24 @@ export default {
},
methods: {
// 解析content字符串
- parseContent(content) {
- try {
- const data = parseProductContent(content);
- this.products = data.products.length > 0 ? data.products : [{}];
- this.remark = data.remark || '';
- this.productName = data.productName || '';
- } catch (error) {
- console.error('解析content失败:', error);
- this.products = [{}];
- this.remark = '';
- }
- },
- // 计算金额
- calculateTotals() {
- this.products.forEach(item => {
- item.taxTotal = calculateProductTaxTotal(item);
- });
- },
+ parseContent(content) {
+ try {
+ const data = parseProductContent(content);
+ this.products = data.products.length > 0 ? data.products : [{}];
+ this.remark = data.remark || '';
+ this.productName = data.productName || '';
+ } catch (error) {
+ console.error('解析content失败:', error);
+ this.products = [{}];
+ this.remark = '';
+ }
+ },
+ // 计算金额
+ calculateTotals() {
+ this.products.forEach(item => {
+ item.taxTotal = calculateProductTaxTotal(item);
+ });
+ },
// 添加产品行
addProduct() {
this.products.push({});
@@ -291,85 +236,86 @@ export default {
\ No newline at end of file
diff --git a/klp-ui/src/views/system/notice/index.vue b/klp-ui/src/views/system/notice/index.vue
index 712f5c6f..56793882 100644
--- a/klp-ui/src/views/system/notice/index.vue
+++ b/klp-ui/src/views/system/notice/index.vue
@@ -96,6 +96,12 @@
+ 查看
取 消