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/Inventory/OfflinePurchase.js b/src/api/Inventory/OfflinePurchase.js
index e69de29b..b508f812 100644
--- a/src/api/Inventory/OfflinePurchase.js
+++ b/src/api/Inventory/OfflinePurchase.js
@@ -0,0 +1,88 @@
+import request from '@/utils/request'
+
+// 请购单查询
+export function searchRequestCard(pageCurrent, pageSize, card_check, card) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '库存管理_离线请购单_请购单查询',
+ param: '请购单编号_check=' + card_check + '&请购单编号=' + card,
+ Pagination: pageCurrent + '&' + pageSize
+ }
+ })
+}
+// 请购单增加
+export function addRequestCard(peoplenumber, housenumber) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: 'dbo.库存管理_离线请购单_请购单增加',
+ param: '请购人编号=' + peoplenumber + '&仓库流水号=' + housenumber
+ }
+ })
+}
+// 查询仓库
+export function initWarehouse() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '库存管理_货位仓库_仓库_查询数据'
+ }
+ })
+}
+// 查询库存数
+export function searchInventoryNum(pageCurrent, pageSize, check1, name, check2, state1) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '库存管理_离线物料_物料余量_查询数据',
+ param: `物料名称_check=${check1}&物料名称=${name}&库存状态_check=${check2}&库存状态=${state1}`,
+ Pagination: pageCurrent + '&' + pageSize
+ }
+ })
+}
+// 查询请购单明细
+export function SeeDetail(data) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '库存管理_离线请购单_请购单明细查询',
+ param: '离线请购单流水号=' + data
+ }
+ })
+}
+// 请购单明细增加
+export function addRequestCardDetail(data1, data2) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '库存管理_离线请购单_请购单明细增加',
+ param: '离线请购单流水号=' + data1 + '&物料流水号组=' + data2
+ }
+ })
+}
+// 请购单明细增加
+export function alterNumber(data1, data2) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '库存管理_离线请购单_请购单明细修改',
+ param: '离线请购单明细流水号=' + data1 + '&数量=' + data2
+ }
+ })
+}
+
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/Inventory/OfflinePurchase/index.vue b/src/views/Inventory/OfflinePurchase/index.vue
index 2e38f808..46db63a9 100644
--- a/src/views/Inventory/OfflinePurchase/index.vue
+++ b/src/views/Inventory/OfflinePurchase/index.vue
@@ -26,7 +26,6 @@
style="margin-left: 10px"
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询
-
请购单号:
-
+
+ 仓库:
+
+
+
创建离线请购单
+ @click="addTableData">创建离线请购单
- 编辑中
- 采购中
- 已到货
- 已作废
+ 未传递
+ 已传递
- {{ scope.row.离线合同编号 }}
+ {{ scope.row.请购单编号 }}
-
+
- {{ scope.row.离线合同名称 }}
+ {{ scope.row.请购人编号 }}
-
+
- {{ scope.row.供应商名称 }}
-
-
-
-
- {{ scope.row.采购员 }}
+ {{ scope.row.仓库流水号 }}
- {{ scope.row.规定到货时间.split(' ')[0] }}
-
-
-
-
- {{ scope.row.付款方式内容 }}
+ {{ scope.row.请购时间.split(' ')[0] }}
- 编辑
作废
- 导出
+ 传递
@@ -185,9 +179,9 @@
@current-change="handleCurrentChange2"/>
-
+
- {{ scope.row.离线合同编号 }}
+ {{ scope.row.请购单编号 }}
@@ -210,21 +204,6 @@
-
-
- {{ scope.row.参考价格 }}
-
-
-
-
-
-
-
-
-
- {{ parseFloat(scope.row.单价||0) * parseInt(scope.row.数量||0) }}
-
-
移除
@@ -346,14 +325,15 @@
+
+
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 @@