|
@@ -144,10 +144,10 @@
|
|
|
</tr>
|
|
|
<tr v-for="(item,index) in contentList" :key="index">
|
|
|
<td class="column">{{item.feeName}}</td>
|
|
|
- <td class="column">{{item.fUnitprice?item.fUnitprice.toFixed(2):item.fUnitprice}}</td>
|
|
|
+ <td class="column">{{item.fUnitprice?Number(item.fUnitprice).toFixed(2):item.fUnitprice}}??????</td>
|
|
|
<td class="column">{{item.fPurchase}}({{item.fFeeunitName}})</td>
|
|
|
<td class="column">{{item.fQty}}({{item.fFeeunitName}})</td>
|
|
|
- <td class="column">{{item.fAmount?item.fAmount.toFixed(2):item.fAmount}}</td>
|
|
|
+ <td class="column">{{item.fAmount?Number(item.fAmount).toFixed(2):item.fAmount}}??????</td>
|
|
|
<td class="column">{{item.remark}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -339,7 +339,6 @@ export default {
|
|
|
name: '生成日志',
|
|
|
checked: 0,
|
|
|
width: 160,
|
|
|
- fixed:'right',
|
|
|
operation: '1',
|
|
|
onabort: ''
|
|
|
},
|
|
@@ -625,7 +624,15 @@ export default {
|
|
|
width: 200,
|
|
|
labelSize: '80',
|
|
|
rules: [{ required: false, message: ' ' }]
|
|
|
- }, {
|
|
|
+ },{
|
|
|
+ span: 6,
|
|
|
+ label: 'timeInterval',
|
|
|
+ name: '提货日期',
|
|
|
+ inputType: 3,
|
|
|
+ width: 300,
|
|
|
+ labelSize: '80',
|
|
|
+ rules: [{ required: false, message: ' ' }]
|
|
|
+ },{
|
|
|
span: 6,
|
|
|
label: 'createBy',
|
|
|
name: '申请人',
|
|
@@ -641,14 +648,6 @@ export default {
|
|
|
width: 200,
|
|
|
labelSize: '80',
|
|
|
rules: [{ required: false, message: ' ' }]
|
|
|
- }, {
|
|
|
- span: 6,
|
|
|
- label: 'timeInterval',
|
|
|
- name: '提货日期',
|
|
|
- inputType: 3,
|
|
|
- width: 300,
|
|
|
- labelSize: '80',
|
|
|
- rules: [{ required: false, message: ' ' }]
|
|
|
},{
|
|
|
span: 6,
|
|
|
label: 'fFeeid',
|
|
@@ -1165,6 +1164,11 @@ export default {
|
|
|
submitAnd(){
|
|
|
this.$refs.avatar.form.fId = ''
|
|
|
this.$refs.avatar.form.fBillno = ''
|
|
|
+ this.$refs.avatar.form.fCreateLog = ''
|
|
|
+ this.$refs.avatar.form.fPrintLog = ''
|
|
|
+ this.$refs.avatar.form.fReviewDate = ''
|
|
|
+ this.$refs.avatar.form.fBillstatus = 2
|
|
|
+ this.$refs.avatar.form.fPrint = 0
|
|
|
this.contentList.forEach(item=>item.fId = '')
|
|
|
this.contentOption.forEach(item => {
|
|
|
if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
|
|
@@ -1223,39 +1227,43 @@ export default {
|
|
|
},
|
|
|
//详情内容保存
|
|
|
submitAndSave(item,res) {
|
|
|
- console.log(res)
|
|
|
- if(this.$refs.avatar.form.fBillstatus < 4 || !this.$refs.avatar.form.fBillstatus) {
|
|
|
+ console.log(item,res)
|
|
|
+ if(this.$refs.avatar.form.fBillstatus <= 4 || !this.$refs.avatar.form.fBillstatus) {
|
|
|
let formData = new window.FormData()
|
|
|
this.$refs.avatar.form.fMoney = 0
|
|
|
this.contentList.forEach(item => this.$refs.avatar.form.fMoney += Number(item.fAmount))
|
|
|
formData.append('tWarehousebills', JSON.stringify(this.$refs.avatar.form))
|
|
|
formData.append('tWarehousebillsfees', JSON.stringify(this.contentList))
|
|
|
formData.append('fBilltype', 'SQ')
|
|
|
- submit(formData).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- if(!res){
|
|
|
- this.$refs.avatar.form = res.data.warehouseBills
|
|
|
+ if (item === 3){
|
|
|
+ this.$refs.avatar.form.fId = ''
|
|
|
+ this.$refs.avatar.form.fBillno = ''
|
|
|
+ this.$refs.avatar.form.fCreateLog = ''
|
|
|
+ this.$refs.avatar.form.fPrintLog = ''
|
|
|
+ this.$refs.avatar.form.fBillstatus = 2
|
|
|
+ this.$refs.avatar.form.fPrint = 0
|
|
|
+ this.contentList.forEach(item=>item.fId = '')
|
|
|
+ this.contentOption.forEach(item => {
|
|
|
+ if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
|
|
|
+ item.disabled = true
|
|
|
+ } else {
|
|
|
+ item.disabled = false
|
|
|
}
|
|
|
- this.contentList = res.data.tWarehousebillsCntrs
|
|
|
- if (item === 3){
|
|
|
- this.$refs.avatar.form.fId = ''
|
|
|
- this.$refs.avatar.form.fBillno = ''
|
|
|
- this.contentList.forEach(item=>item.fId = '')
|
|
|
- this.contentOption.forEach(item => {
|
|
|
- if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
|
|
|
- item.disabled = true
|
|
|
- } else {
|
|
|
- item.disabled = false
|
|
|
- }
|
|
|
- })
|
|
|
- this.purchaseList.columnList.forEach(item => item.disabled = false)
|
|
|
- this.contentButton.forEach(item => item.disabled = false)
|
|
|
- this.contentStyle.forEach(item => item.disabled = false)
|
|
|
- }else{
|
|
|
+ })
|
|
|
+ this.purchaseList.columnList.forEach(item => item.disabled = false)
|
|
|
+ this.contentButton.forEach(item => item.disabled = false)
|
|
|
+ this.contentStyle.forEach(item => item.disabled = false)
|
|
|
+ }else {
|
|
|
+ submit(formData).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ if(res){
|
|
|
+ this.$refs.avatar.form = res.data.warehouseBills
|
|
|
+ }
|
|
|
+ this.contentList = res.data.tWarehousebillsCntrs
|
|
|
this.$message.success('保存成功')
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
if (item == 1){
|
|
|
this.dialogVisible = true
|
|
@@ -1268,24 +1276,43 @@ export default {
|
|
|
this.query(this.formDataList)
|
|
|
}
|
|
|
if (item === 3 && this.$refs.avatar.form.fBillstatus > 3){
|
|
|
- let datae = {
|
|
|
- fId:this.$refs.avatar.form.fId,
|
|
|
- fBilltype:'SQ'
|
|
|
- }
|
|
|
- copyNew(datae).then(res=> {
|
|
|
- this.$message({
|
|
|
- message: '复制新单成功',
|
|
|
- type: 'success',
|
|
|
- showClose: true
|
|
|
- });
|
|
|
- let scope = {
|
|
|
- row: {
|
|
|
- fId: res.data
|
|
|
- }
|
|
|
+ this.$refs.avatar.form.fId = ''
|
|
|
+ this.$refs.avatar.form.fBillno = ''
|
|
|
+ this.$refs.avatar.form.fCreateLog = ''
|
|
|
+ this.$refs.avatar.form.fReviewDate = ''
|
|
|
+ this.$refs.avatar.form.fReviewDate = ''
|
|
|
+ this.$refs.avatar.form.fPrintLog = ''
|
|
|
+ this.$refs.avatar.form.fBillstatus = 2
|
|
|
+ this.$refs.avatar.form.fPrint = 0
|
|
|
+ this.contentList.forEach(item=>item.fId = '')
|
|
|
+ this.contentOption.forEach(item => {
|
|
|
+ if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
|
|
|
+ item.disabled = true
|
|
|
+ } else {
|
|
|
+ item.disabled = false
|
|
|
}
|
|
|
- this.query(this.formDataList)
|
|
|
- this.viewMethod(scope,res)
|
|
|
})
|
|
|
+ this.purchaseList.columnList.forEach(item => item.disabled = false)
|
|
|
+ this.contentButton.forEach(item => item.disabled = false)
|
|
|
+ this.contentStyle.forEach(item => item.disabled = false)
|
|
|
+ // let datae = {
|
|
|
+ // fId:this.$refs.avatar.form.fId,
|
|
|
+ // fBilltype:'SQ'
|
|
|
+ // }
|
|
|
+ // copyNew(datae).then(res=> {
|
|
|
+ // this.$message({
|
|
|
+ // message: '复制新单成功',
|
|
|
+ // type: 'success',
|
|
|
+ // showClose: true
|
|
|
+ // });
|
|
|
+ // let scope = {
|
|
|
+ // row: {
|
|
|
+ // fId: res.data
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.query(this.formDataList)
|
|
|
+ // this.viewMethod(scope,res)
|
|
|
+ // })
|
|
|
}
|
|
|
},
|
|
|
//表单选中后触发
|