|
@@ -307,7 +307,7 @@ export default {
|
|
return this.$message.warning('自有库存师傅分账金额必须小于收费标准!');
|
|
return this.$message.warning('自有库存师傅分账金额必须小于收费标准!');
|
|
}else if(this.formData.outWorkerAmount > e){
|
|
}else if(this.formData.outWorkerAmount > e){
|
|
this.formData.outWorkerAmount = ''
|
|
this.formData.outWorkerAmount = ''
|
|
- return this.$message.warning('外购辅材师傅分账金额必须小于收费标准!');
|
|
|
|
|
|
+ return this.$message.warning('外购配件师傅分账金额必须小于收费标准!');
|
|
}
|
|
}
|
|
this.formData.selfWebsitAmount = this.Subtr(e,this.formData.selfWorkerAmount)
|
|
this.formData.selfWebsitAmount = this.Subtr(e,this.formData.selfWorkerAmount)
|
|
this.formData.outWebsitAmount = this.Subtr(e,this.formData.outWorkerAmount)
|
|
this.formData.outWebsitAmount = this.Subtr(e,this.formData.outWorkerAmount)
|
|
@@ -385,7 +385,7 @@ export default {
|
|
name: 'slot-component',
|
|
name: 'slot-component',
|
|
attributes: { placeholder: '请输入', type: 'number' },
|
|
attributes: { placeholder: '请输入', type: 'number' },
|
|
formItemAttributes: {
|
|
formItemAttributes: {
|
|
- label: '外购辅材师傅分账金额',
|
|
|
|
|
|
+ label: '外购配件师傅分账金额',
|
|
prop: 'outWorkerAmount',
|
|
prop: 'outWorkerAmount',
|
|
rules: [...required]
|
|
rules: [...required]
|
|
},
|
|
},
|
|
@@ -399,7 +399,7 @@ export default {
|
|
this.formData.outWorkerAmount = Number(this.formData.outWorkerAmount).toFixed(2)
|
|
this.formData.outWorkerAmount = Number(this.formData.outWorkerAmount).toFixed(2)
|
|
if(Number(e) > Number(that.formData.normAmount)){
|
|
if(Number(e) > Number(that.formData.normAmount)){
|
|
this.formData.outWorkerAmount = ''
|
|
this.formData.outWorkerAmount = ''
|
|
- return this.$message.warning('外购辅材师傅分账金额必须小于收费标准!');
|
|
|
|
|
|
+ return this.$message.warning('外购配件师傅分账金额必须小于收费标准!');
|
|
}
|
|
}
|
|
this.formData.outWebsitAmount = this.Subtr(this.formData.normAmount,e)
|
|
this.formData.outWebsitAmount = this.Subtr(this.formData.normAmount,e)
|
|
}} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
|
|
}} type="number" placeholder="请输入"></el-input><span style="margin-left: 10px;">元</span>
|
|
@@ -465,7 +465,7 @@ export default {
|
|
name: 'slot-component',
|
|
name: 'slot-component',
|
|
attributes: { placeholder: '请输入', type: 'number' },
|
|
attributes: { placeholder: '请输入', type: 'number' },
|
|
formItemAttributes: {
|
|
formItemAttributes: {
|
|
- label: '外购辅材商户分账金额',
|
|
|
|
|
|
+ label: '外购配件商户分账金额',
|
|
prop: 'outWebsitAmount',
|
|
prop: 'outWebsitAmount',
|
|
rules: [...required]
|
|
rules: [...required]
|
|
},
|
|
},
|
|
@@ -521,14 +521,28 @@ export default {
|
|
// 表格列解析渲染数据更改
|
|
// 表格列解析渲染数据更改
|
|
columnParsing(item, defaultData) {
|
|
columnParsing(item, defaultData) {
|
|
if (item.jname === 'idCardImg') {
|
|
if (item.jname === 'idCardImg') {
|
|
- defaultData.render = (h, { row, index, column }) => {
|
|
|
|
- return (
|
|
|
|
- <div style="padding:0 6px;cursor: pointer;">
|
|
|
|
- {row.idCardImg ? row.idCardImg.split(",").map(url => <el-image src={url} preview-src-list={[url]} fit="fit" style="width:80px;height:80px;" />) : null}
|
|
|
|
- </div>
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ defaultData.render = (h, { row, index, column }) => {
|
|
|
|
+ return (
|
|
|
|
+ <div style="padding:0 6px;cursor: pointer;">
|
|
|
|
+ {row.idCardImg ? row.idCardImg.split(",").map(url => <el-image src={url} preview-src-list={[url]} fit="fit" style="width:80px;height:80px;" />) : null}
|
|
|
|
+ </div>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(item.jname === 'selfWorkerAmount'){
|
|
|
|
+ defaultData.render = (h, { row, index, column }) => {
|
|
|
|
+ return (
|
|
|
|
+ <div>{row.normType == 'M'?row.selfWorkerAmount:(row.selfWorkerAmount + '%')}</div>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(item.jname === 'selfWebsitAmount'){
|
|
|
|
+ defaultData.render = (h, { row, index, column }) => {
|
|
|
|
+ return (
|
|
|
|
+ <div>{row.normType == 'M'?row.selfWebsitAmount: (row.selfWebsitAmount + '%')}</div>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return defaultData
|
|
return defaultData
|
|
},
|
|
},
|
|
// 监听勾选变化
|
|
// 监听勾选变化
|