| | |
| | | required v-if="daydata.isWeighing==1"> |
| | | <u--input v-model="clean" |
| | | border="surround" |
| | | disabled |
| | | placeholder="请输入净重" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | |
| | | import { apiRegister } from '@/api/publicInterface.js'; |
| | | import { mapMutations } from 'vuex'; |
| | | import { BaseUrl } from '@/api/publicInterface.js'; |
| | | import BigNumber from "bignumber.js" |
| | | export default { |
| | | // 监听页面初次渲染完成。注意如果渲染速度快,会在页面进入动画完成前触发 |
| | | onReady() { |
| | |
| | | }, |
| | | skin:"", |
| | | hair:"", |
| | | clean:"", |
| | | TableData:[], |
| | | radiolist1: [{ |
| | | name: '否', |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | computed:{ |
| | | clean() { |
| | | if(this.daydata.isWeighing==1){ |
| | | let xx = BigNumber(this.hair ? this.hair : 0) |
| | | let yy = BigNumber(this.skin ? this.skin : 0) |
| | | return xx.minus(yy).toNumber() > 0 ? xx.minus(yy).toNumber().toFixed(2) : 0 |
| | | }else{ |
| | | //数量 |
| | | if(!this.tmTaskCoalList.length){ |
| | | return false |
| | | }else{ |
| | | const reslut = this.tmTaskCoalList.find(item=>!item.productQuantity); |
| | | if(reslut){ |
| | | return false |
| | | }else{ |
| | | return true |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changeisUploadimg']), |
| | | // input聚焦 |