+
+
+
+
@@ -267,6 +267,7 @@ export default {
groupNum: null, // 组件流水号
partNumber: '', // 零件号
partStateValue: null, // 零件状态
+ partStateValue1: null,
partState: [], // 零件状态数组
partTypeValue: null, // 零件类型
num: null,
@@ -300,15 +301,7 @@ export default {
}, {
value: 2,
label: '外协生产'
- }],
- form: {
- 零件状态: null
- },
- rules: {
- 零件状态: [
- { required: true, message: '请选择零件状态', trigger: 'change' }
- ]
- }
+ }]
}
},
created() {
@@ -442,34 +435,24 @@ export default {
this.dialogFormVisible3 = false
},
handleEdit(row) {
- if (this.$refs['form'] !== undefined) {
- this.$refs['form'].resetFields()
- }
- this.form = {}
+ console.log(row)
this.title = '编辑'
+ this.partStateValue1 = parseInt(row.考核状态) + 2
this.dialogFormVisible4 = true
this.num = row.工艺计划流水号
},
- submitEdit(formName) { // 提交编辑
- this.$refs[formName].validate((valid) => {
- if (valid) {
- editData(this.num, this.form.零件状态).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('编辑成功')
- this.dialogFormVisible4 = false
- this.pageCurrent = 1
- this.searchData()
- } else { this.$message.error('编辑失败') }
- })
- } else {
- return false
- }
+ submitEdit() { // 提交编辑
+ editData(this.num, this.partStateValue1).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('编辑成功')
+ this.dialogFormVisible4 = false
+ this.pageCurrent = 1
+ this.searchData()
+ } else { this.$message.error('编辑失败') }
})
},
- cancel(formName) { // 取消
- this.form = {}
+ cancel() { // 取消
this.dialogFormVisible4 = false
- this.$refs[formName].resetFields()
},
handleSizeChange(val) {
this.pageSize = val
diff --git a/src/views/MarketingCenter/ContractCapitalManagement/index.vue b/src/views/MarketingCenter/ContractCapitalManagement/index.vue
index 4e298a0a..935b26dc 100644
--- a/src/views/MarketingCenter/ContractCapitalManagement/index.vue
+++ b/src/views/MarketingCenter/ContractCapitalManagement/index.vue
@@ -12,7 +12,7 @@
销售经理
查询收款计划
- 新增收款计划
+ 新增收款计划
查看收款信息
@@ -490,6 +490,7 @@ export default {
}
return {
entryName2: [],
+ count1: 0,
type: '',
a: 1,
b: 1,
@@ -576,7 +577,7 @@ export default {
rules: { // 表单验证规则
ContractNumberValue: [{ required: true, message: '请输入合同编号', trigger: 'blur' }],
TotalContractAmount: [{ required: true, message: '请输入合同总金额', trigger: 'blur' }],
- entryNameValue: [{ required: true, message: '请输入项目名称', trigger: 'change' }]
+ entryNameValue: [{ required: true, message: '请选择项目名称', trigger: 'change' }]
},
rules1: { // 表单验证规则
ThisPayment: [
@@ -819,9 +820,11 @@ export default {
this.peoplename = ''
},
searchProjectName() {
- searchProjectName(this.form2.entryNameValue).then(response => {
- this.form2.ContractNumberValue = response.data[0].合同编号
- })
+ if (this.form2.entryNameValue !== '' && this.form2.entryNameValue !== null) {
+ searchProjectName(this.form2.entryNameValue).then(response => {
+ this.form2.ContractNumberValue = response.data[0].合同编号
+ })
+ }
},
handleEdit(row) {
this.contractTotal = parseFloat(row.合同总金额)
@@ -1025,8 +1028,14 @@ export default {
})
})
},
- ADD() {
- this.addForm('form2')
+ ADD(formName) {
+ this.form2.entryNameValue = ''
+ this.form2.ContractNumberValue = ''
+ this.form2.TotalContractAmount = ''
+ this.count1 = this.count1 + 1
+ if (this.count1 !== 1) {
+ this.$refs[formName].resetFields()
+ }
this.dialogFormVisible2 = true
this.temp = 1
},
diff --git a/src/views/Outsourcing/InterBudgetaryBudgets/index.vue b/src/views/Outsourcing/InterBudgetaryBudgets/index.vue
index dba02f81..5595bd25 100644
--- a/src/views/Outsourcing/InterBudgetaryBudgets/index.vue
+++ b/src/views/Outsourcing/InterBudgetaryBudgets/index.vue
@@ -7,28 +7,33 @@
未编制
已编制
-
+ 项目名称:
+
+
+
+ 机床名称:
+
+
+
+ 分组:
+
+
+
零件图号:
- 开始时间:
-
-
- 结束时间:
-
-
查询
@@ -71,30 +76,30 @@
{{ scope.row.原材料规格 }}
-
-
- {{ scope.row.面积 }}
-
-
-
-
- {{ scope.row.重量 }}
-
-
-
-
- {{ scope.row.材料费 }}
-
-
-
-
- 编辑
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -165,10 +170,16 @@