@@ -192,42 +194,12 @@
// minimumInputLength: 1
}
});
- $("#compant_materialName").select2({
- theme: "bootstrap",
- allowClear: true,
- placeholder: "请选择物料",
- ajax:{
- type: "post",
- url:ctx + "erp/material/getMaterialSelList",
- dataType:"json",
- delay:250,
- cache:true,
- processResults: function (res, params) {
- var resultList = res.data;
- var options = [];
- for(let i in resultList){
- var option = resultList[i];
- option.id = resultList[i]["materialName"];
- option.text = resultList[i]["materialName"];
- option.title = resultList[i]["materialNo"];
- options.push(option);
- }
- return {results: options, pagination: {}};
- },escapeMarkup: function (markup) { return markup; },
- }
- });
});
$("#compant_materialCode").on('select2:select', function (e){
var dataObj = e.params.data;
console.log(dataObj);
- $("#compant_materialName").val(dataObj.materialName).trigger('change');
- });
-
- $("#compant_materialName").on('select2:select', function (e){
- var dataObj = e.params.data;
- console.log(dataObj);
- $("#compant_materialCode").val(dataObj.materialNo).trigger('change');
+ $("input[name='materialName']").val(dataObj.materialName).trigger('change');
});
function submitHandler() {
if ($.validate.form()) {
diff --git a/ruoyi-admin/src/main/resources/templates/financial/companyCost/add.html b/ruoyi-admin/src/main/resources/templates/financial/companyCost/add.html
new file mode 100644
index 00000000..6cb2e2ee
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/templates/financial/companyCost/add.html
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/templates/financial/companyCost/compantCost.html b/ruoyi-admin/src/main/resources/templates/financial/companyCost/compantCost.html
new file mode 100644
index 00000000..a2d1bc8d
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/templates/financial/companyCost/compantCost.html
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/templates/financial/companyCost/edit.html b/ruoyi-admin/src/main/resources/templates/financial/companyCost/edit.html
new file mode 100644
index 00000000..cd5bcf8d
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/templates/financial/companyCost/edit.html
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html
deleted file mode 100644
index a5b55ed6..00000000
--- a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html
deleted file mode 100644
index 9c5d1e1b..00000000
--- a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html
deleted file mode 100644
index 624cc2b8..00000000
--- a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file