diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js
index 4c1525da..13525ee8 100644
--- a/build/webpack.dev.conf.js
+++ b/build/webpack.dev.conf.js
@@ -57,8 +57,11 @@ const devWebpackConfig = merge(baseWebpackConfig, {
template: 'index.html',
inject: true,
favicon: resolve('favicon.ico'),
- title: 'vue-admin-template'
- })
+ title: 'vue-element-admin',
+ templateParameters: {
+ BASE_URL: config.dev.assetsPublicPath + config.dev.assetsSubDirectory,
+ },
+ }),
]
})
@@ -78,7 +81,9 @@ module.exports = new Promise((resolve, reject) => {
new FriendlyErrorsPlugin({
compilationSuccessInfo: {
messages: [
- `Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`
+ `Your application is running here: http://${
+ devWebpackConfig.devServer.host
+ }:${port}`
]
},
onErrors: config.dev.notifyOnErrors
diff --git a/index.html b/index.html
index deed4af4..7d978087 100644
--- a/index.html
+++ b/index.html
@@ -6,6 +6,7 @@
高精机电装备有限公司数字化工厂
+
diff --git a/src/api/ManufacturingCenter/QuotaFormulation.js b/src/api/ManufacturingCenter/QuotaFormulation.js
index 04062dbc..939492c8 100644
--- a/src/api/ManufacturingCenter/QuotaFormulation.js
+++ b/src/api/ManufacturingCenter/QuotaFormulation.js
@@ -33,7 +33,6 @@ export function getPerson() {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=9'
-
}
})
}
diff --git a/src/api/ManufacturingCenter/StatusQuery.js b/src/api/ManufacturingCenter/StatusQuery.js
index 1dea4f95..f5019a57 100644
--- a/src/api/ManufacturingCenter/StatusQuery.js
+++ b/src/api/ManufacturingCenter/StatusQuery.js
@@ -48,7 +48,7 @@ export function searchTable(check, entryNameValue, check1, machine, check2, grou
method: 'post',
data: {
type: '1',
- name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新',
+ name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新_MESWORK',
param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&零件图号_check=' + check3 + '=int&零件图号=' + partNumber + '=string&考核状态_check=' + check4 + '=int&考核状态=' + partStateValue + '=int&单件是否外协_check=' + check5 + '=int&单件是否外协=' + partTypeValue + '=int',
pagination: pageCurrent + '&' + pageSize
}
diff --git a/src/api/PurchasingCenter/CreatePurchaseContract.js b/src/api/PurchasingCenter/CreatePurchaseContract.js
new file mode 100644
index 00000000..a3e503c1
--- /dev/null
+++ b/src/api/PurchasingCenter/CreatePurchaseContract.js
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 查询询价单列表 表1
+export function searchInquirySheet(check1, value1, check2, value2, check3, id) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_询价单_查询数据',
+ param: `供应商名称_check=${check1}&供应商名称=${value1}&询价单编号_check=${check2}&询价单编号=${value2}&采购员流水号_check=${check3}&采购员流水号=${id}`
+ }
+ })
+}
+// 根据询价单流水号查询物料详情
+export function searchSheetContract(num1) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_询价单明细_查询数据_根据询价单',
+ param: '询价单流水号=' + num1
+ }
+ })
+}
diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js
index a3ff15f7..7d5119dc 100644
--- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js
+++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js
@@ -1,5 +1,28 @@
import request from '@/utils/request'
-
+// 物料类别
+export function initMaterialCategory(check, DepartmentValue) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '库存管理_物料类别编号_查询数据_根据物料部门编号',
+ param: '物料部门流水号_check=' + check + '=int&物料部门流水号=' + DepartmentValue
+ }
+ })
+}
+// 物料品种
+export function initMaterialVariety(MaterialCategoryValue) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '库存管理_物料品种编号_查询数据',
+ param: '物料类别流水号=' + MaterialCategoryValue
+ }
+ })
+}
// 初始化项目(车间传递来的)
export function initProject() {
return request({
@@ -24,15 +47,15 @@ export function initBuyer() {
})
}
// 查询表1
-export function searchTable1(pageCurrent, pageSize, check1, num1, check2, name, state) {
+export function searchTable1(...params) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '采购管理_采购部采购_查询物料',
- param: `项目流水号_check=${check1}&项目流水号=${num1}&物料名称_check=${check2}&物料名称=${name}&分配状态=${state}`,
- Pagination: pageCurrent + '&' + pageSize
+ param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&物料名称_check=${params[8]}&物料名称=${params[9]}&分配状态=${params[10]}`,
+ Pagination: params[0] + '&' + params[1]
}
})
}
diff --git a/src/components/Tinymce/components/editorImage.vue b/src/components/Tinymce/components/editorImage.vue
new file mode 100644
index 00000000..bcd82099
--- /dev/null
+++ b/src/components/Tinymce/components/editorImage.vue
@@ -0,0 +1,103 @@
+
+
+ 上传图片
+
+
+
+ 点击上传
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue
new file mode 100644
index 00000000..b8d03287
--- /dev/null
+++ b/src/components/Tinymce/index.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
diff --git a/src/components/Tinymce/plugins.js b/src/components/Tinymce/plugins.js
new file mode 100644
index 00000000..8fc207e8
--- /dev/null
+++ b/src/components/Tinymce/plugins.js
@@ -0,0 +1,7 @@
+// Any plugins you want to use has to be imported
+// Detail plugins list see https://www.tinymce.com/docs/plugins/
+// Custom builds see https://www.tinymce.com/download/custom-builds/
+
+const plugins = ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount']
+
+export default plugins
diff --git a/src/components/Tinymce/toolbar.js b/src/components/Tinymce/toolbar.js
new file mode 100644
index 00000000..7d6c2c73
--- /dev/null
+++ b/src/components/Tinymce/toolbar.js
@@ -0,0 +1,6 @@
+// Here is a list of the toolbar
+// Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
+
+const toolbar = ['bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen']
+
+export default toolbar
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
new file mode 100644
index 00000000..cd3abe56
--- /dev/null
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -0,0 +1,532 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.物料名称 }}
+
+
+
+
+ {{ scope.row.物料规格 }}
+
+
+
+
+ {{ scope.row.订货数量 }}
+
+
+
+
+
+ —
+
+
+
+
+
+ —
+
+
+
+
+ {{ haTtax==='未税' ? scope.row.未税总额 = (Number(scope.row.订货数量) * Number(scope.row.未税单价)).toFixed(2) : scope.row.未税总额 = (scope.row.含税总额 / (1+taxRate)).toFixed(2) }}
+
+
+
+
+ {{ haTtax==='含税' ? scope.row.含税总额 = (Number(scope.row.订货数量) * Number(scope.row.含税单价)).toFixed(2) : scope.row.含税总额 = (scope.row.未税总额 * (1+taxRate)).toFixed(2) }}
+
+
+
+ 合同模板:
+
+
+
+
+
+
+ 调整合同
+ 生成合同
+
+ 合同总额:
+
+ 确定总额
+
+
+
+ {{ content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
index c01c138d..a923191e 100644
--- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
+++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
@@ -3,30 +3,61 @@
- 项目名称:
-
-
-
- 物料名称:
-
- 分配情况:
-
-
-
- 查询
+
+ 物料类别:
+
+
+
+ 物料品种:
+
+
+
+ 物料名称:
+
+ 查询
+
+
+ 项目名称:
+
+
+
+ 分配情况:
+
+
+
+
@@ -71,27 +102,42 @@
{{ scope.row.项目名称 }}
-
+
- {{ scope.row.物料名称 }}
+ {{ scope.row.物料类别 }}
-
+
+
+ {{ scope.row.物料品种 }}
+
+
+
{{ scope.row.物料型号 }}
-
+
+
+ {{ scope.row.物料名称 }}
+
+
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.零件数量 }}
-
+
+
+ {{ scope.row.备注 }}
+
+
+
{{ scope.row.供货商 }}
@@ -123,13 +169,17 @@