diff --git a/sgzb-ui/src/api/store/completeTools.js b/sgzb-ui/src/api/store/completeTools.js
new file mode 100644
index 00000000..2666de9d
--- /dev/null
+++ b/sgzb-ui/src/api/store/completeTools.js
@@ -0,0 +1,22 @@
+import request from '@/utils/request'
+
+// 新增 成套设备
+export const addCompleteSetToolsApi = (data) => {
+ return request.post('/material/maWhole/addOrUpdate', data)
+}
+// 查询 成套设备列表
+export const getCompleteSetToolsApi = (data) => {
+ return request.get('/material/maWhole/selectList', {
+ params: data
+ })
+}
+// 删除 成套设备单条数据
+export const delCompleteSetToolsApi = (data) => {
+ return request.post('/material/maWhole/deleteById', data)
+}
+// 查询编辑 成套设备单
+export const queryCompleteSetToolsApi = (data) => {
+ return request.get('/material/maWhole/selectListById', {
+ params: data
+ })
+}
\ No newline at end of file
diff --git a/sgzb-ui/src/components/FormModel/index.vue b/sgzb-ui/src/components/FormModel/index.vue
index 00621f8f..3fad9757 100644
--- a/sgzb-ui/src/components/FormModel/index.vue
+++ b/sgzb-ui/src/components/FormModel/index.vue
@@ -42,7 +42,7 @@
:options="item.f_selList"
:props="item.optionProps"
:show-all-levels="false"
- @change="casCadeChange"
+ @change="casCadeChange(item.f_model, $event)"
clearable
filterable
style="width: 240px"
@@ -50,6 +50,7 @@
diff --git a/sgzb-ui/src/components/TableModel/index.vue b/sgzb-ui/src/components/TableModel/index.vue
index 92bc457c..96ce8dea 100644
--- a/sgzb-ui/src/components/TableModel/index.vue
+++ b/sgzb-ui/src/components/TableModel/index.vue
@@ -151,7 +151,7 @@ export default {
data() {
return {
total: 0,
- tableList: [{ demo: 123 }],
+ tableList: [],
/* 分页参数 */
pageParams: {
pageNum: 1,
@@ -198,13 +198,19 @@ export default {
/* 获取列表信息 */
async getList() {
this.pageParams = Object.assign(this.pageParams, this.sendParams)
+ this.$delete(this.pageParams, 'limit')
+ this.$delete(this.pageParams, 'page')
this.loading = true
const res = await this.sendApi(this.pageParams)
this.loading = false
-
if (res.code == 200) {
- this.tableList = res.rows || res.data.rows
- this.total = res.total || res.data.total
+ if (res.data) {
+ this.tableList = res.data.rows
+ this.total = res.data.total
+ } else {
+ this.tableList = res.rows
+ this.total = res.total
+ }
}
},
diff --git a/sgzb-ui/src/views/base/comeAndGo/index.vue b/sgzb-ui/src/views/base/comeAndGo/index.vue
index 7b0564c5..20fc3b1b 100644
--- a/sgzb-ui/src/views/base/comeAndGo/index.vue
+++ b/sgzb-ui/src/views/base/comeAndGo/index.vue
@@ -142,7 +142,6 @@
编辑
修改
删除
+
+
+
+
+
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js
new file mode 100644
index 00000000..d2c262b7
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/config.js
@@ -0,0 +1,113 @@
+
+import {
+ getUnitInfoSelectApi,
+ listPartTypeApi,
+} from '@/api/repairTest/repair'
+import { getProjectList } from '@/api/claimAndRefund/receive'
+
+import { getTypeList } from '@/api/store/warehousing'
+
+let unitList = []
+let proList = []
+let typeList = []
+export const config = {
+ handleColShow: true, // 是否显示操作列
+ pageShow: true, // 是否显示分页组件
+ isSelShow: false,// 表格是否需要复选框
+ isFormShow: true, // 是否显示表单查询组件
+ handleWidth: '', // 操作列宽度
+ formLabel: [
+ { f_label: '成套设备名称', f_model: 'keyword', f_type: 'ipt' },
+ { f_label: '主体设备', f_model: 'backUnit', f_type: 'sel', f_selList: [] },
+ { f_label: '创建日期', f_model: 'backPro', f_type: 'date' },
+ ],
+ columnsList: [
+ // { t_width: '55px', t_props: '', t_label: '序号' },
+ { t_width: '', t_props: 'scrapNum', t_label: '成套设备名称', },
+ { t_width: '', t_props: '', t_label: '主体设备', t_slot: 'source', },
+ { t_width: '', t_props: 'repairNum', t_label: '配套设备种类数量', t_slot: 'code', },
+ { t_width: '', t_props: 'unitName', t_label: '创建人', },
+ { t_width: '', t_props: 'projectName', t_label: '创建日期', },
+ ],
+ handleBtn: [
+ { btn_title: '查看', id: 1 },
+ { btn_title: '审核', id: 2 },
+
+ ],
+}
+
+export const dialogConfig = {
+ outerWidth: '70%',
+ outerTitle: '',
+ outerVisible: false,
+ innerWidth: '50%',
+ innerTitle: '',
+ innerVisible: false,
+ handleColShow: false, // 是否显示操作列
+ pageShow: true, // 是否显示分页组件
+ isSelShow: false,// 表格是否需要复选框
+ isFormShow: true, // 是否显示表单查询组件
+ formLabel: [
+ { f_label: '类型名称', f_model: 'keywords', f_type: 'sel', f_selList: [], selLabel: 'typeName', selValue: 'typeId' },
+ ],
+
+ columnsList: [
+ // { t_width: '55px', t_props: '', t_label: '序号' },
+ { t_width: '', t_props: 'machineTypeName', t_label: '设备类型' },
+ { t_width: '', t_props: 'specificationType', t_label: '规格型号' },
+ { t_width: '', t_props: 'maCode', t_label: '设备编码' },
+ { t_width: '', t_props: 'scrapNum', t_label: '设备数量' },
+ { t_width: '', t_props: 'status', t_label: '审批状态', t_slot: 't_type' },
+ { t_width: '', t_props: 'auditRemark', t_label: '报废原因' },
+ { t_width: '', t_props: '', t_label: '损坏原因', t_slot: 't_damage' },
+ { t_width: '', t_props: '', t_label: '报废图片', t_slot: 't_img' },
+ { t_width: '', t_props: 'remark', t_label: '备注' },
+ ],
+
+}
+
+export const getSelList = () => {
+ new Promise(async (resolve) => {
+ const { data: unitRes } = await getUnitInfoSelectApi()
+ unitList = unitRes.map((e) => {
+ e.value = e.unitId
+ e.label = e.unitName
+ return e
+ })
+ const { data: proRes } = await getProjectList()
+ proList = proRes.map((e) => {
+ e.value = e.projectId
+ e.label = e.projectName
+ return e
+ })
+ const { data: typeRes } = await listPartTypeApi()
+ typeList = typeRes
+ resolve()
+ }).then(() => {
+ config.formLabel.map((item) => {
+ if (item.f_model === 'backUnit') {
+ item.f_selList = unitList
+ return item
+ }
+ if (item.f_model === 'backPro') {
+ item.f_selList = proList
+ return item
+ }
+ if (item.f_model === 'type') {
+ item.f_selList = typeList
+ return item
+ }
+ })
+ }).catch(() => {
+
+ })
+}
+
+export const getTypeListSel = async () => {
+ const { data: res } = await getTypeList({ level: '3' })
+ dialogConfig.formLabel[0].f_selList = res.map((e) => {
+ e.value = e.typeId
+ e.label = e.typeName
+ return e
+ })
+}
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue
new file mode 100644
index 00000000..a3bcd49c
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/component/home.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeParts/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/index.vue
new file mode 100644
index 00000000..642850cf
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeParts/index.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
+
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/addCompleteTools.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/addCompleteTools.vue
new file mode 100644
index 00000000..07ac41be
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/addCompleteTools.vue
@@ -0,0 +1,308 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保 存
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删 除
+
+
+
+
+
+
+
+
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/config.js b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/config.js
new file mode 100644
index 00000000..f7f86c75
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/config.js
@@ -0,0 +1,28 @@
+
+import { getDeviceTypeTree } from '@/api/claimAndRefund/receive'
+import { start } from 'nprogress'
+
+export const config = {
+ handleColShow: true, // 是否显示操作列
+ pageShow: true, // 是否显示分页组件
+ isSelShow: false,// 表格是否需要复选框
+ isFormShow: true, // 是否显示表单查询组件
+ handleWidth: '', // 操作列宽度
+ formLabel: [
+ { f_label: '成套设备名称', f_model: 'wholeTypeName', f_type: 'ipt' },
+ { f_label: '主体设备', f_model: 'parentId', f_type: 'selCas', f_selList: [], optionProps: { value: 'id', } },
+ { f_label: '创建日期', f_model: 'time', f_type: 'date', timeList: ['startTime', 'endTime'] },
+ ],
+ columnsList: [
+ { t_width: '', t_props: 'wholeTypeName', t_label: '成套设备名称', },
+ { t_width: '', t_props: 'typeModelName', t_label: '主体设备', },
+ { t_width: '', t_props: 'totalNum', t_label: '配套设备种类数量' },
+ { t_width: '', t_props: 'nickName', t_label: '创建人', },
+ { t_width: '', t_props: 'createTime', t_label: '创建日期', },
+ ],
+}
+
+export const getDeviceTypeTreeFun = async () => {
+ const { data: res } = await getDeviceTypeTree({ level: '4' })
+ config.formLabel[1].f_selList = res.filter((e) => e.companyId == 101)
+}
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/home.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/home.vue
new file mode 100644
index 00000000..8957593f
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/component/home.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+ 新 增
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sgzb-ui/src/views/warehouseManage/machinery/completeTools/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/index.vue
new file mode 100644
index 00000000..bc059b8c
--- /dev/null
+++ b/sgzb-ui/src/views/warehouseManage/machinery/completeTools/index.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue
index af13397d..c8b25130 100644
--- a/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue
+++ b/sgzb-ui/src/views/warehouseManage/newPurchase/partsAcceptance/component/addParts.vue
@@ -540,10 +540,11 @@ export default {
},
computed: {
pickerOptions() {
+ // 当前时间 - 采购时间
+ const currentDate = new Date(this.maForm.purchaseTime || new Date())
+ currentDate.setDate(currentDate.getDate() - 1)
return {
disabledDate(time) {
- const currentDate = new Date()
- currentDate.setHours(0, 0, 0, 0)
return time.getTime() < currentDate.getTime()
},
}
diff --git a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue
index 5fe98a6a..42b173c8 100644
--- a/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue
+++ b/sgzb-ui/src/views/warehouseManage/newPurchase/toolsAcceptance/component/addTools.vue
@@ -67,6 +67,7 @@
value-format="yyyy-MM-dd"
type="date"
placeholder="请选择采购日期"
+ @change="changeTimePurchase"
>
@@ -74,9 +75,16 @@
v-model="maForm.arrivalTime"
style="width: 240px"
value-format="yyyy-MM-dd"
- :picker-options="pickerOptions"
type="date"
placeholder="请选择到货日期"
+ :picker-options="{
+ // 设置当前时间为 采购日期
+ disabledDate: time => {
+ const currentDate = new Date(maForm.purchaseTime || new Date())
+ currentDate.setDate(currentDate.getDate() - 1)
+ return time.getTime() < currentDate.getTime()
+ }
+ }"
>
@@ -373,17 +381,6 @@ export default {
},
}
},
- computed: {
- pickerOptions() {
- return {
- disabledDate(time) {
- const currentDate = new Date()
- currentDate.setHours(0, 0, 0, 0)
- return time.getTime() < currentDate.getTime()
- },
- }
- },
- },
// watch: {
// 'maForm.purchaseTime'() {
// if (this.maForm.purchaseTime != '') {
@@ -570,15 +567,6 @@ export default {
const arrivalTime =
this.maForm.arrivalTime?.split('-').join('') - 0
- if (productionTime > purchaseTime) {
- this.$message.error('出厂日期不可在采购日期之后')
- return
- }
- if (productionTime > arrivalTime) {
- this.$message.error('出厂日期不可在到货日期之后')
- return
- }
-
// console.log(this.maForm,'maForm')
// console.log(this.equipmentList,'equipmentList')
let isEmpty = true
@@ -703,6 +691,11 @@ export default {
// ...this.queryParams
// }, `role_${new Date().getTime()}.xlsx`)
},
+ // 采购日期变化
+ changeTimePurchase() {
+ // 清除到货日期
+ this.maForm.arrivalTime = ''
+ },
},
}
diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js
index bfdbfdbb..f448bc73 100644
--- a/sgzb-ui/vue.config.js
+++ b/sgzb-ui/vue.config.js
@@ -43,11 +43,11 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`,
- // target: `http://10.40.92.60:28080`, //超
+ target: `http://192.168.2.122:38080`, //超
// target: `http://10.40.92.81:28080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/
// target: `http://10.40.92.140:28080`, //帅
- target: `http://10.40.92.253:28080`, //福
+ // target: `http://192.168.2.209:28080`, //福
//******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;