|
@@ -101,29 +101,28 @@
|
|
|
>新增
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- icon="el-icon-edit"
|
|
|
- size="mini"
|
|
|
- :disabled="single"
|
|
|
- @click="handleUpdate"
|
|
|
- v-hasPermi="['agreement:agreementStorage:edit']"
|
|
|
- v-if="form.fBillstatus === '2' || form.fBillstatus === '3'"
|
|
|
- >修改
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- icon="el-icon-delete"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click="handleDelete"
|
|
|
- v-hasPermi="['agreement:agreementStorage:remove']"
|
|
|
- >删除
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="success"-->
|
|
|
+<!-- icon="el-icon-edit"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- :disabled="single"-->
|
|
|
+<!-- @click="handleUpdate"-->
|
|
|
+<!-- v-hasPermi="['agreement:agreementStorage:edit']"-->
|
|
|
+<!-- >修改-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="danger"-->
|
|
|
+<!-- icon="el-icon-delete"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- :disabled="multiple"-->
|
|
|
+<!-- @click="handleDelete"-->
|
|
|
+<!-- v-hasPermi="['agreement:agreementStorage:remove']"-->
|
|
|
+<!-- >删除-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -180,7 +179,6 @@
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
@click="check(scope.row,0)"
|
|
|
- v-if="scope.row.fBillstatus == 6"
|
|
|
v-hasPermi="['agreement:agreementStorage:edit']"
|
|
|
>查看
|
|
|
</el-button>
|
|
@@ -200,6 +198,7 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['agreement:agreementStorage:edit']"
|
|
|
+ v-if="scope.row.fBillstatus < 4"
|
|
|
>修改
|
|
|
</el-button>
|
|
|
<el-button
|
|
@@ -207,6 +206,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
+ v-if="scope.row.fBillstatus < 4"
|
|
|
v-hasPermi="['agreement:agreementStorage:remove']"
|
|
|
>删除
|
|
|
</el-button>
|
|
@@ -337,6 +337,7 @@
|
|
|
<el-input
|
|
|
v-model="scope.row.fFromdays"
|
|
|
placeholder="请输入开始天数"
|
|
|
+ oninput='value = value.replace(/[^\d.]/g,"")'
|
|
|
clearable
|
|
|
size="small"
|
|
|
:disabled="notChange"
|
|
@@ -348,6 +349,7 @@
|
|
|
<el-input
|
|
|
v-model="scope.row.fEndays"
|
|
|
placeholder="请输入结束天数"
|
|
|
+ oninput='value = value.replace(/[^\d.]/g,"")'
|
|
|
clearable
|
|
|
size="small"
|
|
|
:disabled="notChange"
|
|
@@ -359,6 +361,7 @@
|
|
|
slot-scope="scope"
|
|
|
v-model="scope.row.fPrice"
|
|
|
placeholder="请输入单价"
|
|
|
+ oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
|
|
|
clearable
|
|
|
size="small"
|
|
|
:disabled="notChange"
|
|
@@ -429,8 +432,8 @@
|
|
|
<el-button v-if="approve === true" @click="goApproval">审批</el-button>
|
|
|
<el-button type="danger" :disabled="disappear" @click="backApproval" v-if="form.fBillstatus == '4'">撤销审批</el-button>
|
|
|
<el-button type="info" v-if="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
|
|
|
- <el-button type="success" @click="backrRconciliation" v-if="form.fBillstatus === '6'">撤销请核</el-button>
|
|
|
- <el-button type="primary" @click="submitForm" :disabled="notChange">确 定</el-button>
|
|
|
+ <el-button type="success" @click="backrRconciliation" v-if="form.fBillstatus == '6'">撤销请核</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm" :disabled="notChange">保 存</el-button>
|
|
|
<el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
|
|
|
<el-button v-if="cancelButton === false" @click="homePage">取消</el-button>
|
|
|
</div>
|
|
@@ -561,6 +564,9 @@ export default {
|
|
|
],
|
|
|
fCorpid: [
|
|
|
{ required: true, message: ' ', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ tPackages:[
|
|
|
+ { required: true, message: ' ', trigger: 'blur' }
|
|
|
]
|
|
|
}
|
|
|
}
|
|
@@ -695,6 +701,7 @@ export default {
|
|
|
},
|
|
|
// 查看按钮
|
|
|
check(row, res) {
|
|
|
+ this.disappear = false
|
|
|
this.notChange = true
|
|
|
this.browseStatus = true
|
|
|
getAgreement(row.fId).then(response => {
|
|
@@ -714,15 +721,13 @@ export default {
|
|
|
this.fWbuOptions = response.data.feesList
|
|
|
this.add = row
|
|
|
console.log(JSON.stringify(this.agreementitemsList))
|
|
|
- this.open = true
|
|
|
- this.disappear = true
|
|
|
this.title = '修改仓储费'
|
|
|
if (res == 1) {
|
|
|
this.notChange = true
|
|
|
if (this.Operator == this.Lander) {
|
|
|
this.disappear = false
|
|
|
this.reset()
|
|
|
- const fId = row.fId || this.ids
|
|
|
+ // const fId = row.fId || this.ids
|
|
|
getAgreement(row.fId).then(response => {
|
|
|
console.log(response)
|
|
|
this.deptName = response.data.dept.deptName
|
|
@@ -747,7 +752,7 @@ export default {
|
|
|
this.reset()
|
|
|
}
|
|
|
})
|
|
|
- const fId = row.fId || this.ids
|
|
|
+ // const fId = row.fId || this.ids
|
|
|
getAgreement(row.fId).then(response => {
|
|
|
console.log(response)
|
|
|
this.deptName = response.data.dept.deptName
|
|
@@ -783,25 +788,27 @@ export default {
|
|
|
},
|
|
|
// 撤销请核
|
|
|
backrRconciliation() {
|
|
|
- this.form.fBillstatus = '1'
|
|
|
- backFee(this.form.fId).then(response=>{
|
|
|
- this.msgSuccess("撤回成功")
|
|
|
+ let formData = new window.FormData()
|
|
|
+ // 附件数据
|
|
|
+ formData.append('agreement', JSON.stringify(this.form))
|
|
|
+ formData.append('agreementitems', JSON.stringify(this.agreementitemsList))
|
|
|
+ backFee(formData).then(response => {
|
|
|
+ this.msgSuccess('撤销成功')
|
|
|
+ this.open = false
|
|
|
this.getList()
|
|
|
+ this.disappear = false
|
|
|
})
|
|
|
- this.open = false
|
|
|
- this.getList()
|
|
|
},
|
|
|
// 请核按钮
|
|
|
submit() {
|
|
|
if (this.agreementitemsList.length !== 0) {
|
|
|
- this.form.fBillstatus = '4'
|
|
|
+ this.open = false
|
|
|
let formData = new window.FormData()
|
|
|
// 附件数据
|
|
|
formData.append('agreement', JSON.stringify(this.form))
|
|
|
formData.append('agreementitems', JSON.stringify(this.agreementitemsList))
|
|
|
PleaseCheck(formData).then(response => {
|
|
|
this.msgSuccess('请核成功')
|
|
|
- this.open = false
|
|
|
this.getList()
|
|
|
})
|
|
|
} else {
|
|
@@ -918,8 +925,14 @@ export default {
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false
|
|
|
- this.agreementitemsList = []
|
|
|
this.reset()
|
|
|
+ this.agreementitemsList = {
|
|
|
+ fFeeunitid:'',
|
|
|
+ fFromdays:'',
|
|
|
+ fEndays:'',
|
|
|
+ fPrice:'',
|
|
|
+ fFeeid:''
|
|
|
+ }
|
|
|
},
|
|
|
handleClose() {
|
|
|
this.open = false
|
|
@@ -991,7 +1004,15 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset()
|
|
|
+ // this.agreementitemsList = {
|
|
|
+ // fFeeunitid:'',
|
|
|
+ // fFromdays:'',
|
|
|
+ // fEndays:'',
|
|
|
+ // fPrice:'',
|
|
|
+ // fFeeid:''
|
|
|
+ // }
|
|
|
this.open = true
|
|
|
+ this.browseStatus = false
|
|
|
this.notChange = false
|
|
|
this.title = '添加仓储费'
|
|
|
queryUserVal().then((response) => {
|